* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}


/* ========================= */
/* ÉCRAN DES PARAMÈTRES      */
/* ========================= */

#settings-screen {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
}

#settings-screen h1 {
    text-align: center;
    margin-bottom: 35px;
}

.settings {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.settings h2:first-child {
    margin-top: 0;
}


.setting {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.setting.vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.setting.numeric {
    justify-content: space-between;
}

select,
input[type="number"] {
    font-size: 16px;
    padding: 5px 8px;
}

input[type="number"] {
    width: 80px;
}


#start-button {
    display: block;
    margin: 35px auto 5px;
    padding: 12px 35px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}


/* ========================= */
/* ÉCRAN DU JEU              */
/* ========================= */

#game-header {
    width: 95vw;
    max-width: 1400px;
    margin: 15px auto 0;
}

#question {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 10px;
}

#stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px;
    font-size: 16px;
}

#map {
    width: 95vw;
    max-width: 1400px;
    margin: auto;
}

#map svg {
    display: block;
    width: 100%;
}

.country {
    fill: #dddddd;
    stroke: none;
    stroke-width: 0.3px;
    vector-effect: non-scaling-stroke;
}
#map.borders-always .country {
    stroke: #888;
}

#map.hover-enabled .country:hover:not(.flash-success):not(.flash-error):not(.found) {
    fill: #bbbbbb;
    cursor: pointer;
}
.country.failed-country {
    fill: #ff6666;
}
.country.flash-error {
    fill: #ff6666;
}

.country.flash-success {
    fill: #66cc66;
}

.country.found {
    fill: #88cc88;
}
#game-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 5px 0 10px;
}

#game-actions button {
    border: 1px solid #ccc;
    background: white;
    color: #555;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
}

#game-actions button:hover {
    background: #eee;
    color: #222;
}
#question-error {
    font-size: 15px;
    font-weight: normal;
    color: #888;
    margin-top: 6px;
}
.failed-marker {
    fill: none;
    stroke: #d00000;
    stroke-width: 3px;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}
#failed-country-name {
    cursor: pointer;
}

#failed-country-name:hover {
    text-decoration: underline;
}
