
#map { 
    height: 90vh; 
    width: 100%;
    background-color: white;
}


body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 10px;
}

.logo_kabupaten {
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.logo_bpbd {
    height: 60px;
    width: auto;
}

.title {
    text-align: center;
    width: 100%;
    margin: 40px 0;
}

.title h1 {
    color: #FF6600;
    font-size: 3em;
    margin-top: -10px;
    font-weight: bold;
}

.title h2 {
    font-size: 1.8em;
    margin-top: -15px;
    margin-bottom: 30px;
}

.hazard-grid {
    display: grid;
    grid-template-columns: repeat(4, 110px);
    gap: 70px;
    justify-content: center;
}

.hazard-icon {
    border: 2px solid #FF6600;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
}

.hazard-icon img {
    width: 80%;
    height: auto;
}

/* Tambahan untuk hover effect */
.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF6600;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.hazard-icon:hover .hover-content {
    opacity: 1;
}

.hover-header, .hover-footer {
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}

.hazard-icon:hover img {
    width: 40%;
    height: auto;
}

.hover-middle {
    flex-grow: 1;
    background: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FF6600;
    font-weight: bold;
    transition: all 0.3s ease;
}

.menu-buttons {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    z-index: 10;
}

.hazard-icon:hover .menu-buttons {
    display: block;
}

.menu-button {
    display: block;  /* Membuat link full width */
    background: #FF6600;
    color: white;
    text-align: center;
    padding: 3px;
    margin-top: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;  /* Menghilangkan garis bawah link */
}

.menu-button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hazard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .title h1 {
        font-size: 2em;
        margin-top: -10px;
    }

    .title h2 {
        font-size: 1.5em;
        margin-top: -10px;
    }
}

@media (max-width: 480px) {
    .hazard-grid {
        grid-template-columns: 1fr;
    }

    .title h1 {
        font-size: 1.5em;
        margin-top: -10px;
    }

    .title h2 {
        font-size: 1em;
        margin-top: -10px;
    }
}


/* Style Peta */

