:root {
    --primary-background: #0d0f17;
    --secondary-background: #151823;
    --primary-accent: #ff0055;
    --secondary-accent: #00eaff;
    --highlight-glow: #6b6bff;
    --hover: #1c2030;
    --text-light: #e6e6e6;
    --text-muted: #9aa0a6;
    --font: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --success-color: #00a878; /* Groen voor succes/start */
    --error-color: #d63d6b;   /* Rood voor fout/imposter */
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-family: var(--font);
    color: var(--text-light);
}
body{
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--primary-background);
}
main{
    padding: min(5em, 7%);
}
main p{
    margin-top: 0.35em;
}
.title{
    text-align: center;
    font-size: clamp(1.8rem, 10vw, 5rem);
}
hr{
    height: 2px;  
    background-color: var(--highlight-glow);
    border: none;
    margin: 20px 0;
}

nav{
    background-color: var(--secondary-background);
    border-bottom: 1px solid var(--highlight-glow);
}
nav ul{
    list-style: none;
    display: flex;
}
nav .home-li{
    margin-right: auto;
}
nav li{
    display: flex;
}
nav a{
    display: flex;
    text-decoration: none;
    color: var(--text-light);
    padding: 1em 2em;
    transition: background-color 150ms ease;
}
nav a:hover{
    background-color: var(--hover);
}
nav a.active{
    border-bottom: 4px solid var(--secondary-accent);
}
nav a.accent{
    background-color: var(--secondary-accent);
}

#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
    color: var(--text-light);
}
#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
    color: var(--text-light);
}
#overlay{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

@media screen and (max-width: 700px){
    #open-sidebar-button, #close-sidebar-button{
        display: block;
    }
    nav{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em, 100%);
        z-index: 10;
        border-left: 1px solid var(--hover);
        transition: right 300ms ease-out;
    }
    nav.show{
        right: 0;
    }
    nav.show ~ #overlay{
        display: block;
    }
    nav ul{
        width: 100%;
        flex-direction: column;
    }
    nav a{
        width: 100%;
        padding-left: 2.5em;
    }
    nav a.active{
        border-bottom: none;
    }
    nav .home-li{
        margin-right: unset;
    }
}

#fronBox{
    width: 100%;
    min-height: 220px;
    padding: 12px;
    border: 3px solid var(--primary-accent);
    margin-top: 1%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    border-radius: 8px;
    text-align: center;
}
#fronText{
    padding: 5px;
}

#frontIMG{
    max-width: 48%;
    width: auto;
    height: auto;
    max-height: calc(100% - 24px);
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.spelStartKnop{
    color: var(--text-light);
    background-image: linear-gradient(to right, var(--highlight-glow), var(--secondary-accent));
    border-radius: 20px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding: 0.5em 1em;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
    align-self: center;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}
@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.spelStartKnop::after, .spelStartKnop::before{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 23px;
    background-image: conic-gradient(from var(--angle), var(--primary-accent), var(--highlight-glow), var(--primary-accent));
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 3px;
    animation: 3s spin linear infinite;
}
.spelStartKnop::before{
    filter: blur(1.5rem);
    opacity: 0.5;
}

@keyframes spin{
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}
.spelStartKnop:hover{
    color: var(--text-light);
    background-image: linear-gradient(to left, var(--highlight-glow), var(--secondary-accent));
    padding: 0.6em 1.1em;
}
@media (max-width: 700px) {
    #fronBox {
        flex-direction: column;
        text-align: center;
    }

    #frontIMG {
        max-width: 100%;
        margin-top: 1em;
    }
}