:root{
    --primaryBackground: #20242F;
    --purple: #FF3BC6
}

body.upside-layout{
    padding-left: 32px;
    padding-right: 32px;
}

body.upside-layout, html.upside-layout{
    background-color: var(--primaryBackground);
}

.upside-layout .upside-card{
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    min-height: 100px;
    border-radius: 32px;
}


.upside-layout .upside-card.admin,
.upside-layout .upside-card.ranking{
    height: 668px;
    overflow-y: scroll;
}

.upside-layout .upside-card .title{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 16px;
    color: white;
}

.upside-layout .upside-card .text{
    font-family: Poppins-Light, sans-serif;
    font-size: 16px;
    color: white;
}

.upside-layout .upside-card.padding{
    padding: 16px 16px 8px 16px
}

.upside-layout .container-hacker-items{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    max-width: 323px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.upside-layout .container-hacker-items .hacker-item{
    width: 40px;
    height: 68px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.upside-layout .container-hacker-items .hacker-item .img-container{
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    border: 1px solid white;
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

.upside-layout .container-hacker-items .hacker-item .img-container img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.upside-layout .container-hacker-items .hacker-item .hacker-text{
    font-family: Poppins-Medium, sans-serif;
    font-size: 10.5px;
    color: white;
}

.upside-layout .container-buttons-ranking{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.upside-layout .container-teams-and-players{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    height: 518px;
    max-height: 518px;
    overflow-y: scroll;
    position: relative;
}



.upside-layout .box-game {
    width: 100%;
    height: 63px;
    border-radius: 32px;
    background-color: rgba(32, 36, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px 8px 8px;
}

.upside-layout .box-game .box-time{
    font-family: Poppins-Regular, sans-serif;
    font-size: 16px;
    color: #e1e1e1;
    margin-left: 20px;
    margin-right: 5px;
}

.upside-layout .box-game .box-time.yellow{
    color: #FFA500;
}

.upside-layout .box-game .container-game-information{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.upside-layout .box-game .container-game-information .container-image{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.upside-layout .box-game .container-game-information .container-image img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.upside-layout .box-game .container-game-information .text-information{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px
}

.upside-layout .box-game .container-game-information .text-information .game-name{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 16px;
    color: #FAFAFA;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.upside-layout .box-game .container-game-information .text-information .island-name{
    font-family: Poppins-Light, sans-serif;
    font-size: 12px;
    color: #e1e1e1;
}

.upside-layout .box-team-and-player{
    width: 100%;
    height: 56px;
    border-radius: 32px;
    background-color: rgba(32, 36, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
}

.upside-layout .box-team-and-player.player{
    width: 100%;
    height: 85px;
    border-radius: 32px;
    background-color: rgba(32, 36, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
}

.upside-layout .box-team-and-player.player.with-team{
    height: 100px;
}


.upside-layout .box-team-and-player .container-image-and-name{
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.upside-layout .box-team-and-player .container-image-and-name.player{
    max-width: 80%;
}

.upside-layout .box-team-and-player .container-image-and-name .container-image{
    width: 40px;
    height: 40px;
    border-radius: 40px;
    overflow: hidden;
    background-color: rgba(32, 36, 47, 0.65);
    position: relative;
}

.upside-layout .box-team-and-player .container-image-and-name .container-image img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.upside-layout .box-team-and-player .container-image-and-name .team-name{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 18px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.upside-layout .box-team-and-player .container-image-and-name .container-player-info{
    font-family: Poppins-Regular, sans-serif;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.upside-layout .box-team-and-player .container-image-and-name .container-player-info .index-label{
    color: var(--purple);
}

.upside-layout .box-team-and-player .container-rank-and-link{
    max-width: 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    position: relative;
}

.upside-layout .box-team-and-player .container-rank-and-link .img-cup{
    width: 16px;
    height: auto;
    display: block;
}

.upside-layout .box-team-and-player .container-rank-and-link .rank{
    font-family: Poppins-Medium, sans-serif;
    font-size: 18px;
    color: white;
}

.upside-layout .box-team-and-player .link{
    position: absolute;
    width: 16px;
    height: auto;
    right: 8px;
    left: auto;
}

.upside-layout .box-team-and-player .link{
    position: absolute;
    width: 16px;
    height: auto;
    right: 8px;
    left: auto;
}

.upside-layout .items-not-found{
    font-family: Poppins-SemiBoldItalic, sans-serif;
    font-size: 18px;
    color: var(--purple);
}

.upside-layout .box-admin .container-name-and-island{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0px;
    flex-direction: column;
}

.upside-layout .box-admin .container-name-and-island .name{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 18px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.upside-layout .box-admin .container-name-and-island .island{
    font-family: Poppins-Medium, sans-serif;
    font-size: 12px;
    color: #A4A4A4;
}

.upside-layout .box-team-and-player .container-image-and-name .container-player-info .found-value{
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 185px;
}

.upside-layout .box-team-and-player .container-image-and-name .container-player-info .player-info{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.upside-layout .box-team-and-player .container-image-and-name .container-player-info .not-found-value{
    color: red!important;
}

.upside-layout .container-next-match-title-and-icon{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 17px;
}

.upside-layout .container-next-match-title-and-icon .title{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 16px;
    color: #FAFAFA;
}

.upside-layout .container-next-match-title-and-icon img{
    height: 18px;
    width: 18px;
}

.upside-layout .container-next-match-players{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.upside-layout .container-next-match-players .players-title{
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 16px;
    color: #FAFAFA;
    margin-bottom: 16px;
}

.upside-layout .container-next-match-players .container-players{
    width: 100%;
    height: fit-content;
    min-height: 32px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.upside-layout .container-next-match-players .container-players .container-image-player-relative{
    position: relative;
    width: 32px;
    height: 32px;
}

.upside-layout .container-next-match-players .container-players .container-image-player-relative .container-image{
    position: relative;
    width: 32px;
    height: 32px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
}

.upside-layout .container-next-match-players .container-players .container-image-player-relative .container-image img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.video-js{
    width: 100%!important;
}

.upside-layout .container-next-match-players .container-players .container-image-player-relative img.player-status{
    position: absolute;
    width: 16px;
    height: 16px;
    left: 22px;
    right: 0;
    top: 18px;
    bottom: 0;
    margin: auto;
    z-index: 1000;
}

.general-loader{
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background-color: rgba(32, 36, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
}

.upside-layout .container-players-next-match-full-information {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    height: fit-content;
    max-height: fit-content;
}

.container-players-with-buttons{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.container-players-with-buttons .container-buttons-player-action{
    width: 100%;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.container-players-next-match-full-information .player-status{
    position: absolute;
    width: 32px;
    height: 32px;
    right: 8px;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 1000;
}

.upside-text {
    font-family: Poppins-Bold, sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: white;
}

.upside-layout .box-game.selected{
    background-color: rgba(255, 59, 198, 1)!important;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5), 0px 12px 40px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.container-qr-code-and-game{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.text-and-button-reload{
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media only screen and (max-width: 1200px) {
    body.upside-layout{
        padding-left: 0;
        padding-right: 0;
    }

    .upside-layout .upside-card {
        padding: 15px;
        margin-bottom: 15px!important;
    }

    .upside-layout .box-game {
        width: 100%;
        height: fit-content;
        border-radius: 32px;
        background-color: rgba(32, 36, 47, 0.65);
        border: 1px solid rgba(255, 255, 255, 1);
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        gap: 8px;
        box-sizing: content-box;
        min-height: 40px;
    }

    .upside-layout .box-game .container-game-information {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    .container-qr-code-and-game{
        flex-wrap: wrap;
    }

    .upside-layout .box-game .container-game-information .text-information .game-name {
        max-width: 180px;
    }

    .upside-layout .box-game .box-time {
        font-family: Poppins-Regular, sans-serif;
        font-size: 14px;
        color: #e1e1e1;
        margin-right: 20px;
        margin-left: 20px;
    }

    .upside-layout .container-teams-and-players {
        height: 253px!important;
        max-height: 253px!important;
        overflow: auto;
    }

    .upside-layout .upside-card.admin
    {
        height: 453px;
        overflow-y: scroll;
    }

    .upside-layout .upside-card.ranking {
        height: fit-content;
    }

    .upside-layout .upside-card.next-player-full-information {
        height: fit-content;
    }

    .upside-layout .box-team-and-player .container-image-and-name .container-image{
        min-width: 40px;
    }

    .box-team-and-player{
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: fit-content!important;
    }

    .upside-layout .box-team-and-player .container-rank-and-link{
        max-width: 100%;
        width: 100%;
        flex-direction: column;
    }

    .container-qr-code-and-game {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 9px;
        margin-top: 8px;
        padding: 8px;
        border: 1px solid rgba(32, 36, 47, 0.65);
        background-color: rgba(32, 36, 47, 0.65);
    }

    .container-game-information .container-image{
        display: none;
    }

    #searchPlayer{
        box-sizing: border-box;
        width: 100%;
    }

    .download-qrcode{
        width: 100%;
    }

    .upside-layout .container-players-next-match-full-information{
        min-height: 50vh;
    }
}