/* Reset and base styles */
*, *::before, *::after {
        box-sizing: border-box;
}

:root {
        font-family: sans-serif;
        font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
        background-color: #fff; 
}

}
html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        color: #333;
}
h1, h2 {
        font-family: "Courier Prime";
}
/* courier-prime-regular - latin */
@font-face {
        font-display: swap;
        font-family: 'Courier Prime';
        font-style: normal;
        font-weight: 700;
        src: url('../fonts/courier-prime-v10-latin-regular.woff2') format('woff2');
}

@font-face {
        font-family: 'Inter';
        src: url('/assets/fonts/Inter.subset.woff2') format('woff2');
        font-weight: 100 900;
        font-stretch: 75% 100%;
        font-style: normal;
        font-display: swap;
}
@font-face {
        font-family: 'Inter';
        src: url('/assets/fonts/InterItalic.subset.woff2') format('woff2');
        font-weight: 100 900;
        font-stretch: 75% 100%;
        font-style: italic;
        font-display: swap;
}
body {
        font-family: 'Inter', sans-serif;
        font-variation-settings: "wght" 350, "wdth" 95;
        font-size: 1rem;
        line-height: 1.4;
        hyphens: auto;
        -webkit-hyphens: auto;
}
.ssvg {
        padding: 0.2rem;
        fill: #f1f1f1;
        width: 2.8rem;
}
.langFlag {
        width: auto;
        height: 1.2rem;
}
#current-flag {
        filter: grayscale(60%);
        opacity: 0.5;
}
#logo {
        width: 30vw;
        margin: 0 auto;
        display: block;
        padding: .5rem;
}
a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
}
p {
        max-width: 65ch;
        color: #333;
}
article, h1 {
        margin: 0;
}
img, picture {
        display: block;
        width: 100%;
        height: auto;
}
picture img {
        max-width: 100%;
}
picture.mobilePIC {
        max-width: 100%;
}
picture.desktopPIC {
        display: none;
}
article#error {
        display: grid;
        text-align: center;
        place-items: center;
}
h1.error {
        font-size: 3rem;
}
#redframe {
        border: solid 6px #008000;
        width: fit-content;
        max-width: 50ch;
        padding: 4px;
}
body {
        display: grid;
        grid-template-areas:
                "nav"
                "hero"
                "header"
                "main"
                "footer";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 1rem 0;
        min-height: 100vh;
}
nav {
        grid-area: nav;
        align-self: center;
        margin-top: 2rem;
        position: relative;
        width: 100%;
}
#navLinks {
        display: none;
}
#languages {
        display: none;
}
#navToggle {
        display: block;
        position: fixed;
        top: 30px;
        right: 10px;
        z-index: 101;
        cursor: pointer;
}
#navToggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
}
hero { grid-area: hero; }
header { grid-area: header; }
main { grid-area: main; }
.foot-link, .tiny { color: #fff; }
.foot-link,
.nav-link {
        border-bottom: 2px solid transparent;
}
.foot-link {
        border-bottom: 2px solid #808080;
}
#navLinks a.current, .foot-link a.current {
        border-bottom: 2px solid #ff0000;
        padding-bottom: 2px;
}
.nav-link.current, .foot-link.current {
        border-bottom: 2px solid  #ff0000;
}
footer {
        grid-area: footer;
        display: grid;
        grid-template-areas:
                "social"
                "legal"
                "copyright";
        grid-template-columns: 1fr;
        background-color: #333;
        color: #fff;
        place-items: center;
        text-align: center;
}
footer p {
        text-align: center;
        color: #fff;
}
#social {
        grid-area: social;
        padding-top: 0.5rem;
}
#copyright {
        grid-area: copyright;
}
#legal {
        grid-area: legal;
}

h1 {
        text-align: center;
        font-size: 4rem;
        margin-bottom: 2rem;
}
@media (min-width: 900px) {
        .skip-link{
                position:absolute;     /* removes it from the grid layout */
                top:0; left:0;
                transform:translateY(-100%);
                padding:.5rem 1rem;
                background:#fff;
                color:#000;
                z-index:1000;
                transition:transform .2s;
        }
        .skip-link:focus{
                transform:translateY(0);   /* slides into view */
        }
        /* Buttons */
        .toggle-button {
                display: none;
                margin: 1rem 0;
                padding: 0.5rem 1rem;
                background: #ddd;
                font-weight: bold;
                border-radius: 4px;
                cursor: pointer;
                margin-left: 1rem;
        }
        body {
                display: grid;
                grid-template-areas:
                        "nav"
                        "hero"
                        "header"
                        "main"
                        "footer";
                grid-template-rows: auto auto 1fr auto;
                min-height: 100vh;
                gap: 1rem 0;
        }
        header {
                grid-area: header;
        }
        nav {
                grid-area: nav;
                display: grid;
                grid-template-columns: auto auto;
        }
        #slidehero {grid-area: slidehero; }
        main {
                grid-area: main;
        }
        #navLinks,
        #languages {
                display: inline-block;
        }

        .nav-link.footer-link {
                display: none;
        }

        #navToggle {
                display: none;
        }

        footer {
                grid-area: footer;
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                grid-template-areas: "copyright social legal";
        }

        #copyright { grid-area: copyright; }

        #social { grid-area: social; }

        #legal { grid-area: legal; }

        #logo { width: 30vw; }
}
