:root {
    /* Grey-scale Colors */
    --color-main-dark: #111111;
    --color-main-light: #eeeeee;
    
    /* Accent Colors */
    --color-accent-red: #ff4040;
    --color-accent-blue: #40b0c0;

    /* Global modifiable values */
    --color-light: var(--color-main-light);
    --color-dark: var(--color-main-dark);
}

.black-fade {
    --color-light: var(--color-main-dark);
    --color-dark: var(--color-main-dark);
}

.red-fade {
    --color-light: var(--color-accent-red);
    --color-dark: var(--color-accent-red);
}

#fade-overlay {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: var(--color-dark);
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: all .6s ease-in 0s;
}

/* .custom-cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: radial-gradient(#eeeeee80, #eeeeee20 40%, transparent 70%);
    pointer-events: none;
    z-index: 500;
    transition: transform 0.1s ease;
} */

::-webkit-scrollbar {
    width: 0px;
}

html, body {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease 0s;
}

h1, h2, h3, h4, h5, h6, p, a, button, input, ul, ol, li {
    color: var(--color-light);
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

button {
    border: none;
    border-radius: 10px;
    padding: 9px 25px 11px 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease 0s;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    transition: all 0.3s ease 0s;
}

.ignore {
    pointer-events: none;
    user-select: none;
    z-index: 999;
    opacity: 0;
}

/* String map */
#string-map {
    pointer-events: none;
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}

.string {
    position: absolute;
    overflow: hidden;
    left: -50vw;
    top: 0;
    width: 200vw;
    height: 6px; 
    background-color: #ff4040;
    opacity: 0.4;
    transform: rotate(-20deg);
}

/* Raindrops */
#storm-container {
    pointer-events: none;
    user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    overflow: hidden;
    top: 0;
    width: 2px;
    height: 120px; 
    background-color: #eeeeee;
    opacity: 0.2;
    animation: rain 1s linear infinite;
}

@keyframes rain {
    0% {
        transform: rotate(20deg) translateY(-100%);
    }
    100% {
        transform: rotate(20deg) translateY(120vh);
    }
}

/* Navigation */
nav {
    user-select: none;
    h1 {
        font-size: 36px;
        /* font-family: "Roboto", sans-serif; */
        font-weight: 500;
        padding: 0 10px;
        margin: 0;
        /* z-index: 100; */
        pointer-events: none;
    }
    a {
        font-weight: 300;
        font-size: 18px;
        color: var(--color-light);
        padding: 4px 10px;
        text-decoration: none;
        transition: all 0.3s ease 0s;
        /* z-index: 100; */
    }
    a:hover {
        font-weight: 700;
        transform: translateY(-4px);
    }
    a.active {
        font-weight: 700;
        border-bottom: 2px solid var(--color-light);
        transform: translateY(0px);
    }
}

#wide-nav {
    margin: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    gap: 50px;
    transition: all 1s ease 0s;
}

#side-nav {
    position: fixed;
    top: 0;
    left: -420px;
    height: 100%;
    width: 140px;
    padding: 80px 220px 20px 20px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: 20px;
    background-color: #111111e0;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.8s ease 0s;
    z-index: 2;
    a {
        font-size: 24px;
    }
}

#nav-icon {
    pointer-events: none;
    user-select: none;
    z-index: 3;
    opacity: 0;
    top: 30px;
    left: 20px;
    position: absolute;
    transition: all 0.8s ease 0s;
}

/* Homepage */
#home-title {
    pointer-events: none;
    user-select: none;
    width: 1200px;
    max-width: calc(100% - 40px);
    position: absolute;
    top: calc(50% - 170px);
    /* top: calc(70% - 350px); */
    transition: all 0.3s ease 0s;
    .img-container {
        z-index: -1;
        pointer-events: none;
        user-select: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    #home-image {
        position: absolute;
        top: calc(50% - 350px);
        left: calc(50% - 530px);
        width: 750px;
        max-height: 120%;
        opacity: 0.4;
        transition: all 0.1s ease-out 0s;
    }
    #home-title-text {
        display: flex;
        flex-direction: column;
        text-align: right;
        align-items: end;
        /* margin-right: 50px; */
        #cooper-name {
            font-size: 94px;
            line-height: 80px;
            padding: 0;
            margin: 0;
        }
        h2 {
            font-size: 18px;
            padding: 0 5px 0 0;
            margin: -4px 0 0 0;
        }
        p {
            font-weight: 300;
            text-align: right;
            max-width: 450px;
            margin-block: 45px 30px;
        }
        button {
            pointer-events: all;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            background-color: var(--color-accent-red);
            color: var(--color-light);
            width: 260px;
            font-weight: 500;
            height: 50px;
            border-radius: 25px;
            margin-right: 10px;
            text-indent: 15px;
            span {
                margin-top: -7px;
                font-size: 40px;
                opacity: 0;
                transition: all 0.3s ease 0s;
            }
        }
        button:hover {
            font-weight: 600;
            text-indent: 0px;
            transform: scale(1.05);
            span {
                opacity: 1;
            }
        }
        button:active {
            background-color: #c03030;
            color: #c0c0c0;
            transform: scale(1.02) translateY(4px);
        }
    }
}

/* Timeline Page */
#timeline-container {
    display: flex;
    width: 500px;
    max-width: 100%;
    overflow-x: auto;
    /* overflow-x: hidden; */
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1;
    transition: scroll 0.9s ease-in-out 0s;
}
#timeline-container::-webkit-scrollbar {
    display: none;
}
#timeline-container::before {
    pointer-events: none;
    user-select: none;
    content: '';
    position: absolute;
    margin-left: -1px;
    z-index: 2;
    width: 150px;
    height: 120px;
    background: linear-gradient(to right, var(--color-dark) 5%, transparent);
}
#timeline-container::after {
    pointer-events: none;
    user-select: none;
    content: '';
    position: absolute;
    margin-left: calc(min(500px, 100%) - 149px);
    z-index: 2;
    width: 150px;
    height: 120px;
    background: linear-gradient(to left, var(--color-dark) 5%, transparent);
}

#timeline {
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: center;
    padding: 0px;
    margin-block: 60px 10px;
    transition: all 0.9s ease-in-out 0s;
    .event {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
        width: 31px;
        height: 31px;
        border: 7px solid var(--color-light);
        border-radius: 50%;
        background-color: var(--color-dark);
        h2 {
            font-size: 24px;
            margin-block: -120px 0px;
        }
    }
    .line {
        width: 150px;
        margin: -2px;
        border-top: 6px solid var(--color-light);
    }
    .line:first-of-type {
        width: min(217px, calc(50vw - 20px));
        border-top-color: transparent;
    }
    .line:last-of-type {
        width: min(247px, calc(50vw - 20px));
        border-top-color: transparent;
    }
}

#timeline-info, #timeline-title {
    position: fixed;
    top: 200px;
    width: 800px;
    max-width: 90vw;
    margin-inline: 10px;
    text-align: center;
    font-size: 18px;
    line-height: 150%;
    font-weight: 300;
    transition: all 0.3s ease 0s;
    transform: translateX(-15px);
}
#timeline-title {
    font-size: 36px;
    font-weight: 400;
    transition: all 0.9s ease 0s;
}

/* Suspects Page */
#cooper-bulletin {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: fit-content;
    padding-block: 70px 60px;
    column-gap: 80px;
    row-gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-image: url('../images/paper-torn-bg-01.svg');
    background-size: auto 100%; 
    background-repeat: repeat-x;
    background-position: center;
    img {
        width: 320px;
        max-width: 75%;
    }
    div {
        padding: 20px;
        display: flex;
        flex-direction: column;
        h2 {
            color: var(--color-dark);
            font-size: 36px;
            padding: 0;
            margin: 0;
        }
        li, p {
            color: var(--color-dark);
            line-height: 28px;
            margin: 0;
            padding: 0;
        }
        p {
            margin-left: 20px;
        }
    }
}

#suspect-grid {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    margin: 50px;
    grid-row-gap: 60px;
    grid-column-gap: 50px;
    text-align: center;
    transition: all 0.3s ease 0s;
    h2 {
        font-size: 32px;
        font-weight: 350;
        grid-column: span 3;
        margin: 30px 0 -15px 0;
    }
    h3, p {
        color: var(--color-dark);
        padding: 0;
        margin: 0;
    }
    h3 {
        font-weight: 500;
        font-size: 23px;
        margin-block: 20px 15px;
    }
    p {
        font-size: 15px;
    }
}

.suspect-bulletin {
    padding: 50px 20px;
    width: 300px;
    max-width: 78vw;
    height: 500px;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* background-color: var(--color-light); */
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    img {
        padding-top: 20px;
        height: 260px;
    }
}

.suspect-bulletin:hover {
    transform: scale(1.04);
}

#info-popup {
    position: fixed;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: #111111e0;
    backdrop-filter: blur(5px);
    transition: all 0.6s ease 0s;
    #info-popup-grid {
        display: grid;
        width: 1150px;
        height: 500px;
        /* padding: 50px; */
        /* background-color: var(--color-light); */
        grid-template-rows: fit-content() fit-content();
        grid-template-columns: 1fr 2fr;
        column-gap: 50px;
        img {
            height: 350px;
            max-height: calc(100% - 100px);
            grid-row: span 2;
            padding: 80px 50px;
            margin-block: 20px;
            align-self: center;
            /* background-color: var(--color-light); */
            background-image: url('../images/paper-torn-bg-03.svg');
            background-size: auto 100%;
            background-repeat: no-repeat;
            background-position: center;
        }
        h3 {
            align-self: flex-end;
            font-weight: 500;
            font-size: 32px;
            margin-block: 0px 10px;
        }
        p, ul, li {
            font-size: 15px;
            font-weight: 300;
            line-height: 150%;
            /* margin: 0; */
        }
    }
}

/* Evidence */
#evidence-grid {
    display: flex;
    flex-direction: column;
    place-items: center;
    margin: 50px;
    gap: 0px;
    text-align: center;
    transition: all 0.3s ease 0s;
    h2 {
        font-size: 32px;
        font-weight: 350;
        grid-column: span 3;
        margin: 0 0 -15px 0;
    }
    h3, p {
        color: var(--color-light);
        padding: 0;
        margin: 0;
    }
    h3 {
        font-weight: 400;
        font-size: 23px;
        margin-block: 0;
        align-self: flex-end;
        margin-bottom: 20px;
    }
    p {
        font-size: 15px;
        line-height: 150%;
    }
}

.evidence-bulletin {
    width: 900px;
    max-width: calc(90vw - 20px);
    margin: 35px 20px;
    /* height: 150px; */
    display: grid;
    grid-template-rows: fit-content() fit-content();
    grid-template-columns: 1fr 4fr;
    text-align: left;
    column-gap: 30px;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    img {
        max-width: 200px;
        height: 100%;
        /* margin-block: 40px; */
        grid-row: span 2;
        align-self: center;
    }
}

.evidence-bulletin:hover {
    transform: scale(1.04);
}

.evidence-bulletin:nth-child(odd) {
    grid-template-columns: 4fr 1fr;
    img {
        order: 1;
    }
    p {
        order: 2;
    }
}

.paragraph-div {
    display: flex;
    flex-direction: column;
    width: 900px;
    max-width: 100vw;
    justify-content: center;
    align-items: center;
    padding-inline: calc((100vw - min(900px, 100vw)) / 2);
    padding-block: 50px 120px;
    overflow: hidden;
    /* background-color: var(--color-light); */
    background-image: url('../images/paper-torn-bg-01.svg'); 
    background-size: auto 100%; 
    background-repeat: repeat-x;
    background-position: top;
    h2 {
        max-width: 85vw;
        font-size: 32px;
        font-weight: 450;
        grid-column: span 3;
        text-align: center;
        margin-bottom: 35px;
        color: var(--color-dark);
    }
    h3, p {
        max-width: 85vw;
        padding: 0;
        margin: 0;
        color: var(--color-dark);
    }
    h3 {
        font-weight: 400;
        font-size: 23px;
        margin-block: 40px 20px;
    }
    h3:first-of-type {
        margin-top: 0px;
    }
    p {
        font-size: 15px;
        line-height: 150%;
        margin-left: 30px;
        /* text-indent: 20px; */
    }
    img {
        max-width: 90%;
    }
}

.paragraph-div:nth-child(even) {
    h2, h3, p {
        font-weight: 350;
        color: var(--color-light);
    }
    h2 {
        font-weight: 450;
    }
}

.absolute-container {
    pointer-events: none;
    user-select: none;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Map */
#map::after {
    /* box-shadow: inset 0 0 500px 1px var(--color-main-dark) !important; */
    content: '';
    pointer-events: none;
    user-select: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-dark) 15px, transparent 120px),
                /* linear-gradient(to left, var(--color-dark) 5px, transparent 40px),
                linear-gradient(to top, var(--color-dark) 20px, transparent 60px),
                linear-gradient(to right, var(--color-dark) 5px, transparent 40px), */
                radial-gradient(transparent 40%, var(--color-dark) 120%);
}

/* Intermediate Viewport */
@media only screen and (max-width: 1300px) {
    #suspect-grid {
        grid-template-columns: 1fr 1fr;
        h2 {
            grid-column: span 2;
        }
    }
}

/* Mobile Viewport */
@media only screen and (max-width: 1000px) {
    .hide-on-mobile {
        display: none;
        opacity: 0;
        width: 0;
        height: 0 !important;
    }
    .absolute-container, .relative-on-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate(0, 0) !important;
    }
    .absolute-container {
        height: auto !important;
    }

    #wide-nav {
        /* overflow: hidden; */
        margin-left: calc(50% - 110px);
        a {
            display: none;
            opacity: 0;
        }
    }
    #side-nav {
        opacity: 1;
    }
    .side-nav-open {
        transform: translateX(420px);
    }
    #nav-icon {
        pointer-events: auto;
        opacity: 1;
    }

    /* Home */
    #home-title {
        #home-title-text {
            align-items: center;
            h2 {
                align-self: flex-end;
            }
            button {
                align-self: center;
                margin-right: 0px;
            }
            p {
                text-align: center;
            }
        }
    }

    /* Timeline */
    
    #timeline {

    }
    #timeline-title, #timeline-info {
        transform: translateX(0);
    }

    /* Suspects */
    #cooper-bulletin {
        flex-direction: column;
    }
    
    #suspect-grid {
        grid-template-columns: 1fr;
        h2 {
            grid-column: span 1;
        }
    }

    #info-popup {
        #info-popup-grid {
            height: auto;
            max-width: 90%;
            padding-top: 5px;
            /* align-self: flex-start; */
            align-self: center;
            display: flex;
            flex-direction: column;
            img {
                max-width: 50%;
                height: fit-content;
                padding-block: 40px;
                margin-block: -20px 0px;
            }
            h3 {
                font-size: 24px;
                align-self: center;
                text-align: center;
                margin-block: 15px 5px;
            }
            p, ul, li {
                font-size: 12px;
            }
        }
    }

    #evidence-grid {
        h3 {
            align-self: center;
            text-align: center;
        }
    }
    .evidence-bulletin {
        display: flex;
        flex-direction: column;
    }
    .evidence-bulletin:nth-child(odd) {
        img, p {
            order: 0;
        }
    }

    .paragraph-div {
        h3 {
            text-align: center;
        }
        p {
            margin-left: 0px;
        }
    }
    
}