@import url('fonts.css');

:root {
    /* Colours */
    --background: #F2F2F2;
    --text: #424242;
    --links: #2f1e85;

    /* Fonts */
    --sans-serif: 'Franklin Gothic Medium', sans-serif;
    --serif: 'Times New Roman', Times, serif;
    --code: 'Comic Mono';
    --fancy: 'Fancy';
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #F2F2F2;
        --background: #424242;
        --links: #B0A6E3;
    }
}

/* 15" laptop */
@media screen and (min-width: 769px) and (max-width: 1600px) {

    h1 {
        font-size: 1.4rem;
    }
}

/* mobile */
@media screen and (max-width: 768px) {
    html {
        margin: 0;
        padding: 0;
    }

    #index {
        display: block;
        margin: 15vh 5vh;
    }

    #main {
        width: calc(100vw - 10vh);
    }

    h1,
    .socials {
        font-size: 1rem;
    }

    .dropctnt a {
        padding-right: .5rem;
    }

    .show {
        font-size: 1rem;
    }

    footer,
    footer#ai-credits {
        left: 3vh;
        right: 3vh;
        width: calc(100vw - 6vh);
        font-size: .6rem;
    }

    /* Project pages */
    body {
        display: block;
        margin: 15vh 5vh;
        font-size: .9rem;
    }

    #topnav {
        flex-direction: column;
        margin-bottom: 1vh;

        h1 {
            margin-bottom: 2vh;
        }
    }

    .menu-section {
        margin-bottom: 1vh;
    }

    #topnav a,
    .menu-section a {
        font-size: .8rem;
    }

    #sidenav {
        margin-bottom: 2vh;
    }

    h4 {
        font-size: .7rem;
    }

    .details,
    .gallery {
        margin-bottom: 3vh;
    }

    .description {
        max-width: calc(100vw - 6vh);
    }

    .timestamp {
        font-size: .7rem;
    }

    #memoirePDF {
        font-size: .9rem;
        margin-top: .5vh;
    }
}