/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 768px;
  text-align: center;
  overflow-X: hidden;
gap: 10px;
text-align: center;
padding: 1%;
background-color: rgba(0, 0, 0, 0.938);
background-size: contain;



}

/* Logo  */
#logo {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 2%;
  right:  45%;
  height: 15%;
  animation: pulse 5s infinite ease-in-out;
  cursor: pointer;
}

#main {
  padding:3%;
 margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
width: 100%;
max-width: 768px;
  text-align: center;

  background-color: #b5f8b8;
  border-radius: 13px;
  box-shadow: 5px 2px 20px 10px rgb(60, 255, 1);
  z-index: 900; 
  color: wheat;
  gap: 10px;
  text-align: center;
  background-color: black;
 

}
section {
  position: relative;
  width: 100%;
  margin-top: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 13px;
  box-shadow: 2.5px 1.5px 5px 5px rgb(255, 1, 1);
  z-index: 800; 
  color: wheat;
  gap: 5px;
  text-align: center;
  border: #f1ee04 solid 5px;
  border-radius: 30px;
  overflow: visible; /* Adicionado */
  box-sizing: border-box; /* Isso é CRUCIAL */
}


linha {
  margin-top: 5%;
  margin-bottom: 2% ;
  padding: 100px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 13px;
  box-shadow: 3px 3px 5px 2px rgb(60, 255, 1);
  z-index: 700;
  color: wheat;
  gap: 10px;
  text-align: center;
  border: #fffefe solid 3px;
  border-radius: 30px;
  font-size: 4vh;
}
.input-config {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  background-color:#ff8330;
  color: wheat;
  border: none;
  border-radius: 30px;
  font-size: 40px;
  color: rgb(0, 0, 0);
  font-weight: 900;
  text-align: center;
  gap: 10px;
  text-align: center;
}
.input-config:hover {
  background-color: #00fc0d;
  box-shadow: 3px 3px 10px 10px rgb(2, 125, 240);
}
.content-select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  background-color: #b5f8b8;
  color: wheat;
  border: none;
  border-radius: 30px;
  font-size: 4vh;
  color: navy;
  font-weight: 900;
  text-align: center;
  gap: 10px;
  text-align: center;
}
.content-select:hover { 
  background-color: #000000;
  box-shadow: 3px 3px 10px 10px rgb(2, 125, 240);
  color: #b5f8b8;
}
.action-button {
  width: 70%;
  padding: 15px;
  margin: 10px 0;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  background-color: #ffffff; /* cor de fundo mais vibrante */
  color:  #ff8330;; /* cor de texto mais clara */
  font-weight: bold;
  font-size: 6vh;
  cursor: pointer;
  border: 5px solid #ff8330; /* cor de borda mais vibrante */
  border-radius: 30px;
  animation: tremida 2s infinite;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* sombra para dar profundidade */
  transition: background-color 0.3s ease-in-out; /* transição para mudar a cor de fundo */
}

.action-button:hover {
  background-color: #c24e00; /* cor de fundo mais escura ao passar o mouse */
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4); /* sombra mais forte ao passar o mouse */
}

grafico {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Adicionado minmax */
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden; /* Garante que nada ultrapasse */
  gap: 10px;
}



.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;

}
.chart-container {
  display: grid;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ajustado */
    position: relative;
    height: 360px; /* Altura aumentada */
    overflow: visible !important; /* Permite que a legenda vaze um pouco */
    padding-bottom: 25px; /* Espaço extra para a legenda */
    margin-bottom: 10px;
     border: 5px solid #00fc0d;
  border-radius: 25%;
  background-color: rgb(0, 0, 0);
  overflow: hidden;
}


canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 160px !important;
  overflow: visible !important;
  display: block !important;
  margin: 0 auto !important
}

span {
  font-size:22px;
  font-weight: bold;
}
.resumorotulos{
  display: block;
  font-weight: 900;
  color: #c24e00;
  animation: pulse 3s infinite;
    font-size: 30px;
}
.resumorotulos2{
  display: block;
  font-weight: 900;
  color: #ff0000;
  animation: pulse 3s infinite;
  font-size: 40px;
}



@keyframes tremida {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(2px);
  }
  20% {
    transform: translateX(-2px);
  }
  30% {
    transform: translateX(2px);
  }
  40% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(1px);
  }
  70% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
  90% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}



@keyframes surgimento {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 0.2;
    transform: scale(0.7);
  }
  40% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  60% {
    opacity: 0.6;
    transform: scale(1.1);
  }
  80% {
    opacity: 0.8;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
#CARREGAR{
  display: block;
 animation: pulse 3s infinite;
 color: #b6ffb9;
 font-size: 30px;
}
h1 {
  font-size: 50px;
  font-weight: bold;
  color: #00fc0d;

  text-align: center;
  margin-bottom: 20px;
  animation: pulse 3s infinite;
  padding: 5%;
}

.limpar {
  display: none;
  position: absolute;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 9%;
top: 10%;
left: 1%;
  text-align: center;
  overflow-X: hidden;
  gap: 10px;
  text-align: center;
  padding: 1%;
  z-index: 0;
  cursor: pointer;
  animation: tremida 5s infinite ease-in-out;
  
}

.splash-screen {
  background-color: #000000;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Media Queries para smartphones - VERSÃO MODIFICADA */
@media screen and (max-width: 768px) {
  h1, #carregando {
    font-size: 28px; /* Reduzido de 40px */
    padding: 15px; /* Reduzido de 30px */
  }

  linha {
    font-size: 16px; /* Aumentado de 12px */
    padding: 15px; /* Reduzido de 100px */
  }
  
  .input-config {
    font-size: 16px; /* Aumentado de 12px */
    padding: 8px; /* Reduzido de 10px */
  }
  
  .content-select {
    font-size: 16px; /* Aumentado de 12px */
    padding: 8px; /* Reduzido de 10px */
  }
  
  .action-button {
    font-size: 18px; /* Aumentado de 12px */
    padding: 10px; /* Reduzido de 15px */
    width: 80%; /* Aumentado de 70% */
  }
  
  /* MANTEMOS 2 COLUNAS - REMOVIDO grid-template-columns: 1fr */
  grafico {
    gap: 5px; /* Reduzido de 10px */
    padding: 5px; /* Reduzido de 10px */
  }
  
  .chart-container {
 
       position: relative;
  width: 100%;
  height: 250px; /* Ajuste aqui até o gráfico caber sem cortar */
  }
  .chart-container canvas {
      width: 100% !important;
  height: 100% !important;
  }
  .resumorotulos {
    font-size: 14px; /* Reduzido de 26px */
  }
  
  .resumorotulos2 {
    font-size: 20px; /* Reduzido de 50px */
  }
  span{
    font-size: 8px;
  }

}
