/* hero section*/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
}

#hero_underlay {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero_underlay::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel_item {
    position: absolute;
    top: 0;
    width: 100%;
    object-fit: cover;
    transition: left 1s;
    z-index: 0;
    height: 100%;
}

.carousel_item_tiny {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: left 1s;
}

.hero_inner {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.inner_carousel {
    position: relative;
    margin: 0 var(--navbar-side-margin);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.inner_carousel__images {
    --overlay-shift: 8px;
    filter: drop-shadow(0 var(--overlay-shift) 0px rgba(0, 0, 0, 0.49));
    max-height: 500px;
    min-width: 640px;
    aspect-ratio: 1.76;
    flex: 1 1;
    overflow: hidden;
    border-radius: var(--border-radius-big);
}

.carousel__images_inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__images_inner > .carousel_item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    transition: left 1s;
    object-fit: cover;
}

.inner_carousel__meta {
    --padding-right: 2em;
    position: relative;
    text-align: end;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.carousel__meta_inner {
    text-align: end;
    border-right: 5px solid white;
    padding-right: var(--padding-right);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.carousel__meta__badge_wrapper {
    margin-bottom: 1.7em;
    box-sizing: border-box;
    font-size: 1.1em;
}

.meta__badge {
    background-color: var(--red-200);
    text-transform: uppercase;
    border-radius: var(--border-radius-large);
    padding: 0.2em 2em;
    font-size: 1.1em;
    font-weight: 700;
    color: white;
    box-sizing: border-box;
}

.meta__main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.meta__main > #meta__title {
    font-size: 5em;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    hyphens: auto;
}

.meta__main > #meta__description {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    max-width: 400px;
    align-self: flex-end;
}

.meta__url {
    font-weight: 200;
    margin-top: 1.5em;
    color: inherit !important;
    line-height: unset !important;
    text-decoration: none;
}

.carousel__meta_footer {
    --dot-border-size: 4px;
    --dot-size: 20px;

    position: absolute;
    bottom: calc(-1 * (var(--dot-size) + var(--dot-border-size) + 16px));
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5em;
    padding-right: calc(var(--padding-right) + var(--dot-border-size));
}

.carousel__meta__badge_wrapper > .carousel__meta_footer {
    --dot-border-size: 2px;
    --dot-size: 13px;

    position: unset;
    padding-right: 0;
    display: none;
    gap: 0.25em;
}

.meta_footer__dot {
    border-radius: 50%;
    background-color: transparent;
    border: var(--dot-border-size) solid white;
    box-sizing: border-box;
    width: var(--dot-size);
    aspect-ratio: 1;
    transition: background-color 500ms;
    cursor: pointer;
}

.meta_footer__dot:hover {
    background-color: white;
}

.meta_footer__dot[data-selected="true"] {
    background-color: white;
}

/* Carousel Twitch Integration */
.twitch_consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: var(--gray-700);
}

.twitch_consent__text {
    max-width: 500px;
    text-align: center;
}

.twitch_consent__text > span:first-child {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
}

/* footer.png */
.hero > footer {
    position: absolute;
    bottom: calc(var(--navbar-height) / 2);
    left: 50%;
    z-index: 100;
    translate: -50% -50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    gap: 4em;
    height: 3em;
}

@media (max-height: 660px) {
    .hero > footer {
        bottom: calc(var(--navbar-height) / 10);
    }
}

.hero__footer_button {
    height: 100%;
    border-radius: var(--border-radius-big);
    border: none;
    color: white;
    font-size: 1.375em;
    font-weight: 600;
    padding: 0 37px;
    transition: background-color 200ms;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.2;
}

.hero__footer_button:hover {
    text-decoration: none;
}

.hero__footer_button[data-type="playing"] {
    background-color: var(--green-200);
}

.hero__footer_button[data-type="playing"]:hover {
    background-color: var(--green-400);
}

.hero__footer_button[data-type="discord"] {
    background-color: var(--blue-200);
}

.hero__footer_button[data-type="discord"]:hover {
    background-color: var(--blue-400);
}

/* wave */
.wave {
    width: 100%;
    height: 40%;
    position: absolute;
    bottom: 0;
    z-index: 0;
}

.title {
    display: block;
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}


@media (max-width: 1175px) {
    #hero_underlay {
        height: 60%;
    }

    #hero_underlay::after {
        background-color: transparent;
    }

    .hero_inner {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
        margin-top: -30px;
        z-index: 10;
    }

    .hero_inner::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 100%;
        bottom: calc(100% - 30px);
        height: 100%;
        /*box shadow to top, gray-800*/
        background: linear-gradient(180deg, rgba(var(--rgb-gray-800),0) 30%, rgba(var(--rgb-gray-800),1) 100%);
    }

    .inner_carousel__images {
        display: none;
    }

    .wave {
        display: none;
    }

    .carousel__meta_inner {
        border-right: none;
        padding-right: 0;
        min-height: unset;
        align-items: flex-start;
        width: 100%;
    }

    .meta__main {
        align-items: flex-start;
    }

    .meta__main > #meta__title {
        text-align: left;
        font-size: 3em;
    }

    .meta__main > #meta__description {
        text-align: left;
        align-self: flex-start;
        max-width: unset;
        font-size: 1em;
        font-weight: 500;
        line-height: 1.2;
    }

    .meta__url {
        font-size: 0.9em;
        font-weight: 300;
    }

    .carousel__meta__badge_wrapper > .carousel__meta_footer {
        display: flex;
    }

    .inner_carousel__meta {
        align-items: flex-start;
    }

    .inner_carousel__meta > .carousel__meta_footer {
        display: none;
    }

    .carousel__meta__badge_wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .meta__badge {
        font-size: 1em;
    }

    .hero > footer {
        position: static;
        translate: unset;
        gap: 22px;
        height: max-content;
        margin: 0 var(--navbar-side-margin);
        margin-top: 3em;
    }

    .hero__footer_button {
        height: unset;
        font-size: 1em;
        padding: 0.75em 0;
    }

    /* play-now */
    .play-now__buttons {
        gap: 22px;
        height: max-content;
        width: 100%;
    }

    .play-now__buttons > button {
        font-size: 0.9em;
        padding: 0.7em 0;
    }
}