﻿:root {
    --memorama-card-width: 200px;
    --memorama-card-height: 150px;
    --white: #ffffff;
}

#ActivityGameContainer {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 35px);
    z-index: 100;
    text-align: center;
    overflow: auto;
    overflow-x: hidden;
}

#custom-games-container {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.memorama-card {
    position: relative;
    width: var(--memorama-card-width);
    height: var(--memorama-card-height);
    margin: 5px;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 110px;
    min-width: 176px;
    max-height: 275px;
    max-width: 400px;
}
    
    .memorama-card:not([data-locked="true"]):hover {
        transform: scale(1.05);
    }

.memorama-card-view {
    position: absolute;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

    .memorama-card-view .memorama-card-front {
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        backface-visibility: hidden;
        border-radius: 10px;
        overflow: hidden;
        height: 100%;
        width: 100%;
        position: absolute;
        z-index: 10;
        background: rgba(255,205,0,1);
        background: -moz-linear-gradient(top, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
        background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,205,0,1)), color-stop(100%, rgba(255,95,0,1)));
        background: -webkit-linear-gradient(top, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
        background: -o-linear-gradient(top, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
        background: -ms-linear-gradient(top, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
        background: linear-gradient(to bottom, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffcd00', endColorstr='#ff5f00', GradientType=0 );
    }

    .memorama-card-view .memorama-card-back {
        border-radius: 10px;
        color: #0087cc;
        text-align: center;
        transform: rotateX(180deg);
        background: rgb(255 159 0);
        overflow: hidden;
        width: 100%;
        height: 100%;
        padding: 5px;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        background: rgba(255,205,0,1);
        background: linear-gradient(to top, rgba(255,205,0,1) 0%, rgba(255,95,0,1) 100%);
    }

    .memorama-card-view:not([data-active="true"]) .memorama-card-back > * {
        display: none;
    }

    .memorama-card-view[data-locked="true"],
    .memorama-card-view[data-active="true"] {
        transform: rotateX(-180deg);
    }

    /*img*/
    .memorama-card-view .memorama-card-front img {
        width: 50% !important;
        height: auto !important;
        min-height: initial !important;
        min-width: !important;
        max-height: initial !important;
    }

    .memorama-card-view .memorama-card-back img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        border-radius: 5px;
    }

    /*text*/
    .memorama-card-view .memorama-card-front .memorama-card-front-ico {
        height: calc(var(--memorama-card-height) * 0.5);
        width: calc(var(--memorama-card-height) * 0.5);
        text-align: center;
        border: 4px solid white;
        border-radius: 50%;
        color: white;
        font-size: 40px;
        min-height: 80px;
        min-width: 80px;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .memorama-card-view .memorama-card-back p {
        margin: 0;
        color: white;
        font-size: 22px;
        display: block;
        width: 100%;
        text-align: center;
        --size: calc(var(--memorama-card-height) * 0.1);
        font-size: calc(8px + var(--size));
        overflow: auto;
        max-height: 100%;
    }

    /*audio*/
    .memorama-card-view .memorama-card-back .memorama-card-front-ico {
        width: 125px;
        height: 125px;
        line-height: 125px;
        text-align: center;
        border-radius: 50%;
        color: white;
        font-size: 40px;
    }

    /*translation*/
.memorama-card-front-language {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}


    .memorama-card-front-language[data-lang="1"] {
        background-image: url('/assets/smmb/general/images/icons/big-flag-es.png');
    }

    .memorama-card-front-language[data-lang="2"] {
        background-image: url('/assets/smmb/general/images/icons/big-flag-eng.png');
    }

    .memorama-card-front-language[data-lang="3"] {
        background-image: url('/assets/smmb/general/images/icons/big-flag-fr.png');
    }

.game-view-congratulations {
    font-size: 30px !important;
}

.memorama-card-view {
    /*transform: rotateX(-180deg) !important;*/
}



/**/

@media all and (orientation: landscape) {
    #custom-games-container[data-cards="8"] {
        --max-view-height: calc(100vh - 55px);
        --memorama-card-height: calc(var(--max-view-height) / 5);
        --memorama-card-width: calc(var(--memorama-card-height) * 1.5);
        --white: #ffffff;
        max-width: 1600px;
    }

    #custom-games-container[data-cards="10"] {
        --max-view-height: calc(100vh - 55px);
        --memorama-card-height: calc(var(--max-view-height) / 5);
        --memorama-card-width: calc(var(--memorama-card-height) * 1.5);
        --white: #ffffff;
        max-width: 1600px;
    }

    #custom-games-container[data-cards="12"] {
        --max-view-height: calc(100vh - 55px);
        --memorama-card-height: calc(var(--max-view-height) / 5.5);
        --memorama-card-width: calc(var(--memorama-card-height) * 1.5);
        --white: #ffffff;
        max-width: 1600px;
    }
}

@media all and (orientation: portrait) {
    #custom-games-container[data-cards="8"] {
        --memorama-card-width: calc(100vw / 5);
        --memorama-card-height: calc(var(--memorama-card-width) * 0.6);
        --white: #ffffff;
    }

    #custom-games-container[data-cards="10"] {
        --memorama-card-width: calc(100vw / 4);
        --memorama-card-height: calc(var(--memorama-card-width) * 0.6);
        --white: #ffffff;
        max-width: 1200px;
    }

    #custom-games-container[data-cards="12"] {
        --memorama-card-width: calc(100vw / 4.4);
        --memorama-card-height: calc(var(--memorama-card-width) * 0.6);
        --white: #ffffff;
    }
}

/*mambo*/
.current-site-Mambo .memorama-card-front {
    background: rgba(237,26,120,1);
    background: -moz-linear-gradient(top, rgba(237,26,120,1) 0%, rgba(148,49,134,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(237,26,120,1)), color-stop(100%, rgba(148,49,134,1)));
    background: -webkit-linear-gradient(top, rgba(237,26,120,1) 0%, rgba(148,49,134,1) 100%);
    background: -o-linear-gradient(top, rgba(237,26,120,1) 0%, rgba(148,49,134,1) 100%);
    background: -ms-linear-gradient(top, rgba(237,26,120,1) 0%, rgba(148,49,134,1) 100%);
    background: linear-gradient(to bottom, rgba(237,26,120,1) 0%, rgba(148,49,134,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ed1a78', endColorstr='#943186', GradientType=0 );
}


.current-site-Mambo .memorama-card-view .memorama-card-back {
    background: rgb(222 30 123);
}


.sv2v-memorama-on-board {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    background: #000000b4;
}

    .sv2v-memorama-on-board #custom-games-container  {
        z-index: 100;
    }

.sv2v-memorama-on-board-body {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100vw - 30px);
    height: calc(100vh - 30px);
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: stretch;
    position: relative;
    overflow: auto;
    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);
    /*background-color: #ee9617;*/
    /*background-image: linear-gradient(315deg, rgba(255,205,0,1) 0%, #fe5858 74%);*/
    background: white;
    z-index: 10;
}

.sv2v-memorama-on-board-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,95,0,1);
    color: white;
    z-index: 10001;
    border: 4px solid white;
    cursor: pointer;
}

    .sv2v-memorama-on-board-close i {
        font-size: 30px;
    }

.sv2v-memorama-on-board-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}


.sv2v-memorama-on-board-body .memorama-card {
    max-height: 220px;
}


.sv2v-memorama-on-board-body #custom-games-container {
    padding: 15px;
}


.sv2v-memorama-on-board-body .bg-bubbles li {
    background-color: rgb(255, 95, 0, 0.05);
}

#custom-games-container[data-cards="12"] {
    align-items: flex-start;
    align-content: flex-start;
}




[data-clienttype="1"] #custom-games-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: white;
    max-width: initial;
}

[data-clienttype="1"] #closePlayBlackboard {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 85%;
    background-repeat: no-repeat;
    background-color: white;
    
}