:root {
    --bg-main: #eef4f8;
    --bg-soft: #ffffff;
    --bg-accent: #dfe9f2;
    --border-soft: #c7d5e2;
    --text-main: #1f2a33;
    --text-muted: #5b6b77;
    --accent: #4682B4;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, .18);

    --tile-image: url("katoen-medaillon-blaadjes-blauw-op-wit.jpg");
}

html,
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    /* disable scroll bar */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
}

/* container centers both island and button */
#centerContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* space between island and button */
}

#contactButton {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

nav a {
    font-weight: 600;
    cursor: pointer;
}

nav a:hover {
    color: var(--accent);
}

#themeToggle {
    position: absolute;
    right: 20px;
    cursor: pointer;
}

/* make page a flex column container, center horizontally */
#page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* optional vertical centering */
    height: 100vh;
    position: relative;
    position: relative;
    width: 100%;
    position: relative;
    width: 100%;

    /* full viewport */
    background-color: var(--bg-accent);
    background-image: var(--tile-image);
    background-repeat: repeat;
    background-size: auto;
}

/* island stays wide with max width */
#island {
    max-width: 720px;
    padding: 40px;
    background: var(--bg-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 5;
    position: relative;
    /* ensure z-index works */
}

/* contact button below island */
#contactButton {
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 6;
}

/* PHYSICS LAYER */
#physicsLayer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* very low */
}

/* FLOOR */
#floor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #5f86a8;
    z-index: -1;
}

/* FALLING IMAGES */
.falling {
    position: absolute;
    width: 100px;
    height: 100px;
}

.falling img {
    width: 100%;
    height: 100%;
}

/* CENTERED ISLAND */


#island p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CONTACT */
#contactSection {
    max-width: 720px;
    padding: 30px;
    background: var(--bg-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* GALLERY */
#gallery {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 24px;
}

.galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.galleryGrid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}