/* Hide main content by default */
#main-content {
  display: none;
}

.hidden {
  display: none;
}

/* Loading spinner styles */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #fe491e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#curso-container,
#nivel-container,
#paquete-container {
  display: none;
}

/* Class to show the elements if needed */
.show-element {
  display: block !important;
}

.titulo {
  margin: 1rem;
}

#age {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #e8eeef;
  color: #8a97a0;
}

body {
  height: 100vh;
  background-color: black;
  background-size: cover;
  background-position: center;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
}

a:hover {
  color: orange;
}

/* HEADER */
header {
  position: relative;
  padding: 0 2rem;
}

.navbar {
  max-width: 100%;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo a {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.navbar .toggle_btn {
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.action_btn {
  background-color: orange;
  text-align: center;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.action_btn:hover {
  scale: 1.05;
  color: #fff;
}

.action_btn:active {
  scale: 0.95;
}

.logoImg {
  height: auto;
  max-width: 30%;
  object-fit: contain;
  padding: 2%;
}

/* DROPDOWN MENU */
.dropdown_menu {
  display: none;
  position: absolute;
  right: 2rem;
  top: 60px;
  height: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
  height: 380px;
}

.dropdown_menu li {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown_menu .action_btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* HERO */
section#hero {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

#hero h1:hover {
  scale: 1.05;
  color: #e14a21;
}

/* Flyer in home page */

.flyer {
  max-width: 40vw;
  max-height: 50vh;
  overflow: hidden;
}
.flyer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.transparent-button {
  border-radius: 20px;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
}
.horario-description {
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.aprende-en-cinco-semanas {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.aprende-en-cinco-semanas-container {
  margin: 1rem;
}

.precios-text,
.sucursales-text,
.class-schedule-text {
  font-size: 0.8rem;
}

.sucursales-text a {
  color: #e14a21;
  font-size: 0.8rem;
  /* underline text */
  text-decoration: underline;
}

#class-schedule span {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-height: 40px;
}

#class-schedule input[type="checkbox"] {
  margin-right: 10px;
}

#class-schedule select {
  width: 100px;
}

fieldset {
  margin-bottom: 1rem; /* Adjust the value as needed */
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .navbar .links,
  .navbar .action_btn {
    display: none;
  }

  .navbar .toggle_btn {
    display: block;
  }

  .dropdown_menu {
    display: block;
  }

  .flyer {
    max-width: 75vw;
    max-height: 75vh;
  }
}

@media (max-width: 992px) {
  .dropdown_menu {
    left: 2rem;
    width: unset;
  }
}
