html, body{
    font-family:'Outfit';
    background:#fff;
    margin:0;
    padding:0;
}

/* Desktop Adaptation */
@media screen and (min-width: 600px) {
    html {
        background: #f0f0f0; /* Neutral background color for desktop */
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        overflow: hidden;
    }

    body {
        width: 450px; /* Standard mobile width */
        height: 90vh; /* Scaled height */
        max-height: 850px;
        position: relative;
        box-shadow: 0 0 50px rgba(0,0,0,0.2);
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
    }

    #matchleBigButt{
        width: 60% !important;
    }

    /* Adjust fixed elements to stay within the 'mobile' body */
    table#bastion, #gameBack, #dailyGamesBack, #dailyGamesTab {
        position: absolute !important;
        width: 100% !important;
    }

    #endGameBoard{
        position: absolute !important;
        width:90% !important;
    }
    #endGameBoard[style*="5vw"] {
        left: 5% !important;
    }

    table#gameTab{
        position: absolute !important;
        width: 100% !important;
        height:90% !important;
    }

    .gameDescPopup{
        position: absolute !important;
        width:70% !important;
    }
    .gameDescPopup[style*="14vw"] {
        left: 14% !important;
    }
        /* ------- The js needs to load it by % not vw */
    

    #menuBox, #closeGameButt, .shareButtCircs{
        position:absolute !important;
    }

    #shareButtCircTop{
        right:10% !important;
    }

    #shareButtCircMiddle{
        right:16% !important;
    }

    #shareButtCircBottom{
        right:10% !important;
    }

    #lightbulb{
        position: absolute !important;
        right:24% !important;
    }

    #htpButt{
        position:absolute !important;
        left:23% !important;
    }

    .keyButts{
        position:absolute !important;
        width: 8.5% !important;
        height:4% !important;
        font-size:1.7vh !important;
    }
    #spaceBar{
        position:absolute !important;
        width:70% !important;
        height:4% !important;
    }

    /* Message to scroll - Not working*/
    #floatingArrowDown{
        position:absolute !important;
        width:40% !important;
    }

    /* Menu Bars */
    #menuBarTop{
        position:absolute !important;
        top:3vh;
        right:9% !important;
    }
    #menuBarMiddle{
        position:absolute !important;
        top:4.5vh;
        right:9% !important;
    }
    #menuBarBottom{
        position:absolute !important;
        top:6vh;
        right:9% !important;
    }

}


/* 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%;
}


/* 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:0px 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:8vh;
    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;
}
/* Share buttons */
.shareButtCircs{
    height:1.5vh;
    width:1.5vh;
    background:#666;
    border-radius:50%;
    transition:0.5s;
    transform: scale(0);
}
#shareButtCircTop{
    position:fixed;
    top:2.1vh;
    right:5.5vw;
}
#shareButtCircMiddle{
    position:fixed;
    top:3.9vh;
    right:11.7vw;
}
#shareButtCircBottom{
    position:fixed;
    top:5.7vh;
    right:5.5vw;
}


/* 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:70%;
    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;
}

/* 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;
}


/* Contact form */
table#contactTab{
    height:90%;
    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#contactTabMsgCont{
    font-size:2.5vh;
    height:70%;
}
#contactTabMsgBox{
    height:90%;
    width:96%;
    margin:auto;
    resize:none;
    border:1px solid #666;
    border-radius:5px;
    padding:1%;
    font-family:'Outfit';
    font-size:1.8vh;
    font-weight:bold;
    outline:none;
}
table#contactTab td#contactButtCont{
    font-size:2.5vh;
    height:20%;
}
#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;
}

/* Colorfle */
#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:-100vw;
    opacity:1;
    background:#fff;
    color:#333;
    height:100%;
    width:100%;
    z-index:999;
    transition:0.5s;
}
table#ackTab{
    opacity: 1;
    height:80%;
    width:90%;
    margin:auto;
    position:absolute;
    top:10%;
    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:10vh;
    margin:auto;
}
table#ackTab td#ackTabTxtCell{
    font-size:2vh;
    text-align:center;
    height:60%;
}
table#ackTab td#ackTabButtCell{
    height:20%;
    text-align:center;
}
#ackTabButt{
    height:6vh;
    width:80%;
    font-size:2.4vh;
    text-align:center;
    background:#6665dd;
    color:#fff;
    font-weight:bold;
    margin:auto;
    transition:0.5s;
    border-radius:5px;
    display:flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

/* 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:18%;
    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;
}


/* 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:15vh;
    left:103vw;
    transition:0.5s;
    background:#fff;
    border:0px dashed #000;
    border-radius:5px;
    height:60vh;
    width:100vw;
    z-index:10;
    overflow-y:scroll;    
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    text-align:center;
}
/* This class adds both the bottom & top shadow */
.scrolling{
    box-shadow: inset 0 -15px 15px -15px rgba(0, 0, 0, 0.5),
                inset 0 15px 15px -15px rgba(0, 0, 0, 0.5);
}
/* This class only adds the bottom shadow */
.unscrolled{
    box-shadow: inset 0 -15px 15px -15px rgba(0, 0, 0, 0.5);
}
/* This class only adds the top shadow */
.scrolled-down {
    box-shadow: inset 0 15px 15px -15px rgba(0, 0, 0, 0.5);
}
table#dailyGamesTab{
    border:0px dashed #333;
    margin:auto;
    width:90vw;
    border-collapse: collapse;
}
table#dailyGamesTab td.gameTitles{
    width:80%;
    height:10vh;
    border-top:1px solid #bdbdbd;
}
.dailyGamesBoxes{
    border:0px solid #bdbdbd;
    border-radius:5px;
    height:90%;
    width:85%;
    margin:auto;
    font-weight:bold;
    text-align:left;
    padding-left:5%;
    /* justify-content: left;
    align-items: center; */
    vertical-align: middle;
    display:flex;
    flex-direction: column; /* This forces the vertical stack */
    justify-content: center; /* This centers the stack vertically */
    align-items: flex-start; /* This keeps text aligned to the left */
}
.completedDailyGamesBoxes{
    border:0px solid #bdbdbd;
    border-radius:5px;
    height:90%;
    width:85%;
    margin:auto;
    font-weight:bold;
    text-align:left;
    padding-left:5%;
    vertical-align: middle;
    text-decoration: line-through;
    display:flex;
    flex-direction: column; /* This forces the vertical stack */
    justify-content: center; /* This centers the stack vertically */
    align-items: flex-start; /* This keeps text aligned to the left */
    color:#888;
}
table#dailyGamesTab td.gameSymbols{
    width:20%;
    height:8vh;
    text-align:right;
    border-top:1px solid #bdbdbd;
}
.dailyGameIcons{
    height:80%;
    margin:auto;
}
.miniGameDescs{
    font-size:1.3vh;
    color:#666;
}
/* Scroll down arrow */
#floatingArrowDown{
    position:fixed;
    top:70vh;
    right:3vw;
    height:4vh;
    width:30vw;
    opacity:0.6;
    background:#055270;
    color:#fff;
    border-radius:5px;
    z-index:20;
    font-size:1.5vh;
    font-weight:bold;
    text-align: center;
    display:flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    transition:0.5s;
    /* animation: arrowfloat 10s infinite; */
}
@keyframes arrowfloat{
    0% {background: #E59EDD;}
    33% {background: #34BFC2;}
    66% {background: #61CBF4;}
    100% {background: #E59EDD;}
}
/* allGamesComplete */
#allGamesComplete{
    position:fixed;
    top:0;
    left:-105vw;
    height:100%;
    width:100%;
    background:rgba(255,255,255,0.98);
    z-index:99;
    transition:0.5s;
}
table#allGamesCompTab{
    height:90%;
    width:80%;
    position:relative;
    top: 5%;
    left:10%;
    border:0px dashed #333;
}
table#allGamesCompTab td#allGamesCompLogoTD{
    height:20%;
    width:100%;
    text-align:center;
}
#gamesCompLogo{
    height:10vh;
}
table#allGamesCompTab td#agcMsg{
    height:40%;
    width:100%;
    text-align:center;
    font-size:2vh;
    font-weight:bold
}
table#allGamesCompTab td.agcTDs{
    height:calc(35%/3);
    width:100%;
    text-align:center;
    font-size:2vh;
    font-weight:bold;
    border:0px dashed blue;
}
table#allGamesCompTab td#agcCopy{
    height:5%;
    width:100%;
    text-align:center;
    font-size:1vh;
}
#agcHappystar{
    height:10vh;
}

/* Ad Container */
#adBox{
    position:absolute;
    border:1px dashed #555;
    height:50px;
    width:320px;
    top:78vh;
    left:calc((100% - 320px) / 2);
    text-align:center;
    display:flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    color:#555;
}