/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1e1e2f, #0f0f17);
    font-family: "Courier New", monospace;
    color: #f1f1f1;
    padding: 4vmin;
}

/* Box met klok en banner */
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 90vmin;
    max-width: 700px;
    padding: 14vmin 2vmin 4vmin 2vmin;
    border-radius: 3vmin;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

/* Top-right container met klok + banner */
.top-right {
    position: absolute;
    top: 2vmin;
    right: 2vmin;
    display: flex;
    align-items: center;
    gap: 1vmin;
    width: calc(100% - 4vmin);
}

/* Banner */
.banner {
    flex-grow: 1;
    height: 8vmin;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.7);
    border-radius: 1vmin;
    backdrop-filter: blur(5px);
    padding-left: 1vmin;
}

/* Banner tekst */
.banner-text {
    white-space: nowrap;
    display: inline-block;
    font-size: clamp(16px, 2.5vmin, 26px);
    font-weight: bold;
    animation: scrollText 12s linear infinite;
}

@keyframes scrollText {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Klok */
#clock {
    width: 8vmin;
    height: 8vmin;
    max-width: 70px;
    max-height: 70px;
}

/* Titel */
h1 {
    font-size: clamp(16px, 4vmin, 28px);
    margin-top: 1vmin;
    margin-bottom: 2vmin;
    opacity: 0.85;
    line-height: 1.2;
    text-align: center;
}

/* Wijsheid-container */
#wijsheid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Wijsheid */
#wijsheid {
    font-size: clamp(16px, 4vmin, 28px);
    min-height: 10vmin;
    margin-bottom: 3vmin;
    transition: opacity 0.4s ease;
    line-height: 1.5;
    padding: 0 3vmin;
    text-align: center;
    display: block;
    width: 100%;
    overflow-wrap: break-word;
}

/* Container titel boven wijsheid */
#container-titel {
  width: auto;
  text-align: center;
  font-size: clamp(18px, 3vmin, 24px);
  font-weight: bold;
  margin-bottom: 1vmin;
  color: #ffeb3b;
  padding: 0 1vmin;
}

/* Knop */
button {
    font-size: clamp(14px, 2.5vmin, 18px);
    padding: clamp(10px, 2vmin, 16px) clamp(20px, 4vmin, 30px);
    border-radius: 2vmin;
    border: none;
    cursor: pointer;
    background: #ff9f43;
    transition: transform 0.1s ease, background 0.2s ease;
    margin-top: 1vmin;
}

button:hover {
    background: #ff7f00;
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 4vmin;
    font-size: clamp(10px, 2vmin, 14px);
    opacity: 0.5;
    line-height: 1.4;
    text-align: center;
}

/* ============================= */
/* QUIZ KNOPPEN */
/* ============================= */

#quiz-button,
#quizmaster-button {
    position: fixed;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;
    min-width: 190px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;

    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: 0.25s;
    z-index: 1000;
}

/* Start quiz boven */
#quiz-button {
    bottom: 68px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
}

/* Quizmaster onder */
#quizmaster-button {
    bottom: 20px;
    background: linear-gradient(135deg, #3478f6, #5aa0ff);
}

#quiz-button:hover,
#quizmaster-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* ============================= */
/* Mobile */
/* ============================= */

@media (max-width: 600px) {
    #quiz-button,
    #quizmaster-button {
        font-size: 14px;
        padding: 10px 14px;
        min-width: 160px;
        right: 10px;
    }

    #quiz-button {
        bottom: 58px;
    }

    #quizmaster-button {
        bottom: 10px;
    }
}