/* ---------- fonts ---------- */
@font-face {
    font-family: 'swistblnk_monthoersregular';
    src: url('../fonts/SwistblnkMonthoers/monthoers-webfont.woff2') format('woff2'),
        url('../fonts/SwistblnkMonthoers/monthoers-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* ---------- utilities ---------- */
* {
    /* ----- JS settings ----- */
    --page-load-transition-time: 200ms;

    /* ----- color scheme ----- */

    --primary-color: white;
    --secondary-color: black;
    --action-color: rgb(69, 191, 199);

    --text-color: var(--secondary-color);
    --title-color: var(--text-color);
    --hover-color: var(--primary-color);

    --shadow-color: var(--primary-color);
    --box-shadow: 0 0 0.5em 0.5em color-mix(in srgb, var(--action-color) 15%, transparent) inset;

    --gradient-color-transparency: 40%;
    --background-gradient: linear-gradient(170deg,
            var(--primary-color) 0%,
            color-mix(in srgb, var(--action-color) var(--gradient-color-transparency), transparent) 10%,
            color-mix(in srgb, var(--action-color) var(--gradient-color-transparency), transparent) 90%,
            var(--primary-color) 100%);

    /* ----- Font scheme ----- */

    --title-font: 'swistblnk_monthoersregular';
    --paragraph-font: 'Source Sans 3';
    --paragraph-font-weight: normal;
    --button-font-weight: bold;
    --menu-font-weight: normal;
    
    --basic-font-size: 1.05rem;
    --small-font-size: calc(var(--basic-font-size) * 0.8);
    --big-font-size: calc(var(--basic-font-size) * 2.2);

    /* ----- Global settings ----- */

    color: var(--text-color);
    font-family: var(--paragraph-font);
    font-size: var(--basic-font-size);
    
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* ---------- basics ---------- */

html {
    scrollbar-color: color-mix(in srgb, var(--action-color) 40%, transparent) var(--primary-color);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    min-width: 270px;
    max-width: 1440px;

    margin: 0 auto;
    padding: 0 1rem;

    background-color: var(--primary-color);
    background-image: var(--background-gradient);

    display: flex;
    flex-direction: column;
}

img {
    margin: 0 auto;
}

.link {
    cursor: pointer;
    text-decoration: none;
}

/* ---------- main layout ---------- */

header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;

    justify-content: space-evenly;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    padding-top: 2rem;
}

/* ---------- header layout ---------- */

#headerLogo {
    max-height: 6rem;
    max-width: 100%;
}

/* ---------- content layout ---------- */

#content {
    -webkit-transition: opacity var(--page-load-transition-time)  ease-in-out;
    -moz-transition: opacity var(--page-load-transition-time)  ease-in-out;
    -ms-transition: opacity var(--page-load-transition-time)  ease-in-out;
    -o-transition: opacity var(--page-load-transition-time)  ease-in-out;
    transition: opacity var(--page-load-transition-time)  ease-in-out;
}

/* ---------- footer layout ---------- */

#footerLogo {
    max-height: 4rem;
    max-width: 80%;
}

.navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-style: italic;
    gap: 2rem;
}

/* ---------- content container ---------- */

.backgroundTile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;

    padding: 2rem;

    box-shadow: var(--box-shadow);
    border-radius: 2rem;
}

.backgroundTile:nth-child(even) {
    flex-direction: row-reverse;
}

.contentText {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    align-self: flex-start;
}

.button {
    background-color: var(--action-color);
    color: var(--primary-color);

    text-shadow: 0.0em 0.0em 0.9em var(--shadow-color);
    box-shadow: 0.1em 0.1em 2em 0.1em var(--shadow-color);

    border-radius: 5rem;
    padding: 1rem 1.5rem;
    margin-top: 1rem;

    align-self: flex-end;
    font-weight: bold;
    transition: 0.2s;
}

.button:hover {
    background-color: var(--hover-color);
    color: var(--action-color);
    box-shadow: 0.1em 0.1em 1em 0.1em var(--shadow-color);;
}

.contentImage {
    max-width: 38.2%;
    object-fit: contain;
    box-shadow: 0.3em 0.3em 1em 0.2em var(--shadow-color);
    border-radius: 2rem;
}

/* ---------- content ---------- */

.contentTitle {
    font-family: var(--title-font);
    font-weight: normal;
    font-size: var(--big-font-size);
}

.contentParagraph {
    font-size: var(--basic-font-size);
}

.disclaimer {
    font-style: italic;
    font-size: var(--small-font-size);
}

@media (max-width: 800px) {

    html {
        scrollbar-width: none;
    }

    header {
        flex-direction: column;
        justify-content: center;
    }
    
    footer {
        flex-direction: column-reverse;
        text-align: center;
    }

    .backgroundTile {
        flex-direction: column-reverse;
        justify-content: center;
        
        gap: 2rem;
    }

    .backgroundTile:nth-child(even) {
        flex-direction: column-reverse;
    }

    .contentTitle {
        text-align: center;
    }

    
    .button {
        align-self: center;
    }

    .contentImage {
        max-width: 100%;
    }

    .navigation {
        flex-direction: column;
        gap: 0.5rem;

        margin-bottom: 1.5rem;
    }
}

@media (prefers-color-scheme: dark) {
    * {
        --primary-color: black;
        --secondary-color: white;
        --shadow-color: var(--secondary-color);
        --hover-color: var(--secondary-color)
    }
}