:root {
    --container-max-width: 1200px;
}

html {
    font-family: 'Roboto Condensed', system-ui, sans-serif;
}

body {
    display: grid;
    grid-template-areas:
        "main main main"
        "floor floor floor";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr auto;
    height: 100vh;
    min-height: 100vh;
    color: #e8e8e8;
    background-color: #131313 !important;
}

@media (min-width: 1200px) {
    body {
        grid-template-areas:
            "head head head"
            "main main main";
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto 1fr;
    }
}

.nav {
    grid-area: floor;
    display: flex;
    position: sticky;
    flex-direction: row;
    background-color: #3a3a3a;
    color: #dfc470;
    padding: 0.5rem;
    line-height: 1.25;
    max-height: 64px;
    height: 64px;
    bottom: 0;
    top: unset;
}

@media (min-width: 1200px) {
    .nav {
        grid-area: head;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        top: 0;
        bottom: unset;
    }
}

.nav .container {
    flex: 1;
    display: flex;
    width: 100%;
}

@media (min-width: 1200px) {
    .nav .container {
        max-width: var(--container-max-width);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

a {
    text-decoration: none;
}

a:active, .nav a:visited, .nav a:focus, .nav a:link {
    color: inherit;
}

.nav ul {
    overflow-y: hidden;
    overflow-x: scroll;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .nav ul {
        font-size: 2rem;
        overflow: unset;
    }
}

.nav li {
    list-style-type: none;
    white-space: nowrap;
}

.nav .active {
    color: #ff0000;
}

.nav .logo {
    height: 100%;
}

main {
    grid-area: main;
    display: flex;
    flex: 1;
    background-image: url("/img/runic_pattern.svg");
    background-size: contain;
    padding: 0.5rem;
}

main .container {
    margin-top: 2rem;
    margin-right: auto;
    margin-left: auto;
    max-width: var(--container-max-width);
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
}

main .hero-container {
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
}

@media (min-width: 1200px) {
    main .hero-container {
        margin-top: auto;
        margin-bottom: auto;
        align-items: center;
    }
}

main .hero-text-container {
    color: #dfc470;
    height: 100%;
}

main .hero-text-container p {
    font-size: 2rem;
}

main .hero-img {
    width: 120%;
    object-fit: contain;
}

.two-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.with-bg {
    background-color: #131313;
    padding: 0.5rem;
}

@media (min-width: 1200px) {
    .two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: dense;
        gap: 2rem
    }
}

article {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    color: #DFC470;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

article img {
    width: 100%;
    height: auto;
}

article h1 {
    color: red;
    font-weight: bolder;
}

article p, article ul, article ol {
    font-size: 1.2rem;
    text-align: justify;
}

article figure {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

article figure figcaption {
    font-size: 1.2rem;
    font-weight: normal;
    text-align: center;
    margin-top: 0.5rem;
}

.runes-container-wrapper {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    background-color: #131313;
    border-style: solid;
    border-width: 1px;
    border-color: #dfc470;
    border-collapse: collapse;

}

.runic-sidebar {
    width: 100px;
    background-image: url("/img/runicsidebarL2.webp");
    background-repeat: repeat-y;
    border-color: #DFC470;
    border-width: 1px;
    border-style: solid;
    border-top-width: 0;
    border-bottom-width: 0;
}

@media (max-width: 600px) {
    .runic-sidebar {
        display: none;
    }
}

.runes-container-wrapper article {
    padding-right: 2rem;
    padding-left: 2rem;
    max-width: none;
    width: 100%;
}

.runes-container-wrapper article p {
    text-align: justify;
}

.runes-container-wrapper h1 {
    color: #dfc470;
    text-align: center;
    font-size: 2rem;
}

.runes-container-wrapper img {
    width: auto;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.runes-container-wrapper .text-red-center {
    color: red;
    text-align: center;
}

.runes-menu {
    display: flex;
    flex-direction: row;
    font-size: 1.5rem;
}

.runes-menu .active {
    color: red !important;
}

.runes-menu a {
    color: #dfc470;
}

.runes-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 600px) {
    .runes-table {
        gap: 4rem;
    }

}

.runes-table .row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 600px) {
    .runes-table .row {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
}

.runes-table .rune-formula {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem
}

@media (max-width: 600px) {
    .runes-table .rune-formula {
        width: fit-content;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem
    }
}