@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* 
font-family: "Roboto", sans-serif;
font-family: "Roboto Serif",serif;
font-family: "Roboto Condensed",sans-serif;
font-family: "Roboto Slab", serif; 
font-family: "Inter", sans-serif;
*/
@font-face {
    font-family: 'dune';
    src: url('./assets/dune_rise/Dune_Rise.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --white: #ffffff;
    --black: #111111;
    --smoke: #f0f0f0;
    --grey: #c6c6c6;
    --general-padding: 1.875rem;
    font-family: "Roboto", sans-serif;
    /* letter-spacing: -0.3px; */
}

html {
    width: 100vw;
    height: 100vh;
    font-size: calc(10px + (16 - 12) * ((100vw - 440px) / 800));
    overflow: none;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: none;
    background-color: #000;
}

a {
    cursor: pointer;
    text-decoration: none;
}

.container {
    width: 100%;
    display: flex;
    gap: 3rem;
    background-color: #000;
}

/* ========== NAV ========== */
.hero-title {
    position: fixed;
    z-index: 4;
    width: 100%;
    text-transform: uppercase;
    padding: var(--general-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-title p {
    font-size: 1.2rem;
    width: 100%;
    color: var(--white);
    font-family: 'dune', sans-serif;
    letter-spacing: 1.6rem;
    text-align: center;
}

.hamburger {
    position: relative;
    z-index: 3;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.hamburger img {
    width: 2.5rem;
    transition: opacity 0.15s ease-in-out;
}

.hamburger input {
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 3;
}

.hamburger:has(input[type="checkbox"]:checked) img {
    opacity: 0.2;
}

.nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    top: 3rem;
}

.nav a {
    font-family: 'dune', sans-serif;
    font-size: 1.4rem;
    color: var(--white);
    opacity: 0;
    overflow: hidden;
    padding: 0.75rem;
    margin-right: -0.75rem;
    text-align: right;
    position: relative;
    /* backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px); */
    transition: opacity 0.5s ease-in-out;
}

.hamburger:has(input[type="checkbox"]:checked) a {
    opacity: 1;
}

.nav a input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 4;
}

.nav a:has(input[type="radio"]:checked) {
    background-color: var(--white);
    color: var(--black);
    /* background:url(./assets/images/bookmark.png) no-repeat;
    background-size: contain; */
}

.container:has(input[title="intro"]:checked) #hero-block {
    display: flex;
}

.container:has(input[title="origin"]:checked) #origin-block {
    display: flex;
}

.container:has(input[title="story"]:checked) #story-block {
    display: flex;
}

.container:has(input[title="story"]:checked) #story-block .story-cover {
    animation: OpacityAppear 0.5s linear forwards;
}

.container:has(input[title="story"]:checked) #story-block .story-dark {
    animation: OpacityDisappear 0.5s linear forwards;
}

.container:has(input[title="story"]:checked) #story-block .story-noise {
    animation: NoiseOpacityDisappear 0.25s linear forwards;
}

.container:has(input[title="characters"]:checked) #characters-block {
    display: flex;
}

.container:has(input[title="characters"]:checked) #characters-block .chara-cover {
    animation: OpacityAppear 0.5s linear forwards;
}

.container:has(input[title="characters"]:checked) #characters-block .chara-dark {
    animation: OpacityDisappear 0.5s linear forwards;
}

.container:has(input[title="characters"]:checked) #characters-block .chara-noise {
    animation: NoiseOpacityDisappear 0.25s linear forwards;
}


/* ========== HERO ========== */
.hero {
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--black);
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8) contrast(1.2);
}

.hero-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 1s ease-in-out;
}

.hero-noise {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") repeat;
    z-index: 2;
    animation: moveNoiseRight 1s linear infinite;
    opacity: 0.32;
    filter: brightness(0.5);
    transition: all 1s ease-in-out;
}

@keyframes moveNoiseRight {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 100% 0;
    }
}

.hero-content-container {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-top: 0;
    /* transition: all 1s ease-in-out; */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--general-padding);
    gap: 1.25rem;
    max-width: 52rem;
}

.hero-content h1 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    font-family: 'dune', sans-serif;
    text-transform: uppercase;
}

.hero-text {
    overflow: auto;
}

.hero-content .hero-text p {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--white);
    text-align: left;
    height: 0;
    overflow: hidden;
    margin-bottom: 0rem;
    transition: all 0.5s ease-in-out;
}

.hero-content .hero-text p:last-of-type {
    margin-bottom: 0;
}

.hero-content p:first-of-type {
    height: auto;
}

.hero-content a {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--white);
    text-align: left;
    border-bottom: 0.8px solid var(--white);
    position: relative;
}

.hero-content a input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 3;
}

.hero-content:has(input[type="checkbox"]:checked) .hero-text p {
    height: auto !important;
    margin-bottom: 1.25rem;
}

.hero:has(input[type="checkbox"]:checked) .hero-content-container {
    padding-top: 55vh;
}

.hero:has(input[type="checkbox"]:checked) .hero-cover {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero:has(input[type="checkbox"]:checked) .hero-noise {
    opacity: 0.1;
}

/* ========== STORY ========== */
.story {
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--black);
    color: var(--white);
    text-align: center;
    position: relative;
}

.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8) contrast(1.2);
}

.story-noise {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") repeat;
    z-index: 2;
    animation: moveNoiseRight 1s linear infinite;
    opacity: 0.2;
    filter: brightness(0.5);
}

.story-dark {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

.story-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes OpacityAppear {
    from {
        opacity: 0;
        background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    }

    to {
        opacity: 1;
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 1));
    }
}

@keyframes OpacityDisappear {
    from {
        opacity: 0.32;
    }

    to {
        opacity: 0;
    }
}

@keyframes NoiseOpacityDisappear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.story-content-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0;
    padding: var(--general-padding);
    gap: var(--general-padding);
}

.story-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--general-padding);
    padding-bottom: 1.875rem;
    width: 100%;
    /* height: 100%; */
}

.story-img {
    height: 35rem;
    width: 25rem;
    background: url('./assets/images/illust1.jpg') center center no-repeat;
    background-size: cover;
}

.story-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 52rem;
}

.story-text p {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--white);
    text-align: left;
    overflow: hidden;
    margin-bottom: 0rem;
    text-align: justify;
    display: none;
}

@media screen and (max-width: 797px) {
    .story-content-container {
        justify-content: center;
    }

    .story-content {
        flex-direction: column;
        max-width: 52rem;
    }

    .story-text {
        height: auto;
    }

    .story-img {
        height: 25rem;
        width: 100%;
    }
}

.pagination {
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
    gap: 0.5rem;
    height: 3rem;
}

.pagination::-webkit-scrollbar {
    display: none;
}

.pag-btn {
    font-size: 1rem;
    position: relative;
    padding: 0.6rem 1.25rem;
    font-family: 'dune', sans-serif;
    border: 1px solid var(--white);
    border-radius: 100px;
    white-space: nowrap;
}

.pag-line {
    width: 0.75rem;
    height: 1px;
    background-color: var(--white);
}

.pag-btn input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 3;
}

.pag-btn:has(input[type="radio"]:checked) {
    background-color: var(--white);
    color: var(--black);
}

.story-content-container:has(input[id="pag1"]:checked) .story-img {
    background: url('./assets/images/illust1.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag2"]:checked) .story-img {
    background: url('./assets/images/illust2.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag3"]:checked) .story-img {
    background: url('./assets/images/illust3.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag4"]:checked) .story-img {
    background: url('./assets/images/illust4.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag5"]:checked) .story-img {
    background: url('./assets/images/illust5.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag6"]:checked) .story-img {
    background: url('./assets/images/illust6.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag7"]:checked) .story-img {
    background: url('./assets/images/illust7.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag8"]:checked) .story-img {
    background: url('./assets/images/illust8.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag9"]:checked) .story-img {
    background: url('./assets/images/illust9.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag10"]:checked) .story-img {
    background: url('./assets/images/illust10.webp') center center no-repeat;
    background-size: cover;
}

.story-content-container:has(input[id="pag1"]:checked) .story-text p:first-of-type {
    display: block;
}

.story-content-container:has(input[id="pag2"]:checked) .story-text p:nth-of-type(2) {
    display: block;
}

.story-content-container:has(input[id="pag3"]:checked) .story-text p:nth-of-type(3) {
    display: block;
}

.story-content-container:has(input[id="pag4"]:checked) .story-text p:nth-of-type(4) {
    display: block;
}

.story-content-container:has(input[id="pag5"]:checked) .story-text p:nth-of-type(5) {
    display: block;
}

.story-content-container:has(input[id="pag6"]:checked) .story-text p:nth-of-type(6) {
    display: block;
}

.story-content-container:has(input[id="pag7"]:checked) .story-text p:nth-of-type(7) {
    display: block;
}

.story-content-container:has(input[id="pag8"]:checked) .story-text p:nth-of-type(8) {
    display: block;
}

.story-content-container:has(input[id="pag9"]:checked) .story-text p:nth-of-type(9) {
    display: block;
}

.story-content-container:has(input[id="pag10"]:checked) .story-text p:nth-of-type(10) {
    display: block;
}

/* ========== CHARACTERS ========== */
.characters {
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--black);
    color: var(--white);
    text-align: center;
    position: relative;
}

.characters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8) contrast(1.2);
}

.chara-noise {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") repeat;
    z-index: 2;
    animation: moveNoiseRight 1s linear infinite;
    opacity: 0.2;
    filter: brightness(0.5);
}

.chara-dark {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

.chara-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chara-content-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0;
    padding: var(--general-padding);
    gap: var(--general-padding);
}

.chara-content-slider {
    width: 100vw;
    height: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
}
.chara-content-slider::-webkit-scrollbar {
    display: none;
}

.chara-content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--general-padding);
    padding-bottom: 1.875rem;
    height: 100%;
    width: -moz-fit-content;
    width: fit-content;
    padding: 0 1.875rem;
    padding-top: 3.5rem;
}

.chara-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 28rem;
    height: 100%;
    gap: 0.8rem;
    position: relative;
}

.chara-img-blur {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
    transition: all 0.5s ease-in-out;
    border-radius: 1rem;
}

.chara-img {
    border-radius: 1rem;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center !important;
    transition: all 0.5s ease-in-out;
}

.chara-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 3;
    padding: 1rem;
    scrollbar-width: none;
}

.chara-text::-webkit-scrollbar {
    display: none;
}

.chara-text:first-of-type {
    position: absolute;
}

.chara-text h3 {
    width: 100%;
    font-size: 1.75rem;
    text-align: left;
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
}

.chara-text p {
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--white);
    text-align: left;
    overflow: hidden;
    margin-bottom: 0rem;
    text-align: justify;
    display: none;
}

.chara-text p:first-of-type {
    display: block;
}

.chara-more {
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--white);
    text-align: left;
    border-bottom: 0.8px solid var(--white);
    position: relative;
    width: -moz-fit-content;
    width: fit-content;
}

.chara-more input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 3;
}

.chara-card:has(input[type="checkbox"]:checked) .chara-text p {
    display: block;
}

.chara-card:has(input[type="checkbox"]:checked) .chara-text {
    position: absolute;
    bottom: 0;
}

.chara-card:has(input[type="checkbox"]:checked) .chara-img-blur {
    opacity: 1;
}

.chara-card:has(input[type="checkbox"]:checked) .chara-img {
    opacity: 1;
    filter: grayscale(100%);
}