body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    margin: 0;
}

header {
    background-color: #CD2626;
    padding: 20px;
}

header a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.forms {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    background-color: lightgray;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 20px;
}

input,
select,
button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    background-color: #CD2626;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: darkred;
}

.error {
    color: red;
    font-weight: bold;
}

.lobby-code-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: lightgray;
    border: 1px solid grey;
    padding: 15px 20px;
    margin:20px 0px;
}

.lobby-code-label {
    font-size: 14px;
    color: #444;
}

.lobby-code {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
}

.lobby-code-box button {
    width: auto;
    margin: 0;
    padding: 8px 16px;
}

.lobby-share-link {
    font-size: 14px;
    color: #444;
    word-break: break-all;
}

.lobby-country {
    margin: 15px 0;
}

.player-slots {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.player-slot {
    flex: 1;
    min-width: 150px;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid grey;
}

.player-slot.filled {
    background-color: lightgray;
}

.player-slot.filled.host {
    border-color: #CD2626;
    border-width: 2px;
}

.player-slot.empty {
    background-color: #f5f5f5;
    color: #999;
    font-style: italic;
    border-style: dashed;
}

.player-name {
    display: block;
    font-weight: bold;
}

.host-badge,
.you-badge {
    display: block;
    font-size: 13px;
    color: #555;
}

.leave-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.leave-btn:hover {
    background-color: black;
}

.lobby-message {
    color: #CD2626;
    font-weight: bold;
    min-height: 1.2em;
}


#start-game-btn {
    display: block;
    margin-top: 20px;
    width: auto;
    padding: 10px 20px;
}

#start-game-btn:disabled {
    background-color: lightgray;
    color: #777;
    cursor: not-allowed;
}

.waiting-message {
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: lightgray;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.game-header-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.game-header-country {
    color: #444;
}

.game-placeholder {
    margin-top: 30px;
    padding: 40px;
    text-align: center;
    border: 2px dashed grey;
    border-radius: 8px;
    color: #777;
    font-style: italic;
}

#start-game-btn {
    background-color: grey;
    color: white;
    cursor: not-allowed;
}


#start-game-btn.ready {
    background-color: #CD2626;
    cursor: pointer;
}

.game-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.map-column {
    flex: 2;
    min-width: 320px;
}

.map-wrapper {
    background-color: #f5f5f5;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 10px;
}

.map-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-wrapper svg path.territory {
    stroke: #ffffff;
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.map-wrapper svg path.territory-active {
    stroke: #CD2626;
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(205, 38, 38, 0.85));
}

.side-panel {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.round-panel {
    background-color: lightgray;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 20px;
    min-height: 160px;
}

.waiting-round-message {
    font-style: italic;
    color: #555;
    text-align: center;
    padding: 20px 0;
}
<<<<<<< HEAD
.loading-round-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    color: #555;
    font-style: italic;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #CD2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
=======
>>>>>>> main

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-timer {
    font-size: 20px;
    font-weight: bold;
    background-color: #CD2626;
    color: white;
    border-radius: 6px;
    padding: 2px 10px;
}

.question-attempt {
    font-size: 13px;
    color: #444;
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-btn {
    width: 100%;
    text-align: left;
    background-color: white;
    color: black;
    border: 1px solid grey;
    padding: 10px 14px;
    font-size: 15px;
    cursor: pointer;
}

.answer-btn:hover:not(:disabled) {
    background-color: #eee;
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.selected {
    border-color: #CD2626;
    border-width: 2px;
    background-color: #ffecec;
    opacity: 1;
}


.result-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-correct-players {
    font-size: 14px;
    color: #333;
}

.result-outcome {
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
}

.result-claimed {
    background-color: #d9f2d9;
    color: #1c6b1c;
}

.result-neutralized {
    background-color: #333;
    color: white;
}

.result-retry {
    background-color: #fff3cd;
    color: #7a5c00;
}

.scoreboard {
    background-color: lightgray;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 15px 20px;
}

.scoreboard h3 {
    margin-top: 0;
}

.scoreboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scoreboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scoreboard-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.scoreboard-name {
    flex: 1;
}

.scoreboard-count {
    font-weight: bold;
}

.game-over-panel {
    background-color: #CD2626;
    color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
