/* STOPP & FARBE – ADHS-Fokusspiel, whiteboardfreundlich */

:root {
    --green: #53ad43;
    --light: #e7f7e5;
    --red: #d62828;
    --yellow: #f6b400;
    --blue: #0077cc;
    --text: #233;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--light);
    font-family: Arial, sans-serif;
    color: var(--text);
}

/* Header */

header {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 18px;
}

.logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 5px 0 0;
    font-size: 18px;
}

.btn-fullscreen {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: rgba(0,0,0,0.15);
    color: #ffffff;
    cursor: pointer;
}

.btn-fullscreen:hover {
    background: rgba(0,0,0,0.25);
}

/* Hauptlayout */

.layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* Seiten-Panels */

.sidePanel {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 0 10px #0002;
}

.sidePanel h2 {
    margin-top: 0;
    font-size: 22px;
}

.rules {
    text-align: left;
    font-size: 16px;
    padding-left: 20px;
}

.rules li {
    margin-bottom: 8px;
}

/* Dauer & Timer */

.durationBox {
    margin-top: 10px;
    font-size: 16px;
    text-align: left;
}

.durationBox label {
    display: inline-block;
    margin-right: 6px;
}

.durationBox select {
    padding: 4px 6px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.timerDisplay {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Center Panel */

.centerPanel {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 12px #0003;
    text-align: center;
}

#symbolArea {
    width: 220px;
    height: 220px;
    margin: 10px auto 15px;
    border-radius: 25px;
    background: #fdfdfd;
    box-shadow: inset 0 0 10px #0002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    user-select: none;
}

#roundInfo {
    font-size: 20px;
    margin: 5px 0;
}

#result {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

.correct {
    color: var(--green);
}

.wrong {
    color: var(--red);
}

/* Buttons allgemein */

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: #3d8e31;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--green);
}

.btn-secondary:hover {
    background: #f0fbef;
}

.btn-secondary.small {
    font-size: 16px;
    padding: 8px;
}

/* Punkte-Anzeige */

.scoreRow {
    font-size: 20px;
    margin: 10px 0;
}

.scoreRow span {
    font-weight: bold;
}

.hint {
    font-size: 16px;
    margin-top: 15px;
}

/* Name-Box */

.nameBox {
    margin-top: 15px;
    text-align: left;
    font-size: 16px;
}

.nameBox input {
    width: 100%;
    padding: 6px 8px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Tier-Strecke */

.trackBox {
    margin-top: 25px;
}

.trackLabels {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 4px;
}

.track {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 30px;
    background: #e0f0de;
    overflow: hidden;
    box-shadow: inset 0 0 8px #0002;
}

#animal {
    position: absolute;
    top: 8px;
    left: 0;
    font-size: 36px;
    transition: transform 0.6s ease;
}

/* Tier-Auswahl */

.animalSelectBox {
    margin-top: 15px;
    font-size: 16px;
}

.animalSelectBox select {
    margin-left: 8px;
    padding: 4px 6px;
    font-size: 16px;
}

/* Untere Farbfelder – groß für Whiteboard */

.buttonRow {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 20px 25px;
    flex-wrap: wrap;
}

.choice {
    min-width: 130px;
    min-height: 80px;
    font-size: 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px #0003;
    touch-action: manipulation;
}

.choice-red {
    background: var(--red);
}

.choice-green {
    background: var(--green);
}

.choice-yellow {
    background: var(--yellow);
    color: #333;
}

.choice-blue {
    background: var(--blue);
}

/* Feier-Overlay */

.celebration {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hidden {
    display: none;
}

.celebration-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px #0004;
    max-width: 400px;
}

.celebration-card h2 {
    font-size: 26px;
    margin-top: 0;
}

/* Elternbox */

.parentsBox {
    max-width: 900px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 0 10px #0002;
    font-size: 16px;
}

.parentsBox h2 {
    margin-top: 0;
}

/* Footer */

footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #555;
}
