body{
    margin:0;
    overflow:hidden;
}
.rotate-wrapper{
    transform: rotate(90deg);
    transform-origin:bottom left;
    position:absolute;
    top: -100vw;
    left: 0;
    height:100vw;
    width:100vh;
    background-color:#000;
    color:#fff;
    overflow:auto;
}
.kids-main-section {
    position: absolute !important;
    top: 20px;
}
/*
.kids-main-section, .kids-main-section .region-content, #block-kidsmemorygameblock, #memory-game {
    height: 100%;
}
*/
/*#memory-game {
    background-color: rgba(0,0,0,0.5);
}*/
#memory-game{
    display: none;
    /*padding-top: 20px;*/
}
.game-black-overlay {
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    position: fixed;
    top: 0;
    left: 0;
}
.memory-game-container{
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 80%;
}
.timer-restart{
    width: 100%;
    float: right;
    display: flex;
    justify-content: flex-end;
    padding: 1%;
}

div#timer {
    background-color: #fff;
    border-radius: 5px;
    width: 140px;
    height: 48px;
    position: relative;
    font-size: 45px;
    font-family: 'Exo', sans-serif !important;
    font-weight: bold;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1em;
    color: #4E2F6B;
    display: inline-table;
}
.memory-game-dark-bg {
    position: fixed;
    top: 0;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
}
.movesContainer{
    text-align: right;
    padding: 1%;
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.movesBackground{
    width: 86px;
    height: 30px;
    position: relative;
    overflow: auto;
    background: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.memoryMoves{
    margin-right: 4px;
    font-weight: bold;
    color: #4E2F6B;
}
.movesBackground span{
    font-weight: bold;
    color: #4E2F6B;
}
.memory-game-dark-bg .game-start-button {
    width: 300px;
    height: 109px;
    background: white;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    margin: 0 auto;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
/*
* Styles for the deck of cards
*/
.deck {
    position: relative;
    width: 820px;
    margin: 0 auto;
}
.deck .row1, .deck .row2{
    width: 100%;
}

.deck .card {  
    pointer-events: none;
    height: 188px;
    width: 188px;
    font-size: 0;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
    margin: 1%;
    float: left;
}

.deck .card.open {
    transform: rotateY(0);
    background: white;
    cursor: default;
    font-size: 33px !important;

}


.deck .card.match{
}

/*
.deck .card.match {
    cursor: default;
    background-color: #ffffff;
    font-size: 33px;
    -webkit-animation-name: match ;
    -webkit-animation-duration: .5s; 
    animation-name: match;
    animation-duration: .5s;
}
@keyframes match{
    0% {transform: translate(5px,0);}
    50% {transform: translate(-10px,0);}
    100% {transform: translate(5px,0);}
}
*/
.card.unmatch {
    -webkit-animation-name: unmatch; 
    -webkit-animation-duration: 0.4s; 
    animation-name: unmatch;
    animation-duration: 0.4s;
}
@keyframes unmatch{
    0% {transform: rotate(5deg);background-color: white}
    50% {transform: rotate(-10deg);background-color: white}
    100% {transform: rotate(5deg); background-color: white}
}
*/


/*
* Styles for the Score Panel
*/

.score-panel {
    text-align: left;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;

}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .restart {
    float: right;
    cursor: pointer;
}

/*
* styles for popup tab
*/

.memoryVictoryContent{
    width: 500px;
    height: auto;
    background: white;
    border-radius: 10px;
    padding: 32px;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.deck .card img {
    display: none;
    max-width: 100%;
}
.deck .card.open img {
    display: block;
    width: 100%;
    border-radius: 7px;
}

.card .front-image {
    display: block !important;
    width: 150px;
    max-width: 80% !important
}
.deck .card.open .front-image {
    display: none !important;
}

@media screen and (max-width:1024px){
    .deck{
        width: 609px;
    }
    .deck .card {
        height: 140px;
        width: 140px;
    }
}


@media screen and (max-width:767px){
    .kids-sidebar {
        min-width: 60px !important;
    }
    .kids-sidebar img {
        width: 50px;
    }
    #memory-game{
        display: none;
    }
    div#timer {
        font-size: 30px;
        width: 120px;
    }
    .deck .card {
        height: 120px;
        width: 120px;
    }
}
@media screen and (max-width:653px){
    .deck .card {
        height: 100px;
        width: 100px;
    }
}
@media screen and (max-width:590px){
    .memory-game-container {
        max-width: 70%;
    }
    .deck .card {
        height: 80px;
        width: 80px;
    }
}
@media screen and (max-width:500px){
    .deck{
        width: 320px;
    }
    .deck .card {
        height: 70px;
        width: 70px;
    }
}
@media screen and (max-width:436px){
    .deck{
        width: 320px;
    }
    .deck .card {
        height: 60px;
        width: 60px;
    }
}
@media screen and (max-width:370px){
    header h1 {
        font-size: 20px;
    }
    .score-panel .restart {
        margin-right: 87px;
        font-size: 23px;
    }
    .deck .card {
        height: 70px;
        width: 70px;
    }
}
@media screen and (orientation:portrait) {
    body.navbar-is-fixed-top {
        margin-top: 0 !important;
    }
}
@media screen and (orientation:landscape) {
    body.navbar-is-fixed-top {
        margin-top: 0 !important;
    }
    @media screen and (max-width:823px){
        .kids-main-section {
          top: 5px;
      }
      div#timer {
          font-size: 20px;
          width: 90px;
      }
      .score-panel {
          margin-bottom: 0;
      }

  }
}