/* Voeg deze link toe in de <head> van je HTML-bestand */
/* <link href="https://fonts.googleapis.com/css2?family=Lobster&family=Nunito:wght@400;700&display=swap" rel="stylesheet"> */

/* Globale instellingen */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Hoofdstructuur */
header {
    background-color: #ffcc00;
    text-align: center;
    padding: 15px 0;
    font-family: 'Lobster', cursive;
    border-radius: 10px 10px 0 0;
}

h1 {
    font-size: 2em;
    color: #ff4500;
    margin: 0;
}

nav {
    background-color: #ff6347;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
}

nav a {
    float: left;
    display: block;
    padding: 10px 16px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

nav a:hover {
    background-color: #ffa500;
}

/* Inhoud */
main {
    flex: 1;
    width: 100%;
    /* Remove max-width to use full screen */
    display: flex;
    flex-direction: column;
}

section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1; /* Fill available space */
    display: flex;
    flex-direction: column;
}

/* Game Layout - Split Screen */
.game-container {
    display: flex;
    flex: 1;
    gap: 20px;
    height: 100%;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6f7ff;
    border-radius: 10px;
    padding: 10px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.right-panel h2 {
    font-size: 3rem;
}

.right-panel p {
    font-size: 1.4rem;
}

.image-display {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Game Elements */
.word-display {
    font-size: 4em;
    font-weight: bold;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 100px;
}

.draggable {
    width: 80px;
    height: 80px;
    background-color: #ffcc00;
    border: 3px solid #ff9900;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    touch-action: none; /* Prevent scrolling while dragging */
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.draggable:active {
    cursor: grabbing;
}

.draggable.dragging {
    opacity: 0.8;
    position: fixed; /* Allows moving anywhere */
    pointer-events: none; /* Let events pass through to dropzone */
    z-index: 1000;
}

.dropzone {
    width: 80px;
    height: 80px;
    border: 3px dashed #333;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 10px;
    background-color: #f9f9f9;
}

.dropzone.highlight {
    background-color: #d1ffd1;
    border-color: #00cc00;
}

/* Responsief ontwerp */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }

    .left-panel {
        flex: 0 0 40%; /* Take up 40% height on mobile */
    }

    .right-panel {
        flex: 1;
    }

    .draggable, .dropzone {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .word-display {
        font-size: 3em;
    }
}
