html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

#fullScreenPopup, #infoContainer, #googleMapsButtonsContainer {
	overflow-x: hidden; 
    max-width: 100vw; /* Prevent these elements from exceeding the viewport width */
    box-sizing: border-box;
}

/* Container for total info and battle list with responsive layout */
#infoContainer {
    display: flex;
	flex-direction: column; /* Stack vertically on smaller screens */
    gap: 0px; /* Add space between the two containers */
    justify-content: space-between;
    align-items: flex-start;
}

#totalContainer {
	 
	flex: 1;
	width: 100%; /* Full width for each on mobile */
    text-align: center;
    margin-top: 20px;
	
}

#totalContainer div {
    margin-bottom: 20px;
	font-size: 18px;
}

#periodosFilters{
	display: flex;
	flex-direction: column; /* Stack vertically on smaller screens */
    flex: 1;
	width: 100%; /* Full width for each on mobile */
    text-align: left;
    margin-top: 20px;
	padding-right: 10px;

}


/* Google Maps Buttons styling */
#googleMapsButtonsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
	padding-top: 20px;
    width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

#map {
    height: 500px;
    width: 100%;
}

#fullScreenPopup {
    position: fixed; /* Use fixed positioning to ensure it takes the entire viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
	height: 100vh; /* Full viewport height */
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling within the main popup container */
    box-sizing: border-box;
	
	

}

#popupContent {
   
    margin: 0 auto; /* Center it horizontally */
    box-sizing: border-box;
	overflow: hidden; /* Prevent scrolling within the popup */
}

#popupContent {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px!important; /* Ensure it fits within the viewport width */
    max-height: 90vh; /* Fit within viewport height */
    overflow-y: auto!important; /* Allow vertical scrolling if content overflows */
    position: relative;
    text-align: center;
    box-sizing: border-box;
	margin: auto; /* Center the content */
}



#popupTitle {
    font-size: 24px;
    margin-bottom: 10px;
}

#popupDate {
    font-size: 18px;
    margin-bottom: 20px;
    background-color: #BFA280;
	color: white;
    padding: 10px;
    border-radius: 5px;
}

#popupDescription {
    font-size: 16px;
	text-align: left;
	}

#popupImage {
    display: block;
    margin: 0 auto 10px;
}

#popupReadMore {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background-color: grey;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
}

#popupReadMore:hover {
    background-color: black;
}

#closePopupButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background: red;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#closePopupButton:hover {
    background: darkred;
}

/* Info Window styles */
.infoWindow img {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto;
}

.infoWindow h3 {
    font-size: 12px;
    text-align: center;
}

/* Styling for the Google Maps link button */
.google-button {
    max-width: 90vw; /* Ensure buttons fit within the viewport width on mobile */
    width: auto; 
    padding: 10px;
    background-color: #09403F !important;
    color: white!important;
    text-align: center;
	border: none!important; 
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px; /* Add some spacing between buttons */
}


.google-button:hover {
background-color: #B0B9CA!important;
}

/* Distance and Time styles */
#totalDistance, #totalTime {
    margin-top: 10px;
    font-size: 16px;
}


/* Custom marker styles */
.custom-marker {
    background-size: contain;
    background-repeat: no-repeat;
    border: 2px solid transparent;
    border-radius: 50%;
}

.marker-icon {
    width: 40px;
    height: 40px;
}

.marker-icon-large {
    width: 60px; /* 50% larger */
    height: 60px;
}

@keyframes drop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    70% {
        transform: translateY(20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.drop {
    animation: drop 0.9s ease-out, bounce 0.9s ease-in-out 0.9s;
}

