@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500&family=Nunito:wght@300;500&family=Gluten:wght@300&display=block');

* {
    font-family: 'Nunito', sans-serif;
    user-select: none;
}

::-webkit-scrollbar {
    width: 10px;
    background: #2e2e71;
}

::-webkit-scrollbar-thumb {
    background: #5252bd;
    height: 100px;
    -webkit-border-radius: 1ex;
}

html {
    min-width: 100%;
    min-height: 100%;
    background-color: #171740;
}

#render {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

body {
    height: 50000px;
    overflow-x: hidden;
    overflow: hidden;
}

#speedLines {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0;
}

p {
    font-size: 1.05em;
    line-height: 180%;
}

.prompt {
    position: fixed;
    transform: translate(-50%, 120%);
    opacity: 0;
    left: 50vw;
    bottom: 200px;
}

.prompt>img {
    height: 50px;
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.3em;
    left: 0;
    top: 40%;
    z-index: 9999;
}

#preloader p {
    font-size: 0.75em;
    color: #ffb45c;
}

.progress {
    width: 50%;
    height: 10px;
    background: rgb(39, 73, 187);
    border-radius: 10px;
    margin: auto;
    position: relative;
}

.progressBar {
    height: 10px;
    background: rgb(235 203 61);
    border: none;
    border-radius: 10px;
    width: 0%;
}

#preloaderImg {
    position: absolute;
    left: calc(0% - 50px);

    width: 80px;
    margin-top: 10px;
}

.htmlInfo {
    display: inline-block;
    width: 500px;
    position: fixed;
    top: 0;
    opacity: 0;
    text-align: center;
    color: #ffffff;
}

.right {
    right: 100px;
}

.left {
    left: 50px;
}

.textContainer {
    background-color: #f1b62cd7;
    color: #571A06;
    border-radius: 30px;
    padding: 30px;
    margin: 25px 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.textContainer h1 {
    font-family: 'Fredoka', sans-serif;
}

.textContainer p {
    font-size: 1.1em;
    text-align: left;
}

.textContainer a {
    color: #571A06;
    text-decoration: underline; 
    transition: color 0.2s ease-out;
}

.textContainer a:hover,
a:focus {
    color: #8d3315;
}


.htmlInfo h1 {
    font-size: 2.5rem;
    color: #a72e2e;
    text-align: left;
}

input {
    width: 3.75em;
    height: 2.125em;
}

button {
    font-family: "Nunito";
    background-color: #C84343;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    padding: 15px 60px;
    cursor: pointer;
    transition: background-color 0.3s ease-out;
}

button i {
    padding: 0 0 0 5px;
}

button:active {
    background-color: #a72e2e;
}

.secondary {
    background-color: #e99000;
}

.viewmore {
    font-weight: bold;
    padding: 15px 40px;
}

#xmasBtn {
    position: fixed;
    bottom: 20px;
    background-color: #027e36;
    display: none;
    opacity: 0;
    left: 50%;
    transform: translateX(-50%);
}
#xmasBtn:hover {
    background-color: #02be50;
}

#adventureToggleBtn {
    max-width: 400px;
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
    display: block;
    visibility: hidden;
    height: 55px;
    padding: 0px 30px;
}

#adventureToggleBtn .fa-sm {
    color: #ffffff;
}

#adventureToggleBtn.enabled {
    background-color: #a72e2e;
}

#adventureToggleBtn.enabled:hover:not(:disabled) {
    background-color: #ee4c4c;
}

#adventureToggleBtn:disabled {
    background-color: rgba(102, 102, 102, 0.653);
    color: #ffffffa4;
}


#moreInfoPopup {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    transform: translateY(-100vh);
    background-color: rgb(240 238 232 / 86%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);

    overflow-y: scroll;
    opacity: 0;
    display: none;
    overflow: hidden;
    z-index: 999;

    flex-direction: column;
    flex-wrap: wrap;
}

#detailsLoadImg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 30px), calc(-50% - 20px));
    visibility: hidden;
}

#moreInfoPopupClose {
    background: url("/details/img/btn_UFO_sprites.png") 0 0;
    background-size: cover;
    width: 210px;
    height: 58px;
    position: fixed;
    padding: 0px;
    bottom: 20px;
    right: -104px;
    margin-left: 50%;
    margin-right: 50%;
    background-color: transparent;
    overscroll-behavior: contain;
    -webkit-touch-callout: none;
}

/* hover states */

@media (hover: hover) {

    button:hover {
        background-color: #ee4c4c;
    }

    #moreInfoPopupClose:hover {
        background: url("/details/img/btn_UFO_sprites.png") 0 118px;
        background-size: cover;
    }

}


#moreInfoPopupClose:active {
    background: url("/details/img/btn_UFO_sprites.png") 0 60px;
    background-size: cover;
}

#infoContainer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
}

.toggleContainer {
    position: fixed;

    display: flex;
    justify-content: center;
    flex-direction: column;

    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
}

#bitModeContainer {
    left: 5%;
    bottom: 50px;
    display: none;
}

.toggleContainer p {
    color: white;
    font-size: 15px;
}

/* Speech bubble */

.speech-container {
    position: fixed;
    left: 50%;
    transform: translate(-130px, -170px);
    top: 50%;
}


.speech-bubble {
    opacity: 0;
    padding: 10px 40px;
    display: inline-block;
    max-width: 400px;
    height: auto;
    background-color: #d77c26f2;
    color: #ffffff;
}

.speech-bubble p {
    font-family: 'Gluten', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    max-width: 200px;
}

.round {
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;

}

/*Right triangle*/
.tri-right.border.btm-left-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 30px;
    right: auto;
    top: auto;
    bottom: -10px;
}

.tri-right.btm-left-in:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 38px;
    right: auto;
    top: auto;
    bottom: -20px;
    border: 12px solid;
    border-color: #d77c26f2 #d77c26f2 transparent transparent;
}

/* END Speech bubble */


.annotation {
    position: fixed;
    opacity: 0;
    width: 180px;
    text-align: center;
    padding: 0px 15px;
    border-radius: 10px;
    background: var(--03, #f2e233e0);
    transition: opacity 0.2s ease-out;
    color: #9c5a00;
    visibility: hidden;
}

#gameHeader {
    position: fixed;
    top: 20px;
    left: 50vw;
    transform: translateX(-50%);
    text-align: center;
}
#bugContainer {
    display: flex;
    gap: 10px;
    visibility: hidden;
}

#quitGameBtn {
    margin-top: 15px;
    padding: 15px 30px;
    visibility: hidden;
}


@media only screen and (max-width: 640px) {

    .htmlInfo {
        width: 95%;
        right: 0px;
        padding: 15px;
        border-radius: 20px 20px 0 0;
        top: 0;

    }

    .htmlInfo h1 {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .speech-bubble {
        padding: 5px 20px;
    }

    .speech-container {
        transform: translate(-50%, 50%);
    }

    .round {
        border-radius: 20px;
        -webkit-border-radius: 20px;
    }

    .tri-right.btm-left-in:after {
        top: -20px;
        bottom: -30px;
        border-color: transparent #d77c26f2 #d77c26f2 transparent;
    }

    .textContainer {
        margin: 10px 50px;
        padding: 15px 30px;


        background-color: #f1b62ced;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .textContainer p {
        font-size: 1em;
        ;
        line-height: 150%;
        ;
    }

    #adventureToggleBtn {
        font-size: 1em;
        width: 100%;
    }

    .viewmore {
        padding: 15px 20px;
    }


    .toggleContainer {
        width: 65%;
    }



}

@media (orientation: landscape) {

    /* landscape mobile users */
    .htmlInfo {
        display: flex;
        align-items: center;
        height: 100vh;
        max-width: 28vw;
        margin-left: 30px;
        min-width: 25vw;
    }

    .textContainer {
        margin: 0px;
        padding: 30px 40px;
    }

    .textContainer p {
        font-size: 1.1em;
        ;
        line-height: 170%;
    }

    #adventureToggleBtn {
        font-size: 1em;
    }

    .viewmore {
        margin: 10px 0 0 0;
    }

}

/* landscape iphone */

@media (orientation: landscape) and (max-width: 1000px) {
    .speech-container {
        transform: translate(-110px, -140px);
    }
}






/* HOVER */

/* Icon Wobble Horizontal */
@-webkit-keyframes hvr-icon-wobble-horizontal {
    16.65% {
        -webkit-transform: translateX(6px);
        transform: translateX(6px);
    }

    33.3% {
        -webkit-transform: translateX(-5px);
        transform: translateX(-5px);
    }

    49.95% {
        -webkit-transform: translateX(4px);
        transform: translateX(4px);
    }

    66.6% {
        -webkit-transform: translateX(-2px);
        transform: translateX(-2px);
    }

    83.25% {
        -webkit-transform: translateX(1px);
        transform: translateX(1px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes hvr-icon-wobble-horizontal {
    16.65% {
        -webkit-transform: translateX(6px);
        transform: translateX(6px);
    }

    33.3% {
        -webkit-transform: translateX(-5px);
        transform: translateX(-5px);
    }

    49.95% {
        -webkit-transform: translateX(4px);
        transform: translateX(4px);
    }

    66.6% {
        -webkit-transform: translateX(-2px);
        transform: translateX(-2px);
    }

    83.25% {
        -webkit-transform: translateX(1px);
        transform: translateX(1px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

.hvr-icon-wobble-horizontal {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.hvr-icon-wobble-horizontal .hvr-icon {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hvr-icon-wobble-horizontal:hover .hvr-icon,
.hvr-icon-wobble-horizontal:focus .hvr-icon,
.hvr-icon-wobble-horizontal:active .hvr-icon {
    -webkit-animation-name: hvr-icon-wobble-horizontal;
    animation-name: hvr-icon-wobble-horizontal;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}

/* Icon Buzz Out */
@-webkit-keyframes hvr-icon-buzz-out {
    10% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    20% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    30% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    40% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    50% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    60% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    70% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    80% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    90% {
        -webkit-transform: translateX(1px) rotate(0);
        transform: translateX(1px) rotate(0);
    }

    100% {
        -webkit-transform: translateX(-1px) rotate(0);
        transform: translateX(-1px) rotate(0);
    }
}

@keyframes hvr-icon-buzz-out {
    10% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    20% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    30% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    40% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    50% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    60% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    70% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    80% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    90% {
        -webkit-transform: translateX(1px) rotate(0);
        transform: translateX(1px) rotate(0);
    }

    100% {
        -webkit-transform: translateX(-1px) rotate(0);
        transform: translateX(-1px) rotate(0);
    }
}

.hvr-icon-buzz-out {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.hvr-icon-buzz-out .hvr-icon {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hvr-icon-buzz-out:hover .hvr-icon,
.hvr-icon-buzz-out:focus .hvr-icon,
.hvr-icon-buzz-out:active .hvr-icon {
    -webkit-animation-name: hvr-icon-buzz-out;
    animation-name: hvr-icon-buzz-out;
    -webkit-animation-duration: 0.75s;
    animation-duration: 0.75s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}