@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body{
    margin: 0;
    padding: 0;
    background-color: var(--map-color);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    font-size: 15px;
    user-select: none;
    align-items: center;
}
#inicio_jogo{
    background-image: url('../assets/backGroundBasquete.webp');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#iniciar_jogo{
    padding: 0px 3rem;
    background-color: white;
    box-shadow: inset 0px 0px 8px 5px rgba(0,0,0,.3);
    color: #003366;
}
#iniciar_jogo:hover{
    cursor: pointer;
}

#menu_options{
    width: 15%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

#menu_options > * {
    border-radius: 50%;
    background-color: rgb(48, 47, 47);
    color: white;
    text-shadow: 
    -1px -1px 0 black,            /* Contorno superior esquerdo */
     1px -1px 0 black,            /* Contorno superior direito */
    -1px  1px 0 black,            /* Contorno inferior esquerdo */
     1px  1px 0 black; 
     padding: .5rem;
     border: 1px rgb(37, 37, 37) solid;
     transition: backgroundColor .5s ease;
}

#menu_options i:hover{
    cursor: pointer;
    background-color: rgb(34, 34, 34);;
}

#placar_space{
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#tempo_jogo_container{
    width: 100%;
    height: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tempo_jogo_container > *{
    margin: 0;
}


#placar_container{
    width: 90%;
    height: 60%;
    display: flex;
    align-items: center;
    gap: 1rem;
}


.team_container{
    width: 40%;
    height: 90%;
    display: flex;
}

.team_container_interno{
    height: 100%;
    width: 70%;
    display: flex;
}

.team_escudo{
    width: 30%;
    height: 100%;
    background-position: center;
    background-size: auto 200%;
    background-repeat: no-repeat;
}

#team_home_escudo{
    background-image: url('../assets/LogoUnifacisa.png');
    transform: skewX(-25deg);

}

#team_visitor_escudo{
    transform: skewX(10deg);
}

#team_home{
    background-color: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);}

#team_home_interno{
    display: flex;
    justify-content: center;
    align-items: center;

}

#team_home_interno > *{
    margin: 0;
    color: #0063A4;
 
}

#team_visitor{
    background-color: white;

    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    border-radius: 15px;
    justify-content: end;
}


#team_visitor_interno{
    display: flex;
    justify-content: center;
    align-items: center;

}

#team_visitor_interno > *{
    margin: 0;
    color: #0063A4;
    
}

.periodo-container{
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;

}

  
.periodo {
    width: 100%; /* Ajuste conforme necessário */
    min-width: 50%;
    height: 80%;
    display: inline-block;
    text-align: center;
    opacity: 0.5; /* Desabilita os períodos inativos */
    transition: opacity 0.3s, border-color 0.3s;
    color: black;
    background-color: silver;
    
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.periodo>*{
    margin: 0;
}

.periodo.ativo {
opacity: 1; /* Destaque para o período ativo */
border-color: #ff9800;
}

.temporizador {
    width: 50%;
    height: 80%;
    margin-left: -7%;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    background-color: #444;
    color: white;
    display: none; /* Inicialmente escondido */
    justify-content: center;
    align-items: center;
}

.oculto {
    display: none;
}

.ativo {
    opacity: 1;
}

.temporizador.ativo {
    display: flex; /* Mostra o temporizador ativo */
}


#placar{
    width: 25%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#team_home_placar,#team_visitor_placar{
    background-color: #0063A4;
    width: 40%;
    display: flex;
    justify-content: center;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

#placar > *{
    margin: 0;
    color: white;
    text-shadow: 
    -1px -1px 0 black,            /* Contorno superior esquerdo */
     1px -1px 0 black,            /* Contorno superior direito */
    -1px  1px 0 black,            /* Contorno inferior esquerdo */
     1px  1px 0 black; 
}

#faltas_space,#timerSpace{
    width: 15%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

#faltas_space > *{
    margin: 0;
    color: white;                   /* Cor principal do texto */
  text-shadow: 
    -1px -1px 0 black,            /* Contorno superior esquerdo */
     1px -1px 0 black,            /* Contorno superior direito */
    -1px  1px 0 black,            /* Contorno inferior esquerdo */
     1px  1px 0 black;            /* Contorno inferior direito */
}

#contador_faltas{
    display: flex;
    gap: 1rem;
}

.bolinha_falta{
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid black;
    background-color: black;
}


.bolinha_falta.active {
    background-color: #ffd700; /* Cor amarela semelhante à luz */
    border-radius: 50%;        /* Garante que o elemento seja uma bolinha */
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),   /* Brilho próximo */
        0 0 20px rgba(255, 215, 0, 0.6),   /* Brilho médio */
        0 0 30px rgba(255, 215, 0, 0.4),   /* Brilho mais suave */
        0 0 40px rgba(255, 215, 0, 0.2);   /* Brilho distante */
}



#container-dados-jogo,#footer-jogo{
    background-color: rgba(24,52,116,.9);
}


#footer-jogo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-container {
    width: 80%;
    height: 50%;
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #aaa;
  }
  
  .progress-bar {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    border-radius: 15px 0 0 15px;
    transition: width 0.3s ease;
  }

#container-dados-jogo{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: .5rem;
}




.div-cobre-tela{
    position: absolute;
    z-index: 4;
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.83);
    backdrop-filter: blur(3px);
}

#pergunta-container{
    width: 70%;
    height: 80%;
    display: flex;
    flex-direction: column;

}

#timer-container{
    width: 100%;
    height: 10%;
    background-color: #0063A4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#pontuacao_container{
    display: flex;
    padding: .5rem;
    font-weight: bolder;
    color: white;
    position: absolute;
    left: 0;
}

#pontuacao_container>*{
    margin: 0;
}

#container-perguntas{
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, #050a1a 0%, #0a1530 50%, #0d1a39 100%);
}

#perguntas-space {
    width: 90%;
    height: 60%;
    max-height: 60%;
    padding: 0 .5rem;
    /* overflow-y: auto; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #0000008a;
    border: 2px solid #0063A4;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
  }

#perguntas-space >*{
    text-align: left;
    font-size: 2rem;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    max-height: 100%;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif; 
    color: white;
    font-weight: normal;
}

#alternativas-space{
    width: 90%;
    height: 15%;

    padding: .5rem .5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-height: 48%;
    overflow-y: auto;
    gap: .5rem;
    overflow-x: hidden;
}

.alternativa{
    width: 45%;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(156, 156, 156);
    opacity: .8;
    transition: backgroundColor 1s ease, opacity .5s ease;
    
}

.alternativa>*{
    text-align: center;
}

#alternativa-verdadeiro:hover{
    background-color: rgb(83, 148, 83);
}

#alternativa-falso:hover{
    background-color: rgb(211, 113, 113);
}

.alternativa:hover{
    cursor: pointer;
    opacity: 1;
    color: white;
}


#game-container{
    width:100%;
    height:60%;
    display: flex;
    
}

#shot-clock {
    width: 10%;
    height: 100%;
    background: white; /* Fundo do relógio */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
  }
  
  #timer {
    font-size: 3rem; /* Tamanho do número */
    font-family: "Digital-7", monospace; /* Estilo digital */
    color:#003366; 
  }