@font-face {
  font-family: "AniTypewriter";
  src: url(/fonts/AniTypewriter.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Mangro";
  src: url(/fonts/mangro.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "AniTypewriter";
  background: url("/assets/bg.png") repeat;
  background-size: 100vw 150vh;
  color: #221e18;
}
.navbar {
  background: #373229;
  padding: 0.5em 2em;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.nav-link#tesseau {
  font-weight: 700;
  font-size: 2em;
  color: #fff;
  margin-right: 1em;
  letter-spacing: 2px;
  font-family: "Mangro", sans-serif;
}

.navbar li {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0 1em;
  padding: 0;
}
.navbar li {
  display: inline-block;
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* below parent */
  left: 0;
  background: #584f3d;
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0.5em 1em;
}

.dropdown-menu a {
  color: #fffaf0;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background: #504733;
  color: #ffaa00;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-link {
  color: #fffaf0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.5em;
  font-family: "Mangro", sans-serif;
  cursor: pointer;
}

.nav-link:hover {
  text-decoration: underline;
  color: #ffaa00;
}

.navbar a:hover {
  color: #caa65f;
}
.container {
  max-width: 900px;
  margin: 2em auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  padding: 2em 2.5em;
}
h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #2d3748;
}

.hidden {
  display: none;
}

.tesseau-logo {
  width: 24px;
  height: 24px;
  margin-right: 0.5em;
}
/* Toast container sits just below navbar */
.toast-container {
  position: fixed;
  top: 60px; /* adjust to navbar height */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  max-width: 90%;
}

/* Toast styles */
.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease, fadeOut 0.5s ease 3s forwards;
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .navbar .nav-link#tesseau {
    margin-right: -1em;
    margin-left: -0.5em;
    font-size: 1.5em;
  }

  .navbar a {
    font-size: 1em;
  }

  .navbar li {
    font-size: 1em;
    display: inline-block;
    margin-left: 0.2em;
    margin-right: 0.2em;
  }

  .dropdown {
    margin-left: 0.5em;
  }

  select {
    max-width: 100%;
    margin-top: 10px;
  }

  .tesseau-logo {
    display: none;
  }
}
