:root {
    --dark-primary-color: #212121;
    --dark-medium-color: #474747;
    --dark-light-color: #c4c4c4;
    --dark-accent-color: #285fcc;

    --light-primary-color: #ececec;
    --light-medium-color: #747474;
    --light-light-color: #111111;
    --light-accent-color: #17397c;

    --primary-color: var(--dark-primary-color);
    --secondary-color: var(--dark-medium-color);
    --tertiary-color: var(--dark-light-color);
    --accent-color: var(--dark-accent-color);
    --bg-img-path: var(--bg-dark);

    /*this one does not toggle with dark mode*/
    --light-color-fixed: #c4c4c4;



    --font-family-heading: 'Courier New', Courier, monospace;
    --font-family-content: Inter, Sans-serif;
    --font-scale: 1.2rem;

    font-family: var(--font-family-heading);
    color: var(--tertiary-color);
}

/* element-level base stylings */

body {
    background-color: var(--primary-color);
    background-image: url("../img/bg_horiz.jpg");
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

a,
i {
    color: var(--tertiary-color);
    text-decoration: none;
}

h2 {
    font-size: calc(1.1 * var(--font-scale));
    font-weight: 400;
    letter-spacing: 0.3rem;
    line-height: 0.8rem;
    display: inline-block;
}

h3 {
    font-size: calc(0.85 * var(--font-scale));
    font-weight: 800;
    letter-spacing: 0.1rem;
    line-height: 0.8rem;
    margin: 0;
}

h4 {
    font-size: calc(1.4 * var(--font-scale));
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin: 0;
}

li,
p {
    font-size: calc(0.8 * var(--font-scale));
    font-weight: 400;
    line-height: 1.3rem;
    letter-spacing: 0.1rem;
    font-family: var(--font-family-content);
}

ul {
    list-style-type: "";
}

b,
i {
    font-family: var(--font-family-content);
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.5rem;
}

button:hover {
    transition: filter 0.4s ease-in-out;
    filter: brightness(120%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/*class styling*/

.bg-light {
    background-color: var(--tertiary-color);
}

.bg-dark-opacity-hi {
    background-color: rgba(from var(--primary-color) r g b / 0.6);
    backdrop-filter: blur(8px) saturate(200%);
    -webkit-backdrop-filter: blur(8px) saturate(200%);
}

.bg-dark-opacity-lo {
    background-color: rgba(from var(--primary-color) r g b / 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.bg-no {
    background-color: rgba(0, 0, 0, 0.25);
}

.bottom {
    align-items: flex-end;
}

.bordered {
    border: 1px solid rgba(from var(--tertiary-color) r g b / 0.125);
}

.bordered-bottom {
    border-bottom: 1px solid rgba(from var(--tertiary-color) r g b / 0.3);
}

.bordered-left {
    border-left: 1px solid rgba(from var(--tertiary-color) r g b / 0.3);
}

.bordered-top {
    border-top: 1px solid rgba(from var(--tertiary-color) r g b / 0.3);
}

.columns {
    display: flex;
    flex-direction: row;
}

/*same presets but doesn't resize on smaller screen breakpoint*/
.columns-fixed {
    display: flex;
    flex-direction: row;
}

.column-gutter {
    width: 5rem;
}

.column-25 {
    flex: 25%;
}

.column-50 {
    flex: 45%;
}

.column-75 {
    flex: 75%;
}

.compact {
    padding: 0.3rem 0.5rem;
    margin: 0.2rem 0.25rem;
}

.constrain-width {
    max-width: 1800px;
    margin: auto;
}

.extra-margin-bottom {
    margin-bottom: 1.2rem;
}

.extra-margin-left {
    margin-left: 1.4rem;
}

.icon-small {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.icon-small-disabled {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.inline {
    display: inline-block;
}

.logo-small {
    display: fixed;
    width: 3.75rem;
    margin: 0.25rem;
}

.logo-medium {
    display: fixed;
    width: 5rem;
    margin: 0.25rem;
}

.middle {
    align-items: center;
}

.middle-text {
    text-align: center;
}

.rounded {
    border-radius: 5px;
}

.section {
    font-size: calc(0.9 * var(--font-scale));
    line-height: 2rem;
    letter-spacing: 0.25rem;
    margin-left: 0.75rem;
    color: var(--light-color-fixed)
}

.square-small {
    width: 2.2rem;
    height: 2.2rem;
}

.top {
    align-items: top;
}

.typewrite {
    font-size: calc(0.8 * var(--font-scale));
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.11rem;
    line-height: 0.8rem;
    margin: 0;
    min-width: 17rem;
    text-align: center;
}

.typewrite>.wrap {
    border-right: 1px solid var(--tertiary-color);
    line-height: 0.8rem;
}

.z-top {
    z-index: 1;
}

/* ID stylings */

#footer-text {
    display: none;
    justify-content: space-around;
    margin-bottom: -0.3rem;
}

#surname {
    font-weight: 800;
}

/* media-responsiveness for smaller screen sizes */

@media (max-width: 1000px) {
    :root {
        --font-scale: 1.1rem;
    }

    body {
        background-image: url("../img/bg_vert.jpg");
    }

    /*switch to one column on screens that can't comfortably fit all three*/
    .columns {
        flex-direction: column;
    }

    .constrain-width {
        max-width: 500px;
    }

    #title {
        display: none;
    }
}

@media (max-width: 800px) {

    .compact {
        padding: 0.2rem 0.35rem;
        margin: 0.15rem 0.2rem;
    }

    .constrain-width {
        max-width: 400px;
    }

    .extra-margin-bottom {
        margin-bottom: 1rem;
    }

    .extra-margin-left {
        margin-left: 1.3rem;
    }
}