* {
    font-family: 'Arial';
    color: white;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.game {
    cursor: pointer;
}

.ui-overlay {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    cursor: auto;
}

.ignore-pointer {
    pointer-events: none;
    user-select: none;
}

.accept-pointer {
    pointer-events: auto;
    user-select: none;
}

.view {
    display: flex;
    background: transparent;
}

.view.reverse {
    flex-direction: row-reverse;
}

.column {
    flex-direction: column;
}

.column.reverse {
    flex-direction: column-reverse;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 12px;
}

@media (max-width: 1024px) {
    .button-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .button-group {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2px;
        height: 360px;
    }
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}
.w-85 {
    width: 85%;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    padding: 12px 24px;
    margin: 16px;
    border: none;
    border-bottom: 4px rgb(153, 2, 15) solid;
    border-radius: 0.75vw;
    background: #BB0F33;
    color: white;
    font-size: 185%;
    font-weight: bold;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.button.secondary {
    border-bottom: 4px rgb(113, 84, 57) solid;
    background: rgb(190, 141, 97);
}

.button * {
    color: white;
}

.button-transparent {
    background: transparent;
    border: none;
}

.button-transparent:active {
    border: none !important;
}

.button-mask {
    width: auto;
    height: auto;
    margin: 0px;
    padding: 0px;
}

.button-mask:hover {
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .button-mask {
        width: auto;
        height: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 1366px) {
    .button-mask {
        width: auto;
        height: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 700px) {
    .button {
        font-size: 4vw;
        border-radius: 2vw;
        padding: 9px 15px;
    }
}

.button:hover {
    opacity: 1;
}

.button:active {
    opacity: 0.8;
    border-bottom: 4px rgba(200, 200, 200, 0) solid;
    transform: scale(0.9);
}

.button-full-opacity {
    opacity: 1;
}

.button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.button:disabled:active {
    transform: scale(1.0);
}

.toggle-button {
    opacity: 0.6;
    transform: scale(0.97);
}

.toggle-button.toggle-enabled {
    opacity: 1;
    transform: translateY(-5%);
}

.markerTip {
    position: absolute;
    width: 8px;
    height: 100%;
    background-color: rgb(191, 31, 73);
    /* left: ${props => props.position}%; */
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: help;
    transform: scale(0.7) translateX(-8px);
}

.pot-hihi-aled {
    width: 256px;
    height: 256px;
}

@media (max-width: 768px) {
    .pot-hihi-aled {
        width: 140px;
        height: 140px;
    }
}

.markerTip:hover {
    transform: scale(0.9) translateX(-8px);
}

.markerTip:hover+.markerDescription {
    opacity: 1;
}

.markerTip:active+.markerDescription {
    opacity: 1;
}

.markerDescription {
    background-color: rgb(104, 11, 36);
    border-radius: 4px;
    font-size: 80%;
    position: absolute;
    top: -64px;
    /* left: ${props => props.position}%; */
    transform: translateX(-50%);
    padding: 1vh 1vw;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    min-width: 160px;
    text-align: center;
}

.input {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 1vw;
    width: 50%;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

.input:focus {
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.input.valid {
    border: 2px solid rgba(35, 255, 100, 0.7);
}

@media (max-width: 700px) {
    .input {
        border-radius: 8px;
        font-size: 4vw;
    }
}

.w-100 {
    width: 100%;
}

h1, h2, h3, h4, H5, h6 {
    margin: 0px;
    padding: 0px;
}

h1 {
    font-size: 700%;
}

h2 {
    font-size: 480%;
}

h3 {
    font-size: 340%;
}

h4 {
    font-size: 280%;
}

h5 {
    font-size: 240%;
}

h6 {
    font-size: 180%;
}

p {
    font-size: 125%;
}

@media (max-width: 550px) {
    h1 {
        font-size: 6vh;
    }

    h2 {
        font-size: 5.2vh;
    }

    h3 {
        font-size: 4vh;
    }

    h4 {
        font-size: 3.25vh;
    }

    h5 {
        font-size: 2.5vh;
    }

    h6 {
        font-size: 2vh;
    }

    p {
        font-size: 1.7vh;
    }
}

/* UIIntro */

@keyframes hovering {
    0% {
        transform: translateY(0%);
    }

    50% {
        transform: translateY(-20%);
    }

    100% {
        transform: translateY(0%);
    }
}

.bee-image {
    position: absolute;
    right: 92px;
    top: 64px;
    width: 168px;
    animation: hovering 3s 0s ease-in-out infinite;
}

.tuto-image {
    height: 100%;
    max-height: 158px;
}

.skip-tuto {
    position: absolute;
    bottom: 32px;
    right: 32px;
}

@media (max-width: 1368px) {
    .bee-image {
        display: none;
    }

    .tuto-image {
        max-height: 86px;
    }

    .skip-tuto {
        position: absolute;
        right: auto;
        left: auto;
    }
}

.title {
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.title-logo {
    width: 90%;
    max-width: 350px;
}

.topLogo-image {
    position: absolute;
    top: 0px;
    width: 50%;
    max-width: 256px;
}

.mobile-logo {
    display: none;
}

.logo {
    width: 50%;
    max-width: 220px;
}

@media (max-width: 768px) {
    .mobile-logo {
        display: block;
        width: 50%;
        max-width: 256px;
    }
}

.gamme {
    width: 45%;
    max-width: 256px;
}

.thanks-img {
    margin-right: 6%;
    max-width: 136px;
}

@media (max-width: 768px) {
    .topLogo-image {
        max-width: 35%;
    }

    .title-logo {
        max-width: 70%;
    }
}

@media (max-width: 390px) {
    .title-logo {
        max-width: 40%;
    }
}

.text-outline {
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
}

.ribbon {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    min-height: 15vh;
    padding: 4vh 0px;
    background: rgba(0, 106, 110, 0.9);
}

.ribbon.black {
    background: rgba(30, 30, 30, 0.6);
}

.xp-image {
    width: 100%;
    height: 100%;
}

.network-image {
    width: 35px;
    height: 35px;
}

.popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 60vw;
    min-height: 63vh;
    padding: 32px;
    background: rgba(0, 173, 179, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 16px;
}

.progression-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.price-image {
    width: 25%;
    max-height: 450px;
    margin-right: 15px;
}

@keyframes appearNotification {
    from {
        opacity: 0;
        transform: translateY(-200%);
    }

    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

.notification {
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    width: 100vw;
    text-align: center;
    padding: 8px 0px;
    color: white;
    background: rgba(0, 114, 190, 0.85);
    backdrop-filter: blur(8px);
    animation: appearNotification 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.top {
    position: absolute;
    top: 3%;
}

.position-product {
    margin-left: 25%;
    margin-top: 25%;
}

@media (max-width: 768px) {
    .position-product {
        margin-left: 0%;
        margin-top: 0%;
        position: absolute;
        top: 13%;
    }
}

.alt-color {
    background : rgba(79, 110, 111, 0.9);
}

.bio-notif {
    background: rgba(224, 172, 0, 0.85);
    color: rgba(40, 40, 40, 1)
}

.invincibility-glow {
    pointer-events: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background: transparent;
    box-shadow: inset 0px 0px 6em 1em rgba(0, 102, 255, 0.7);
}

@keyframes damage {
    to {
        box-shadow: inset 0px 0px 0em 0em rgba(255, 0, 76, 0.5);
    }
}

.damage-glow {
    animation: damage 1s ease-in-out forwards;
    box-shadow: inset 0px 0px 16em 1em rgba(255, 0, 43, 0.9);
}


.progress-view {
    width: 90%;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 768px;
}

.sized-text {
    width: 85%;
    max-width: 800px;
    margin-bottom: 24px;
}

.small-sized-text {
    width: 85%;
    max-width: 360px;
    margin-bottom: 0px;
}

.highlighted-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background-color: rgb(191, 142, 99);
    color: white;
    text-align: center;
    border-radius: 16px;
}

.yellow-bee {
    background-color: rgb(242, 204, 92);
}

.progress-bar-background {
    position: relative;
    display: flex;
    background-color: rgba(10, 10, 10, 0.8);
    border-radius: 8px;
    height: 24px;
    margin: 16px 0px;
    width: 100%;
    box-shadow: 0px 0px 6px 2px rgba(0, 102, 255, 0.6);
}

.progress-bar-foreground {
    position: absolute;
    background-image: url('./assets/textures/ui/T_ProgressBar.png');
    background-color: rgba(50, 190, 50, 0.8);
    border-radius: 8px;
    height: 100%;
    max-width: 100%;
    transition: all 2.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.b-r {
    position: absolute;
    bottom: 4px;
    right: 24px;
}

.progress-no-image {
    box-shadow: none;
}

.progress-no-image .progress-bar-foreground {
    background-image: none;
}

.top-ribbon {
    position: absolute;
    top: 0;
}

.bottomLeft {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 64px;
    left: 32px;
    background-color: rgba(10, 10, 10, 0.0);
    padding: 0.2%;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
}

.products {
    width: 15vw;
    height: 15vw;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.product-img {
    width: 158px;
    height: 158px;
}

.products:hover {
    position: absolute;
    width: 35vw;
    height: 35vw;
    bottom: 2vw;
    left: 2vw;
}

.hudLabel {
    background: rgba(55, 84, 78, 0.7);
    border: 2px solid rgb(168, 238, 223);
    border-radius: 8px;
    padding: 12px 48px;
    min-width: 250px;
    font-size: 120%;
    text-align: center;
}

.highlightLabel {
    background-color: rgba(191, 142, 99, 0.7);
    border: 2px solid rgb(255, 213, 149);
    box-shadow: 0 0 12px rgb(255, 240, 211);
}

@media (max-width: 768px) {
    .hudLabel {
        padding: 8px 12px;
        margin-top: 4px;
        min-width: auto;
    }

    .products {
        width: 45vw;
        height: 45vw;
    }

    .bottomLeft {
        width: 100%;
        left: 0;
        border-radius: 0px;
        bottom: 16px;
    }
}

.dLabel {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
}

.dLabel>div {
    position: absolute;
    /* let us position them inside the container */
    left: 0;
    /* make their default position the top left of the container */
    top: 0;
    cursor: pointer;
    /* change the cursor to a hand when over us */
    font-size: large;
    user-select: none;
    /* don't let the text get selected */
    text-shadow:
        /* create a black outline */
        -1px -1px 0 #000,
        0 -1px 0 #000,
        1px -1px 0 #000,
        1px 0 0 #000,
        1px 1px 0 #000,
        0 1px 0 #000,
        -1px 1px 0 #000,
        -1px 0 0 #000;
}

@media (max-width: 700px) {
    .ribbon {
        padding: 2vh 0px;
    }

    .popup {
        width: 100vw;
        min-height: 55vh;
        height: auto;
        border-radius: 0px;
    }

    .network-image {
        width: 30px;
        height: 30px;
    }
}

/* Checkboxes */

.checkbox::before {
    background-color: rgba(20, 20, 20, 0.8);
    content: "";
    display: flex;
    width: 32px;
    height: 32px;
    padding: 8px;
    left: -8px;
    top: -8px;
    z-index: 1;
    border-radius: 5px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(180deg);
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.checkbox:hover::before {
    background-color: rgba(45, 45, 45, 0.6);
    transform: scale(1.1) rotate(180deg);
}

.checkbox:active::before {
    background-color: rgba(80, 80, 80, 0.7);
    transform: scale(0.9);
}

.checkbox {
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    margin-top: 16px;
    cursor: pointer;
    font-size: 100%;
    text-align: left;
    font-weight: 200;
}

.checkbox-checked.checkbox::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 255, 180, 0.8);
    background-color: rgba(0, 190, 120, 0.7);
    transform: rotate(0deg);
}

/* Loading spinner */
.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}