/* Fonts */
@font-face {
    font-family: "BalooChettan2";
    font-style: normal;
    font-weight: 400;
    src: url(./assets/Baloo_Chettan_2/BalooChettan2-VariableFont_wght.ttf) format("truetype");
    unicode-range: U+000-5FF;
}

/* Reset & Base */
:root {
    --brand-green: #c0ff54;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: "BalooChettan2" "PT Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.1;
    background-color: black;
    color: #fff;
    overflow: hidden;
    touch-action: none;
    -webkit-font-smoothing: antialiased;
}

/* Typography map */
.baloo-chettan-bold,
.baloo-chettan {
    font-family: "BalooChettan2", sans-serif;
}

.baloo-chettan-bold {
    font-weight: 600;
}

.baloo-chettan {
    font-weight: 200;
}

.title {
    font-size: 10rem;
    font-weight: 700;
    text-shadow: 0.03rem 0.03rem black;
}

.claim {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    font-size: 3.3rem;
    font-weight: bold;
    color: var(--brand-green);
    text-shadow: 0.03rem 0.03rem black;
}

.address {
    font-size: 1rem;
}

.label {
    color: var(--brand-green);
    font-size: 0.7rem;
}

.address {
    flex-grow: 1;
    padding: 1.5rem;
}

/* Layout & Components */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(60px);
}

.bubble {
    position: absolute;
    bottom: -30rem;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    background: var(--brand-green);
    border-radius: 50%;
    opacity: 0;
    animation-name: rise;
    animation-duration: var(--duration);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: var(--delay);
}

.page {
    display: flex;
    position: absolute;
    top: 20px;
    bottom: 140px;
    right: 20px;
    left: 20px;
    z-index: 100;
}

.box {
    margin: auto;
}

.spacer {
    flex-grow: 99;
}

.mark {
    flex-grow: 1;
}

.to-front {
    z-index: 50;
}

.disclaimer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(192, 255, 84, 0.4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 200;
}

/* Animations using standard syntax where supported */
.word {
    opacity: 0;
    animation: slideUpFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, text-focus-in 2s;
    animation-delay: var(--d);
}

.text-focus-in-0 {
    animation: text-focus-in 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
    animation-delay: var(--d);
}

.fade-in-4 {
    animation: fade-in 4s cubic-bezier(0.39, 0.575, 0.565, 1) var(--d) both;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20%,
    80% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(-130vh) scale(1.2);
        opacity: 0;
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes text-focus-in {
    0% {
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Media Queries */
@media all and (max-width: 694px) {
    html {
        font-size: 14px;
    }

    .address,
    .label {
        font-size: 0.7rem;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 430px) and (min-device-height: 568px) and (max-device-height: 932px) {
    .title {
        font-size: 4.2rem;
    }

    .claim {
        font-size: 1.43rem;
    }

    .address {
        padding: 1.1rem;
        font-size: 10px;
    }

    .label {
        font-size: 10px;
    }
}