* {
    box-sizing: border-box;
}
html,
body {
    padding: 0;
    margin: 0;
    height: 100dvh;
    overflow: hidden;
}

.red-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    z-index: 2000;
}

.nt-wrapper {
    width: 100dvw;
    height: 100dvh;
    background-color: #000000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.nt-progress-bar-cont {
    width: 45%;
    max-width: 250px;
    height: 7px;
    /* border : 1px solid red; */
    position: relative;
}

.nt-progress-bar {
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    border-radius: 3px;
    overflow: hidden;
    position: absolute;
}

.nt-progress {
    width: 1%;
    height: 100%;
    background-color: white;
    position: absolute;
}

.nt-ad-container {
    width: auto;
    height: auto;
    overflow: hidden;
    background-color: #ffffff;
    position: absolute;
    display: none;
    container-type: inline-size;
}

.nt-ad-container * {
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

.border {
    border: 1px solid #000;
    z-index: 999;
    pointer-events: none;
}

.hs {
    /*background-color: #ff000090;*/
    pointer-events: all;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.hs-bgclick {
    bottom: 0%;
    height: 8%;
    display: none;
}

.close-btn {
    display: none; /* comment this out on production */
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    right: 5px;
    color: #fff;
    border: 1px #fff solid;
    background-color: #000000;
    border-radius: 10px;
    text-align: center;
    pointer-events: all;
    line-height: 17px;
}
.crab {
    background: url("images/crab.png") no-repeat center center;
    background-size: contain;
}
.shoe {
    background: url("images/shoe.png") no-repeat center center;
    background-size: contain;
}
.s0 {
    background: url("images/s0.png") no-repeat center center;
    background-size: contain;
}
.s1 {
    background: url("images/s1.png") no-repeat center center;
    background-size: contain;
}
.s2 {
    background: url("images/s2.png") no-repeat center center;
    background-size: contain;
}
.s3 {
    background: url("images/s3.png") no-repeat center center;
    background-size: contain;
}
.s4 {
    background: url("images/s4.png") no-repeat center center;
    background-size: contain;
}
.s5 {
    background: url("images/s5.png") no-repeat center center;
    background-size: contain;
}

.a1,
.a2,
.a3,
.bg,
.copy,
.count,
.cta,
.dirt,
.endbg,
.endcopy,
.endlegal,
.endprod,
.endtag,
.food,
.game-bg,
.game-text,
.icon,
.legal,
.logo,
.text {
    max-width: 100%;
    background-size: 100%;
    background-image: url("images/sprite.png");
}

.a1 {
    background-position: 0 0%;
    background-size: 100%;
}
.a2 {
    background-position: 0 5.26%;
    background-size: 100%;
}
.a3 {
    background-position: 0 10.53%;
    background-size: 100%;
}
.bg {
    background-position: 0 15.79%;
    background-size: 100%;
}
.copy {
    background-position: 0 21.05%;
    background-size: 100%;
}
.count {
    background-position: 0 26.32%;
    background-size: 100%;
}
.cta {
    background-position: 0 31.58%;
    background-size: 100%;
}
.dirt {
    background-position: 0 36.84%;
    background-size: 100%;
}
.endbg {
    background-position: 0 42.11%;
    background-size: 100%;
}
.endcopy {
    background-position: 0 47.37%;
    background-size: 100%;
}
.endlegal {
    background-position: 0 52.63%;
    background-size: 100%;
}
.endprod {
    background-position: 0 57.89%;
    background-size: 100%;
}
.endtag {
    background-position: 0 63.16%;
    background-size: 100%;
}
.food {
    background-position: 0 68.42%;
    background-size: 100%;
}
.game-bg {
    background-position: 0 73.68%;
    background-size: 100%;
}
.game-text {
    background-position: 0 78.95%;
    background-size: 100%;
}
.icon {
    background-position: 0 84.21%;
    background-size: 100%;
}
.legal {
    background-position: 0 89.47%;
    background-size: 100%;
}
.logo {
    background-position: 0 94.74%;
    background-size: 100%;
}
.text {
    background-position: 0 100%;
    background-size: 100%;
}

.game {
    display: none;
}
.lanes {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    display: flex;
    pointer-events: none;
}
.lane {
    flex: 1;
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    border-right: 1px dashed rgba(255, 255, 255, 0.3);
}

.s0,
.s1,
.s2,
.s3,
.s4,
.s5 {
    /* 1. Make the image 3 times the width of the lane so it stays full-sized */
    width: 300% !important;

    /* 2. Make the height fill the container */
    height: 100% !important;

    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;

    pointer-events: none;
}

.selected {
    position: absolute;
    bottom: 0;
    left: 33.33%;
    width: 33.33%;

    height: 650px;
    pointer-events: all !important;
    touch-action: none;
    z-index: 1000;
    overflow: visible;
}

/* Ensure the background click doesn't block the game */
.hs-bgclick {
    bottom: 0;
    height: 8%;
    z-index: 5;
    pointer-events: all;
}

.border {
    border: 1px solid #000;
    z-index: 999;
    pointer-events: none; /* Make sure the border is "ghost-like" */
}

.game::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    /* background-color: rgba(255, 0, 0, 0.3);  */
    pointer-events: none;
}
.falling-item {
    position: relative;
    width: 100px !important;
    height: 100px !important;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 50;
}
.falling-item.crab {
    background-image: url("images/crab.png");
}
.falling-item.shoe {
    background-image: url("images/shoe.png");
}

.counting {
    aspect-ratio: 118/159;
    /* background-color: #ff000050; */
    font-family: "Arial", sans-serif;
    font-weight: 500;
    font-size: 24px;
    font-style: normal;
    color: #fff;
    width: 14%;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    top: 32%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hs-number {
    left: -315%;
}
