﻿/* colours */
:root {
    --dark-blue: #72a3ef;

    --font-colour: #606060;

    --box-shadow: rgba(20, 20, 20, 0.5);
    --dialog-bg: rgba(66, 106, 169, 0.9);
}

@font-face {
    font-family: 'RetroStyle';
    src: url('/fonts/fasty-font/FastyFreeRegular-9M6q5.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* CSS reset */
html * {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: [nav] 1fr [content] 2fr [end];
    grid-template-rows: [header] 3em [content] 1fr [footer] 1em [end];
}

header {
    grid-column: nav / end;
    grid-row: header / content;
    background: linear-gradient(to bottom, var(--dark-blue) 80%, #9daae0);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-left: 0.3em;
    border-bottom: 1px solid darkgrey;

    & > .headermenu {
        display: flex;

        & > * {
            margin-top: 0.3em;
            padding: 0.5em 1em 0 1em;

            border-radius: 12px 12px 0 0;
            border-left:  1px solid rgb(100, 129, 237);
            border-right: 1px solid rgb(100, 129, 237);
            border-top:   1px solid rgb(100, 129, 237);
        }

        & > a {
            background: linear-gradient(to bottom, #cedced 70%, #b2bdcb);
            color: black;
            text-decoration: none;
            font-weight: bold;
        }
        & > a:hover {
            background: #c8d4e3;
            outline: 2px solid #7385d3;
            box-shadow: 
                0 0 3px 3px rgba(100, 169, 237, 0.4) inset,
                0 0 1px 1px rgba(100, 149, 237, 0.2) inset;
        }

        & > div {
            background: linear-gradient(to bottom, white 70%, #ddd);
            font-weight: bold;
            font-style: italic;
        }
    }

& > h1 {
    font-family: 'RetroStyle', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.4em;
    letter-spacing: 4px;
    padding-top: 0.1em;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(#e4770f 15%, #cebba8);
    background-image: linear-gradient(#f1ec12 15%, #d8aa14);
    font-weight: 700;
    -webkit-text-stroke: 0.001em #313185;
    text-align: center;
    text-wrap: nowrap;
}
}

nav {
    grid-column: nav / content;
    grid-row: content / footer;
    background: linear-gradient(to right, #cedced 95%, #b2bdcb);
    ;
    border-right: 1px solid darkgrey;
    padding: 0.3em 0.3em 0 0.3em;
}

article {
    grid-column: content / end;
    grid-row: content / footer;

    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;

    & h2 {
        text-decoration: underline;
        padding-bottom: 0.5em;
    }
        
    & .images {
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.8em;
        margin-bottom: 1em;
        gap: 1em
    }

    & .images > img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        margin: 0 0.4em 0.4em 0;

        outline: 4px solid #888;
        box-shadow: 0 0 7px 7px var(--box-shadow);
        border-radius: 2em;

        &:hover {
            box-shadow: 0 0 9px 9px var(--dark-blue);
            outline: 4px solid var(--dark-blue);
            cursor: pointer;
        }
    }
}

footer {
    grid-column: nav / end;
    grid-row: footer / end;
    background: linear-gradient(to top, var(--dark-blue) 10%, #9daae0);
    border-top: 1px solid darkgrey;
}

input[type="checkbox"] {
    accent-color: var(--font-colour);
}

#topScroller {
    position: fixed;
    width: 1.4em;
    height: 1.3em;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-left: calc(100% - 1.4em - 3px);
    margin-top: 3px;
    line-height: 1.2em;
    border-radius: 0.7em;
    color: var(--dark-blue);
    &:hover {
        color: white;
        background-color: var(--dark-blue);
        cursor: pointer;
    }

}
