@font-face {
    font-family: 'FrierenFont'; 
    src: url('fonts/FeENrm28C.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e; 
    color: #e2e2e2;
    min-height: 100vh;
    padding: 2rem;
    background-repeat: no-repeat;
    background: 
        linear-gradient(
            to bottom,              
            rgba(0, 0, 0, 0.8) 0%,  
            rgba(0, 0, 0, 0) 40%,   
            rgba(0, 0, 0, 0) 60%,   
            rgba(0, 0, 0, 0.9) 100%  
        ),
        url(images/frierenwpp3.png) no-repeat center center fixed; 
    background-size: cover;
    
}

header{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: FrierenFont;
    margin-bottom: 1.5rem;
}

h1{
    transition: 0.5s;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


h1:hover{
    transform: scale(1.3)
}

.guesser{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    
}

.guessButton{
    margin: 1rem;
}

input{
    padding-left: 15px;
    border-radius: 10px;
    border: 2px solid #16213e;
    background: #0f3460;
    color: white;
    width: 250px;
    height: 35px;
}

button{
    padding: 10px 20px;
    background-color: #e94560;
    border: none;
    border-radius: 10px;
    width: 150px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover{
    background-color: #fd2158;
}

table{
    border-collapse: separate;
    border-spacing: 8px; 
}

th{
    padding: 10px;
    font-size: 1.3rem;
    letter-spacing: 1px;
    background-color: rgba(0, 60, 87, 0.6);
    border-radius: 10px;

}

td{
    width: 100px;
    height: 100px;
    text-align: center;
    font-weight: bold;
    border-radius: 3px;
    background-color: #333;
    padding: 0px 10px 0px 10px;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.correto { 
    background-color: #2ecc71;  
    animation: reveal 0.5s ease-in-out;

}

.errado { 
    background-color: #e74c3c;  
    animation: reveal 0.5s ease-in-out;

}

.parcial{
    background-color: orange;
    animation: reveal 0.5s ease-in-out;
}


/*  ?Keyframes / Animações */

#tabela-corpo tr td {
    opacity: 0;
    animation: reveal 0.5s forwards;
}

#tabela-corpo tr td:nth-child(1) { animation-delay: 0s; }
#tabela-corpo tr td:nth-child(2) { animation-delay: 0.4s; }
#tabela-corpo tr td:nth-child(3) { animation-delay: 0.8s; }
#tabela-corpo tr td:nth-child(4) { animation-delay: 1.2s; }
#tabela-corpo tr td:nth-child(5) { animation-delay: 1.6s; }
#tabela-corpo tr td:nth-child(6) { animation-delay: 2s; }
#tabela-corpo tr td:nth-child(7) { animation-delay: 2.4s; }
#tabela-corpo tr td:nth-child(8) { animation-delay: 2.8s; }
#tabela-corpo tr td:nth-child(9) { animation-delay: 3.2s; }

@keyframes reveal {

    
    
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes revealVictory {

    
    
    0% { transform: rotateY(0deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}


/* Define a animação de balançar */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
  100% { transform: translateX(0); }
}

@keyframes shakeWin {
    0% { transform: rotate(0deg); }
    4% { transform: rotate(30deg); }
    8% { transform: rotate(-30deg); }
    12% { transform: rotate(30deg); }
    16% { transform: rotate(-30deg); }
    20% { transform: rotate(30deg); }
    24% { transform: rotate(-30deg); }
    28% { transform: rotate(30deg); }
    32% { transform: rotate(-30deg); }
    36% { transform: rotate(30deg); }
    40% { transform: rotate(-30deg); }
    44% { transform: rotate(30deg); }
    48% { transform: rotate(-30deg); }
    52% { transform: rotate(30deg); }
    56% { transform: rotate(-30deg); }
    60% { transform: rotate(30deg); }
    64% { transform: rotate(-30deg); }
    68% { transform: rotate(30deg); }
    72% { transform: rotate(-30deg); }
    76% { transform: rotate(30deg); }
    80% { transform: rotate(-30deg); }
    84% { transform: rotate(30deg); }
    88% { transform: rotate(-30deg); }
    92% { transform: rotate(30deg); }
    96% { transform: rotate(-30deg);}
    100% { transform: rotate(0deg);}
}

.shake{
    animation: shakeWin 4s ease-in-out;


}


.shake-row {
  width: 100%;               
  animation: shake 0.4s ease-in-out;
}

/* ?/ */


.fa-solid{
    font-size: 2rem;
}

.resultados{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frierenChibi{
    width: 200px;
    transition: 0.5s;
}


.mensagem{
    position: relative;
    top: 30px;
    color: #ffd700;
    text-shadow: #1a1a2e 2px 2px 2px;
    font-size: 0.8rem;
    text-align: center;
}

.mensagem2{
    position: relative;
    bottom: -30%;
    color: #ffd700;
    text-shadow: #1a1a2e 2px 2px 2px;
    font-size: 0.8rem;
    text-align: center;
}

.victoryBox{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    height: 500px;
    background-color: #0f3460;
    border-radius: 20px;
    border: solid 2.5px #ffd700;
    padding: 0px 10px 0px 10px;
    margin-top: 3rem;
    animation: revealVictory 1.2s forwards;
}

.float{
    position: fixed;
    top: 20%;
}

.frierenLogo{
    width: 350px;
}

/* ?Balão de Fala */


.frieren-container {
    width: 200px;
    height: 210px;
    position: fixed;
    bottom: 50px;
    left: 50px;
    transition: 0.5s;
}

.frieren-container:hover{
    transform:scale(1.1)
}

.balao {
    position: absolute;
    left: 50%;
    top: -35%;
    transform: translateX(-50%);
    background: white;
    color: black;
    padding: 10px 15px;
    border-radius: 15px;
    border: 2px solid #333;
    min-width: 150px;
    text-align: center;
    font-weight: bold;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    font-family: "FrierenFont";
}

.balao::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.oculto {
    display: none;
}

.gif{
    position: relative;
    top: 65px;
    width: 300px;
    border-radius: 10px;
}

.icons{
    width: 120px;
}

.guesser-container {
    display: flex;
    position: relative; 
    width: 300px;
    height: 50px;
    margin-bottom: 2rem;
}

.sugestoes-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 52, 96, 0.95); 
    border: 2px solid #ffd700;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
}

.sugestao-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sugestao-item:hover {
    background: rgba(233, 69, 96, 0.5); 
}

.sugestao-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid #ffd700;
    object-fit: cover;
}

.sugestao-item span {
    color: white;
    font-family: 'FrierenFont', serif;
}

#charName{
    width: 100%;
    height: 100%;
}

.xButton{
    position: absolute;
    font-size: large;
    right: 15px;
    top: 15px;
    transition: 0.5s;
}

.xButton:hover{
    transform: scale(1.3);
}

.bloqueado{
    cursor: not-allowed;
}

#countdown-container {
    font-family: 'FrierenFont', serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: #ffd700; 
    text-align: center;
    margin-top: 50px;
}

#timer {
    font-weight: bold;
    letter-spacing: 2px;
}

.indicadorCor{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f3460;
    width: 700px;
    border-radius: 10px;
    padding: 20px;
    font-family: "FrierenFont";
    border: solid #ffd700 3px;
    margin-top: 2.5rem;
}

.colors {
    display: flex;

}

.blocoCor{
    margin: 30px 30px 10px 30px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.indicador{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compartilhar{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;
    width: 200px;
    height: 50px;
    background-color: #1b5eb1;
    font-size: x-large;
    font-family: 'FrierenFont';
    border-radius: 30px;
    transition: 0.5s;
    border: solid #ffd700 2px
    
}

.compartilhar:hover{
    cursor: pointer;
    transform: scale(1.05);
    background-color: #ffd700;
    color: #1b5eb1;
}

/*
.blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(5px); 
}*/