*, :after, :before {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none
}

:focus {
    outline: none
}

button {
    all: unset
}

:root {
    --font-main-weight: 700;
    --font-main-color: #3C1625;
    --font-main-style: normal;
    --font-optical-sizing: auto;
    --font-main: "Josefin Sans", sans-serif;
}

body {
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-text-decoration-skip: objects;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-main), sans-serif;
    font-weight: var(--font-main-weight);
    color: var(--font-main-color);
    font-optical-sizing: var(--font-optical-sizing);
    font-style: var(--font-main-style);
    text-transform: uppercase;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: url('../img/bg/bg.webp') no-repeat center center;
    background-size: cover;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 450px;
    background: url('../img/bg/bg_mask.webp') no-repeat center top;
    background-size: cover;
}

.content__wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-wrapper {
    position: relative;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 400 / 146;
    isolation: isolate;
    z-index: 100;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: auto;
    position: relative;
}

.logo-isolate {
    display: none;
}

.zeus-wrapper {
    position:  relative;
    aspect-ratio: 945 / 1183;
    will-change: transform;
    pointer-events: none;
    z-index: 4;
}

.zeus-image {
    position: absolute;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.zeus-mask-image {
    position: absolute;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    animation: fadeInOut 5s ease-in-out infinite;
    -webkit-animation: fadeInOut 5s ease-in-out infinite;
    z-index: 5;
}

.title {
    width: 100%;
    display: flex;
    align-items: center;
    color: #3C1625;
    text-shadow: 0 -3px 58px rgba(249, 237, 147, 1);
    font-family: "Josefin Sans", sans-serif;
}

.title,
.cloud-bottom--portrait,
.cloud-bottom-left--landscape,
.cloud-bottom-right--landscape {
    pointer-events: none;
}

.cloud-floating {
    animation: float 4s ease-in-out infinite;
    -webkit-animation: float 4s ease-in-out infinite;
}

.cloud-floating--delay {
    animation: float 4s ease-in-out infinite;
    -webkit-animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.cloud-floating-mobile {
    animation: float -mobile 4s ease-in-out infinite;
    -webkit-animation: float-mobile 4s ease-in-out infinite;
}

.cloud-floating-mobile--delay {
    animation: float-mobile 4s ease-in-out infinite;
    -webkit-animation: float-mobile 4s ease-in-out infinite;
    animation-delay: 1s;
}

@media (orientation: portrait) and (min-width: 0px) {
    .title--landscape,
    .cloud-bottom-left--landscape,
    .cloud-bottom-right--landscape,
    .treasure-left--landscape,
    .treasure-right--landscape,
    .cloud_top_tablet_portrait {
        display: none;
    }

    .content__wrapper {
        padding: clamp(10px, 3vw, 30px) clamp(10px, 3vw, 30px) clamp(20px, 10vw, 50px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        position: relative;
    }

    .cloud-top-mobile--portrait {
        aspect-ratio: 720 / 237;
        width: 720px;
        position: absolute;
        top: -20px;
        left: -1%;
    }

    .cloud-bottom--portrait {
        aspect-ratio: 1200 / 670;
        width: 1200px;
        position: absolute;
        bottom: -260px;
        z-index: 5;
        right: -1%;
    }

    .logo-wrapper {
        position: relative;
        top: 0 !important;
        width: clamp(100px, 35vw, 300px) !important;
        margin-bottom: 24px;
    }

    .zeus-wrapper {
        position: absolute;
        bottom: -30%;
        left: -15%;
    }

    .right {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
    }

    .title {
        padding: 0 30px;
        position: relative;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: clamp(16px, 4vw, 40px);
    }

    .title--portrait {
        display: inline-block;
        text-align: center;
        font-family: "Josefin Sans", sans-serif;
    }

    .coins-top--portrait {
        position: absolute;
        top: 0;
        right: 0;
        aspect-ratio: 170 / 140;
        width: clamp(60px, 15vw, 170px);
        z-index: 1;
    }

    .coins-bottom-left {
        display: none;
    }

    .coins-bottom-right--portrait {
        position: absolute;
        bottom: clamp(80px, 30vw, 150px);
        right: 0;
        aspect-ratio: 190 / 150;
        width: clamp(80px, 20vw, 190px);
        z-index: 4;
    }

    .treasure--portrait {
        position: absolute;
        bottom: clamp(80px, 20vw, 150px);
        left: 40%;
        aspect-ratio: 420 / 468;
        width: clamp(180px, 45vw, 420px);
        z-index: 1;
    }

    .left-column {
        position: absolute;
        top: 50%;
        left: -5%;
        aspect-ratio: 200 / 420;
        width: clamp(80px, 30vw, 200px);
        z-index: 1;
    }
}

@media (orientation: portrait) and (min-width: 380px) {
    .cloud-bottom--portrait {
        bottom: -220px;
    }

    .coins-bottom-right--portrait {
        bottom: clamp(80px, 40vw, 200px);
    }

    .treasure--portrait {
        bottom: clamp(80px, 25vw, 150px);
    }

    .left-column {
        top: 40%;
    }
}

@media (orientation: portrait) and (min-width: 500px) {
    .cloud-top-mobile--portrait {
        display: none;
    }

    .cloud_top_tablet_portrait {
        display: block;
        aspect-ratio: 1968 / 418;
        width: 1968px;
        position: absolute;
        top: -100px;
    }
}

@media (orientation: portrait) and (min-width: 768px) {
    .treasure--portrait {
        bottom: 0;
        right: auto;
        left: 60%;
        transform: translateX(-50%);
    }

    .left-column {
        top: 30%;
    }

    .coins-bottom-left {
        display: block;
        position: absolute;
        bottom: -15px;
        left: -30px;
        aspect-ratio: 106 / 204;
        width: clamp(60px, 12vw, 106px);
        z-index: 6;
    }
}

@media (orientation: portrait) and (min-height: 768px) {
    .cloud-top--portrait {
        top: -140px;
    }
}

@media (orientation: portrait) and (min-height: 1024px) {
    .cloud-bottom--portrait {
        bottom: -190px;
    }

    .cloud_top_tablet_portrait {
        top: -50px;
    }
}

@media (orientation: portrait) and (min-height: 1200px) {
    .cloud-bottom--portrait {
        bottom: -140px;
    }
}

@media (orientation: portrait) and (min-width: 375px) and (min-height: 700px) {
    .zeus-wrapper {
        position: absolute;
        bottom: -10%;
        left: -15%;
    }
}

@media (orientation: portrait) and (max-width: 400px) and (min-height: 1000px) {
    .zeus-wrapper {
       display: none;
    }
}

@media (orientation: portrait) and (min-width: 768px) and (min-height: 1024px) {
    .zeus-wrapper {
        display: block;
        position: absolute;
        bottom: -20%;
        left: -15%;
    }
}

@media (orientation: portrait) and (min-width: 1024px) {
    .zeus-wrapper {
        position: absolute;
        bottom: -25%;
        left: -15%;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    .title--portrait,
    .cloud-top--portrait,
    .cloud-bottom--portrait,
    .coins-top--portrait,
    .coins-bottom-right--portrait,
    .treasure--portrait,
    .cloud-top-mobile--portrait,
    .cloud_top_tablet_portrait {
        display: none;
    }

    .content__wrapper {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .logo-wrapper {
        position: absolute;
        top: 0;
        width: clamp(100px, 15vw, 400px);
    }

    .zeus-wrapper {
        position:  relative;
        aspect-ratio: 945 / 1183;
        z-index: 5;
    }

    .zeus-image {
        right: -15%;
        bottom: -20%;
    }

    .title--landscape {
        display: flex;
        font-family: "Josefin Sans", sans-serif;
    }

    .title {
        position: absolute;
        flex-direction: column;
        font-size: clamp(16px, 2.5vw, 48px);
        z-index: 7;
        bottom: 10%;
        left: 30%;
        transform: translateX(-50%);
    }

    .cloud-bottom-left--landscape {
        aspect-ratio: 1600 / 902;
        width: 80%;
        max-width: 1600px;
        position: absolute;
        bottom: calc(clamp(100px, 22vw, 300px) * -1);
        left: -15%;
        z-index: 6;
    }

    .cloud-bottom-right--landscape {
        aspect-ratio: 2150 / 622;
        width: 80%;
        max-width: 2150px;
        position: absolute;
        bottom: calc(clamp(50px, 10vw, 300px) * -1);
        right: -20%;
    }

    .coins-bottom-left {
        position: absolute;
        bottom: -15px;
        left: -30px;
        aspect-ratio: 106 / 204;
        width: clamp(60px, 7vw, 170px);
        z-index: 7;
        animation: spin-coin-right 2s ease-in-out infinite reverse;
        -webkit-animation: spin-coin-right 2s ease-in-out infinite reverse;
    }

    .left-column {
        position: absolute;
        top: 18%;
        left: 0;
        aspect-ratio: 200 / 420;
        width: clamp(150px, 20vw, 384px);
        z-index: 1;
    }

    .treasure-left--landscape {
        position: absolute;
        aspect-ratio: 488 / 417;
        width: clamp(100px, 15vw, 488px);
        top: 48%;
        left: 7%;
        z-index: 2;
    }

    .treasure-right--landscape {
        position: absolute;
        aspect-ratio: 460 / 640;
        width: clamp(100px, 15vw, 460px);
        top: 32%;
        left: 35%;
        z-index: 2;
    }
}

@media (orientation: landscape) and (min-width: 1024px) {
    .cloud-bottom-left--landscape {
        bottom: calc(clamp(100px, 18vw, 300px) * -1);
        left: -15%;
        z-index: 6;
    }
}

@media (orientation: landscape) and (min-width: 0px) and (min-height: 768px) {
    .zeus-wrapper {
        position:  relative;
        aspect-ratio: 945 / 1183;
    }

    .zeus-image {
        bottom: -10%;
    }
}

@media (orientation: landscape) and (min-width: 1100px) and (min-height: 1024px) {
    .cloud-bottom-left--landscape {
        bottom: calc(clamp(100px, 12vw, 300px) * -1);
        left: -10%;
        z-index: 6;
    }

    .cloud-bottom-right--landscape {
        bottom: calc(clamp(50px, 7vw, 300px) * -1);
        right: -25%;
    }
}

@media (orientation: landscape) and (min-width: 1440px) and (min-height: 1024px) {
    .zeus-image {
        bottom: -15%;
    }

    .cloud-bottom-left--landscape {
        bottom: calc(clamp(100px, 18vw, 300px) * -1);
        left: -8%;
        z-index: 6;
    }

    .cloud-bottom-right--landscape {
        bottom: calc(clamp(50px, 7vw, 340px) * -1);
        right: -25%;
    }
}

@media (orientation: landscape) and (min-width: 1440px) {
    .cloud-bottom-right--landscape {
        bottom: calc(clamp(50px, 7vw, 340px) * -1);
        right: -25%;
    }
}

@media (orientation: landscape) and (min-width: 1900px) and (max-height: 1000px) {
    .cloud-bottom-left--landscape {
        bottom: calc(clamp(100px, 32vw, 400px) * -1);
        left: -8%;
        z-index: 6;
    }
}

@media (orientation: landscape) and (min-width: 2800px) {
    .cloud-bottom-left--landscape {
        bottom: calc(clamp(100px, 32vw, 400px) * -1);
        left: 8%;
        z-index: 6;
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes sway {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    50% {
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg)
    }
    100% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
}

@keyframes sway {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    50% {
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg)
    }
    100% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
}

@keyframes spin-coin-right {
    0% {
        transform: rotateY(0deg);
        -webkit-transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(25deg);
        -webkit-transform: rotateY(25deg);
    }
    100% {
        transform: rotateY(0deg);
        -webkit-transform: rotateY(0deg);
    }
}

@-webkit-keyframes float {
    0%   { -webkit-transform: translateY(0px) rotate(0deg); }
    50%  { -webkit-transform: translateY(-10px) rotate(2deg); }
    100% { -webkit-transform: translateY(0px) rotate(0deg); }
}

@keyframes float {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@-webkit-keyframes float-mobile {
    0%   { -webkit-transform: translateY(0px) rotate(0deg); }
    50%  { -webkit-transform: translateY(-5px) rotate(1.5deg); }
    100% { -webkit-transform: translateY(0px) rotate(0deg); }
}

@keyframes float-mobile {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-5px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes fadeInOut {
    0% {
        opacity: 0;
        -webkit-opacity: 0;
    }
    30% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    70% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-opacity: 0;
    }
}
