/* Screen containers */
.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
     
}


#characters-table {
    width: 100%;
    height: 100%;
}

/* Character selection screen */
#character-selection {
    
    padding: 20px 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    z-index: 1;
}

#statue-character{
    z-index: 1;
}

#modelCharacter{
    margin-left: 7%
}

.statue-card{
    width:100%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
}

#statue{
     width: 90%; 
     height: 40%; 
     margin-bottom: 50%; 
     position: absolute;
     z-index: 10;
}
#statue img{
    width: 100%;
}

.statue-section{
    width: 35%; 
    height: 80%; 
    margin-top: 2%; 
    margin-left: 5%;
}

.char-select-container{
    position: relative;
    display:flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;

    
    background-image: url('../images/EnvironemntImages/characterSelection/selectCharacter.png'); 
    background-size:contain;
    background-position: center;
    background-repeat: no-repeat;

    width: 75%; 
    height: 80%; 
    margin-left: 1%; 
    margin-top: 2%;
}

.char-select-container h2 {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-align: center;

    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0;
}

.fart-particle {
    left: 0;
    margin-left: 0;

    margin-right: 300px;
    right: 300px;
}

#toilet-statue{
    background-image: url(../images/EnvironemntImages/characterSelection/statue.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    margin-top: 80%;
    width: 100%;
    height: 30%;
}


.statue-title {
    background-image: url(../images/EnvironemntImages/characterSelection/tape.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    width: 60%;
    height: 15%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: black;
    letter-spacing: 2px;

    position: absolute; 
    top: 0;
    display: flex; 
    justify-content: center; 
    align-items: center;
}


.character-select-flex{
    width: 80%;
    height: 65%; 
    margin-top: 10%;
}


#continue-btn {
    position: absolute; 
    bottom: 0; 

    background-image: url(../images/EnvironemntImages/characterSelection/play.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    top: 85%;
    width: 60%;
    height: 20%;

    background-color: transparent; 
    border: none;                 
    outline: none;                
    color: transparent;           
    font-size: 0;                 
    cursor: pointer;  
}


#continue-btn:hover {
    transform: scale(1.08) rotate(-2deg);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.character-card {
    background: #7aca77;
    border-radius: 50%; 
    border: 3px solid black;
    padding: 6%; 
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1 / 1;  
    width: 10vw;   
    transition: transform 0.18s cubic-bezier(.68,-0.55,.27,1.55), 
                box-shadow 0.18s, border 0.18s, background 0.18s;

    position: relative;
    box-sizing: border-box;
    z-index: 3;
}

.character-card:hover {
    transform: translateY(-12px) scale(1.08) rotate(-2deg);
    background: #fffbeb;
}

.character-card img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 0;
}


.character-card.selected {
    border: 6px solid #fbbf24;
    box-shadow: 0 0 32px 8px rgba(251, 191, 36, 0.8), 0 0 0 8px #fef3c7;
    z-index: 2;
    animation: pop 0.18s cubic-bezier(.68,-0.55,.27,1.55);
}


/* Gameplay screen */
#gameplay-screen {
    background-color: #1a1a1a;
}


#random{
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 80px;
    font-weight: 400;
    color: rgb(240, 217, 186);
}


#random:hover{
    color: black;
}
