@font-face {
    font-family: space;
    src: url('./fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
}

body {
    font-family: space;
    margin: 0px;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 0;
    height: 5rem;
    z-index: 9;
}

.landingsPage {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('./img/pc_landingspage.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 300px;
}

#welcome {
    height: 100vh;
    padding: 0;
    margin: 0;
}

/* ── Dark Mode Toggle ─────────────────────────────────────────────────── */
#darkModeToggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#darkModeToggle i {
    transition: transform 0.4s ease;
}

#darkModeToggle:hover i {
    transform: rotate(20deg);
}

@media (max-width: 400px) {
    #darkModeToggle {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ── Nav knoppen ──────────────────────────────────────────────────────── */
.btn-nav {
    background-color: black !important;
    color: white !important;
    border-color: black !important;
    width: 100%;
    text-align: left;
}

[data-bs-theme="dark"] .btn-nav {
    background-color: white !important;
    color: black !important;
    border-color: white !important;
}

/* ── Tabel afbeeldingen ───────────────────────────────────────────────── */
.tabel-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Op grotere schermen iets groter */
@media (min-width: 768px) {
    .tabel-img {
        width: 150px;
        height: 150px;
    }
}

/* Tabel tekst iets kleiner op mobiel zodat het beter past */
@media (max-width: 576px) {
    .table {
        font-size: 0.85rem;
    }
}

/* ── PC voor foto ─────────────────────────────────────────────────────── */
#pc_voor {
    width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 4px;
}

/* ── Loading animatie ─────────────────────────────────────────────────── */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

[data-bs-theme="light"] #loader {
    background-color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

[data-bs-theme="light"] .spinner {
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: black;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}