:root {
    --primary: #394b71
}

html {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif;
    font-weight: normal;
    margin-top: 0;
    color: var(--primary);
}

body {
    background-color: #91d1fb;
    background-image: url('images/chasing_waterfalls.jpg');
    background-position: center, center;
    transition: background-position 3s ease;
    background-size: 111%;
    height: 100dvh;
    overflow-y: hidden;
    margin-top: 0;
    padding-top: 2em;
}

main {
    background: white;
    max-width: 700px;
    margin: 2em auto;
    padding: 2em;
    max-height: 80vh;
    overflow-y: scroll;

    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

    text-align: center;

    opacity: 1;
    transition: all 1s ease;
}

section.buttons {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;

    button {
        background: none;
        padding: 10px;
        border: none;
        cursor: pointer;

        h3 { 
            font-size: 1.2rem;
            margin: 0;
        }
    }

    button.active {
        color: #91d1fb;
    }

    button:hover {
        background-color: #91d1fb;
        color: white;
    }
}

.slide.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;

    img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }
}

.slide:not(.active) {
    display: none;
}

img.clickable {
    cursor: pointer;
}

.events {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.event {
    border: 1px solid var(--primary);
    padding: 0.5em;
    gap: 1em;
}

.past.event {
    opacity: 0.5;
    order: 10;
}

.clear {
    opacity: 0.2;
}

@media (max-width: 500px) {
    body {background-image: url('images/landscape_500.jpg');}
    section.buttons { gap: 0 }
    .slide.gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
    body {background-image: url('images/landscape_1k.jpg');}
}

body.loading {background-image: none;}

.loading {
    opacity: 0;
    transform: translateY(-10%);
}
