:root {
    --main-bg-color: #1b1b1b;
    --secondary-bg-color: #000;
    --main-text-color: #f4f4f4;
    --accent-color: #ff6f00;
    --font-xlarge: 1.8rem;
}

html, body, #page {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--main-bg-color) !important;
    color: var(--main-text-color) !important;
    font-family: 'Outfit', sans-serif;
}

.page {
    position: relative;
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
}

.w-100 {
    width: 100%;
}

.bg-home {
    background-image: url(/img/bg/ed1.jpg);
    background-size: cover;
}

.bg-riviera {
    background-image: url(/img/bg/riviera2.jpg);
    background-size: cover;
}

.bg-forsakenatoll {
    background-image: url(/img/bg/7dtd3.jpg);
    background-size: cover;
}

.title {
    font-size: var(--font-xlarge);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-weight: normal;
}

.smallround {
    border-radius: 0.5rem;
}

.accented {
    color: var(--accent-color);
}

a.active > i, a.active > span {
    color: var(--accent-color);
}

a > i, li > i {
    width: 30px;
    margin-right: 0.5rem;
}

nav {
    padding: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

    nav div {
        display: flex;
        align-items: center;
    }

    nav a {
        padding: 0.6rem 0.8rem 0.6rem 0.8rem;
        font-family: 'Outfit', sans-serif;
        font-size: 1.2rem;
        color: var(--main-text-color);
        text-decoration: none;
        transition: color 250ms;
        border-radius: 0.3rem;
    }

        nav a:hover {
            color: var(--accent-color);
        }

.nav-mid {
    justify-content: center;
    gap: 0.75rem;
    white-space: nowrap;
}

    .nav-mid a {
        background-color: var(--secondary-bg-color);
        transition: background-color 250ms, color 250ms;
    }

        .nav-mid a:hover {
            background-color: black;
        }

.nav-right {
    justify-content: flex-end
}

.link {
    font-size: 1.4rem;
    background-color: var(--secondary-bg-color);
    padding: 0.4rem 0.9rem 0.4rem 0.9rem;
    border-radius: 10rem;
    color: var(--main-bg-color);
    transition: color 250ms, background-color 250ms;
}

    .link:hover {
        color: var(--accent-color);
        background-color: transparent;
    }

.content {
    display: flex;
    justify-content: center;
    padding: 0rem 1rem 0rem 1rem;
}

header {
    margin-top: 5rem;
}

    header h1 {
        margin: 0;
        font-size: 4rem;
        line-height: 3rem;
        font-weight: normal;
    }

        header h1 span {
            font-size: 2rem;
            color: var(--accent-color);
        }

section {
    background-color: var(--secondary-bg-color);
    padding: 1rem;
}

    section h3 {
        font-size: 1.5rem;
    }

    section p {
        line-height: 1.5rem;
    }

article {
    background-color: var(--main-bg-color);
    margin-bottom: 1rem;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.article-title {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0.4rem 0.8rem 0.4rem 0.8rem;
    border-bottom-width: 1px;
    border-bottom-color: var(--accent-color);
    border-bottom-style: solid;
    border-radius: 0.5rem 0.5rem 0 0;
}

    .article-title div {
        margin: 0;
        font-size: 0.9rem;
        color: var(--accent-color);
    }

    .article-title h3 {
        margin: 0;
        font-size: 2rem;
    }

.article-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .article-content p {
        margin: 0;
    }

    .article-content hr {
        width: 100%;
        border-color: var(--accent-color);
    }

.noDecoration, a:link, a:visited {
    text-decoration: none;
    color: var(--main-text-color);
}

.bg-transparent {
    background-color: transparent;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

    .footer p {
        margin: 0;
        color: var(--accent-color);
    }

    .footer img {
        object-fit: cover;
        width: 2rem;
        height: auto;
        margin-right: 0.5rem;
    }

.max-width {
    max-width: 1200px;
}

.max-text {
    max-width: 75ch;
}

.display-block {
    display: block;
}

.showinmobile {
    display: none;
}

.end {
    margin-left: auto;
}

.code {
    padding: 0.5rem;
    background-color: var(--secondary-bg-color);
    font-size: 0.9rem;
    font-family: 'Roboto Mono', monospace;
}

    .code > hr {
        border-style: dashed;
    }

/* Mobile Layout Mode */

@media only screen and (max-width: 1000px) {

    .adaptive-row {
        flex-direction: column;
    }

    .title {
        font-size: 1.5rem;
    }

    header {
        margin-top: 2rem;
    }

        header h1 {
            line-height: 2rem;
            font-size: 2.5rem;
            padding-left: 1rem;
        }

            header h1 span {
                font-size: 1.5rem;
            }

    .showinmobile {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

        nav div {
            justify-content: center;
        }

    #priorities {
        flex-wrap: wrap;
    }

    .content {
        padding: 0rem;
    }

    section {
        padding: 0.5rem;
    }

        section h2 {
            padding-left: 0.3rem;
            margin-bottom: 0.5rem;
        }

    .article-alt-content h3 {
        margin: 0;
        font-size: 1.5rem;
    }
}

#menuToggle {
    display: block;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

    #menuToggle a {
        text-decoration: none;
        color: var(--main-text-color);
        transition: color 0.3s ease;
    }

        #menuToggle a:hover {
            color: var(--accent-color);
        }


    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;

        -webkit-touch-callout: none;
    }

    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #cdcdcd;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease;
    }

        #menuToggle span:first-child {
            transform-origin: 0% 0%;
        }

        #menuToggle span:nth-last-child(2) {
            transform-origin: 0% 100%;
        }

    #menuToggle input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: var(--main-text-color);
    }

        #menuToggle input:checked ~ span:nth-last-child(3) {
            opacity: 0;
            transform: rotate(0deg) scale(0.2, 0.2);
        }

        #menuToggle input:checked ~ span:nth-last-child(2) {
            transform: rotate(-45deg) translate(0, -1px);
        }

#menu {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;
    background: var(--main-bg-color);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

    #menu li {
        padding: 10px 0;
        font-size: 22px;
    }

#menuToggle input:checked ~ ul {
    transform: none;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-center {
    align-items: center;
}

.flex-justify-space {
    width: 100%;
    justify-content: flex-end;
}

.flex-justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grow {
    flex-grow: 1;
}

.gap-large {
    gap: 1rem;
}

.gap-medium {
    gap: 0.5rem;
}

.gap-small {
    gap: 0.3rem;
}

.nomargin {
    margin: 0;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.end {
    margin-left: auto;
    padding-left: 0.5rem;
}

.cards {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
}

.card {
    width: 300px;
    min-height: 333px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 5px;
    border-radius: 10px;
    background-color: var(--main-bg-color);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.card h1, .card h2, .card h3, .card h4, .card h5 {
    margin: 0px;
    padding: 0px 0px 15px 0px;
    font-size: 30px;
}

.card hr {
    border-style: solid;
    border-color: var(--accent-color);
}

.card p {
    margin: 15px 0px 0px 0px;
    font-weight: 100;
    letter-spacing: -0.25px;
    line-height: 1.25;
    font-size: 16px;
    word-break: break-word;
}


@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    .content {
        padding: 1rem;
    }
}