/* map.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    font-family: 'Nunito', sans-serif;
    background-color: #2b2b2b; 
}

#map-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* We will set background dynamically or keep it simple */
    background-color: #8ce1e8; 
}

/* Canvas map */
#mapCanvas {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    background-color: #a4e4d5; 
    box-shadow: 8px 8px 0px #000;
    border: 6px solid #000;
    border-radius: 20px;
    cursor: pointer;
}

/* Modal Popup Level Info */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #fff;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 12px 12px 0px #000;
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #000;
}

.modal-theme {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.star {
    font-size: 3rem;
    color: #ddd;
    text-shadow: 2px 2px 0 #000;
    transition: transform 0.3s ease;
}

.star.earned {
    color: #FFD700; 
    text-shadow: 3px 3px 0 #000;
    transform: scale(1.1);
}

/* Neo-brutalism Button */
.btn-start {
    display: inline-block;
    background-color: #4C97FF;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    text-decoration: none;
    padding: 15px 30px;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0 #000;
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn-start:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #000;
}

.btn-start:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #000;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    color: #000;
    transition: transform 0.2s;
}
.btn-close:hover {
    transform: scale(1.2);
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Judul Utama */
.map-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    background: #FFAB19;
    padding: 5px 25px;
    border: 4px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0 #000;
    z-index: 10;
    user-select: none;
    pointer-events: none;
}

/* Tombol Kembali ke Kuis */
.btn-back-quiz {
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    background: #FF4C4C;
    padding: 10px 20px;
    border: 4px solid #000;
    border-radius: 10px;
    box-shadow: 6px 6px 0 #000;
    text-decoration: none;
    z-index: 10;
    transition: all 0.1s ease;
    cursor: pointer;
}

.btn-back-quiz:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #000;
    background: #ff6666;
}

.btn-back-quiz:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0 #000;
}

