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

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: transparent;
    overflow: hidden;
}

.interactive-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.overlay-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Size will be set by JavaScript to match background image */
}

.overlay-svg svg {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* Hotspot hover effects */
.overlay-svg svg .hotspot-fill {
    transition: fill 0.3s ease;
}

.overlay-svg svg g[class*="hotspot-"] {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.overlay-svg svg g[class*="hotspot-"]:hover {
    transform: scale(1.05);
}

.overlay-svg svg g[class*="hotspot-"]:hover .hotspot-fill {
    fill: #007bb8; /* Darker blue on hover */
}

/* hotspot idle anim */
.overlay-svg svg g[class*="hotspot-anim"] {
    animation: hotspot-idle 3s infinite;
}

@keyframes hotspot-idle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #3f6c77;
    color: white;
    border-radius: 15px;
    padding: 15px 50px 15px 15px;
    max-width: 400px;
	max-height: 90%;
    width: 90%;
    height: auto;
    min-height: 200px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: url("icons/modal-icon-close.svg") center/16px no-repeat;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-height: 0; /* Important for flexbox overflow */
    overflow-x: hidden; /* Prevent horizontal overflow only */

	/* Custom scrollbar styling for better appearance */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.modal-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-text {
    flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0; /* Important for flexbox overflow */
}

.modal-title {
    font-family: "Sentinel A", "Sentinel B", serif;
    font-size: 24x;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1.2;
    flex-shrink: 0; /* Prevent title from shrinking */
}

.modal-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    flex: 1;
}

/* Custom scrollbar for webkit browsers */
.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: transparent;
}

.modal-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.modal-description p + p {
    margin-top: 1rem;
}