@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';
}

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

/* ---- Overall structure ---- */
/* Default display is max-width: 1600 */

* {
    margin: 0;
    padding: 0;
}

html {
    margin: 25vh auto;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-size: 1.3rem;
    font-family: 'Franklin Gothic Medium', sans-serif;
    letter-spacing: 2.5%;
    text-rendering: optimizeLegibility;
    line-height: 1.25;
    height: fit-content;
    display: grid;
    grid-template-columns: 5vh repeat(3, minmax(max-content, 1fr)) 5vh;
    grid-template-rows: repeat(2, minmax(max-content, 20vh));
    align-items: center;
    row-gap: 4vh;
}

#index {
    display: grid;
    grid-template-columns: repeat(3, minmax(max-content, 1fr));
    grid-template-rows: repeat(2, minmax(max-content, 20vh));
    align-items: center;
    row-gap: 4vh;
    overflow-y: hidden;
}

#main {
    display: block;
    width: 79vh;
    height: fit-content;
    /* margin: 15vh auto; */
    grid-column: 2;
    grid-row: 1;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 2vh;
}

/* Dropdown */
#dropdown {
    position: relative;
    display: inline;
}

.dropBtn {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    font-size: inherit;
    font-style: italic;
    font-weight: inherit;
    font-family: 'Times New Roman', Times, serif;
    text-decoration: underline;
    text-decoration-thickness: 1.2px;
    color: var(--links);
    cursor: pointer;
}

.dropctnt {
    display: none;
    position: absolute;
    background-color: transparent;
    min-width: 160px;
    z-index: 1;
}

.dropctnt a {
    padding-right: 15px;
    font-weight: normal;
    display: inline;
}

.show {
    display: inline;
    position: relative;
    text-wrap: wrap;
    margin-top: 6px;
    font-size: 1.2rem;
}

/* END Dropdown */

a {
    color: var(--links);
}

.socials {
    margin-top: 4vh;
}

.italics {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 600;
    text-wrap: inherit;
}

footer {
    position: fixed;
    padding-left: 55vh;
    left: 55vh;
    bottom: 0;
    height: fit-content;
    padding: 2vh 0;
    font-size: 0.75rem;
    background-color: var(--background);
    width: 100%;
    /* grid-column: 2;
    grid-row: 2;
    align-self: end; */
}

footer#ai-credits {
    left: 38vh;
    text-align: left;
}