@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #fafafa;
}

.container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100vh;
}

section {
    scroll-snap-align: start;
    position: relative;
}

.cover {
    background-image: url('../media/cover/cover.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
}

.faultlines-text-overlay {
    /* Align to the right */
    position: absolute;
    top: 0;
    right: 0;
}

#faultlines-text-overlay-img {
    max-height: 100vh;
    max-width: 100vw;
    transition: all 2s ease-in-out;
    /* position off screen */
    transform: translateX(50vw);
    opacity: 0;
}

.navigate-down {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigate-down > img {
    cursor: pointer;
    width: 120px;
}

.table-of-contents {
    height: 100vh;
    width: 100vw;
}

.letter-from-the-editor {
    min-height: 100vh;
    background-color: #f9e8c5;
    background-image: url('../media/cover/paper_background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0px;
    padding-right: 60px;
    position: relative;
    overflow: hidden;
}

#letter-1 {
    width: 100%;
    z-index: 100;
}

#letter-2 {
    width: 100%;
    z-index: 100;
}

#letter-1 > img {
    transform: rotate(-5deg);
    max-width: 100%;
}

#letter-2 > img {
    transform: rotate(5deg);
    max-width: 90%;
}

#letter-1-portrait, #letter-2-portrait {
    width: auto;
    height: auto;
    z-index: 0;
}

#letter-1-portrait {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 40vh;
    transform: rotate(-10deg);
    border: 8px solid white;
}

#letter-2-portrait {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 37vh;
    margin-bottom: 10vw;
    margin-right: 10px;
    transform: rotate(8deg);
    border: 8px solid white;
}

.separator-default {
    height: 75px;
    /* Gradient from f9e8c5 to white then f9e8c5 */
    background: linear-gradient(to bottom, #f9e8c5, white, white);
}

.separator-after {
    height: 75px;
    /* Gradient from f9e8c5 to white then f9e8c5 */
    background: linear-gradient(to bottom, white, #f9e8c5, #f9e8c5);
}

.portraits {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 0;
}

.credits {
    height: 100vh;
    width: 100vw;
    background-color: #f9e8c5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 40px;
}

#credits-bg {
    height: 100vh;
    padding-top: 5vh;
    padding-bottom: 5vh;
    padding-left: 5vw;
}

.credits-body {
    width: 100%;
    height: 100%;
    display: flex;
    padding-right: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.credits-text {
    text-align: right;
    width: 90%;
    margin-right: -10%;
    line-height: 1;
}

#scroll-hint {
    /* Show round dialog box on bottom of screen of height 100px */
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100px;
    right: 0;
    width: 80%;
    padding: 20px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    border-radius: 10px;
    z-index: 100;
    color: white;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 50vh;
    text-align: center;
}

.footer-text > * > a {
    color: black;
    font-size: 1em;
}

@media (max-width: 768px) {
    .faultlines-text-overlay {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .faultlines-text-overlay > img {
        max-height: 60vh;
        max-width: 60vw;
    }

    .cover {
        height: 100vh;
    }

    #faultlines-text-overlay-img {
        max-height: 60%;
    }

    /* TO-DO: Make letter from the editor section responsive */
}