:root {
    --colorYellow:#FFF500;
    --colorGreen:#D1D327;
    --colorError: #682734;
    --colorRed: #FF2D2D;

    --colorConfirm: #2D42FF;
    --colorConfirmDark: #061172;
}

html{
    height: 100%;
}

body, html, #container {
    min-height: 100%;
}

.invisible{
    display: none !important;
}

.supersmall-text{
    font-size: 12px;
}
.descriptive-text{
    font-size: 18px;
    white-space: pre-line;
}
.thin-text{
    font-weight: 500;
}
.subtitle-text{
    font-size: 24px;
}
.value-text{
    font-size: 32px;
}
.big-text{
    font-size: 67px;
}

body {
    background: url(resources/background.png) no-repeat center center fixed;
    background-size: cover;
    -webkit-background-size: cover;
    font-family: Raleway !important;
    font-weight: 900 !important;
    font-weight: 900 !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    
}

.toast-success{
    background-color: #02470d !important;
}

.toast-info{
    background-color: #14395e !important;
}

.toast-warning{
    background-color: #6f5805 !important;
}

.toast-error{
    background-color: var(--colorError) !important;
}

.error-text{
    color: var(--colorError);
}
.disabled-btn{
    opacity: 0.6;
    cursor: unset;
}

p {
    margin-bottom: 0px !important;
}

input{
    border: black 2px solid;
    padding: 14px 17px;
    font-optical-sizing: auto;
    font-weight: 900;
}

.big-button{
    padding: 14px 45px;
    width: 200px;
    text-transform: uppercase;
    font-optical-sizing: auto;
    font-weight: 900;
    font-size: 17px;
    text-decoration: none;
    text-align: center;
}

.black-button{
    background-color: black;
    color: var(--colorGreen);
}

.white-button{
    background-color: white;
    color: black;
    box-shadow: black 3px 4px;
    .timerFillament{
        background-color: #c8c8c8;
    }
}

.confirm-button{
    background-color: var(--colorConfirm);
    color: var(--colorGreen);
    position: relative;
    transition: background-color 1s;
    div{
        background-color: var(--colorConfirmDark);
        transition: background-color 1s, width 1s, height 1s;
    }
    p{
        position: relative;
    }
}

#playersLeavingLog{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    *{
        display: flex;
    }
}

.error_message{
    img{
        width: 33px;
        height: 31px;
    }
    background-color: white;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: var(--colorRed) solid 2px ;
    text-align: left;
    width: 100%;
}

.littleTimeBtn{
    background: var(--colorRed);
    div{
        background-color: var(--colorError);
    }

}

.transparent-button{
    background-color: transparent;
    border: none;
}

.button-div p{
    width: 100%;
    text-align: center;
    align-content: center;
}
.button-div{
    display: flex;
    justify-content: space-between;
    height: 52px;
    padding: 10px 14px;
    cursor: pointer;
}

.avatar{
    border-radius: 50%;
    border: black 3px solid;
    -webkit-mask-image: -webkit-radial-gradient(circle, white, black);
    position: relative;
}

.avatar img{
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vertical-line{
    width: 1px;
    background-color: black;
}

.horizontal-line{
    height: 2px;
    background-color: black;
}

.avatar-small{
    width: 100px;
    height: 100px;
}

.avatar-big{
    width: 200px;
    height: 200px;
}

.avatar-extra-small{
    width: 50px;
    height: 50px;
}


/* LANGUAGE BUTTON */

.home-button{
    border: black 3px solid;
    background-color: white;
    height: min-content;
    width: min-content;
    display: flex;
    gap: 10px;
    padding: 9px 12px;
    position: absolute;
    align-items: center;
    cursor: pointer;
}

.home-button img{
    width: 20px;
    height: 20px;
}

.home-button p{
    margin: 0px;
}

#languageButton{
    left: 30px;
    top: 30px;
}

#rulesButton{
    color: black;
    text-decoration: none;
    right: 30px;
    top: 30px;
}

/*FOOTER*/

#footer{
    width: 100%;
    display: flex;
    justify-content: center;
    display: none;
}

#footerCenterPart{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: calc(100% - 300px);
}

#footerCenterPart .horizontal-line{    width: 100%;  }

#footerCenterPart a{
    margin: 16px;
}
.name-label{
    font-size: 18px;
}
.lobby-player .name-label{
    background-color: white;
    color: black;
    border: black 2px solid;
    box-shadow: black 1px 2px;
    padding: 3px 19px 3px 19px;
    text-align: center;
}
.lobby-player{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lobby-player > .avatar-small{
    margin-bottom: -6px;
    z-index: 3;
}


.inline-player{
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-player .name-label{
    color: black;
    padding: 4px;
}
/*DETAILS*/

#swapBtn{
    position: absolute;
    bottom: 0px;
    right: 0px;
}

#avatarPick{
    position: relative;
    width: min-content;
}
#waitTextLobby{
    text-align: center;
}

#detailsActivePart{
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    padding-right: 200px;
    gap: 35px;
    margin-bottom: 100px;
}

#detailsUsernamePart{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#detailsUsernamePart input{
    width: min(400px, 100%);
    background: #ffffff9c;
}

/*LOGO DIV*/

#logoDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    margin-top: 50px;
}
#logoDiv img{
    width: 170px;
}

#logoDiv p{
    rotate: -5deg;
}

#startingTimer{
    flex-direction: column;
    padding: 30px;
    align-items: anchor-center;
    .big-numbers{
        font-size: 70px;
    }
}

#roundIndicator{
    background: #00000050;
    padding: 7px 29px 15px 29px;
    width: min-content;
    border-radius: 5px;
    justify-self: center;
    margin-bottom: 16px !important;
}


.tip{
    border: black 2px solid;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    width: calc(100% - 60px);
}

.lobby_explanation{
    background: black;
    padding: 15px;
    .subtitle-text{
        color: var(--colorGreen);
        padding-bottom: 7px;
        font-size: 15px;
    }
    .descriptive-text{
        color: white;
    }
}


/*HOME*/

#homeActivePart p{
    font-size: var(--mediumTextSize);
    white-space: nowrap;
}
#homeRoomsPart p{
    margin: 0px;
}

#homeActivePart{
    display: flex;
    gap: 40px;
    height: min-content;
}

#homeActivePartOuter{
    flex: 1;
    justify-content: center;
    margin-bottom: 200px;
    display: flex;
    align-items: center;
}

#homeRoomsPart{
    display: flex;
    gap: 30px;
    flex-direction: column;
}

#joinRoomInput{
    width: 100%;
    text-transform: uppercase;
}



/*LOBBY*/

.big-numbers{
    font-size: 72px;
    color: white;
    text-shadow: black 3px 4px;
    -webkit-text-stroke: black 1px;
    margin-top: -15px;
}
#playersDiv{
    display: flex;
    flex: 1;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

#lobbyBtns{
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 17px;
    text-align: center;
}

#lobbyActivePart{
    width: 70%;
    text-align: center;
    flex: 1;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.lobby-player:first-child .admin-crown{
    visibility: visible;
}

.admin-crown{
    visibility: hidden;
    margin-bottom: -9px;
}

.lobby-details{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0px 10%;
    align-items: center;
    border-bottom: black 2px solid;
}

.lobby-code{
    display: flex;
    align-self: center;
    width: min-content;
    border-left: black 2px solid;
    border-right: black 2px solid;
    border-bottom: black 2px solid;
}

.lobby-code p{
    width: max-content;
    align-content: space-around;
    text-align: left;
    font-weight: 400;
    padding-left: 10px;
    padding-right: 10px;
}

.lobby-code img{
    background: white;
    padding: 7px;
    height: 45px;
    border-left: black 2px solid;
    cursor: pointer;
}

/*GAME*/

.active-top-part{
    flex: 1;
}

.down-part-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

#cardsTextDiv{
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}
.text-card-outer{
    flex: 1 1 14.28%;
}

#splashScreen{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: anchor-center;
}

.text-card{
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: black 8px solid;
    height: 100%;
    transition: transform 1s, opacity 1s;
    border-radius: 10px;
}

.text-card p{
    color: #CDD528;
    width: -webkit-fill-available;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: manual;
}

.text-card img{
    /* width: 50px; CHANGED ICON*/
    width: 70px;
    margin-bottom: 8px;
}

#cardsTextDiv .text-card:hover{
    transform: translate(0, -30px);
}

.disabled .text-card{
    background-color: #2d2d2d;
    filter: grayscale(100%);
    border: #2d2d2d 8px solid;
}
.disabled .text-card:hover{
    transform: translate(0, 0) !important;
}

.player-choice-card .name-label{
    text-overflow: ellipsis;
    width: calc(100% - 50px);
    overflow: hidden;
    white-space: nowrap;
}

#writerCheckingCards{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    p:last-of-type{
        margin-top: 5px;
    }
}

#writerCheckingCards .timer{
    position: absolute;
    left: 100%;
    top: 0px;
}

#cardsPhotoDiv>div{
    padding: 10px;
    display: flex;
    gap: 10px;
    max-width: 800px;
    flex: 1;
    align-content: center;
    justify-content: center;
}

.mobile-down-left{
    align-self: center;
}

.photo-card{
    border: black 8px solid;
    transition: transform 2s;
    height: 200px;
    cursor: pointer;
    position: relative;
}
.photo-card img{
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 1.5; /* TODO fix vertical photos!!! */
}

#judgeChoosing{
    align-items: center;
}

.topPartStyled{
    display: flex;
    gap: 19px;
    max-width: 100%;
}
.topPartStyled:first-child, .topPartStyled:last-child{
    flex:1
}

#lockBtn{
    position: absolute;
    bottom: 0px;
    right: 22px;
    z-index: 5;
    .unlock{
        display: none;
    }
}

#lockBtn.clicked{
    background-color: #424242;
    .timerFillament{
        background-color: #000000;
    }
    .unlock{
        display: block;
    }
    .lock{
        display: none;
    }
}

.picked-card{
    border: var(--colorConfirm) 8px solid !important;
}

.judgeOrders{
    padding: 0px 30px;
    text-align: center;
}

#writerChoosing{
    position: relative;
    .ready-people{
        position: absolute;
        top: 0px;
        right: 0px;
    }
}

#writerChoosing .timer, #judgeWaitingOthers .timer{
    margin-right: 60px;
}

#confirmButton{
    margin-bottom: 30px;
}
.timerFillament{
    height: 100%;
    width: 50%;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 0;
    transition: width 1s, height 1s;
}

#rulesMobile{
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 10px;
    padding: 0px 30px 30px 30px;
}

.timer{
    position: relative;
    display: flex;
    text-align: center;
    height: 80px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 110px;
}

.timer .ready-people{
    font-size: 20px;
    margin-top: 7px;
}

.timer p{
    position: relative;
    font-size: 28px;
}

.timer img{
    width: 135px;
    position: absolute;
    top: 0px;
    left: 0px;
}

.sticky-timer{
    position: absolute;
    right: 0px;
    top: 15px;
}

#judgeWaitingOthers .chosenImgDiv{
    margin-bottom: 0px;
}

.chosenImgDiv{
    height: -webkit-fill-available;
    position: relative;
    aspect-ratio: 1.5;
    max-height: 400px;
    display: flex;
    justify-content: center;
}


.chosenImg{
    object-fit: cover;
    border: black 7px solid;
    max-height: 100%;
    max-width: 100%;
    height: 100%;
}

.chosenImgDivBig{
    flex: 1;
    height: -webkit-fill-available;
    max-height: 400px;
    max-width: 100%;
    aspect-ratio: 1.5;
    position: relative;
    .text-card{
        img{
            position: absolute;
            top: -60px;
            right: 0px;
        }
    }
}

#sendPhotoBtn{
    width: min-content;
}

#judgeWaitingOthers{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 48px 0px 80px 0px;
    width: 100%;
    align-items: center;
}

#judgeWaitingOthers .topPartStyled{
    flex: 1;
}

#cardsJudgeTextDiv{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

.player-choice-card{
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
    transition: transform 1s, opacity 1s;
}

#winnerTextCard{
    transition: opacity 0.5s;
}

.opaque{
    opacity: 0;
}

.faded{
    opacity: 0;
    z-index: -1;
    display: none;
    transform: translate(0px, 100%) !important;
}

.pickable:hover{
    transform: translate(0, -30px);
}

#judgePickingWinner{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
    max-height: 35%;
    position: relative;
    flex: 1;
}

#judgePickingWinner .topPartStyled{
    align-self: center;
}
#judgePickingWinner .text-card{
    width: -webkit-fill-available;
    z-index: 5;
    position: absolute;
    bottom: 0px;
}

#winnerMeme{
    background-color: black; 
    border: 7px solid black; 
    width: min-content;
    max-width: 100%;

    img:first-of-type{
        height: max-content;
        width: max-content;
        max-width: min(100%, 550px);
        max-height: 368px;
        border-radius: 3px;
    }
    img:last-of-type{
        position: absolute; 
        bottom: 9px; 
        right: 9px; 
        /* width: 33px; CHANGED ICON */
        width: 70px;
    }
    p{
        font-size: 17px; 
        color: var(--colorYellow); 
        padding: 20px; 
    }
}


#endingScreen{
    display: flex;
    width: calc(100% - 80px);
    gap: 40px;
}

#winnerScreen{
    flex: 1;
    flex-direction: column;
    display: flex;
    gap: 15px;
    margin-left: 30px;
    margin-right: 30px;
    align-items: center;
    .button-div{
        height: auto;
        display: flex;
        gap: 10px;
    }
}
#winnerLabel{
    display: flex;
    gap: 20px;
    align-self: center;
    align-items: anchor-center;

}
#leaderboard{
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

#leaderboardDiv{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
}

.winner.leaderboard-entry{
    background-color: black;
    color: white;
}

.centeredTexts{
    flex: 1;
    justify-items: center;
}
#leaderboardScreen{
    width: calc(100% - 60px);
}

#leaderboardScreen{
    text-align: center;
}

.leaderboard-entry{
    transition: transform 2s;
    background-color: white;
    padding-right: 13px;
    display: flex;
    border-radius: 2px;
    gap: 15px;
    border: black 2px solid;
    width: -webkit-fill-available;
    max-width: 550px;
    align-items: center;
    gap: 15px;
    font-size: 22px !important;
    .vertical-line{
        width: 2px;
        background: black;
        height: 100%;
    }
    .admin-crown{
        display: none;
    }
    .name-label{
        margin-left: 0px;
        flex: 1;
        text-align: left;
    }
    .avatar{
        border: none;
        border-radius: 0px;
        height: 50px;
        width: 50px;
    }
}


.medium-mobile-only{
    display: none;
}

.medium-mobile-only-flex{
    display: none !important;
}


.mimic-card{
    visibility: hidden;
    display: none;
    height: 10px !important;
}

.player-choice-card{
    position: relative;
}

.inline-player{
    height: min-content;
    background: white;
    border: solid;
    .avatar{
        border: none;
        border-radius: 0px;
    }
}

.player-choice-card .inline-player{
    position: absolute;
    width: calc(100% - 41px);
    flex: none;
    top: -109px;
    left: 50%;
    z-index: -1;
    transition: transform 1s;
     transform: translate(-50%, 60px); 
}