* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f8ff;
    color: #333;
    overflow: hidden;
    height: 100vh;
}

#game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
}

#controls-help {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: 250px;
}

#controls-help h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #2c3e50;
}

#controls-help ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
}

#controls-help li {
    margin-bottom: 3px;
}

#disclaimer {
    position: absolute;
    bottom: auto;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: 400px;
    font-size: 0.8rem;
    color: #555;
}

#map-container {
    flex: 1;
    width: 100%;
    background-color: #e6f2ff;
    overflow: hidden;
    position: relative;
}

#ui-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 40vh;
    overflow-y: auto;
}

#info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

#info-panel h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-right: 20px;
}

#info-panel p {
    margin: 8px 15px 8px 0;
    font-size: 0.9rem;
}

#action-panel {
    display: flex;
    padding: 0 20px;
    gap: 20px;
}

#travel-options {
    flex: 1;
}

#country-info {
    flex: 1;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

#destination-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.destination-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.destination-button:hover {
    background-color: #2980b9;
}

.destination-button.visited {
    background-color: #2ecc71;
}

.destination-button.visited::after {
    content: "✓";
    margin-left: 5px;
    font-weight: bold;
}

.destination-button:not(.visited)::after {
    content: "NEW";
    font-size: 0.7em;
    background-color: #e74c3c;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.destination-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#country-name {
    margin-top: 0;
}

#country-details {
    font-size: 0.9rem;
    line-height: 1.4;
}

#message-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
    z-index: 100;
}

#message-text {
    margin-bottom: 15px;
}

#message-ok {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    #ui-container {
        max-height: 50vh;
    }
    
    #disclaimer {
        bottom: auto;
        top: 10px;
        max-width: 90%;
        font-size: 0.7rem;
    }
    
    #action-panel {
        flex-direction: column;
    }
    
    #country-info {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 10px;
        margin-top: 10px;
    }
}