@font-face {
    font-family: 'superLobster';
    src: url('fonts/Super Lobster.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }




  
*{
    margin: 0;
    padding:0;
}

#main-container{
    width: 100%;
    height: 75%;
    background-color: #2596be;
}

#footer{
    width: 100%;
    height: 15%;
    background: #6E260E;
}

#header{
    height:10%;
    width: 100%;

    background-color: #6E260E;
}

#title{
    color: white;
    text-align: center;
    font-size: 74px;
    font-family: 'superLobster', sans-serif;
}

/*LOGO STYLE ONLY RELATED WITH THE FIRST PAGE*/
#logo{
    width:70%;
    height: 70%;
    background-image: url('../images/Logo.png');
    background-size: contain;     
    background-repeat: no-repeat;  
    background-position: center;  
    

    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

#logo:hover{
    width:80%;
    height: 80%;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Media Queries - MUST BE AT THE END OF THE FILE */

#leaderboard-ui {
    padding-top: 10px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;              
    justify-content: center;          
    align-items: center;   
}




#leaderboard-list{
    padding: 30px;
    /*background-image: url(../images/EnvironemntImages/game/toiletPaper.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;*/
    width: 100%;
    height: 80%;
}

#leaderboard-ui .leaderboard-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-align: center;
}

.leaderboard-title {
    display: flex;
    background-color: #6E260E;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
    /*background-image: url(../images/EnvironemntImages/game/tube.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;*/
    width: 100%;
    height: 40px;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Luckiest Guy', cursive;
    font-size: 0.6vb;
    text-align: center;
    z-index: 2;
    width: 70%;
    margin-bottom: 50px;
    
}



#leaderboard-list {
    top: 40px;
    /*background-image: url(../images/EnvironemntImages/game/toiletPaper.png);
    background-repeat: repeat-y;
    background-position: top center;
    background-size: cover;
    */
    width: 250px;
    padding: 40px 24px 24px 24px;
    margin-top: 0px;
    min-height: 250px;
    z-index: 1;
    position: relative;
}




.leaderboard-rowSS {
    display: flex;
    align-items: center;
    background: #412d25;
    border-radius: 20px;
    padding: 12px 16px;
    width: 80%;
    max-height: 30px;
    font-family: 'Luckiest Guy', 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    color: white;
    box-shadow: 6px 8px 0 0 #c0c0c0;
    border: 4px solid #c0c0c0;
    cursor: pointer;
    margin-top: 5%;
}

.leaderboard-rowSS span:last-of-type {
    margin-left: 5%;
}

/*
.leaderboard-row.you {
    color: white;
    font-weight: bold;
    box-shadow: 6px 8px 0 0 #535353;;
}*/

.leaderboard-rowSS img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 3px solid #535353;
    object-fit: contain;
    box-shadow: 0 1px 0 0 #bae6fd;
}

#endgame-modal{
    width: 70%;
    height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    z-index: 100;
}

#endgameCover{
    background-color: red;
    /*background-image: url(../images/EnvironemntImages/game/emptyRole.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;*/

}




/* Gameplay specific styles */
#counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 3rem;
    font-family: 'Luckiest Guy', cursive;
    color: #fff;
    text-shadow: 2px 2px 0 #1e293b, 4px 4px 0 #38bdf8;
}

#leaderboard-ui {
    background-image: url(../images/EnvironemntImages/game/leaderboard.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 50;
    min-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 60px;
}

#endgame-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,41,59,0.85);
    z-index: 10000;
}

#renderCanvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

/* Fart smoke effect */
@keyframes smokeParticle {
    0% {
        transform: translate(0, 0) scale(0.1);
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(3);
        opacity: 0;
    }
}


@keyframes smokeParticle {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0.7; 
        transform: translate(var(--x), var(--y)) scale(4);
    }
}

.fart-particle {

    width: 30px;
    height: 30px;
    background: rgba(0, 252, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    mix-blend-mode: multiply;

    position: fixed;
    z-index: 1;
    animation: smokeParticle 1.5s ease-out forwards;
}





@keyframes popup {
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.4);
    }
    60%{
        transform: scale(1.1);
    }
    70%{
        transform: scale(1.2);
    }
    80%{
        transform: scale(1);
    }
    90%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}