* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    background-image: url("images/background.jpg");
    background-color: #f7e7b4; /* Fondo color pastel */
    background-size: cover;        /* Hace que la imagen cubra toda la pantalla */
    background-position: center;    /* Centra la imagen en la pantalla */
    background-repeat: no-repeat;   /* Evita que la imagen se repita */
    color: #333;                    /* Color de texto para asegurarse de que sea legible */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow-x: hidden;
  }
  

/* Centrar el logo en la parte superior */
.logo {
    text-align: center;
    margin: 20px 0;
  }
  
  .logo img {
    width: 300px; /* Ajusta el tamaño del logo */
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .logo img:hover {
    transform: scale(1.05);
  }

  
  /* Encabezado */
  header {
    background-color: #7ac74f;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  #local-search-input {
    margin: 20px auto; /* Espaciado superior/inferior y centrado */
    padding: 10px 15px;
    width: 80%; /* Ajustar ancho para una buena proporción */
    font-size: 14px;
    border: 2px solid #d0a97b;
    border-radius: 8px;
    outline: none;
    background-color: #fffaf0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block;
  }
  
  #local-search-input:focus {
    border-color: #f1dcbf;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  

/* Contenedor de búsqueda global */
#global-search-input {
  margin-bottom: 20px;
  padding: 12px 15px;
  width: 60%; /* Reducir el ancho para que esté más centrado */
  font-size: 16px;
  border: 2px solid #d0a97b;
  border-radius: 8px;
  outline: none;
  background-color: #fffaf0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-left: auto; /* Centrar horizontalmente */
  margin-right: auto;
  display: block;
}

#global-search-input:focus {
  border-color: #f1dcbf;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contenedor de resultados */
.search-results {
  margin-top: 20px;
  padding: 10px;
  border-top: 2px solid #d0a97b;
  background-color: #fffaf0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 80%; /* Reducir el ancho para centrar */
  margin-left: auto; /* Centrar horizontalmente */
  margin-right: auto;
  display: block;
}

/* Resultados individuales */
.search-result {
  margin-bottom: 10px;
  padding: 12px 15px;
  border: 1px solid #d0a97b;
  background-color: #fdf8e4;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: center; /* Centramos el contenido */
}

.search-result:hover {
  background-color: #f1dcbf;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hipervínculos dentro de los resultados */
.search-result a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}

.search-result a:hover {
  text-decoration: underline;
}


  
  /* Botones de juegos */
  
  
  @keyframes fadeShrinkOut {
  0% {
    opacity: 1;
    transform: scale(1);
    height: auto;
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
  }
}

.game-buttons.fade-out {
  animation: fadeShrinkOut 0.5s ease forwards;
}

  .game-buttons:not(.hidden) {
  opacity: 1 !important;
  height: auto !important;
  margin-top: 20px !important;
  padding: 25px !important;
}


  
  .game-buttons {
    display: flex;
    opacity: 1;
    transition: height 0.6s ease, opacity 0.6s ease;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    overflow: hidden; /* Oculta el contenido cuando se reduce */
    padding: 25px;
    height: auto;
  }

.game-buttons.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  transition: height 0.6s ease, opacity 0.6s ease;
}


  
  .game-buttons button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s;
  }
  
  .game-buttons img {
    width: 120px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
  }
  
  .game-buttons img:hover {
    transform: scale(1.1); /* Efecto de agrandamiento en hover */
  }

/* Contenedor principal para usar todo el ancho disponible */
#checklist {
  width: 100%;             /* Ocupa todo el ancho posible */
  max-width: 90%;          /* Pero no más del 90% del contenedor padre */
  margin: 20px auto;       /* Centrado horizontal con margen superior e inferior */
  padding: 20px;
  text-align: center;      /* Centrar contenido interno (texto, etc.) */
  box-sizing: border-box;  /* Incluye padding en el ancho total */
}
/* Lista de series como enlaces */
.series-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

/* Layout principal */
.layout-container {
  display: flex;
  gap: 20px;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 300px;
  background-color: #f4f4f4;
  overflow: hidden;
  transition: transform 0.3s ease, width 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-300px);
}

body.sidebar-collapsed .main-content {
  margin-left: 0;
}


/* Sidebar toggle button */
.sidebar-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  z-index: 20; /* Siempre visible */
  transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
  background-color: #d0a97b;
}

/* Main content */
.main-content {
  margin-left: 300px; /* Margen igual al ancho de la sidebar */
  transition: margin-left 0.3s ease;
  flex-grow: 1;
}

.sidebar.collapsed + .main-content {
  margin-left: 0;
}

/* Sidebar content styles */
.sidebar h3 {
  padding: 10px;
  margin: 0;
  text-align: center;
  background-color: #d0a97b;
  color: white;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 10px;
  text-align: center;
}

.sidebar ul li button {
  width: 100%;
  background: none;
  border: none;
  color: #8b5a2b;
  font-size: 1em;
  cursor: pointer;
  padding: 10px;
  transition: background-color 0.3s ease;
}

.sidebar ul li button:hover {
  background-color: #d0a97b;
  color: white;
}

/* Lista de series a la derecha */
.series-list-container {
    flex: 3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* Enlace de cada serie */
.series-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 calc(33.333% - 10px); /* Ajuste flexible para cuadrícula */
  padding: 10px 20px;
  border-radius: 8px; /* Bordes redondeados */
  background-color: #f0e68c; /* Color de fondo base */
  font-size: 1em;
  font-weight: bold;
  color: #8b5a2b; /* Color del texto */
  text-decoration: none; /* Quitar subrayado */
  text-align: center;
  height: 40px; /* Altura estándar */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Transiciones suaves */
}

.series-link:hover {
  background-color: #d0a97b; /* Color al pasar el mouse */
  color: #fff; /* Texto más visible en hover */
  transform: scale(1.05); /* Efecto de zoom */
}


.series-container {
  border: 2px solid #d0a97b !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin: 20px 0 !important;
  background-color: #fffaf0 !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15) !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.series-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #d0a97b !important;
  margin-bottom: 10px !important;
}

.series-header h3 {
  font-size: 1.4em !important;
  margin: 0 !important;
  color: #8b5a2b !important;
}

.completion-text {
  font-size: 1.1em !important;
  color: #8b5a2b !important;
  font-weight: bold !important;
}

.item-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 10px !important;
  font-size: 0.95em !important;
}

.item-table th,
.item-table td {
  border: 1px solid #d0a97b !important;
  padding: 8px !important;
  text-align: center !important;
}

.item-table th {
  background-color: #f1dcbf !important;
  color: #8b5a2b !important;
  font-weight: bold !important;
}

.item-table td {
  background-color: #fff !important;
}

.item-table tr:hover {
  background-color: #fdf2e4 !important;
}

.item-table td:first-child {
  text-align: center !important;
}

.reset-button {
  display: inline-block !important;
  margin-top: 15px !important;
  padding: 8px 12px !important;
  background-color: #e76f51 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background-color 0.3s !important;
}

.reset-button:hover {
  background-color: #d9534f !important;
}


#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Se oculta inicialmente */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#back-to-top:hover {
  background-color: #c6851b;
}

#dashboard {
  max-width: 100%;
  padding: 30px;
  margin-top: 30px;
  background-color: #fff8e7;
  background-image: linear-gradient(to bottom, #fff8e7 0%, #f3cd91 100%);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  visibility: hidden;
}

#dashboard.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}



#dashboard h2 {
  position: sticky;
  top: 0;
  background-color: #f7e7b4;
  border-radius: 8px;
  padding: 10px 20px;
  z-index: 5;
  font-size: 1.6em;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#dashboard canvas {
  width: 95%;
  max-width: 1200px;
  height: 40px;
  margin: 30px auto;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

#dashboard h3 {
  font-size: 1.2em;
  font-weight: bold;
  background-color: #fff8e7;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin: 20px auto;
  color: #3b2b15;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.progress-small {
  font-size: 0.75em; /* Reduce el tamaño relativo del texto */
  vertical-align: middle; /* Asegura que esté alineado correctamente en la misma línea */
  color: inherit; /* Hereda el color del texto principal */
}


.chart {
  width: 90% !important;
  height: 50px !important;
  max-width: 1000px !important;
  margin: 20px auto !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  padding: 2px !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#customTooltip {
  transition: opacity 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 200px;
}

.golden-button {
  background: linear-gradient(90deg, #D2AC47, #F7EF8A, #D2AC47, #EDC967);
  border: 2px solid #d2ac47;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4), inset 0px 2px 4px rgba(255, 255, 255, 0.6);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

.golden-button:hover {
  transform: scale(1.05);
}

/* Resaltado inicial */
.item.highlight td {
  background-color: #ffeb3b !important; /* Amarillo brillante */
  border: 2px solid #d4af37 !important; /* Borde dorado */
  transition: background-color 1s ease, border-color 1s ease !important; /* Transición suave */
}

/* Desvanecimiento del resaltado */
.item.fade-highlight td {
  background-color: #fff !important; /* Regresar a blanco */
  border-color: #d0a97b !important; /* Regresar al borde original */
}

/* Animación del cierre del área de resultados */
.closing {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: all 0.8s ease !important; /* Transición más larga y suave */
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.credits-section {
  background-color: #f1dcbf; /* Light beige background */
  color: #8b5a2b; /* Match overall color scheme */
  text-align: center;
  padding: 20px 0; /* Vertical padding */
  font-size: 0.9em;
  border-top: 2px solid #d0a97b; /* Subtle border */
  width: 100vw; /* Usa 100vw para asegurar que cubra todo el ancho del viewport */
  margin-top: 15px;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); /* Slight shadow */
  flex-shrink: 0; /* Asegura que no colapse si el contenido es insuficiente */
}

.credits-container {
    max-width: 90%; /* Take most of the width but leave some margin */
    margin: 0 auto; /* Center the content horizontally */
    text-align: center; /* Center align the text */
}

.credits-section a {
    color: #8b5a2b; /* Link color matching theme */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits-section a:hover {
    color: #d0a97b; /* Highlight color on hover */
}

.credits-section strong {
    color: #8b5a2b; /* Bold text for developer name */
}

.credits-section p {
    margin: 10px 0; /* Increase spacing between lines */
    line-height: 1.6; /* Improve readability */
}

.main-content {
  flex: 1; /* Permite que el contenido crezca y ocupe el espacio restante */
  margin-left: 250px; /* Espacio reservado para la barra lateral */
  transition: margin-left 0.3s ease; /* Transición suave cuando la barra se colapse */
  flex-direction: column; /* Apila los elementos verticalmente */
  min-height: 100vh; /* Hace que el contenedor ocupe toda la altura de la ventana */
}

/* Panel de filtros a la izquierda */
.filters-panel {
  flex: 1 !important;
  max-width: 200px !important;
  background-color: #fffaf0 !important;
  border: 2px solid #d0a97b !important;
  border-radius: 8px !important;
  padding: 10px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  height: fit-content !important;
}

/* Títulos y botones en filtros */
.filters-panel h3 {
  margin-bottom: 10px !important;
  color: #8b5a2b !important;
  text-align: center !important;
}

.filter-button {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  padding: 10px !important;
  font-size: 0.95em !important;
  color: #fffaf0 !important;
  background-color: #d0a97b !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  text-align: center !important;
}

.filter-button:hover {
  background-color: #b08a63 !important;
}

.container {
  flex-grow: 1; /* Permite que el contenedor llene el espacio restante */
  width: 100%; /* Asegura que no desborde el viewport */
  max-width: 1200px;
  margin: 20px auto; /* Centrado horizontal */
  display: flex;
  flex-direction: column; /* Organiza elementos verticalmente */
}


.app-container {
  display: flex;
  height: 100%;
  width: 100%;}

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  
#game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background-color: #8b5a2b;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  justify-content: center;
  align-items: center;
}


.game-filter-button {
  padding: 6px 14px;
  font-size: 0.9em;
  font-weight: bold;
  background-color: #f1dcbf;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.game-filter-button:hover {
  background-color: #e7e7e7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.game-filter-button.active {
  background-color: #ffffff;
  border: 2px solid #444;
  box-shadow: inset 0 0 0 2px #8b5a2b;
}

#game-filters label:hover {
    background-color: #e7e7e7; /* Fondo más oscuro al pasar el cursor */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}


/* Back button */

.back-button {
  background: #f4f4f4;
  border: none;
  padding: 8px 18px 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}
.back-button:hover {
  background: #e0e7e0;
}
.back-button svg {
  vertical-align: middle;
}

/* Loading circle */

.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #4caf50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 10px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.category-chart-title {
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

.dashboard-category-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: #f1dcbf;
  color: #4b3621;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dashboard-category-link:hover {
  background-color: #e8cfa7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.dashboard-category-link .progress-small {
  font-weight: normal;
  font-style: italic;
  color: #6e4b2d;
  margin-left: 6px;
  font-size: 0.9em;
}

/* ───────────────────────────── */
/* NAVBAR GENERAL */
.navbar {
  display: flex;
  justify-content: center;
  background-color: #8b5a2b;
  padding: 10px;
  position: relative;
  min-height: 58px;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  transition: background-color 0.3s;
  display: inline-block;
}

.navbar a:hover {
  background-color: #c6851b;
  border-radius: 5px;
}

/* ───────────────────────────── */
/* DROPDOWN GENERAL */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 40;
}

#clothing-dropdown,
#wildlife-dropdown {
  opacity: 1;
  transition: opacity 0.2s ease;
}

#clothing-dropdown.hidden,
#wildlife-dropdown.hidden {
  opacity: 0;
}

.dropdown-content a {
  color: black;
  padding: 10px 15px;
  display: block;
  text-align: left;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ───────────────────────────── */
/* BOTÓN Y DROPDOWN DE "GAMES" */

/* Animación del botón */
#games-button {
  transition: all 0.5s ease;
}

/* Wrapper del botón y su menú */
.games-wrapper {
  position: relative;
  display: inline-block;
  transition: all 2s ease; /* 👈 transición suave para movimiento */
}

/* Cuando se selecciona un juego, mover a la izquierda */
.games-wrapper.fixed-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Dropdown específico de Games */
#games-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* Mostrar dropdown al hacer hover */
.games-wrapper:hover #games-dropdown-content {
  display: block;
}





/* ───────────────────────────── */
.deluxe-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

/* Label */
.switch-label {
  white-space: nowrap;
}

/* Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked style */
.switch input:checked + .slider {
  background-color: #f92891;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}



.leaf-transition-out {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  animation: leaf-out-hesitate 2.5s cubic-bezier(.25, 1, .30, 1) forwards;
}

@keyframes leaf-out-hesitate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(0.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.leaf-transition-out {
  animation: 1.2s cubic-bezier(.25, 1, .30, 1) leaf-out-hesitate both;
  transform-origin: center center;
}

.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.fade.visible {
  opacity: 1;
  pointer-events: auto;
}




.login-wrapper {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 100;
}

#login-button {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#login-button:hover {
  background-color: #d0a97b;
  color: black;
}




.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex; justify-content: center; align-items: center;
}

.modal-content.login-modal {
  background-color: #fffdf7;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 1em;
}

.modal-content input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-content button {
  width: 100%;
  margin-top: 1em;
  padding: 10px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #d0a97b;
}

.close-button {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 20px;
  cursor: pointer;
}

.switch-auth {
  margin-top: 1em;
  text-align: center;
}

.user-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  color: #8b5a2b;
  padding: 8px 12px;
}

.user-dropdown:hover .dropdown-options {
  display: block;
}

.user-dropdown .username {
  color: white;
}

.dropdown-options {
  display: none;
  position: absolute;
  background-color: #fffaf0;
  min-width: 100px;
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
  z-index: 99;
  right: 0;
  border-radius: 5px;
}

.dropdown-options a {
  display: block;
  color: #8b5a2b;
  padding: 8px 12px;
  text-decoration: none;
}

.dropdown-options a:hover {
  background-color: #d0a97b;
  color: white;
}

.dashboard-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 10px;
}
