﻿
#custom-games-dashboard {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: stretch;
    position: relative;
    height: calc(100% - 10px);
    overflow: hidden;
    padding: 15px;
    border-radius: 20px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    margin: 5px;
    background-color: #ee9617;
    background-image: linear-gradient(315deg, #ee9617 0%, #fe5858 74%);
}

.custom-games-header {
    text-align: center;
    color: white;
    margin-bottom: 15px;
    flex: 0 1 auto;
    height: 40px;
}

    .custom-games-header h1 {
        font-weight: 100;
    }

.custom-games-resume {
    z-index: 10;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    background-color: rgb(252 82 150 / 0.2);
    background-image: linear-gradient(315deg, rgb(252 82 150 / 0.5) 0%, rgb(246 112 98 / 0.5) 74%);
    display: flex;
    flex: 0 1 auto;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    min-height: 120px;
    height: 120px;
}

.custom-games-winner {
    flex: 1;
}

.custom-games-badge {
    flex: 1;
    text-align: center;
}

.custom-games-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 100px;
    flex: 1;
}

.custom-games-controls-badge {
    width: 120px;
    display: inline-block;
}

    .custom-games-controls * {
        text-align: center;
    }

.custom-games-class-board-lottie {
    width: 100px;
}

.custom-games-controls button {
    display: block;
    width: 100%;
    padding: 5px 15px;
    margin-bottom: 5px;
    border: none;
    background: white;
    border-radius: 5px;
    background-color: transparent;
    color: white;
}

#closePlayBlackboard {
    display: none;
    position: absolute;
    z-index: 30;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    background-position: center;
    background-size: contain;
    background-image: url('../images/icons/back.png');
}

.custom-games-winner {
    display: flex;
    align-items: center;
}

.custom-games-winner-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    z-index: 15;
}

    .custom-games-winner-avatar:before {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 0;
        width: 40px;
        height: 40px;
        background-image: url('../images/medals/medalla.png');
        background-repeat: no-repeat;
        background-size: 100%;
    }

    .custom-games-winner-avatar img {
        border-radius: 50%;
        max-height: initial !important;
        border: 10px groove rgb(246 112 98 / 0.75);
    }

.custom-games-winner-info {
    display: flex;
    align-items: center;
    margin-left: -15px;
    background: rgb(254 254 254);
    padding: 0px 15px 0 20px;
    height: 60px;
    border-radius: 0 50px 50px 0;
    max-width: 220px;
    z-index: 10;
    -webkit-box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    box-shadow: inset 0px 5px 5px 1px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,95,0,1);
}

    .custom-games-winner-info span {
        display: block;
        color: rgba(255,95,0,1);
        font-weight: 500;
    }

/*Results*/
.custom-games-players {
    position: relative;
    z-index: 15;
    flex: 1 0 auto;
    padding: 15px 0;
    border-radius: 0 0 20px 20px;
    overflow: scroll;
    overflow-x: hidden;
    max-height: calc(100% - 200px);
    padding-right: 15px;
    margin-top: 10px;
}

.custom-games-player {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 5px 5px;
    border-radius: 50px;
    margin-bottom: 5px;
    background-color: rgb(249 210 157 / 0.5);
    background-image: linear-gradient(315deg, rgb(249 210 157 / 0.5) 0%, rgb(255 216 203 / 0.5) 74%);
    width: calc(100% - 15px);
}

    .custom-games-player[data-bind="no-data"] {
        padding: 15px;
        flex-direction: column;
        border-radius: 10px;
    }

        .custom-games-player[data-bind="no-data"] span {
            flex: 1;
            text-align: center;
            color: #fe5858;
            font-size: 22px;
            padding-bottom: 30px;
        }


        .custom-games-player[data-bind="no-data"] img {
            height: 100px !important;
            width: auto !important;
            margin-bottom: 15px;
        }

.custom-games-no-players-lottie {
    flex: 1;
    width: 150px;
}

.custom-games-player [data-bind="avatar"] {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 1 auto;
}

.custom-games-player [data-bind="avatar"] > img {
    border-radius: 50%;
    border: 2px groove rgb(246 112 98 / 0.5);
}

    .custom-games-player [data-bind="name"] {
        flex: 1 0 auto;
        padding: 0 15px;
        color: rgb(0 0 0 / 0.75);
    }

.custom-games-player [data-bind="progress"] {
    flex: 0 1 auto;
    padding: 10px 10px;
    background-image: url('../../../image/games/memorama/icon.png');
    background-repeat: no-repeat;
    background-size: 35px auto;
    background-position: right center;
    padding-right: 40px;
    color: #fe5858;
}

.custom-games-player [data-bind="progress"] span {
    font-weight: bold;
}

.custom-games-player [data-bind="place"] {
    flex: 0 1 auto;
    padding: 0 0 0 10px;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.custom-games-player-points {
    display: block;
    min-width: 80px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 30px;
    box-shadow: inset 0 3px 5px rgb(252 82 150 / 0.2);
    background: white;
    background-image: url('../images/icons/72821-gold-coin.gif');
    background-size: 50px;
    background-position: -10px center;
    background-repeat: no-repeat;
    padding-left: 25px;
    text-align: right;
    color: rgb(246 112 98 / 0.75);
}

/*places*/
.custom-games-player-place {
    width: 50px;
    height: 50px;
    display: block;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.custom-games-player-place {
    color: #b07546;
    font-weight: bold;
    font-size: 16px;
    line-height: 65px;
    background-image: url('../images/medals/medal-4.png');
    background-size: 70% auto;
}

        .custom-games-player-place[data-place="1"] {
            color: transparent;
            background-image: url('../images/medals/medal-1.png');
        }

        .custom-games-player-place[data-place="2"] {
            color: transparent;
            background-image: url('../images/medals/medal-2.png');
        }

        .custom-games-player-place[data-place="3"] {
            color: transparent;
            background-image: url('../images/medals/medal-3.png');
        }

/*bubbles*/
.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .bg-bubbles li {
        position: absolute;
        list-style: none;
        display: block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.15);
        bottom: 0px;
        -webkit-animation: square 25s infinite;
        animation: square 25s infinite;
        transition-timing-function: linear;
    }

        .bg-bubbles li:nth-child(1) {
            left: 10%;
        }

        .bg-bubbles li:nth-child(2) {
            left: 20%;
            width: 80px;
            height: 80px;
            -webkit-animation-delay: 2s;
            animation-delay: 2s;
            -webkit-animation-duration: 17s;
            animation-duration: 17s;
        }

        .bg-bubbles li:nth-child(3) {
            left: 25%;
            -webkit-animation-delay: 4s;
            animation-delay: 4s;
        }

        .bg-bubbles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            -webkit-animation-duration: 22s;
            animation-duration: 22s;
            background-color: rgba(255, 255, 255, 0.25);
        }

        .bg-bubbles li:nth-child(5) {
            left: 70%;
        }

        .bg-bubbles li:nth-child(6) {
            left: 80%;
            width: 120px;
            height: 120px;
            -webkit-animation-delay: 3s;
            animation-delay: 3s;
            background-color: rgba(255, 255, 255, 0.2);
        }

        .bg-bubbles li:nth-child(7) {
            left: 32%;
            width: 160px;
            height: 160px;
            -webkit-animation-delay: 7s;
            animation-delay: 7s;
        }

        .bg-bubbles li:nth-child(8) {
            left: 55%;
            width: 20px;
            height: 20px;
            -webkit-animation-delay: 15s;
            animation-delay: 15s;
            -webkit-animation-duration: 40s;
            animation-duration: 40s;
        }

        .bg-bubbles li:nth-child(9) {
            left: 25%;
            width: 10px;
            height: 10px;
            -webkit-animation-delay: 2s;
            animation-delay: 2s;
            -webkit-animation-duration: 40s;
            animation-duration: 40s;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .bg-bubbles li:nth-child(10) {
            left: 90%;
            width: 160px;
            height: 160px;
            -webkit-animation-delay: 11s;
            animation-delay: 11s;
        }

@-webkit-keyframes square {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-700px) rotate(600deg);
    }
}

@keyframes square {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-700px) rotate(600deg);
    }
}

[data-clienttype="1"] #custom-games-container {
    display: none;
}

[data-clienttype="1"] [data-privacy="3"] #custom-games-container {
    display: inline-flex;
}

[data-type="game"] #custom-games-container {
}

.custom-games-winner-data {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    z-index: 10;
    border-radius: 5px;
    padding: 15px;
    background-color: #ee9617;
    background-image: linear-gradient(315deg, #ee9617 0%, #fe5858 74%);
    margin-top: 15px;
}

    .custom-games-winner-data img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .custom-games-winner-data [data-bind="winner-name"] {
        color: white;
        padding-left: 15px;
        font-size: 22px;
    }

.custom-games-winner-title {    
    font-size: 30px;
    color: #fe5858;
}

.custom-games-winner-lottie {
    width: 200px;
    display: inline-block;
    margin-top: 30px;
}



/**/
#custom-games-student-resume {
    position: absolute;
    z-index: 100;
    margin-left: 130px;
}

    #custom-games-student-resume .custom-games-resume {
        background: none;
        height: 50px;
        min-height: initial;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    #custom-games-student-resume .custom-games-winner {
        margin-right: 15px;
    }

#custom-games-student-resume .custom-games-winner-avatar {
    width: 45px;
    height: 45px;
    min-width: initial;
    min-height: initial;
}

    #custom-games-student-resume .custom-games-winner-avatar:before {
        width: 30px;
        height: 30px;
    }

    #custom-games-student-resume .custom-games-winner-avatar img {
        border-width: 2px;
        height: 45px;
        width: 45px;
        max-height: calc(var(--rvh) - 340px);
        object-fit: contain;
    }

#custom-games-student-resume .custom-games-winner-info {
    height: 40px;
    min-width: 120px;
}

#custom-games-student-resume .custom-games-title {
    color: rgba(255,95,0,1);
    font-weight: normal;
}

#custom-games-student-resume [data-bind="place"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.sv2-view[data-custom-game="true"] {
    max-width: initial;
    width: calc(100vw - 45px);
    box-shadow: none;
    margin: 0;
    height: calc(100vh - 150px);
}

    .sv2-view[data-custom-game="true"] #custom-games-container {
        width: 100%;
        max-width: initial;
    }

@media all and (max-width: 900px) {
    #custom-games-student-resume {
        margin-left: 120px;
    }
}

@media all and (max-height: 750px), (max-width: 500px) {
    #custom-games-student-resume {
        margin-left: 100px;
    }

    .sv2-view[data-custom-game="true"] {
        height: calc(100vh - 50px);
    }

    .custom-games-winner-avatar img {
    
    }
}

