/* FONTS */

@font-face {
  font-family: OCRA;
  src: url(../font/OCRAStd.otf);
}
@font-face {
  font-family: zoo-three;
  src: url(../font/Z003-MediumItalic.otf);
}

* { font-family: OCRA; }
header p,
footer p {
  /*
  font-family: cursive, sans-serif;
  font-style: italic;
  */
  font-family: zoo-three;
  text-shadow: 0 0 1px lightgrey;
}

/* GENERAL */

html, body { height: 100%; }
body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: space-between;
}
header, footer {
  margin: 0;
}
main { 
  margin-left : 2%;
  margin-right : 2%;
  flex-grow: 1;
  padding: 5%;
}
/* HEADER */
h1 { 
  text-align: center;
}
header div {
  padding: 22px;
  padding-bottom: 0px;
}
header p {
  text-align: center;
  padding-left: 3%;
  padding-right: 3%;
  font-size: 1.1em;
}
header nav li {
  display: inline-block;
  margin-top: 9px;
}
ul li ul {
  visibility: hidden;
  position: absolute;
  padding-left: 0;
  display: none;
}
ul li:hover > ul,
ul li ul:hover {
  visibility: visible;
  display: block;
}
ul li ul li {
  clear: both;
  width: 100%;
}
ul li ul li a:hover {
  padding-left: 10px;
  transition: all 0.3s ease;
}
header nav a {
  text-decoration: none;
  padding: 4px;
  border-radius: 5px;
}
/* FOOTER */
footer p { 
  position: absolute;
  right: 20px;
  padding-right: 2%;
  text-align: right;
  margin-bottom: 0;
}
footer div {
  padding-left: 2%;
}

/* MAIN CONTENT */

:root {
  --toggle-bg: light-dark(#94a3b8, #475569);
  --toggle-circle: light-dark(#ffffff, #0f172a);
}

#dark-mode-toggle {
  display: none;
}
.toggle {
  display: inline-block;
  width: 30px;
  height: 15px;
  background: var(--toggle-bg);
  border-radius: 15px;
  position: absolute;
  right: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  background: var(--toggle-circle);
  border-radius: 50%;
  transition: transform 0.3s;
}
#dark-mode-toggle:checked +
.toggle::before {
  transform: translateX(15px);
}
