:root {
    --primary-color: #144788;
    --highlight-color: #d59332;
    --background-color: #f7f7f7;
    --header-height: 7vh;
    --footer-height: 10vh;
    --content-height: 83vh;
    --icon-size: 2rem;
    --circle-size: 70px;
  }

  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
    }

header {
    height: var(--header-height);
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .header-section {
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
}

.header-section-1 {
    width: 20%;
    padding-left:2%;

}
.header-section-2 {
    width: 60%;
}
.header-section-3 {
    width: 10%;
   
}
.header-section-4 {
  width: 10%;
  padding-right: 2% !important;
}
.compass-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .compass-center {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    position: absolute;
  }

  .compass-links {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .compass-link {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
  }

  .compass-link img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
  }


  main {
    width: 100%;
    height: var(--content-height);
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }

  footer {
    height: var(--footer-height);
    background-color: var(--primary-color);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    flex-shrink: 0;
    position: relative;
  }

  .content-container {
    position: absolute;
   display: flex;
    left: 0;
    width: 100%;
    height: var(--content-height);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease, z-index 0s linear 0.3s;
  }

  .active-container {
    display: flex;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  .header-logo-img {
  left:0;
    object-fit: contain;
  }

.nav-icon {
    font-size: var(--icon-size);
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:0px!important;
  }

  .nav-icon2 {
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav-icon.active {
    background-color: var(--highlight-color);
  }

  .nav-icon:hover {
    color: var(--highlight-color);
  }

  /* Ícone central elevado dentro de um círculo */
  .nav-icon.center-icon {
    grid-column: 3;
    width: var(--circle-size);
    height: var(--circle-size);
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.9rem;
    position: relative;
    top: -10%;
    transform: translateY(-10%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary-color);
    z-index: 2;
  }

  .nav-icon.center-icon.active {
    color: var(--highlight-color) !important;
    background-color: var(--primary-color);
  }

 /* Estilo para o container de vídeo */
  /* Ajustes para vídeos */
   /* Ajustes para vídeos */
   #videoContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    padding: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
    align-items: stretch;
  }

  .video-iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .video-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: .5rem;
    margin-bottom: .5rem;
  }

  .video-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    padding: .5rem;
    color: var(--primary-color);
    text-align: center;
  }

  .video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: .5rem;
  }

  .saber-mais-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    margin-top: 1rem;
    padding: 12px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    height: 3rem;
    transition: background-color 0.2s ease;

   
  }
  .saber-mais-btn:hover {
    background-color: var(--highlight-color);
  }



  @keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

    
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color) no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 3s ease forwards;
    animation-delay: 4.5s;
  }

  #loaderLogo {
    width: 20rem;
    height: 20rem;
    margin-bottom: 20px;
  }

  .loader-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-align: center;
  }
  /* Ajustes para o container do jogo */
  #gameContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #gameContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
  }
  #carouselExampleCaptions {
    width: 100%;
    height: var(--content-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .carousel-indicators {
    display: none !important;
  }

  .carousel-inner {
    width: 100%;
    height: 100%;
  }

  .carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .carousel-item img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 3s ease-in-out;
  }

  .carousel-item.active img {
    transform: scale(1);
  }

  .carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 50% !important;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-bottom: 2vh;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    border-radius: 8px;
  }
  /* Ajustes para o container da escola */
  #schoolContainer {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
    flex-direction: column;
    position: absolute;
    align-items: center;
    overflow-y: auto;
    scroll-behavior: smooth;
    box-sizing: border-box; /* Evita que o padding adicione altura extra */
align-items: stretch;
  }

  #schoolContainer .card {
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
.card-body {
    flex-grow: 1 !important;
    overflow-y: hidden !important;
  }
  .card-title {
    font-size: 1 rem !important;
    color: var(--primary-color) !important;
    text-align: center;

  }
.pageInfo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
  }
  .card-text {
    text-align: center;
    overflow-y: auto;
margin: 0 !important;
  }


  #schoolContainer .card-img-top {
    width: 100%;
    height: 70%;
    object-fit: cover;
  }

  #schoolContainer .card-body {
    flex-grow: 1;
    overflow-y: auto;
  }

  /* Estilo para menus select com a cor de destaque */
  select {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  select:focus {
    outline: none;
    box-shadow: 0 0 5px var(--primary-color);
  }

  /* Estilos para o leitor de PDF simulando um livro */
  #pdfContainer {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    margin-top: 0px;
    left: 0;
    overflow: hidden;
  }
  #pdfViewer {
    height: 100%;  
    border: none;
    padding-bottom: 10px;
  }

  .pdf-controls {
    position: absolute;
    bottom: 15px;
    display: flex;
    gap: 1rem;
  }

  .pdf-button {
    padding: 2px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    height: 3rem;
    transition: background-color 0.2s ease;
  }

  .pdf-button:hover {
    background-color: var(--highlight-color);
  }

  #installButton {
    position: fixed;
    bottom: calc(var(--footer-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
  }

  #installButton:hover {
    background-color: var(--primary-color);
  }

  .video-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 300px;
    height: 300px;
    position: relative;
    gap: 5px;
  }

  .quadrant {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    border-radius: 10px;
    text-align: center;
    position: relative;
  }

  .grid-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 10px;
    border-radius: 10px;
  }

  .grid-link img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 5px;
  }

  .quadrant-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: var(--highlight-color);
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .quadrant-label {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
  }

  .quadrant-n { top: -30px; left: 50%; transform: translateX(-50%); }
  .quadrant-s { bottom: -25px; left: 50%; transform: translateX(-50%); }
  .quadrant-w { left: -25px; top: 50%; transform: translateY(-50%); }
  .quadrant-e { right: -25px; top: 50%; transform: translateY(-50%); }
  .video-link-card {
    width: 120px;
    height: 100px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
  }

  .video-link-card:hover {
    background-color: var(--highlight-color);
  }
  .counter-grid {
    display: grid;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #ddd;
    overflow-y: auto;
  }

#numbersContainer{
  width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
    align-items: left;
}
  .counter-icon {
    font-size: 1.50rem;
    padding-left: 0.5rem;
    color: var(--primary-color, #144788);
  }

  .counter-name {
    font-size: 1rem;

  }

  .counter-number {
    font-size: 1.15rem;
    font-weight: bold;
    text-align: right !important;
    color: var(--highlight-color, #d59332);
    display: inline-block; 
    padding: 0px;
    margin: 0px;

  }
  #text-numbers{
    font-size: 1.15rem;
    text-align: justify !important;
    color: var(--primary-color);
    display: block; 
    padding-top: 2 rem !important;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 0px !important;
  }

  #text-numbers2{
    font-size: 0.75rem;
    text-align: left !important;
    display: block; 
    padding-top: 0.5 rem !important;
    padding-left: 15px;
  }
  
  #header-row {
    background-image: url(./images/header.jpeg);
    background-size: cover;
  }