body {
  background-color: #15151e;
  color: #e10600;
  font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.wrapper {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  /* top: 0.19rem; */
  top:0px;
  height: 46px;
  z-index: 99;
 object-fit: cover;
  background: #15151e;
  overflow: hidden;
  padding: 0 0.5rem;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.7);
}

.container-main {
  position: relative;
  /* width: 30rem; */
  /* height: 800px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  /*margin-top: 4rem;*/
  padding-bottom: 1.52rem;
}

.border1 {
  border: 8px solid #e10600;
  border-bottom: 0px solid #e10600;
  border-radius: 38px 38px 0px 0px;
  padding: 4px;
}
.border2 {
  border: 8px solid #e10600;
  border-bottom: 0px solid #e10600;
  border-radius: 28px 28px 0px 0px;
  padding: 4px;
}
.border3 {
  border: 8px solid #e10600;
  border-bottom: 0px solid #e10600;
  border-radius: 18px 18px 0px 0px;
  padding: 4px;
}
.border4 {
  border: 8px solid #e10600;
  border-bottom: 0px solid #e10600;
  border-radius: 8px 8px 0px 0px;
  padding: 4px;
}
.band-group {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: auto;
  background-color: #15151e;
}
.band {
  border-bottom: 8px solid #e10600;
  width: 100vw;
  padding: 2px 0;
}
.iframe {
  aspect-ratio: 16/9;
  /* height: 360px; */
  width: 65vw;
}

.blog {
  display: flex;
  width: 100vw;
  flex-direction: column;
}
.blog section {
  padding: 1rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Para alinear el card-body en la parte inferior */
.card-body {
  margin-top: auto;
}

.scroll {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.year-nav-header {
  width: 100%;
}
.year-nav-header nav {
  width: 100%;
}


.year-nav-header {
  border-radius: 3px;
}

.nav-item {
  padding: 12px 16px 13px;
}
.nav-item:not(:last-child) {
  border-right: 4px solid rgba(255, 255, 255, 0.938);
}

* {
  box-sizing: border-box;
}

nav {
  font-size: 0;
}

.nav-item {
  font-size: 14px;
}


.nav-item,
.vertical-align-middle {
  display: inline-block;
  vertical-align: middle;
}

.scroll::-webkit-scrollbar {
  display: none;
}

/* unvisited link */
a:link {
  color: red;
  }
  
  /* visited link */
  a:visited {
  color: red;
  }

  .flag {
    height: 30px;
    width: auto;
    border-radius: 5px;
    position: relative;
    border-width: 1px;
    border-color: black;
  }

  .button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 3px;
    background-color: #e10600;
    color: white;
    text-decoration: none;
  }
  .info-box {
    display: inline-flex; /* Usamos inline-flex para centrar fácilmente */
    flex-direction: column; /* Alineamos los elementos verticalmente */
    justify-content: center; /* Centramos verticalmente */
    align-items: center; /* Centramos horizontalmente */
    margin-right: 10px;
    background-color: red;
    color: white;
    padding: 15px;
    width: 150px;
    height: 150px;
    text-align: center;
    position: relative;
}

.info-icon {
    font-size: 50px;
    margin-bottom: 10px; /* Añadimos espacio entre el icono y el texto */
}

.title-box {
    background-color: white;
    color: red;
    width: 100%;
    padding: 5px;
    position: absolute;
    top: -25px;
    left: 0;
    text-align: center;
    font-weight: bold;
}
/* ... Tu CSS existente ... */

/* Estilos para el Mega Menú */
.mega-menu {
  position: absolute;
  left: 0;
  width: 100%;
  background: #e10600;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
  border-radius: 3px;
  top: 100%;
}

.mega-menu.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}

.nav-item.dropdown {
  position: relative;
}

/* Contenedores de todos los menús */
#seasons-container,
#countries-container,
#cities-container,
#circuits-container,
#weather-container {
  text-align: left;
}

/* Estilo para tags (todos los menús) */
.mega-menu .menu-tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 6px;
  text-decoration: none;
  color: #fff !important;
  background: #15151e;
  font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
  font-size: 14px;
  border-radius: 8px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.mega-menu .menu-tag:hover {
  color: #000 !important;
  background: #fff;
  font-weight: bold;
  text-decoration: underline;
}

.mega-menu a.menu-tag:link,
.mega-menu a.menu-tag:visited {
  color: #fff !important;
  text-decoration: none;
}

/* Reducir altura del section del menú */
section {
  padding: 5px 0;
  margin: 0;
}

.year-nav {
  position: relative;
  padding: 0;
}

/* Limpiar floats */
.mega-menu:after {
  content: "";
  display: table;
  clear: both;
}

.container-main {
  transition: margin-top 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
  color: #e10600;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: black;
}

/* Media query para pantallas pequeñas (iPhone) */
@media (max-width: 768px) {
  .mega-menu {
      padding: 10px;
  }

  .mega-menu .menu-tag {
      padding: 4px 8px;
      margin: 3px;
      font-size: 12px;
  }

  .navbar {
      padding: 5px;
  }

  .navbar-toggler {
      padding: 0.25rem 0.5rem;
      font-size: 1rem;
      background-color:  #e10600;
  }

  .navbar-nav {
      flex-direction: column;
      align-items: flex-start;
  }

  .nav-item.dropdown {
      width: 100%;
  }

  .nav-link.dropdown-toggle {
      padding: 10px;
  }
}

/* Media query para altura de la vista (scroll cuando excede 50%) */
@media (max-height: 800px) { /* Ajusta 800px según tu diseño */
  .mega-menu.active {
      max-height: 50vh; /* Límite al 50% de la altura de la vista */
      overflow-y: auto; /* Scroll vertical cuando se excede */
  }
}


/* Close button for mega menu */
.close-mega-menu {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* Ensure the close button is inside the mega menu container */
.mega-menu {
  position: absolute;
  left: 0;
  width: 100%;
  background: #e10600;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
  border-radius: 3px;
  top: 100%;
  position: fixed;
  top: 0;
  left: 0;
}
