/*Estilos da página inicial do jogo MathQuest*/
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Geist+Mono:wght@100..900&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Parisienne&family=Playwrite+HR+Lijeva:wght@100..400&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto+Mono:wght@100..900&display=swap');

body{
    display: flex;
    overflow: hidden; /* Remove a barra de rolagem */
    flex-direction: column;
    min-height: 100vh;
    margin-top: 5px;
    padding: 2px;
    justify-content: center; 
    align-items: center;
    text-align: center;
    background-image: url('../imagens/MathQuest.gif'); /* Caminho para a imagem */
    background-size: cover;
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat; /* Evita que a imagem se repita */
}

/*Ajuste para zoom de 50%*/
@media (max-width: 1200px) {
body { 
        background-size: 185% 100%;
    }    
}
  
/*Ajuste para zoom de 100%*/
@media (min-width: 1201px) {    
body{
    background-size: 185% 100%;
    }
}

.controles {
    top: -20px; /* Ajuste a posição vertical conforme necessário */
    display: flex;
    position: relative;
    border-radius: 10px;
    width: 600px;
    height: 120px;
    margin: 10px 60px;
    padding: 10px 25px;
    border: outset 3px #dfa27c;
    background-color: transparent;
    box-shadow: 20px 20px 8px rgba(0, 0, 0, 0.9);
}

.controles:hover {
    background-color: lightgoldenrodyellow;
    transform: scale(0.9);
}

.controles:active {
    transform: scale(0.9);
}

.controles button {
    margin: 15px auto 15px;
    padding: 30px auto;
    width: 250px;
    height: 45px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold; /* Ajuste para negrito */
    border: outset yellow;
    background: linear-gradient(45deg, #b3b7a5 15%, #c9f054 35%, #30382b 75%, #c05d20 4%);
    color: white;
    box-shadow: 10px 10px 6px rgba(0, 0, 0, 0.9);
}

.controles button:hover {
    background-color: lightgoldenrodyellow;
    transform: scale(1.1);
}

.controles button:active {
    transform: scale(0.9);
}

#controlesIndex {
    top: -10px; /* Ajuste a posição vertical conforme necessário */
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border-color: transparent;
    height: 180px;
}

#titulo1 { 
    display: flex;
    z-index: 1;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 850px;
    height: 200px;
    top: -85px;
    margin: 60px auto;
    padding: 0px auto; 
    font-family: "Lobster Two", sans-serif;
    font-size: 80px; 
    color: red;
    text-shadow: 15px 8px 1px rgba(0, 0, 0, 0.8); /* Adiciona sombra ao texto */
}

#titulo1:hover {
    transform: scale(1.3);
    text-shadow: 15px 8px 1px rgba(0, 0, 0, 0.8); /* Adiciona sombra ao texto */
    animation: spin 5s linear infinite;
}

#titulo1:active {
    transform: scale(1.1);
}

#titulo2 {
    top: -250px;   
    display: flex;
    z-index: 1;
    position: relative;
    border-radius: 10px;
    width: 1000px;
    height: 120px;  
    margin: 5px auto;
    padding: 5px auto; 
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
    font-size: 50px;
    font-family: "Parisienne", cursive;
    color: yellow;
    font-style: bold;
}
    
#titulo2:hover {
    transform: scale(1.3);
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
    animation: spin 5s linear infinite;
}

#titulo2:active {
    transform: scale(1.1);
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
}

/*Ajuste para zoom de 50%*/
@media (max-width: 1200px) {

    #titulo1, #titulo2, .controles{
        transform: scale(0.65);
        }
        
        .controlesIndex {
        transform: scale(0.8);
        width: 100%;
        }

        #titulo3{  
        margin-top: 35px;
        }

        #footer{
        align-items: center;
        justify-content: center; 
        position: absolute;
        top: 545px;
        font-size: 25px;
        }
}

/*Ajuste para zoom de 100%*/
@media (min-width: 1201px) { 

    #titulo1, #titulo2{
    transform: scale(1);
    }

    #titulo2{
    top: -225px;
    }
    
    .controles{
    top: -15px;
    transform: scale(1);    
    }
}

div{
align-items: center;
justify-content: center; 
}

main {
    flex: 1;
    align-items: center;
    justify-content: center; 
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
}

#tbem {
    padding: 5px;
    font-size: 30px;
    text-align: center;
    color: transparent;
    background-clip: text;
    background-color: hsl(34, 53%, 82%);
    background-image: repeating-linear-gradient(
        45deg,
        #d7dd60 0%,
        #e4f52a 20%,
        #f3a322 30%,
        #f5511b 40%,
        #e7b8a5 50%,
        #3e104c 60%,
        #83096e 70%,
        #840b2a 80%,
        #623c59 90%,
        #ef0a0a 100%
    );
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#tbem:hover {
    transform: scale(1.3);
    text-shadow: 4px 2px 3px rgb(133, 114, 216);
    animation: spin 5s linear infinite;
}

#tbem:active {
    transform: scale(1.1);
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
}

ul, li {
    text-align: justify;
    font-style: bold;
    font-size: 22px;
    color: #000;
    margin-top: 2px;
    margin-bottom: 5px;
    margin-left: 55px;
    padding: 5px; /* Ajuste do padding */
}

fieldset {
    border-color: #dfa27c;
    margin-top: 20px;
    margin-bottom: 5px;
}

legend {
    color: red;
    font-size: 25px;
    text-shadow: 1px 2px 0.1px rgba(133, 8, 85, 1); /* Adiciona sombra ao texto */
    color: rgba(255, 255, 255, 0.8);
    font-size:25px;
    font-weight: bold;
    text-align: center;
    margin: auto;
    padding-bottom: 10px;
    border-radius: 10px;
    filter: drop-shadow(2px 2px 1px rgba(248, 5, 5, 1));
}

legend:hover {
    transform: scale(1.4);
    animation: spin 5s linear infinite;
}

#tbem:active {
    transform: scale(1.1);
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
}

footer {
    align-items: center;
    justify-content: center; 
    font-size: 20px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    color: aliceblue;
    font-weight: bold;
    width: 700px;
    text-shadow: 3px 4px 1px rgba(0, 0, 0, 0.8); /* Adiciona sombra ao texto */
}
   
footer:hover {
    transform: scale(1.2);
    text-shadow: 1px 4px 3px rgba(245, 240, 240, 0.9); /* Adiciona sombra ao texto */
    animation: spin 5s linear infinite;
}
  
footer:active {
    transform: scale(0.95);
}

#tela {
    width: 80vw; /* 80% da largura da janela */
    height: auto; /* Mantém a proporção */
    max-width: 80vh; /* Limita a largura ao tamanho da altura da janela */
    border: 1px solid black;
    display: block;
    margin: 0 auto;
}

@keyframes msnP {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.msnP {
    font-size: 40px;
    color: green;
    text-align: center;
    animation: msnP 2s infinite;
}
