html, body{
    font-family:'Outfit';
    background:#fff;
    margin:0;
    padding:0;
}

/* Menu */
#menuBox{
    background:#fff;
    z-index: 999;
    transition:0.5s;
    position:fixed;
    opacity:0;
    top:20%;
    left:110%;
    height:50%;
    width:80%;
    border-radius:5px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}
table#menuTab{
    height:100%;
    width:100%;
    border-collapse:collapse;
    margin:auto;
    transition:0.5s;
}
table#menuTab td{
    font-size:2vh;
    font-weight:bold;
    text-align:center;
    width:100%;
    height:calc(100%/7);
    transition:0.5s;
    user-select: none;
    -moz-user-select: none;
}

#aboutUsBox{
    position:absolute;
    margin:auto;
    height:80%;
    width:80%;
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    display:flex;
    top:0;
    left:0;
    padding-left:10%;
    padding-top:10%;
    padding-bottom:10%;
    padding-right:10%;
    font-size: 2vh;
    font-weight:bold;
    opacity:0;
    transition:0.5s;
}

#howToPlayBox{
    position:absolute;
    margin:auto;
    height:80%;
    width:80%;
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    /* display:flex; */
    top:0;
    left:0;
    padding-left:10%;
    padding-top:10%;
    padding-bottom:10%;
    padding-right:10%;
    font-size: 2vh;
    font-weight:bold;
    opacity:0;
    transition:0.5s;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}
#howToPlayChest{
    margin:auto;
    height:8vh;
    transition:0.5s;
    display:inline-block;
}
#howToPlayCoin{
    margin:auto;
    height:6vh;
    transition:0.5s;
    display:inline-block;
}

/* Account Table */
table#accountTab{
    position:absolute;
    top:0;
    left:5%;
    height:100%;
    width:90%;
    border-collapse:collapse;
    transition:0.5s;
    opacity:0
}
table#accountTab td{
    font-size:2vh;
    font-weight:bold;
    text-align:center;
    width:100%;
    height:calc(100%/7);
    transition:0.5s;
    user-select: none;
    -moz-user-select: none;
}

/* Terms iframe */
#termsIframe{
    height:90%;
    width:96%;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    opacity:0;
    transition:0.5s;
    position:absolute;
    top:5%;
    left:2%;
}

/* Login Page */
table#loginBastion{
    height:90vh;
    width:90%;
    position:fixed;
    top:2.5vh;
    left:5%;
    border-collapse: collapse;
    border:0px dashed #333;
    table-layout: auto;
}
table#loginBastion td{
    border:0px dashed #333;
    width:100%;
}
table#loginBastion td#loginLogoTD{
    height:5%;
    text-align:center;
}
#loginLogo{
    height:6vh;
}
table#loginBastion td#emailTD{
    height:10%;
    text-align:center;
    font-family:'Outfit';
    font-size:2vh;
    font-weight:bold;
}
#forgottenPassword{
    font-size:1.2vh;
    color:#666;
}
table#loginBastion td#signInWithTD{
    height:10%;
    text-align:center;
    font-family:'Outfit';
    font-size:2vh;
    font-weight:bold;
    /* border-top:1px solid #333; */
}
table#loginBastion td#getInTouchTD{
    height:5%;
    text-align: center;
    user-select: none;
    font-weight:bold;
    font-size:2vh;
}
table#loginBastion td#loginFooterTD{
    height:5%;
    text-align:center;
    font-size:1vh;
    font-weight:800;
}
#getInTouchLink{
    text-decoration: none;
    color:#000;
}
/* login form elements */
.loginInps{
    height:3vh;
    font-family:'Outfit';
    font-size:1.4vh;
    font-weight:bold;
    padding-left:3vw;
    padding-right:3vw;
    border:1px solid #999;
    border-top-left-radius: 2vh;
    border-top-right-radius: 2vh;
    border-bottom-right-radius: 2vh;
    border-bottom-left-radius: 2vh;
    width:70vw;
    outline:none;
}
#loginButt{
    background:#666;
    height:5vh;
    width:40vw;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.05s;
    outline:none;
}
#registerButt{
    background:#666;
    height:5vh;
    width:40vw;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.05s;
}
#tsandcs{
    font-size:1.2vh;
}
/* Google Sign In Button */
#googleLoginCont{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align: center;
    height:100%;
}
.g_id_signin {
    margin: auto; /* Centers the button within its parent if it has a defined width */
}

/* Forgot password page */
#fgtPwrdBack{
    z-index:99999;
    position:fixed;
    top:0;
    left:110%;
    height:100%;
    width:100%;
    background:#fff;
    transition:0.75s;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    /* opacity:0; */
}
#fgtPwrdSub{
    background:#666;
    height:5vh;
    width:40vw;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.05s;
}
table#fgtPwrdTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
}
table#fgtPwrdTab td#fgtPwrdLogoCont{
    height:20%;
    padding-top:5%;
    text-align:center;
    border:0px dashed #333;
}
#fgtPwrdLogo{
    height:13vh;
}
table#fgtPwrdTab td#fgtPwrdFormCont{
    height:45%;
    text-align:center;    
    border:0px dashed #333;
    font-size:2vh;
    font-weight: bold;
}
#fgtPwrdEmail{
    height:5vh;
    font-size:2vh;
    font-family:'Outfit';
    font-weight:bold;
    padding-left:3vw;
    padding-right:3vw;
    border:1px solid #999;
    border-top-left-radius: 2.5vh;
    border-top-right-radius: 2.5vh;
    border-bottom-right-radius: 2.5vh;
    border-bottom-left-radius: 2.5vh;
    width:70vw;
    outline:none;
}
table#fgtPwrdTab td#fgtPwrdClose{
    height:30%;
    text-align:center;    
    border:0px dashed #333;
    font-size:2vh;
    font-weight: bold;
}


/* Reset password page just sent link page*/
#resetPwdLogo{
    height:8vh;
    position:fixed;
    top:10vh;
    left:50%;
    transform:translate(-50%,0%);
}
#resetPwdTxt{
    margin:auto;
    position:fixed;
    top:20vh;
    left:50%;
    transform:translate(-50%,0%);
    width:80%;
    text-align:center;
    font-size:2vh;
    font-weight:bold;
}
#resetPwdDude{
    position:fixed;
    top:50vh;
    height:20vh;
    left:50%;
    transform:translate(-50%,0%);
}
#resetPwdFooter{
    position:fixed;
    bottom:1vh;
    left:50%;
    transform:translate(-50%,0%);
    font-size:1vh;
    font-weight:bold;
}
#passwordMatchCheck{
    font-size:1vh;
    color:#666;
    font-size:1.2vh;
}

/* Reset Password Page Table */
table#pwrdRstTab{
    height:100%;
    width:100%;
    position:fixed;
    top:0;
    left:0;
    border-collapse:collapse;
}
table#pwrdRstTab td{
    border:0px dashed #333;
    height:calc(100%/6);
    text-align:center;
    font-weight:bold;
}
#pwrdRstLogo{
    height:10vh;
}
table#pwrdRstTab td#pwrdRstFooter{
    font-size:1.3vh;
}
.smallGreyTxt{
    font-size:1.4vh;
    color:#666;
}
#footerLogo{
    height:1.8vh;
    position:relative;
    top:0.45vh;
}
#pwrdRstSubmit{    
    background:#666;
    height:5vh;
    width:40vw;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.05s;
}






/* Main table */
table#bastion{
    height:100%;
    width:100%;
    position:fixed;
    top:0;
    left:0;
    border-collapse: collapse;
    border:0px dashed #333;
}
table#bastion td#topCont{
    height:10%;
    width:100%;
    /* border:1px dashed #333; */
}
table#bastion td#middleCont{
    height:75%;
    width:100%;
    /* border:1px dashed #333; */
}
table#bastion td#bottomCont{
    height:5%;
    width:100%;
    text-align:center;
    font-size:1vh;
    font-weight:400;
    /* border:1px dashed #333; */
}
.footerLinks{
    text-decoration:none;
    color:#000;
}
/* Logo & menu table */
table#logoTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
}
table#logoTab td{
    border:0px dashed #333;
}
table#logoTab td#logoTabLeft{
    width:20%;
}
table#logoTab td#logoTabRight{
    width:20%;
}
table#logoTab td#logoTabMiddle{
    width:60%;
    text-align:center;
}
img#logo{
    height:9vh;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none;   
    margin:auto; 
}
/* Menu Bars */
.menuBar{
    height:1vh;
    width:10vw;
    max-width:50px;
    background:#666;
    border-radius:0.5vh 0.5vh 0.5vh 0.5vh;
    transition:0.2s;
}
#menuBarTop{
    position:fixed;
    top:3vh;
    right:5vw;
}
#menuBarMiddle{
    position:fixed;
    top:4.5vh;
    right:5vw;
}
#menuBarBottom{
    position:fixed;
    top:6vh;
    right:5vw;
}
/* Map styling */
#map{
    z-index:0;
    height:70%;
    width:90%;
    margin:auto;
    border-top:0px solid #666;
    border-left:0px solid #666;
    border-right:0px solid #666;
    border-bottom:10px solid #E9CDA4;
    border-radius:20px;
    outline:none;
    /* -webkit-box-shadow: 10px 10px 10px 0px rgba(163,158,163,1);
    -moz-box-shadow: 10px 10px 10px 0px rgba(163,158,163,1);
    box-shadow: 10px 10px 10px 0px rgba(163,158,163,1); */
}

/* Select Avatar Table */
#pickAvatarTitle{
    position:absolute;
    top:2%;
    width:90%;
    left:5%;
    text-align:center;
    font-size:3vh;
    font-weight:bold;
    opacity:0;
    transition:0.5s;
}
table#pickAvatarTab{
    position:absolute;
    top:20%;
    left:5%;
    /* height:90%; */
    width:90%;
    border-collapse:collapse;
    transition:0.5s;
    opacity:0;
}
table#pickAvatarTab td{
    text-align:center;
    border:0px dashed #333;
    height:10vh;
    width:calc(100%/3);
}
.pickAvatarImgs{
    transition:0.5s;
    height:8vh;
    margin:auto;
}
  
/* On map buttons */
#backpack{
    height:7vh;
    position:absolute;
    bottom:20%;
    right:-50%;
    z-index:99;
    transition:0.5s;
}

#toolCircle{
    height:7vh;
    position:absolute;
    bottom:20%;
    left:-50%;
    z-index:99;
    transition:0.5s;
    text-align:center;
    opacity:0;
    background-color: rgba(255,255,255,0.5);
    border-radius:50%;
    width:7vh;
    display:flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}
#toolImg {
    display: block;
    margin: auto;
    max-width: 70%;
    max-height: 4vh;  /* ensures it never grows taller than viewport */
    height: auto;     /* keeps aspect ratio */
    width: auto;      /* keeps aspect ratio */
    transition: 0.5s;
}




/* In game styling */
#gameBack{
    position:fixed;
    height:1px;
    width:1px;
    border-radius: 1px;
    top:50%;
    left:50%;
    transition:0.5s;
    background:#fff;
    z-index:99;
}

/* Table to contain keyboard and game console */
table#gameTab{
    border:0px dashed #333;
    height:90%;
    width:100%;
    table-layout: fixed;
    border-collapse:collapse;
    opacity:0;
}
table#gameTab td{
    width:100%;
    border:0px dashed #333;
}
table#gameTab td#gameTabConsole{
    height:75%;
    border:0px dashed #333;
}
table#gameTab td#gameTabKeyb{
    height:25%;
    text-align:center;
    font-size:3vh;
    font-weight:bold;
}

/* Keyboard styling */
table#keyboardTab{
    height:100%;
    width:95%; 
    margin:auto;
    border:0x dashed #333;  
    border-collapse:collapse;
    /* position:fixed; */
    table-layout: fixed;
    transition:0.5s;
    opacity:0;
}
table#keyboardTab td{
    /* width:calc(100%/26); */
    border:0px dashed #333;
    text-align:center;
    height:25%;
}
.keyButts{
    background:#666;
    height:85%;
    width:8.5vw;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    min-height:3.5vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    transition:0.05s;
    cursor:pointer;
}
#spaceBar{
    background:#666;
    height:70%;
    width:98%;
    border-radius:5px;
    border-bottom:5px solid #333;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    min-height:3.5vh;
}
.keybImgs{
    height:1.7vh;
    margin:auto;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}


/* Spindle */
table#spindleTab{
    border:0px solid #333;
    border-collapse:collapse;
    height:40vh;
    width:40vh;
    margin:auto;
    opacity:0;
    transition:0.5s;
    transform-origin: center;    
    -webkit-animation: rotating 16s linear infinite;
    -moz-animation: rotating 16s linear infinite;
    -ms-animation: rotating 16s linear infinite;
    -o-animation: rotating 16s linear infinite;
    animation: rotating 16s linear infinite;
}
table#spindleTab td{
    border:0px dashed #333;
    height:calc(100%/3);
    width:calc(100%/3);
    text-align:center;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    transition:0.25s;
    -webkit-animation: counter-rotating 16s linear infinite;
    -moz-animation: counter-rotating 16s linear infinite;
    -ms-animation: counter-rotating 16s linear infinite;
    -o-animation: counter-rotating 16s linear infinite;
    animation: counter-rotating 16s linear infinite;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
}
@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes counter-rotating /* Safari and Chrome */ {
    from {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    to {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}
@keyframes counter-rotating {
    from {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    to {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

/* Descriptive popups */
.gameDescPopup{
    transition:0.5s;
    z-index: 9999999;
    height:30vh;
    width:70vw;
    margin-left:-1vw;
    padding-top:1vh;
    padding-bottom:1vh;
    padding-left:2vw;
    padding-right:2vw;
    position:fixed;
    top:30vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 2vh;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.gameDescHeader{
    font-size:2.7vh;
    font-weight:bold;
    text-align:center;
}

/* End Result Scoreboard */
#endGameBoard{
    height:70vh;
    width:90vw;
    position:fixed;
    top:15vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 3.5vh;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition:0.5s;
    z-index: 9999999;
}
table#endResTab{
    height:90%;
    width:90%;
    border:0px dashed #333;
    border-collapse:collapse;
}
table#endResTab td{
    height:calc(100%/3);
    width:50%;
    border:0px dashed #000;
    text-align:center;
    font-weight:bold;
    font-size:3vh;
    user-select: none;
}
table#endResScrTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
}
table#endResScrTab td{
    height:50%;
    border:0px dashed blue;
    text-align:center;
}
.endResStars{
    transition:0.3s;
    height:3vh;
    animation: starburst 3s infinite;
}

@keyframes starburst{
    0% {height: 3vh;}
    50% {height: 4vh;}
    100% {height: 3vh;}
}

/* Shadle */
#shadleTargetCirc{
    height:20vh;
    width:20vh;
    border:0px solid #fff;
    border-radius:50%;
    position:absolute;
    top:15%;
    left:50%;
    margin-left: -10vh;
    z-index:50;
    transition:0.5s;
    display:flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align:center;
    color:#fff;
    font-size:2vh;
    font-weight:bold;
}
#shadleUserCirc{
    height:30vh;
    width:30vh;
    border:0px solid #fff;
    border-radius:50%;
    position:absolute;
    top:15%;
    left:50%;
    margin-left: -15vh;
    z-index:48;
    background:#666;
    transition: 0.5s;
}
/* Pallette */
table#shadleColorTab{
    height:90%;
    width:90%;
    border:0px dashed #333;
    border-collapse:collapse;
    transition:0.5s;
    margin:auto;
}
table#shadleColorTab td{
    height:calc(100%/4);
    width:calc(100%/5);
    text-align:center;
    border:0px dashed purple;
}
.shadleButts{
    width:0vh;
    height:0vh;
    transition:0.5s;
    border-radius:50%;
    margin:auto;  
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

/* Diagonadle */
table#diagonadleTab{
    border-collapse: collapse;
    height:80%;
    width:90%;
    margin:auto;
    opacity: 0;
}
table#diagonadleTab td{
    height:calc(90%/7);
    width:calc(90%/7);
    text-align:center;
    border:0px solid #333;
}
table#diagonadleTab td#diag_score{
    font-weight:bold;
    font-size:2.2vh;
    transition:0.5s;
}
.diagTiles{
    height:4vh;
    width:4vh;
    text-align:center;
    font-weight: bold;
    transition:0.5s;
    background:#E9CDA4;
    color:#000;
    border-radius:50%;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    border-bottom:3px solid #333;
    margin:auto;
    opacity:0;
    animation: flip 10s infinite;
    animation-delay: calc(.2s * var(--i))
}
@keyframes flip {
    0%,80% {
        transform: rotateY(360deg) 
    }
}

/* Jumblemap */
table#jumbletab{
    height:40vh;
    width:40vh;
    margin:auto;
    border-collapse: collapse;
    transition:0.5s;
}
table#jumbletab td{
    height:20%;
    width:20%;
    border:0px solid #efefef;
    text-align:center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jumbleTiles{
    height:90%;
    width:90%;
    text-align:center;
    margin:auto;
    /* transition:0.25s; */
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.movable-tile {
    cursor: grab;
    touch-action: none;
}

.movable-tile:hover {
    transform: scale(1.02);
}

.fixed-tile {
    cursor: default;
}

.dragging {
    cursor: grabbing;
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    /* Use transform for better mobile performance */
    will-change: transform;
}

.completed {
    transition:0.5s;
    background:#508991;
    color:#fff;
    cursor: default;
}
/* Backpack */
#backpackBack{
    height:0vh;
    width:0vw;
    border-radius:8px;
    background:#fff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.7);
    transition:0.25s;
    position:fixed;
    bottom:26%;
    right:15%;
    z-index:80;
}
table#backpackTab{
    height:95%;
    width:95%;
    position:absolute;
    top:2.5%;
    left:2.5%;
    border-collapse:collapse;
    transition:0.25s;
    opacity:0;
}
table#backpackTab td.topMenu {
    text-align: center;
    font-weight: bold;
    width: calc(100% / 3);
    height: 10%;
    color: #bdbdbd;
    border-bottom: 3px solid transparent;
    transition: color 0.5s ease, border-bottom 0.5s ease;
}

table#backpackTab td.topMenu.active {
    border-bottom: 3px solid #333;
    color: #000;
}

table#backpackTab td#backpackContents{
    text-align:center;
    font-weight:bold;
    height:90%;
    width:100%;
}

#toolsTabCont{
    width:100%;
    height:80%;
    margin-top:5%;
    opacity:0;
    transition:0.5s;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    text-align: center;
}
table#toolsTab{
    width:90%;
    border:0px dashed #333;
    margin:auto;
}
table#toolsTab td{
    min-width:20vw;
    border-bottom:0px solid #efefef;
    text-align:center;
}
table.toolsInnerTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
    transition:0.5s;
    border:0px dashed #333;
}
table.toolsInnerTab td.toolInnerCellImg{
    height:8vh;
    text-align:center;
    border:0px dashed #333;
}
table.toolsInnerTab td.toolInnerCellDesc{
    height:3vh;
    font-size:1.3vh;
    text-align:center;
    font-weight:bold;
    color:#333;
    opacity:0.9;
    border:0px dashed #333;
}
.toolImgs{
    width: auto;
    max-height: 5vh;
    max-width: 70%;
    display: block;
    margin:auto;
    object-fit: contain; /* or 'cover' if you want it to fill the cell */
}
/* How to play button */
#htpButt{
    height:4vh;
    width:4vh;
    transition:0.5s;
    position:fixed;
    top:3.5vh;
    left:15vw;
    display:flex;
    border-radius:50%;
    align-items: center;
    text-align: center;
    justify-content: center;
    vertical-align: middle;
    background:#666;
    color:#fff;
    font-size:2vh;
    font-weight:bold;
    user-select: none;
    transform:rotate(-180deg) scale(0);
    transform-origin: center center; /* <--- key */
}

/* Close Game Button */
#closeGameButt{
    height:6vh;
    width:10vw;
    position:fixed;
    top:2.5vh;
    left:-50vw;
    transition:0.5s;
    display:flex;
    align-items: center;
    vertical-align: middle;
}
#closeGameY{    
    height:1vh;
    width:10vw;
    max-width:50px;
    background:#666;
    border-radius:0.5vh 0.5vh 0.5vh 0.5vh;
    transition:0.2s;
    position:absolute;
}
#closeGameX{    
    height:1vh;
    width:10vw;
    max-width:50px;
    background:#666;
    border-radius:0.5vh 0.5vh 0.5vh 0.5vh;
    transition:0.2s;
    position:absolute;
}

/* Anagramble */
table#anagrambleTab{
    height:50%;
    width:80%;
    border-collapse: collapse;
    transition:0.5s;
    margin:auto;
}
table#anagrambleTab td{
    height:calc(100%/3);
    text-align:center;
}
table#anagrambleTab td#anagrambleScore{
    text-align:center;
    font-size:3vh;
    font-weight:bold;
}
.anagrambleTilesTop{
    height:70%;
    width:90%;
    text-align:center;
    margin:auto;
    transition:0.25s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.anagrambleTilesBottom{
    height:70%;
    width:90%;
    text-align:center;
    margin:auto;
    transition:0.25s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Found treasure box */
#treasureDisplay{
    transition:0.5s;
    z-index: 9999999;
    height:60vh;
    width:70vw;
    padding-top:1vh;
    padding-bottom:1vh;
    padding-left:2vw;
    padding-right:2vw;
    position:fixed;
    top:20vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 2vh;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
table#treasureDisplayTab{
    height:90%;
    width:90%;
    position:absolute;
    left:5%;
    top:5%;
    border-collapse:collapse;
    transition:0.5s;
}
table#treasureDisplayTab td#treasureDisplayImgCont{
    text-align: center;
    height:50%;
    width:100%;
}
#treasureDisplayImg{
    transition:0.5s;
    height:0;
    margin:auto;
}
table#treasureDisplayTab td#treasureDisplayTitle{
    text-align: center;
    font-weight:bold;
    font-size:3vh;
    width:100%;
    height:10%;
}
table#treasureDisplayTab td#treasureDisplayDesc{
    text-align: center;
    font-weight:bold;
    font-size:1.5vh;
    height:30%;
    width:100%;
}
table#treasureDisplayTab td.treasureDescButts{
    text-align: center;
    font-weight:bold;
    font-size:2vh;
    height:10%;
    width:50%;
    user-select: none;
    -moz-user-select: none;
}
/* Walking Boots Timer */
#timebox{
    position:fixed;
    text-align:center;
    font-size:2vh;
    font-weight:bold;
    height:4vh;
    width:17vw;
    bottom:26vh;
    left:-12vw;
    background:rgba(255,255,255,0);
    transition:0.5s;
    opacity:0;
}
/* Walking Boots directional pad */
table#walkingBootsDirectionsTab{
    position:fixed;
    bottom:-30vh;
    height:15vh;
    width:15vh;
    right: 7vw;
    border-collapse:collapse;
    transition:0.5s;
    z-index:95;
}
table#walkingBootsDirectionsTab td{
    height:5vh;
    width:5vh;
    border:0px dashed #fff;
    margin:auto;
    background:transparent;
    text-align:center;
}
.dirArrow{
    height:2vh;
    width:3vh;
    transition:0.5s;
    width:auto;
}
#dirInnerDot{
    height:2vh;
    width:2vh;
    background:#563C1A;
    border-radius:50%;
    margin:auto;
    transition:0.5s;
}
#dirBackCirc{
    position:fixed;
    height:16vh;
    width:16vh;
    background:#fff;
    opacity:0.5;
    border-radius:50%;
    z-index:94;
    transition:0.5s;
    bottom:-30vh;
    right:6vw;
}

/* Tool popup message */
#loadToolPopup{
    height:30vh;
    width:80vw;
    z-index:99;
    transition:0.5s;
    background:#fff;
    font-weight:bold;
    position:fixed;
    left:-80vw;
    top:35vh;    
    border-radius:5px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}
table#toolPopupTable{
    height:100%;
    width:100%;
    border-collapse: collapse;
}
table#toolPopupTable td{
    height:50%;
    width:100%;
    text-align:center;
    font-size:3vh;
    font-weight:bold;
}
#toolPopupImg{
    height:10vh;
    margin:auto;
    width:auto;    
    display: inline-block;
    animation: shakeZoom 0.8s infinite ease-in-out;
    -webkit-animation: shakeZoom 0.8s infinite ease-in-out;
    -moz-animation: shakeZoom 0.8s infinite ease-in-out;
    -ms-animation: shakeZoom 0.8s infinite ease-in-out;
    -o-animation: shakeZoom 0.8s infinite ease-in-out;
}
@keyframes shakeZoom {
  0%   { transform: translate(0px, 0px) scale(1); }
  20%  { transform: translate(1px, -1px) scale(1.02); }
  40%  { transform: translate(-1px, 1px) scale(1.01); }
  60%  { transform: translate(1px, 1px) scale(1.03); }
  80%  { transform: translate(-1px, -1px) scale(1.01); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* Gradientle */
table#gradientleTab{
    width:95%;
    height:50%;
    border-collapse: collapse;
    transition:0.5s;
    border:0px dashed #333;
    margin:auto;
}
table#gradientleTab td{
    height:100%;
    width:10%;
    text-align:center;
    border:0px dashed #333;
    position:relative;
}
.gradientleDivsNaN{
    transition:0.5s;
    margin:auto;
    opacity:0;
    position:absolute;
    width:90%;
    height:0%;
    border-radius:5px;
    top:5%;
}
.gradientleDivs{
    transition:0.5s;
    margin:auto;
    opacity:0;
    position:absolute;
    width:90%;
    height:0%;
    border-radius:5px;
}
#gradiv{
    height:50%;
    width:90%;
    border-radius:20px 20px 20px 20px;
    transition:0.5s;
    margin:auto;
}

/* Speech bubble for character */
.leaflet-tooltip.speech-bubble {
    background-color: white;
    color: #000;
    border-radius: 10px;
    padding: 2vh;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 2vh;
    font-weight:bold;
    font-family: 'Outfit'; /* change this to your preferred font */
    position: relative;
    width: 30vw;
    max-width: 80vw; /* fallback for small screens */
    white-space: normal; /* allow line breaks */
    word-wrap: break-word;
    text-align: center;
    transform: translateY(-10px); /* nudge it slightly more upward */
}

.leaflet-tooltip.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* Contact form */
table#contactTab{
    height:80%;
    width:90%;
    position:absolute;
    left:5%;
    top: 5%;
    border-collapse: collapse;
    opacity:0;
    transition:0.5s;
    font-family: 'Outfit';
    font-weight:bold;
    border:0px dashed #333;
}
table#contactTab td{
    border:0px dashed #333;
    text-align:center;
}
table#contactTab td#contactTabTitle{
    font-size:2.5vh;
    height:10%;
}
table#contactTab td#contactMsgCont{
    font-size:2.5vh;
    height:60%;
}
#contactTabMsgBox{
    height:90%;
    width:90%;
    margin:auto;
    resize:none;
    border:1px solid #666;
    border-radius:5px;
    padding:1%;
    font-family:'Outfit';
    font-size:2vh;
    font-weight:bold;
    outline:none;
}
table#contactTab td#contactButtCont{
    font-size:2.5vh;
    height:60%;
}
#contactButt{    
    background:#666;
    height:5vh;
    width:60%;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.5s;
}

/* Flipple */
table#flippleTab{
    height:30vh;
    width:90%;
    opacity:0;
    transition:0.5s;
    border-collapse: collapse;
    margin:auto;
}
table#flippleTab td{
    width:calc(100%/8);
    height:100%;
    border:0px dashed #333;
    text-align:center;
}
.flippleTiles{    
    height:5vh;
    width:5vh;
    text-align:center;
    margin:auto;
    transition:0.5s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:2.5vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Magnifying Glass */
#magnifyingGlass{
    height:20vh;
    width:auto;
    transition:0.5s;
    position:fixed;
    opacity:0;
    top:20vh;
    left:-130vw;
    animation:mgMove 5s linear infinite;
    -moz-animation: mgMove 5s linear infinite;
    -ms-animation: mgMove 5s linear infinite;
    -o-animation: mgMove 5s linear infinite;
    animation: mgMove 5s linear infinite;
}
@keyframes mgMove{
    0%,100%{
        left:25vw;
        top:20vh;
    }
    25%{
        left:60vw;
        top:20vh;
    }
    50%{
        left:60vw;
        top:60vh;
    }
    75%{
        left:25vw;
        top:60vh;
    }
}
/* Can't find you message */
#nonLocationMsg{    
    /* 1. Allows the box to expand if text is long */
    height: auto; 
    
    /* 2. Keeps it at least this big (preserves your original look for short text) */
    min-height: 30vh; 
    
    width: 78vw;
    position: fixed;
    top: 40vh;
    left: -50vw;
    transition: 0.5s;
    
    padding-top: 1vh;
    padding-bottom: 1vh;
    padding-left: 1vw;
    padding-right: 1vw;
    
    background: #fff;
    font-weight: bold;
    font-size: 2vh;
    text-align: center;
    
    /* Flexbox Settings */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 3. Fixes the "split column" issue by stacking content vertically */
    flex-direction: column; 
    
    z-index: 80;
    border-radius: 10px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

#colorfleBigShade {
    height: 30vh;
    width: 80%;
    display: flex; /* Enable flexbox */
    justify-content: center; /* Horizontal centering */
    flex-direction: column;  
    align-items: center; /* Vertical centering */
    text-align: center; /* Center multiline text */
    font-weight: bold;
    transition: 0.5s;
    border-radius: 5px;
    margin: auto;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    padding-right:5%;
    padding-left:5%;
    opacity:0;
}
#colorfleTitle{
    font-size:3vh;
}
#colorfleDesc{
    font-size:1.8vh;
}
#colorflePercent{
    font-size:2vh;
}
#colorfleGuessSpan{
    font-size:1.7vh;
}

/* Shady Behaviour */
table#sbTab{
    height:70%;
    width:90%;
    border-collapse: collapse;
    transition:0.5s;
    opacity:0;
    margin:auto;
}
table#sbTab td{
    height:calc(100%/7);
    width:calc(100%/7);
    text-align:center;
    border:0px dashed #bdbdbd;
}
.sbCircles{
    height:0vh;
    width:0vh;
    transition:0.5s;
    margin:auto;
    border-radius:50%;
}

/* Stopple */
#stoppleTimerBox{
    height:40%;
    width:90%;
    border:0px solid #563C1A; 
    opacity:0;
    border-radius:5px; 
    position:absolute;
    top:15%;
    left:5%;
    transition:0.5s;
    font-size:3vh;
    font-weight:bold;
    text-align:center;
    display:flex;
    justify-content: center;
    align-items:center;
    vertical-align:middle;
    white-space: pre-line;

}
#stoppleTimerButt{
    background:#508991;
    height:10vh;
    width:60%;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.5s;
    opacity:0;
    white-space: pre-line;
}

/* Joe DD = to delete later */
#joeDD{
    font-family: 'Outfit';
    outline:none;
    position:fixed;
    left:-100vw;
    top:30vh;
    height:10vh;
    width:80vw;
    font-size:2vh;
    font-weight:bold;
    border-radius:5px;
    transition:0.5s;
    background:#fff;
    color:#333;
}

/* Acknowledgement board */
#ackBoard{
    position:fixed;
    top:0;
    left:0;
    opacity:1;
    background:#fff;
    color:#333;
    height:100%;
    width:100%;
    z-index:999;
    transition:0.5s;
}
table#ackTab{
    opacity: 0;
    height:90%;
    width:90%;
    margin:auto;
    position:absolute;
    top:1%;
    left:5%;
    border:0px dashed #333;
    transition:0.5s;
    border-collapse: collapse;
}
table#ackTab td{
    width:100%;
    border:0px dashed #333;
    font-size:1vh;
    font-weight:bold;
}
table#ackTab td#ackTabLogoCell{
    height:20%;
    text-align:center;
}
#ackTabImg{
    height:15vh;
    margin:auto;
}
table#ackTab td.ackTabTxtCells{
    text-align: justify;
    vertical-align: middle;
    font-size:2vh;
    height:60%;
}
/* table#ackTab td */
table#ackTab td.ackTabButtCells{
    /* height:calc(100%/16); */
    text-align: center;
    height:10%;
}
.ackChecks{
    height:3vh;
    width:3vh;
}
#ackSubmit{    
    background:#666;
    height:5vh;
    width:60%;
    border:0px;
    border-radius:5px;
    border-bottom:5px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none;
}
/* Squaredle */
table#squaredleTab{
    position:absolute;
    top:5%;
    left:5%;
    height:50%;
    width:90%;
    border:0px dashed #333;
    border-collapse: collapse;
    transition:0.5s;
}
table#squaredleTab td{
    height:25%;
    width:25%;
    border:0px dashed #333;
    text-align:center;    
}
.squaredleTiles{    
    height:80%;
    width:80%;
    text-align:center;
    margin:auto;
    transition:transform 0.2s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: grab;
    touch-action: none;
}
.dragging {
  opacity: 1;
  cursor: grabbing;
  position: fixed;
  z-index: 1000;
}
.squaredleTiles.dragging {
    opacity: 1;
    z-index: 1000;
}
.squaredleTilesFixed{    
    height:80%;
    width:80%;
    text-align:center;
    margin:auto;
    transition:transform 0.2s;
    background:#6DAB7C;
    color:#fff;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: grab;
    touch-action: none;
}

/* Coins */
#coinIcon{
    position:absolute;
    top:25%;
    left:-20vw;
    height:4vh;
    transition:0.5s;
    opacity:0.5;
    z-index:2;
}
#numCoins{
    position:absolute;
    top:26%;
    left:17%;
    border:0px dashed red;
    /* background:rgba(255,255,255,0.5); */
    transition:0.5s;
    font-weight:bold;
    opacity:0;
    z-index:3;
    font-size:3vh;
    text-shadow: 1.5px 1.5px 3px white;
}

/* Welcome page */
#welcomeBackground{
    position:fixed;
    top:0;
    height:100%;
    width:100%;
    background:
        linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.6), rgba(255,255,255,0)), /* white 50% cover */
        url("images/nz_compressed.jpg");
    background-size: cover;       /* scales image to cover the whole div */
    background-position: center;  /* keeps image centred */
    background-repeat: no-repeat; /* prevent tiling */
    z-index: 1;
}
#welcomeLogo{
    z-index:2;
    position:fixed;
    top:5%;
    left:50%;
    transform: translate(-50%,0%);
    margin:auto;
    height:15%;
}
table#welcomeTab{
    z-index:3;
    position:fixed;
    top:20%;
    left:50%;
    transform: translate(-50%,0%);
    border:0px dashed #333;
    height:70%;
    width:80%;
    border-collapse: separate;
    overflow: hidden;
    transition:0.5s;
    /* background:rgba(255,255,255,0.5);
    border-radius:30px; */
}
table#welcomeTab td{
    text-align:center;
    height:calc(100%/3);
    width:50%;
    font-size:3vh;
    font-weight:bold;
}
#welcomeFooter{
    z-index:3;
    position:fixed;
    bottom:2%;
    left:50%;
    transform: translate(-50%,0%);
    font-weight:bold;
    text-shadow: 1.5px 1.5px 3px white;
}
#welcomeCTAButt{
    width:80%;
    max-width:400px;
    background:#508991;
    color:#fff;
    height:6vh;
    font-size:2vh;
    display:flex;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    margin:auto;
    /* border-radius: 9999px; */
    border-radius:5px;
    border-bottom:5px solid #333;
    user-select: none;
}
#welcomeCTAButt2{
    width:80%;
    max-width:400px;
    background:#508991;
    color:#fff;
    height:6vh;
    font-size:2vh;
    display:flex;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    margin:auto;
    /* border-radius: 9999px; */
    border-radius:5px;
    border-bottom:5px solid #333;
    user-select: none;
}
#welcomeVid{
    width:60%;
    max-width:250px;
    z-index:3;
    border-radius:20px;
}

/* Triple Flipple */
table#tripFlipTab{
    height:80%;
    width:80%;
    margin:auto;
    border-collapse: collapse;
    transition:0.5s;
    border:0px solid #efefef;
    opacity:0;
}
table#tripFlipTab td{
    height:calc(100%/6);
    width:calc(100%/6);
    border:0px solid #efefef;
    text-align:center;
}
.tripFlipTiles{
    height:70%;
    width:90%;
    text-align:center;
    margin:auto;
    transition:0.5s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.tripFlipButt{
    height:70%;
    width:90%;
    text-align:center;
    margin:auto;
    transition:0.5s;
    background:#6DAB7C;
    color:#fff;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:3vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Rotatle */
table#rotatleTab{
    width:90%;
    height:45%;
    position:absolute;
    top:10%;
    left:5%;
    border:0px dashed #333;
    border-collapse: collapse;
    transition:0.5s;
    opacity:0;
}
table#rotatleTab td{
    height:calc(100%/9);
    width:calc(100%/9);
    text-align:center;
    font-weight:bold;
    border:0px solid #333;
}
.rotatleTiles{
    height:90%;
    width:90%;
    min-height:4vh;
    text-align:center;
    margin:auto;
    transition:0.25s;
    background:#E9CDA4;
    color:#000;
    font-weight:bold;
    border-radius:5px;
    border-bottom:4px solid #666;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    font-size:1.8vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.4s ease; /* smooth sliding */
}




/* Desktop page */
table#desktopTab{
    position:fixed;
    left:50%;
    margin-left:-350px;
    width:700px;
    max-width: 700px;
    height:95%;
    top:2.5%;
    border:0px dashed #333;
    border-collapse: collapse;
}
table#desktopTab td{
    border:0px dashed #333;
}
table#desktopTab td#desktopImgTD{
    height:10%;
    text-align:center;
}
#desktopLogo{
    height:8vh;
    margin:auto;
} 
table#desktopTab td#desktopMsgTD{
    height:15%;
    font-weight:bold;
    text-align:center;
}
table#desktopTab td#desktopGameTD{
    height:50%;
    position:relative;
}
#desktopGameCons{
    width:95%;
    height:95%;
    text-align:center;
    margin:auto;
    transition:0.5s;
}
table#desktopTab td#desktopAddTD{
    height:15%;
    text-align:center;
    color:#666;
    font-weight:bold;
    font-size:1.5vh;
}
table#desktopTab td#desktopFooterTD{
    height:5%;
    font-weight:bold;
    text-align:center;
    font-size:1vh;
}
/* Ball game */
table#desktopColorTimeBopTab{
    height:100%;
    width:100%;
    transition:0.5s;
    border-collapse:collapse;
    opacity:0;
}
table#desktopColorTimeBopTab td{
    text-align:center;
    height:20%;
    width:calc(100%/5);
    border:0px dashed blue;
    font-size:1.8vh;
    transition:0.5s;
}
table#desktopColorTimeBopTab td#dctbDesc{
    height:40%;
}
table#desktopColorTimeBopTab td.dctbTimes{
    text-align:center;
    font-weight:bold;
    font-size:2vh;
    transition:0.5s;
}
table#desktopColorTimeBopTab td#dctbStartButtCont{
    transition:0.5s;
}
.colorTimeBopBall{
    margin:auto;
    height:0vh;
    width:0vh;
    color:#fff;
    display:flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    border-radius:50%;
    user-select: none;
    font-size:0vh;
    font-weight:bold;
    transform: rotate(180deg);
    transition:0.5s;
    border-bottom:3px solid #bdbdbd;
}
.colorTimeBopBall:hover{
    cursor:pointer;
    opacity:0.5;
    position:relative;
    top:3px;
    border-bottom:0px;
}
#dctbStartButt{
    height:70%;
    width:60%;
    background:#508991;
    border:0px;
    border-radius:9999px;
    border-bottom:3px solid #333;
    color:#fff;
    font-family: 'Outfit';
    font-weight:bold;
    font-size:2vh;
    margin:auto;
    transition:0.5s;
    display:flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    user-select: none; 
    transition:0.5s;
    outline:none; 
}
#dctbStartButt:hover{
    cursor:pointer;
    opacity:0.5;
    position:relative;
    top:3px;
    border-bottom:0px;
}
.desktopStars{
    transition:0.5s;
    height:0vh;
}
#desktopPlayAgainLink{
    font-weight:bold;
    color:#508991;
    transition:0.5s;
    animation: playAgainLure 3s infinite;
}
#desktopPlayAgainLink:hover{
    cursor:pointer;
    opacity:0.9;
}

@keyframes playAgainLure{
    0% {font-size: 1.8vh;}
    50% {font-size: 1.82vh;}
    100% {font-size: 1.8vh;}
}
/* Deleted Account Page */
table#deletedTab{
    width:100%;
    height: 100%;
    position:fixed;
    top:0;
    left:0;
}
table#deletedTab td#topCont{
    height:15%;
    text-align:center;
}
table#deletedTab td#middleCont{
    height:70%;
    text-align:center;
    font-size:2vh;
    font-weight:bold;
}
#sadStu{
    height:40vh;
    margin:auto;
}
table#deletedTab td#bottomCont{
    height:70%;
    text-align:center;
    font-size:1.5vh;
    font-weight:bold;
}

/* Translatle */
table#translatleTab{
    height:90%;
    width:90%;
    margin:auto;
    border-collapse: collapse;
    transition:0.5s;
    opacity:0;
}
table#translatleTab td{
    text-align:center;
}
table#translatleTab td#translatleWord{
    font-size:4vh;
    font-weight:bold;
    height:50%;
    color:#6665dd;
    font-style: italic;
}
table#translatleTab td#translatleLingo{
    font-size:2vh;
    font-weight:bold;
    color:#666;
    height:10%;
}
table#translatleTab td#translatleOptionsCont{
    height:40%;
}
table#translatleOpTab{
    border-collapse: collapse;
    transition:0.5s;
    height:90%;
    width:100%;
    margin-top:10%;
}
table#translatleOpTab td{
    height:50%;
    width:50%;
    user-select: none;
    font-size:2vh;
    font-weight:bold;
    text-align:center;
    transition:0.5s;
}

/* Cool Alert */
#coolAlertBoard{
    transition:0.5s;
    z-index: 9999999;
    height:30vh;
    width:70vw;
    margin-left:-1vw;
    padding-top:1vh;
    padding-bottom:1vh;
    padding-left:2vw;
    padding-right:2vw;
    position:fixed;
    top:30vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 2vh;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    font-weight:bold;
}

/* Lightbulb for hints */
#lightbulb{
    transition:0.5s;
    position:fixed;
    right:18vw;
    top:-10vh;
    height:4vh;
}
#hintTitle{
    font-size:3vh;
    color:#6665dd;
}
/* number of stars */
#numStars{
    position:absolute;
    top:26%;
    right:17%;
    border:0px dashed red;
    /* background:rgba(255,255,255,0.5); */
    transition:0.5s;
    font-weight:bold;
    opacity:0;
    z-index:3;
    font-size:2vh;
    text-shadow: 1.5px 1.5px 3px white;
}
#starIcon{
    position:absolute;
    top:25%;
    right:10vw;
    height:4vh;
    transition:0.5s;
    opacity:0;
    z-index:2;
}
/* Unlockables Table */
#unlockablesTabCont{
    position:fixed;
    top:20%;
    right:-100%;
    transition:0.5s;
    overflow-y: scroll;
    border-radius:5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index:99;
    height:60%;
    width:80%;
    text-align:center;
    background:#fff;
    border-radius:5px;
    padding:1%;
}
table#unlockablesTab{
    height:100%;
    min-height:100%;
    width:100%;
    border-collapse: collapse;
    transition:0.5s;
    position: relative;
    table-layout: fixed; 
}
table#unlockablesTab td{
    border:0px dashed #bdbdbd;
    height:calc(100%/3);
    width:calc(100%/3);
    text-align:center;
}
table#unlockablesTab td#topCell{
    font-weight:bold;
    font-size:2.5vh;
    height:5vh;
}
table#unlockablesTab td#closeMsgCell{
    color:#bdbdbd;
    font-size:1.5vh;
    height:3vh;
}
table.unlockablesSubTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
    margin:auto;
    position: relative;
    table-layout: fixed; 
}
table.unlockablesSubTab td.unlockablesSubTabBig{
    height:80%;
    width:100%;
    text-align:center;
}
table.unlockablesSubTab td.unlockablesSubTabSmall{
    height:20%;
    width:100%;
    text-align:center;
    font-weight:bold;
    font-size:1.2vh;
}
.unlockablesImg{
    height:3vh;
    max-width:50%;
}
.unlockablesImgPixelMan{
    height:6vh;
}
.unlockablesTabStars{
    height:2vh;
}

/* Genie */
#geniePopup{
    transition:0.5s;
    z-index: 9999999;
    height:30vh;
    width:60vw;
    margin-left:-1vw;
    padding-top:1vh;
    padding-bottom:1vh;
    padding-left:2vw;
    padding-right:2vw;
    position:fixed;
    top:30vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 2vh;
    font-weight:bold;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#genieDD{
    height:6vh;
    width:90%;
    border:0px solid transparent;
    font-weight:bold;
    text-align: left;
    margin:auto;
    transition:0.5s;
    color:#333; 
    font-family: 'Outfit';
    outline:none;
    font-size:2vh;
}

/* Unlocked Reward Popup */
#unlockedReward{    
    transition:0.5s;
    z-index: 9999999;
    height:60vh;
    width:80vw;
    margin-left:-1vw;
    padding-top:1vh;
    padding-bottom:1vh;
    padding-left:2vw;
    padding-right:2vw;
    position:fixed;
    top:20vh;
    left:-100vw;
    background:#fff;
    color:#333;
    font-size: 2vh;
    font-weight:bold;
    text-align:center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    display: flex;
    flex-direction: column; /* THIS is the fix */
    border:0px solid #000;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
table#unlockedRewardsTab{
    height:90%;
    width:90%;
    margin-top:5%;
    border-collapse: collapse;
    border:0px dashed #333;
    transition:0.5s;
}
table#unlockedRewardsTab td{
    width:100%;
    border:0px dashed #333;
    text-align:center;
    font-size:2vh;
    font-weight:bold;
}
table#unlockedRewardsTab td#unlockedRewardTitle{
    height:15%;
}
table#unlockedRewardsTab td#unlockedRewardImgCont{
    height:45%;
}
table#unlockedRewardsTab td#unlockedRewardDescCont{
    height:40%;
}
#unlockedRewardImg{
    width: auto;
    height:80%;
    max-height: 80%;
    max-width: 70%;
    display: block;
    margin:auto;
    object-fit: contain; /* or 'cover' if you want it to fill the cell */
}
#unlockedRewardCloseMsg{
    color:#bdbdbd;
    font-size:1.5vh;
}

/* Matchle */
#matchleBigBall{
    height:26vh;
    width:26vh;
    border-radius:50%;
    transform:scale(0);
    opacity:1;
    margin:auto;
    position:absolute;
    top:10%;
    left:50%;
    margin-left:-13vh;
}
#matchleBigButt{
    height:0;
    width:0;
    transition:0.5s;
    opacity:1;
    font-size:0;
    color:#fff;
    text-align:center;
    margin:auto;
    display:flex;
    vertical-align: middle;
    align-items: center;
    justify-content: middle;
    border:0px;
    border-radius:10px;
    border-bottom:10px solid #888;
}

/* How To Play Pro */
#htppContBack{
    z-index:998;
    opacity:0;
    transition:0.5s;
    height:100%;
    width:100%;
    position:fixed;
    top:0;
    left:0;
    background:#000;
}
#htppCont{
    background:#fff;
    z-index:999;
    height:60vh;
    width:80vw;
    position:fixed;
    top:15vh;
    left:-110vw;
    transition:0.5s;
    overflow-x: hidden;
    /* overflow-x:scroll;    
    -ms-overflow-style: none;  /* IE and Edge */
    /* scrollbar-width: none;  Firefox */
    /* scroll-behavior: smooth;  */
    display:flex;
    border-radius:20px;
}
table#htppTab{
    height:90%;
    width:800vw;
    border-collapse: collapse;
    transition:0.5s;
    table-layout: fixed;
    margin-top:5%;
    position:relative;
    left: 0vw;
}
table#htppTab td{
    width:80vw;
    height:100%;
}
table.htppInnerTab{
    height:100%;
    width:100%;
    border-collapse: collapse;
    transition:0.5s;
}
table.htppInnerTab td.htppInnerTabLeftCont, td.htppInnerTabRightCont{
    text-align:center;
    font-weight:bold;
    font-size:2vh;
    height:5%;
    width:50%;
}
table.htppInnerTab td.htppInnerTabMidCont{
    text-align:center;
    font-weight:bold;
    font-size:2vh;
    height:95%;
    width:94%;
    padding-right:3%;
    padding-left:3%;
}
.htppImgs{
    margin:auto;
    height:5vh;
    width:auto;
    transition:0.5s;
}
#htppStu, #htppWalkingStu, #htppStuWoah, #htppChar, #htppJumpingStu{
    height:20vh;
}
#htppChest, #htppCoin{
    height:8vh;
}
#htppStar{
    height:6vh;
    transition:0.3s;
    animation: htppstarburst 3s infinite;
}
@keyframes htppstarburst{
    0% {height: 6vh;}
    50% {height: 4vh;}
    100% {height: 6vh;}
}

/* Compassle */
#compass{
    height:30vh;
    width:30vh;
    border-radius:50%;
    transition:0.5s;
    background:#508991;
    position:absolute;
    left:50%;
    margin-left:-15vh;
    top:12vh;
    opacity:0;
    border-bottom:10px solid #888;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    font-size:0;
    color:#fff;
    font-weight:bold;
}
.needle {
  width: 2vh;
  height: 14vh;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  position:absolute;
  top:13vh;
  left:50%;
  margin-left:-1vh;
  transition:0.5s;
  opacity:0;
  transform-origin: bottom;
}
#userNeedle{
  background: #fff;
}
#ghostNeedle{
  background: #bdbdbd;
}
#compassButt{
    height:20vh;
    width:50vw;
    padding-left:3vw;
    padding-right:3vw;
    transition:0.5s;
    opacity:0;
    font-size:2vh;
    color:#fff;
    text-align:center;
    margin:auto;
    display:flex;
    vertical-align: middle;
    align-items: center;
    justify-content: middle;
    border:0px;
    border-radius:10px;
    border-bottom:10px solid #888;
    background: #6665dd;
}

/* Multi Translatle */
table#multitranslatleTab{
    height:80%;
    width:95%;
    margin:auto;
    border-collapse: collapse;
    transition:0.5s;
}
table#multitranslatleTab td{
    height:calc(100%/4);
    width:calc(100%/4);
    border:0px dashed #333;
    text-align:center;
}
.multitranslatleDivs{
    height:90%;
    width:90%;
    border-radius:10px;
    background:#efefef;
    margin:auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-size: calc(0.7 * min(2vh, 3.8vw));
    color:#333;
    transition:0.5s;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Game too wide div */
#rotationBoard{
    position:fixed;
    z-index:999999999;
    height:100vh;
    width:100vw;
    top:0;
    left:0;
    background:#fff;
    display:none;
    text-align:center;
    font-weight:bold;
    font-size:3vh;
}
#rotationImg{
    height:40vh;
    width:auto;
    margin:auto;
    margin-top:5vh;
}

/* Daily Games board */
#dailyGamesBack{
    position:fixed;
    top:0;
    left:103vw;
    transition:0.5s;
    background:#fff;
    height:100vh;
    width:100vw;
    z-index:999;
    overflow-y:scroll;    
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}
