body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tabs Styles */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto; /* Allow scrolling on small screens */
}

.tab-btn {
    background-color: #2d2d2d;
    color: #aaa;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #3d3d3d;
    color: #fff;
}

.tab-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: bold;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#submit-guess {
    background-color: #2196F3;
}

#submit-guess:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

#status-message {
    font-weight: bold;
}

#attempts-display {
    color: #ff5252;
    font-weight: bold;
}

#map {
    flex-grow: 1;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-height: 400px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

#result-title {
    margin-top: 0;
}

#flag-container {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #4CAF50;
}

code {
    color: #4CAF50;
    font-size: 1.2em;
    font-family: monospace;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none !important;
}
