/* ============================= */
/*        CSS VARIABLER           */
/* ============================= */
:root {
    --font-family: monospace;
    --color-text: white;
    --color-bg: #100c0c;
    --color-primary: #0d47a1;
    --color-primary-hover: #1b5e20;
    --color-sidebar: #1a1a1a;
    --footer-radius: 0.625rem;
    --base-padding: 1.25rem;
    --color-footer-title: #e7e7e7;
}

/* ============================= */
/*          GLOBALT               */
/* ============================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    color: var(--color-text);
    margin: 0 0 0.625rem 0;
    text-align: center;
}

p,
figcaption {
    text-align: center;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* ============================= */
/*           FIGURES              */
/* ============================= */
figure {
    margin: var(--base-padding) 0;
    text-align: center;
}

.size-image {
    width: 100%;
    height: auto;
    max-width: var(--max-width, 1000px);
    aspect-ratio: var(--aspect-ratio, 4 / 3);
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================= */
/*           FORMS               */
/* ============================= */

.main-form {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--base-padding);
    background-color: var(--color-sidebar);
    border-radius: var(--footer-radius);
    box-shadow: 0.125rem 0 0.3125rem rgba(0, 0, 0, 0.5);
}

.form-label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: bold;
}

.form-input {
    width: 90%;
    max-width: 500px;
    padding: 0.625rem;
    border: 0.0625rem solid #ccc;
    border-radius: 0.3125rem;
    margin: var(--base-padding) auto;
    display: block;
    background-color: var(--color-primary);
    color: var(--color-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-hover);
    box-shadow: 0 0 5px var(--color-primary-hover);
}

.form-button {
    width: 100%;
    padding: 0.625rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.3125rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: background 0.3s;
}

.form-button:hover {
    background-color: var(--color-primary-hover);
}

.form-button--reset:hover {
    background-color: #b71c1c;
}

.form-dropdown-option {
    width: 100%;
    padding: 0.625rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.3125rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: background 0.3s;
}

.form-checkbox {
    margin-right: 0.3125rem;
}

.form-radio {
    margin-right: 0.3125rem;
}
/* ============================= */
/*          CONTAINER             */
/* ============================= */
.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--base-padding);
    padding: var(--base-padding);
    flex: 1;
}

.hidden {
    display: none !important;
}

/* ============================= */
/*           SIDEBAR              */
/* ============================= */
.sidebar {
    width: 350px;
    max-width: 350px;
    padding: var(--base-padding);
    background-color: var(--color-sidebar);
    border-radius: var(--footer-radius);
    box-shadow: 0.125rem 0 0.3125rem rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
}

.sidebar nav ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-item button {
    width: 100%;
    margin: 0.3125rem 0;
    padding: 0.625rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.3125rem;
    transition: background 0.3s;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-family);
}

.sidebar-item button:hover {
    background-color: var(--color-primary-hover);
}

/* ============================= */
/*           BUTTONS              */
/* ============================= */
.btn-link {
    display: inline-block;
    padding: 0.625rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.3125rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1;
    box-sizing: border-box;
    width: 100%;
    margin: 0.3125rem 0;
    transition: background 0.3s;
}

.btn-link--15 {
    width: 15%;
}

.btn-link--25 {
    width: 25%;
}

.btn-link:hover,
.btn-link:focus {
    background-color: var(--color-primary-hover);
}

/* ============================= */
/*           CONTENT              */
/* ============================= */
.content {
    width: 100%;
    padding: var(--base-padding);
}

.aspect-ratio-container {
    aspect-ratio: var(--aspect-ratio);
    max-width: var(--max-width, 1200px);
    width: 100%;
    margin: 0 auto;
}

.aspect-ratio-container iframe {
    width: 100%;
    height: 100%;
}

/* ============================= */
/*           BUTTON GRID          */
/* ============================= */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.center-list-text {
    padding-left: 0;
    margin: 0 auto;
    list-style-position: inside;
    text-align: center;
}

/* ============================= */
/*           FOOTER               */
/* ============================= */
.footer {
    text-align: center;
    padding: var(--base-padding);
    background-color: var(--color-sidebar);
    color: var(--color-text);
    margin-top: var(--base-padding);
    border-radius: var(--footer-radius) var(--footer-radius) 0 0;
    /* avrunda opp, skarpe ned */
    box-shadow: 0.125rem 0 0.3125rem rgba(0, 0, 0, 0.5);
}

.footer-row {
    display: flex;
    justify-content: space-around;
    /* or space-evenly */
    align-items: center;
}

.footer-title {
    color: var(--color-footer-title);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.625rem;
}

.footer-text{
    margin: 0.3125rem 0;
    font-size: 0.875rem;
}

.footer-space {
    height: 1.25rem;
}

.mobile-seperator {
    height: 0rem;
}

/* ============================= */
/*            Formating          */
/* ============================= */

.spacer {
    height: var(--base-padding);
}

.extra-padding-top {
    padding-top: 20px;
}

.gray-background {
    margin: 0 auto;
    padding: var(--base-padding);
    background-color: var(--color-sidebar);
    border-radius: var(--footer-radius);
    box-shadow: 0.125rem 0 0.3125rem rgba(0, 0, 0, 0.5);
    max-width: 1000px;
}

/* ============================= */
/*           MEDIA QUERIES        */
/* ============================= */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    .btn-link--15 {
        width: 100%;
    }

    .btn-link--25 {
        width: 100%;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
    }

    .mobile-seperator {
        height: 1.25rem;
    }
}