* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a73e8;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.quiz-panel {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#question-container h2 {
    margin-bottom: 15px;
    color: #1a73e8;
}

#options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.option-button {
    padding: 12px 15px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    min-height: 50px;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option-button:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.option-button.correct {
    background-color: #4caf50;
    color: white;
}

.option-button.incorrect {
    background-color: #f44336;
    color: white;
}

#result-container {
    text-align: center;
    margin-top: 20px;
}

#next-button, #restart-button, #new-session-button {
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: 5px;
}

#next-button:hover, #restart-button:hover, #new-session-button:hover {
    background-color: #0d47a1;
}

#new-session-button {
    background-color: #4caf50;
    position: absolute;
    top: 10px;
    right: 10px;
}

#new-session-button:hover {
    background-color: #388e3c;
}

#score-container {
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
    position: relative;
}

.session-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 3s ease-in-out;
}

.round-info {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.neighborhood-tooltip {
    font-size: 14px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    padding: 3px 6px;
    border-radius: 3px;
}

.hidden {
    display: none;
}

#quiz-end {
    text-align: center;
}

#quiz-end h2 {
    color: #1a73e8;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .quiz-container {
        flex-direction: row;
    }
    
    #map {
        flex: 1;
        height: 500px;
    }
    
    .quiz-panel {
        flex: 1;
        height: 500px;
        display: flex;
        flex-direction: column;
    }
    
    #score-container {
        margin-top: auto;
    }
}