﻿/* ---------- BASIS ---------- */

body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

/* ---------- INTRO-SCHERM ---------- */

#introScreen {
    background-color: #fff;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

    #introScreen h2 {
        color: #00008B;
        margin-bottom: 20px;
    }

    #introScreen p {
        line-height: 1.6;
        margin-bottom: 15px;
    }

/* ---------- GAME CONTENT ---------- */

#gameContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
}

#timerDisplay {
    font-size: 1.2em;
    font-weight: bold;
    color: #00008B;
    margin-bottom: 10px;
}

/* ---------- KWADRANT-TABEL ---------- */

table {
    border-collapse: collapse;
    margin: 20px auto;
    border: 8px solid #00008B;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

td {
    width: 50px;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #c0c0c0;
    font-family: monospace;
    font-size: 20px;
    padding: 0;
}

/* Achtergrond per type cel */

.operant {
    background-color: #ffffff;
}

.operator {
    background-color: #dddddd;
}

.result {
    background-color: #ccffcc;
    font-weight: bold;
}

.result-operator {
    background-color: #9cbf9c;
}

.final {
    background-color: #6fdd6f;
    font-weight: bold;
}

/* Cel zonder inhoud */
.empty-cell {
    background-color: #00008B;
}

/* Verborgen velden */
.hidden-cell {
    padding: 0;
}

/* ---------- INPUT-STYLING ---------- */

.hidden-input {
    width: 100%;
    height: 100%;
    border: 1px solid #ffe999;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
    font-family: monospace;
    background-color: transparent;
    outline: none;
}

    .hidden-input.empty-input {
        background-color: #fffacd; /* Lichtgeel bij niets ingevuld */
    }

    .hidden-input.number-input-filled {
        background-color: #fffacd !important;
    }

    .hidden-input.operator-input-filled {
        background-color: #e6f3ff !important;
    }

    .hidden-input.focused-input {
        outline: 2px solid #00008B;
        border-color: #00008B;
    }

/* ---------- FOUTMARKERING ---------- */

.error-highlight {
    background-color: #ff3333 !important;
    border: 2px solid #a00000 !important;
    box-shadow: 0 0 8px rgba(255,0,0,0.5);
}

/* ---------- KNOPPEN ---------- */

button {
    margin: 10px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #00008B;
    color: white;
    transition: background-color 0.2s ease;
}

    button:hover {
        background-color: #00006b;
    }

.hidden {
    display: none !important;
}

/* ---------- SCOREBOX ---------- */

#scoreBox {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #e8ffe8;
    border: 1px solid #77cc77;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#scoreText {
    font-size: 1.2em;
    font-weight: bold;
    color: #006600;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    table {
        transform: scale(0.9);
        transform-origin: center;
    }

    td {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hidden-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Verbeterde zichtbaarheid verborgen velden */
.hidden-cell input {
    border: 2px solid #999;
    background-color: #fff7cc; /* heel licht geel */
}

    .hidden-cell input.number-input-filled {
        background-color: #fff0a8 !important; /* sterker geel */
    }

    .hidden-cell input.operator-input-filled {
        background-color: #d9ecff !important; /* zacht blauw */
    }

    /* Hover om duidelijk te maken dat dit bewerkbaar is */
    .hidden-cell input:hover {
        border-color: #00008B;
    }

.controls-game {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

