﻿.g3-map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.g3-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.building-glow {
    fill: rgba(255, 215, 0, 0); /* Invisible normally */
    stroke: rgba(255, 215, 0, 0); /* Invisible border */
    stroke-width: 2;
    transition: all 0.4s ease;
    cursor: pointer;
}

.building-glow:hover {
    fill: rgba(255, 215, 0, 0.25); /* Subtle Golden Glow */
    stroke: rgba(255, 215, 0, 0.9); /* Solid Golden Outline */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.building-glow:target {
    fill: rgba(255, 215, 0, 0.25) !important; /* Stronger highlight */
    stroke: red !important;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    animation: pulse-highlight 2s; /* Make it blink/pulse */
	animation-iteration-count:4;
}

#village-details {
    margin: 0 auto; 
	max-width:1215px; 
	padding:0; 
	background-color:#eee8da;   
}

.detail-block {
    padding: 40px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.map-jump-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #f0f0f0; /* Light grey background */
    color:#000; /* Dark text */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.map-jump-link:hover {
    background-color: #4E6486; 
    border-color: #ccac00;
    color: #fff;
    transform: translateY(-2px); 
}

/* Visually highlight the section when it is clicked on the map */
.detail-block:target {
    border: 2px solid #86744e; 
    background-color: #fff;
    box-shadow: 0 0 20px rgba(134, 116, 78, 0.5);
}

.detail-block h2 {
    margin-top: 0;
    color: #333;
}

.detail-block a {
    display: inline-block;
    margin-top: 15px;
    color: #2B4738;
    text-decoration: none;
    font-size: 0.9em;
}

.interactive-map-container {
    position: relative;
    display: inline-block;
}

.g3-map-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Adjust to your layout preference */
    margin: 0 auto;
}

.print-btn {
    background-color: #f2f3f5;
    font-family:'Montserrat',sans-serif;font-size:1.0em;
	color: black;
    padding:17px 0;
	width:295px;
	text-align:center;
    border: black thin solid;
    border-radius: 30px;
    cursor: pointer;
}

@keyframes pulse-highlight {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.hero-section {
    position: relative;
    width: 1200px;
    height: 537px;
    background: #000; /* Black background during transition */
}

#video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: #000;
}

#intro-video {
    width: 100%;
    display: block;
}

#skip-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid white;
    cursor: pointer;
    z-index: 11;
}

/* Class to fade the map in */
.fade-in {
    display: block !important;
    animation: fadeInAnimation 1.5s forwards;
}

@keyframes fadeInAnimation {
    from { opacity: 0; }
    to { opacity: 1; }
}

#logo-intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.intro-logo-img {
    width: 300px; /* Adjust based on your logo size */
    opacity: 0;
    animation: logoFadeInOut 4s forwards; /* 4 second total intro */
}

@keyframes logoFadeInOut {
    0% { opacity: 0; transform: scale(0.95); }
    30% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}





@media print {
    .map-jump-link {display: none !important;}
}

@media print {
    /* Hide navigation, buttons, and footer on paper */
    #sticky-back-button, .print-btn, .map-jump-link, .nav, .footer,.panel-button, .signandgive, audio {
        display: none !important;
    }

    /* Ensure the map takes up the full width of the paper */
    .g3-map-container {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Style the text for better readability on white paper */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .detail-block {
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        page-break-inside: avoid; /* Prevents a building's text from being split across 2 pages */
    }
}

