/** {
  border: solid red 1px;
}*/

html, body {
  width: 100vw;
  min-height: 100vh;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0e6d8;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: stretch;
}
body * { font-size: 12pt; }

@font-face {
  font-family: "titlefont";
  src: url("../fonts/RaspberryCake.ttf");
}

a { color: #2af; text-decoration: none; }
a:visited { color: #4ac; }
a:hover, a:focus {
  background-color: #2af;
  color: #000;
}

#errmsg {
  color: red;
}


header, header h2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  text-align: left;
  font-weight: 100;
}

.logoname {
  font-family: titlefont;
}

header h1, header h1 a {
  margin: 0;
  font-size: 16pt;
}


main {
  flex-grow: 10;
}


.logo {
  height: 24pt;
  aspect-ratio: 1/1;
  vertical-align: middle;
}

#headerlinks {
  display: flex;
  flex-flow: row nowrap;
  align-content: center;
  gap: 10px;
  align-items: flex-end;
}
#headerlinks > * {
  border: solid #888 1px;
  background-color: #c84;
  color: black;
  padding: 3px;
  border-radius: 10px;
  transition: border-radius 0.15s;
}
#headerlinks > *:hover, #headerlinks > *:focus {
  border-radius: 0;
}

.tog {
  cursor: pointer;
  font-style: italic;
  color: #88AFFF;
}
tog:hover::after, .tog:focus::after { content: " ►"; }

/* for the hamburger menu */
.hamburger {
  position: relative;
  display: none;
  width: 1.5em;
  height: 0.8em;
  margin-top: 0.5em;
  margin-right: 0.5em;
  border-top: 0.2em solid #6cf;
  border-bottom: 0.2em solid #28c;
}
.hamburger::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0px;
  width: 100%;
  border-top: 0.2em solid #4ae;
}
.hamburger:hover::after, .hamburger:focus::after { content:""; }


#infoarea {
  text-align: center;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 50%;
  max-height: 50%;
  overflow-y: scroll;
}
.infobox {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
  border: solid orange 2px;
}
.infobox * {
  margin: 2px;
}



fieldset {
  border: solid #888 1px;
}
legend {
  color: #888;
}

label,legend {
  font-size: 11pt;
}

input, textarea, button, select {
  font-size: 13pt;
  font-family: sans-serif;
}


table {
  border-collapse: collapse;
}
td, th {
  border: solid #888 1px;
  padding: 3px;
}
td {
  white-space: nowrap;
}

input[type=number] { max-width: 10ch; -moz-appearance: textfield; }

footer {
  margin-top: 40px;
  margin: 40px auto 10px auto;
  color: #888;
  font-size: 9pt;
}


@media screen and (max-width: 640px) {
  .hamburger {display: inline-block;}
  #headerlinkswrap {
    display: none;
  }

  #headerlinks {
    gap: 0px;
    text-align: right;
    flex-direction: column;
    align-items: stretch;
  }
  #headerlinks > * {
    border-radius: 0;
  }

  #infoarea {
    max-width: 75%;
  }
  
}


@media (prefers-color-scheme: dark) {
  html, body, .infobox {
    color: white;
    background-color: #222;
  }
}
