/* (c) 2025, by github/draggie306 & iBaguette
 * 100% of this was written by me, except where sepcifically noted and credited.
 * if you make something cool with this, let me know :)
/*


/* 1.1 -- generic styles */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #070707;
    font-family: sans-serif;
    scroll-behavior: smooth;

    user-select: none;

    /* Kill scrollbar. */
    overflow-y: scroll;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox, Safari 18.2+, Chromium 121+ */

    ::-webkit-scrollbar {
        display: none;
        /* Older Safari and Chromium */
    }
}

.container-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    align-content: center;
    flex-direction: row;
    margin: 0 auto;
}

.container-stories-gen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    align-content: center;
    flex-direction: column;
    margin: 0 auto;
    border-top: 0.1em solid #3f3f3f;
}

.story-list-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    align-content: center;
    flex-direction: column;
    margin: 0 auto;
}

/*                      2.1 -- specific for lander section                      */

/*          2.1.1 -- pretty svg */

svg {
    width: 80vw;
    height: auto;
    max-width: 1200px;
    align-items: center;
    text-align: center;
}

/*          2.1.2 -- scroll nudger */

.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 1.2em;
    color: #fff;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-down p {
    font-size: 1.5em;
    color: #414141;
    text-align: center;
}

/* note: taken from stackoverflow, not my own work: https://stackoverflow.com/a/46798839 */
#showMe {
    opacity: 0;
    -moz-animation: reveal-animation 17s;
    /* Firefox */
    -webkit-animation: reveal-animation 17s;
    /* Safari and Chrome */
    -o-animation: reveal-animation 17s;
    /* Opera */
    animation: reveal-animation 17s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 1.5s infinite;
}

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

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/*                      2.2 -- specific for stories section */

section {
    color: #ffffff;
    align-items: center;
}

.story a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.5em;
}

@font-face {
    font-family: 'Perfecto Calligraphy';
    src: url('PerfectoCalligraphy.woff2') format('woff2'),
        url('PerfectoCalligraphy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*                          section 2 - list of stories */
#list {
    font-family: 'Perfecto Calligraphy', cursive;
    font-size: 6em;
    text-align: center;
}

.story-title {
    font-family: 'Perfecto Calligraphy', cursive;
    margin-bottom: 0px; /* enforces a smaller gap to between the title and text below to reduce ambiguity */
}

h1 a {
    font-family: 'Perfecto Calligraphy', cursive;
    color: #929292;
    text-decoration: underline;
    font-size: 2em;
}

h1 a:hover {
    color: #cfcfcf;
    transition: 0.5s ease;
}

/* adding this prevents the user from seeing jarring changes to the text. */
a:not(:hover) {
    color: #929292;
    font-size: default;
    transition: 0.5s ease;
    display: inline-block;
}

.story-start-preview {
    font-size: 0.98em;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-style: italic;
}

.story-snippet {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 1.5em; /* separation from the story below */
}

.drawn-path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 8s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/*                       3.1 -- specific for footer section -- Credit to https://epicbootstrap.com/snippets/footer-basic */
.footer-basic {
    padding: 20px 0;
    color: #201f1f;
    margin-top: 3px;
    border-top: 0.1em solid #3f3f3f;
}

.footer-basic .social {
    text-align: center;
    padding-bottom: 10px;
}

.footer-basic .social>a {
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    color: #ffffff;
    opacity: 0.75;
}

.footer-basic .social>a:hover {
    opacity: 0.5;
    transition: 0.7s ease;
}

.footer-basic .social>a svg {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}


/* 4.1 -- stories page specific styles */

.story-page-title-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    align-content: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 0;
    justify-content: flex-start;
    margin-bottom: 4em;
}

.story-page-title {
    font-size: 6em;
    font-family: 'Perfecto Calligraphy', cursive;
    text-align: center;
    padding: 0;
    color: #9b9b9b;
    margin-bottom: 0.1em;
}


.story-page-info-container {
    padding: 0;
    color: #9b9b9b;
    justify-content: flex-start;
    line-height: 0em;
    text-overflow: ellipsis;
    font-style: italic;
}

.story-page-info-container p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


.story-page-content {
    font-size: 1.3em;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-style: italic;
    color: #f0f0f0;
}

@media (min-width: 1px) {
    .story-page-content {
        padding-right: calc(25px + (300vw - 700px) * (-15) / -300);
        padding-left: calc(25px + (300vw - 700px) * (-15) / -300);
    }
};

.ending-gap {
    margin: 4em 0;
}


/*
 * cool reveal 
 * <div class="animated" style="--duration: 0.6s;">Title1</div>
 * <div class="animated" style="--duration: 1.2s;">title2</div>
*/
.reveal {
    opacity: 0;
    -webkit-animation: reveal-animation var(--duration, 1s) forwards;
    -moz-animation: reveal-animation var(--duration, 1s) forwards;
    -o-animation: reveal-animation var(--duration, 1s) forwards;
    animation: reveal-animation var(--duration, 1s) forwards;
}

@keyframes reveal-animation {
    14% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(-20%);
    }
}

@-webkit-keyframes reveal-animation {
    14% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(-20%);
    }
}


/* to make some elements, e.g. footer, not look weird */
.reveal-no-transform {
    opacity: 0;
    -webkit-animation: reveal-animation-no-transform var(--duration, 1s) forwards;
    -moz-animation: reveal-animation-no-transform var(--duration, 1s) forwards;
    -o-animation: reveal-animation-no-transform var(--duration, 1s) forwards;
    animation: reveal-animation-no-transform var(--duration, 1s) forwards;
}

@keyframes reveal-animation-no-transform {
    14% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes reveal-animation-no-transform {
    14% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/* Cool web tech: view transitions */

@view-transition {
    navigation: auto;
}


/* 
@keyframes move-out {
    from {
        transform: translateY(0%);
    }

    to {
        transform: translateY(-100%);
    }
}

@keyframes move-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0%);
    }
}

Apply the custom animation to the old and new page states 
::view-transition-old(root) {
    animation: 0.4s ease-in both move-out;
}

::view-transition-new(root) {
    animation: 0.4s ease-in both move-in;
} */