body {
  font-family: sans-serif;
  font-size: 17px;
  margin: 0;
}

body > :not(.topbar) {
  max-width:80ch;
  padding: 3px 15px;
  margin-inline: auto;
}


.topbar {
  width: 100%;
  background-color: gray;
  padding: 3px;
  text-align: end;
  height: 3rem;
}

.topbar p {
  margin: 0;
}


header {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  --ww: calc(100%-80ch);
  --www: calc(var(--ww)/2);

  & h1 {
    font-size: 3rem;
  }
}

.logo-img {
  max-width: 5rem;
  margin-top: -2.5rem;
}

.shift-entry-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 0 0.5em;
  flex-wrap: wrap;
}

.shift-selector-checkbox {
  align-self: flex-start;
  flex-shrink: 1;
  padding-top: .2rem;
}

.shift-time {
  font-size: 0.9rem;
  vertical-align: bottom;
}
.shift-entry-signup-indicator {
  flex-grow: 1;
}

shiftlist {
  display: block;
}

shiftlist :not(div, span) {
  margin-bottom: 0.2rem;
  margin-top: 0.4rem;
}

shiftlist h2 {
  margin-top: 2rem;
}


.shift-name, .shift-entry-signup-indicator {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.graphical-indicator {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  margin-top: 0;

  & img {
    margin-bottom: 0;
    margin-top: 0;

    &.coordinator {
      width: 1.3em;
    }
  }
}

.poppetjes-leeg {
  color: red;
}
.poppetjes-vol {
  padding-inline-end: .4em;
  color: green;
}
.poppetjes-vol img, .poppetjes-leeg img {
  width: 1.2em ;
}

.messages {
  max-width: 40ch;
  text-align: end;
  flex-grow: 1;
}

.signup-success {
  background-color: green;
  animation: signupConfirmation 1s ease-out;
  animation-fill-mode: forwards;
  animation-delay: 3s;
  position: sticky;
  top: 0;
}
.signup-error {
  background-color: red;
  animation: signupError 1s ease-out;
  animation-fill-mode: forwards;
  animation-delay: 3s;
  position: sticky;
  color: maroon;
  top: 0;
}


@keyframes signupConfirmation {
  from {background-color: green;}
  to {background-color: white;}
}
@keyframes signupError {
  from {background-color: red;}
  to {background-color: white;}
}

.general-messages {
  margin-block: 1.5rem;
}

h1 {
  margin-top: 2rem;
}

.general-messages .signup-success, .general-messages .signup-error {
  border: 1px solid gray;
  box-shadow: 1px 1px 3px gray;
  border-radius: 5px;
  padding: .3rem;
}

/* .user-info-submission { */
/*   position: sticky; */
/*   bottom: -7rem; */
/*   background-color: white; */
/* } */


.names-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.names-list span.name {
  margin-inline: 0.1em;
  padding-inline: 0.3em;
  border: 1px solid black;
  border-radius: 3px;
  width: fit-content;
  position: relative;

  & > .delete {
    display: none;
  }
}

.names-list span.name:hover{
  border: 2px solid black;

  & > .delete {
    display: block;
    cursor: pointer;
    position: absolute;
    top: -.5em;
    right: -.5em;
    height: 1em;
    line-height: 1em;
    font-size: 1.3em;
    background-color: #d2a694;
    border: 1px solid #5e4f4f;
    width: .8em;
    text-align: center;
    border-radius: 5px;
  }
}

img.whatever {
  width: 50px;
}

#mainform-submit {
  font-size: 1.2rem;
  box-sizing: border-box;
  background-color: green;
  border: none;
  border-radius: 5px;
  padding: 0.5em;
  color: white;
  font-weight: bold;
  cursor: pointer;
  &:hover {
    padding: 0.6em;
    margin-bottom: -.2em;
  }
}

.note-important {
  font-style: italic;
  font-weight: bold;
}
