@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=New+Amsterdam&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --font-primary: 'Lexend Deca', sans-serif;
    --font-heading: 'New Amsterdam', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --color-1: #b9a5a9;
    --color-Coper: #c56a39;
    --color-tile: #021A54;
    --color-background: #021d5c;
    --color-4: #b46c2c;
    --color-Button: #4e3c3f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    padding: clamp(0.8rem, 2.4vh, 3rem) clamp(0.6rem, 1vw, 1rem);
    height: 100svh;
    background-color: var(--color-background);
    overflow: hidden;
}

.auth-bar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 2px solid var(--color-Coper);
    border-radius: 0 1rem 0 1rem;
    background: rgba(2, 26, 84, 0.92);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.2rem;
}

.auth-bar button {
    border: 0;
    border-radius: 0 0.7rem 0 0.7rem;
    background: var(--color-Coper);
    color: #fff;
    padding: 0.45rem 0.7rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

h2 {
    color: var(--color-Coper);
    background: linear-gradient(0deg, white 0%, var(--color-Coper) 40%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-title,
.profile-title,
.stats-title {
    color: var(--color-tile);
    background: linear-gradient(0deg, white 0%, var(--color-tile) 42%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: clamp(0.8rem, 1.6vh, 2rem);
    height: 100%;
}

/* standaard tegel */
a.tile {
    text-decoration: none;
    cursor: pointer;
}

.tile {
    background: var(--color-tile);
    border: none;
    outline: solid 2px var(--color-Coper);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-Coper);
    font-size: clamp(3.2rem, 5.8vw, 8rem);
    font-family: var(--font-heading);
    border-radius: 0px 20px 0px 20px;
    padding: clamp(0.3rem, 0.8vh, 1rem);
}

.image-tile {
    padding: 0;
    overflow: hidden;
}

.empty-tile {
    background: var(--color-Coper);
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
}

.grid h2 {
    font-size: 1em;
    line-height: 0.95;
    text-align: center;
}

/* varianten */
.small {
    grid-column: span 1;
}

.wide {
    grid-column: span 2;
}

.small:hover,
.wide:hover {
    background: #ff6347;
}

.gallery-tile:hover,
.profile-tile:hover {
    background: var(--color-tile);
}

@media (max-width: 900px) {
    body {
        padding: 1rem 0.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(120px, 20vh, 180px);
        gap: 0.8rem;
    }

    .tile {
        font-size: clamp(2rem, 4.2vh, 3.2rem);
    }

    .small {
        grid-column: span 1;
    }

    .wide {
        grid-column: span 2;
    }
}
