

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: auto;
    position: relative;
    display: -webkit-flex;
}

#puzzle-preview{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 12vh;
    background: rgba(0, 0, 0, 1);
    /* width: 80%; */
}

#puzzle-preview img{
    /* width: 100%; */
    height: auto;
    max-width: 90vw;
}

@media screen and (max-width: 600px){
    #puzzle-preview{
        padding: 18vh 4vw;
    }
}

input{
    outline: none;
}

#overlay-div{
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    z-index: 999;
}

h1 {
    font-weight: 300;
    text-align: center;
    text-transform: full-width;
}

/*
 * Styles for the deck of cards
 */
.deck {
    max-width: 660px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0;
    display: -webkit-flex;
}

.deck li {
    margin-bottom: 10px;
    position: relative;
    height: fit-content;
}

.deck .card {
    position: relative;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0,0,0,.125);
    height: auto;
    background: black;
    font-size: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    display: -webkit-flex;
}

.deck .card.open {
    background: black;
    cursor: default;
}


.deck .card.match {
    cursor: default;
}

.timer {
    font-size: 3em;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.open .flip-card-inner, .card.match .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front img, .flip-card-back img {
    border: 1px solid white;
}

.flip-card-front {
  color: white;
  position: relative;
}

.flip-card-back {
  position: absolute;
  color: white;
  transform: rotateY(180deg);
  top: 5px;
  left: 0;
}

/*
 * Styles for the Score Panel
 */
.score-panel {
    text-align: center;
    max-width: 660px;
    width: 100%;
    margin: auto;
    margin-bottom: 10px;
}

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

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

.score-panel .restart {
    float: right;
    display: inline-block;
    margin :0 0 0 80px;
    cursor: pointer;
}

.score-panel .timer {
    margin: auto;
    display: inline-block;
    font-family: "HelveticaNeueW01","Helvetica Neue Ult Light";
    font-weight: 200;
}

/*Style for the popup modal*/

#game_instruction_modal .modal-dialog, 
#game_end_modal .modal-dialog, 
#game_modal .modal-dialog, 
#tnc_modal .modal-dialog {
    max-width: 800px;
    width: 100%;
    margin: auto;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    top: calc(100%/1.7);
    /* top: calc(50%); */
    height: fit-content;
    min-height: unset;
}

.modal{
    font-family: "HelveticaNeueW01-45Light", "HelveticaNeueW01" ;
}

.game_modal{
    margin-top: -10vh;
}

#game_instruction_modal .modal-dialog-centered::before,
#game_end_modal .modal-dialog-centered::before,
#game_modal .modal-dialog-centered::before,
#tnc_modal .modal-dialog-centered::before{
    height: fit-content;
}

#game_instruction_modal .modal-content,
#game_end_modal .modal-content, 
#game_modal .modal-content, 
#tnc_modal .modal-content {
    padding: 0 10px;
}

#game_instruction_modal .modal-content, 
#game_end_modal .modal-content, 
#tnc_modal .modal-content {
    height: fit-content;
}

#game_instruction_modal .modal-body,  
#tnc_modal .modal-body{
    padding: 40px 40px 40px;
}
#game_end_modal .modal-body{
    padding: 20px 10px 30px;
}
#game_instruction_modal .modal-header,
#game_end_modal .modal-header,
#tnc_modal .modal-header{
    padding: 40px 0 0;
}

#game_instruction_modal .modal-title, 
#tnc_modal .modal-title,
#game_end_modal .modal-title {
    font-size: 2.4em;
    line-height: 1;
    font-family: "HelveticaNeueW01","Helvetica Neue Ult Light";
}

#game_instruction_modal .game-instruction-list,
#tnc_modal p{
    font-size: 1.25em;
    line-height: 1.2;
    margin-bottom: 20px;
}

#game-instruction-paragraph-desktop{
    font-size: calc(10px + 1vw);
    font-size: 1.25em;
    white-space: pre-line;
    font-family: "HelveticaNeueW01-45Light"
}

.game-modal-text{
 /* font-size: calc(12px + 1vw); */
 font-size: 1.25em;
 white-space: pre-line;
 font-family: "HelveticaNeueW01-45Light"
}

.desktop-show{
    display: block;
}

.mobile-show{
    display: none;
}

#start-btn, #play-again-btn {
    /* font-family: "HelveticaNeueW01","Helvetica Neue Ult Light"; */
    /* font-weight: 300; */
    font-size: 1.2em;
    margin: 0 0 20px;
    font-family: HelveticaNeue-Regular, HelveticaNeueW03;
    border: 1px solid white;
    background: transparent;
    /* padding: 0.2em 0.5em; */
    /* -webkit-box-shadow: 0px 0px 5px 0px rgba(255,193,193,1), inset 0px 0px 5px 0px rgba(255,193,193,1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(255,193,193,1), inset 0px 0px 5px 0px rgba(255,193,193,1);
    box-shadow: 0px 0px 5px 0px rgba(255,193,193,1), inset 0px 0px 5px 0px rgba(255,193,193,1); */
}

#start-btn{
    background-color: white;
    color: black;
}


#play-again-btn{
 margin: 0;
}

button.submit-form{
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    line-height: 1em;
}

#start-btn .btn-text, #play-again-btn .btn-text {
    /* text-shadow: 1px 0px 2px rgba(255,193,193, 0.9), -1px 0px 2px rgba(255,193,193, 0.9); */
}
.game-end-text{
    font-size: 1.25em;
    line-height: 1.1;
}
#game_end_modal .game-instruction-list {
    font-size: 1.25em;
}

#game_end_modal .game-end-code {
    max-width: 100%;
    width: 90%;
    max-width: 500px;
    margin: auto;
    padding: 10px 0px;
    /* border: 1px solid rgba(255,255,255,0.7); */
    margin-bottom: 10px;
    font-size: 1.25em;
    line-height: 1.2;
    background: white;
    color: black;
}

#code3 img{
    -webkit-filter: invert(100%); /* Safari/Chrome */
    filter: invert(100%);
}

.game-voucher-tip{
    font-size: 1.25em;
    margin: auto;
    padding: 0;
    white-space: pre-line;
    font-family: 'HelveticaNeueW01-45Light';
}

#game_end_modal .game-end-code small{
    font-size: 0.55em;
}

.game-end-footer .custom-col-6 {
    padding: 0;
}

.game-end-footer .game-end-icon {
    margin-bottom: 5px;
}

.game-end-icon {
    max-height: 38px;
    display: block;
    margin: auto;
}

.game-end-icon-text {
    font-family: 'HelveticaNeueW01';
}

.game-end-link {
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: 0.875em;
    text-transform: uppercase;
}

.game-end-link:hover {
    text-decoration: none;
    color: #fff;
}

.game-end-link:focus {
    text-decoration: none;
    color: #fff;
    border: none;
    outline: none;
}

#game_instruction_modal .modal-title{
    font-size: 4em;
}

.modal-title {
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    padding-top: 15px;
}

.modal-elements {
    display: inline-block;
    align-items: center;
}

.modal-message {
    font-size: 2em;
    text-align: center;
}

.js-copy {
    position: relative;
    opacity: 0;
    z-index: -10;
}

#game_copy_code{
    padding-top: 3px;
    max-height: 20px;
    cursor: pointer;
    display: inline-block;
}
.game-end-footer{
    max-width: 350px;
    margin: auto !important;
}

.tooltip {
  position: relative;
  display: inline-block;
  opacity: 1;
  font-size: 0.9em;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: rgba(255,255,255,0.8);
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 106%;
  font-size: 12px;
  font-style: normal;
}

.code_tooltip .tooltiptext{
    top: 10%;
    left: 150%;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%; /* To the left of the tooltip */
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(255,255,255,0.8) transparent transparent;
}

.tooltip.active .tooltiptext {
  visibility: visible;
}

@media only screen and (min-width: 1500px) and (orientation: landscape) {
    #game_instruction_modal .modal-dialog, #game_modal .modal-dialog, #tnc_modal .modal-dialog{
        top: calc(100%/1.73);
        /* top: calc(50%); */
    }

    /* .modal-content{
        margin-top: 10%;
    } */
}
@media only screen and (max-height: 860px) and (orientation: landscape) {
    #game_modal .modal-dialog{
        top: 50%;
        height: fit-content;
        min-height: calc(100% - (0.5rem * 2));
    }
    #game_modal .modal-dialog-centered::before{
        height: calc(100vh - (0.5rem * 2));
    }
}

@media only screen and (max-width: 991px) {
    #game_instruction_modal .modal-content,
    #game_end_modal .modal-content, 
    #tnc_modal .modal-content {
        font-size: 0.9em;
    }
    #game_instruction_modal .modal-dialog, 
    #game_end_modal .modal-dialog, 
    #tnc_modal .modal-dialog,
    #game_modal .modal-dialog {
        max-width: 700px;
    }
    #game_instruction_modal .modal-body,  
    #tnc_modal .modal-body{
        padding: 30px 70px 20px;
    }
}
@media only screen and (max-width: 767px) {
    .tooltip .tooltiptext{
        top: 140%;
        left: 10%;
        margin-left: -30%;
    }
    .code_tooltip .tooltiptext{
        top: 120%;
        left: -320%;
        margin-left: -30%;
    }
    .tooltip .tooltiptext::after {
        bottom: 100%;  /* At the top of the tooltip */
        left: 50%;
        top: unset;
        border-color: transparent transparent rgba(255,255,255,0.8) transparent;   
    }
    #game_instruction_modal .modal-dialog, 
    #game_end_modal .modal-dialog, 
    #tnc_modal .modal-dialog,
    #game_modal .modal-dialog {
        max-width: 500px;
        top: 50%;
    }
}
@media only screen and (max-width: 600px) {

    #start-btn .btn-text, #play-again-btn .btn-text {
        font-size: 0.75em;
        padding: 0.2em 1em;
        /* line-height:1em; */
    }

    #start-btn, #play-again-btn {
        /* font-family: "HelveticaNeueW01","Helvetica Neue Ult Light"; */
        /* font-weight: 300; */
        font-size: 1.2em;
        margin: 0 0 20px;
        padding: .2em 1em;
        line-height: 1em;
    }

    #game_instruction_modal .game-instruction-list,

    #game-instruction-paragraph-mobile, #game-modal-text, .game-modal-text, .game-voucher-tip, #tnc_modal p{
        font-size: 1.1em;
        font-family: "HelveticaNeueW01-45Light";
    }

    #game-instruction-paragraph-mobile{
        font-size: 1.0em;
        font-family: "HelveticaNeueW01-45Light";
    }

    .desktop-show{
        display: none;
    }
    
    .mobile-show{
        display: block;
    }

    #game_end_modal .modal-title{
        font-size: 2.2em;
    }
    .deck li{
        padding-right: 5px;
         padding-left: 5px; 
    }
    .mobile-displayblock{
        display: block;
    }
    #game_instruction_modal .modal-dialog, 
    #game_end_modal .modal-dialog, 
    #tnc_modal .modal-dialog {
        max-width: 320px;
    }
    #game_modal .modal-dialog {
        width: 90%;
    }
    #game_end_modal .modal-body{
        padding: 15px 15px 30px;
        /* padding: 15px 5px 15px; */
    }
    .game-end-icon{
        max-height: 32px;
    }
    #game_end_modal .game-end-code, .game-end-text{
        font-size: 1.1em;
        font-family: 'HelveticaNeueW01-45Light';
    }
   
    dl, ol, ul{
        padding-inline-start: 25px;
    }
    #game_instruction_modal .modal-title, 
    #tnc_modal .modal-title{
        font-size: 2em;
    }

    header {
        width: 100%;
        justify-content: space-around;
    }

    #game_modal .modal-content {
        padding: 0;
    }

    #game_modal .modal-body {
        padding: 10px;
    }
    #game_instruction_modal .modal-header, 
    #tnc_modal .modal-header{
        padding: 30px 0 0;
    }
    #game_end_modal .modal-header{
        padding: 30px 0 0;
    }
    #game_instruction_modal .modal-body, 
    #tnc_modal .modal-body {
        padding: 20px 15px 10px;
    }

    .deck li.col-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .score-panel {
        width: 100%;
        font-size: 14px;
    } 
    
    .score-panel .timer {
        /* margin: 0 0 0 20px; */
        display: inline-block;
    }
    .score-panel .restart {
    margin: 0 0 0 45px;    
    }
    
    .deck {
        width: 100%;
        justify-content: space-around;
        box-shadow: none;
        padding: 10px 0;
    }   
}

@media only screen and (max-width: 330px) {
    #game_instruction_modal .modal-dialog, 
    #game_end_modal .modal-dialog, 
    #tnc_modal .modal-dialog{
        max-width: 300px;
    }
    #game_instruction_modal .modal-content, 
    #game_end_modal .modal-content, 
    #game_modal .modal-content, 
    #tnc_modal .modal-content{
        font-size: 0.8rem;
    }
}
/* 
@media (min-width: 1400px){
    #game-instruction-paragraph-desktop{
        font-size: calc(10px + .7vw);
        white-space: pre-line;
    }

    .game-modal-text {
        font-size: calc(10px + .7vw);
        white-space: pre-line;
    }
    
}

@media (min-width: 1600px){
    #game-instruction-paragraph-desktop{
        font-size: calc(10px + .6vw);
        white-space: pre-line;
    }
    
    .game-modal-text {
        font-size: calc(10px + .6vw);
        white-space: pre-line;
    }
} */

#nav-home{
    height:10vh;
    width: 100%;
    position: absolute;
    top:0;
    left:0;
    z-index: 10000000;
    opacity: 1;
    display: none;
}

@media (min-width: 900px){
    /* #game_modal .modal-content{
        margin-top: 10%;
    } */
}

@media (max-height: 580px){
    #game_end_modal .modal-content{
        /* margin-top: 10%; */
    }
}

@media (max-width: 380px) and (max-height: 800px){
    .game-end-icon {
        max-height: 24px;
    }

    .m-b-1-5-em {
        margin-bottom: 1.1em !important;
    }

    .tnc-text {
        margin-bottom: 15px;
    }

}

@media (max-width: 480px) and (max-height: 800px){
    .game-end-link, .tooltip {
        font-size: 0.85em;
    }
}

#link-copied {
    top: 120%;
    left: calc(50%);
    width: 76px;
    transform: translateX(-50%);
}

#link-copied::after {
    content: " ";
    position: absolute;
    top: 0;
    right: calc(38px - 5px);
    margin-top: -9px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(255,255,255,0.8) transparent ;
}

@media only screen and (max-width: 767px){
    #link-copied {
        top: 120%;
        left: 50%;
        margin-left: 0%;
    }
}

@media only screen and (min-width: 1280px){
    #link-copied {
        left: calc(50% + 10px);
    }
}