/**{border: 1px solid red}*/

/*COLOR GUIDE
Green #025939
Brown #5D4038
Blue #012340*/

html,body {
	height:100%;
	margin: 0;
	display: flex;
 	flex-direction: column;
  	height: 100vh;
}

/* Header stays on top */
header {
/*  background-color: #0c3c78;
 	color: white;
 	padding: 1rem;*/
    text-align: center;
	z-index: 1;
	position: fixed;
	top: 0;
	background: #025939;
	width: 100%;
	height: 80px;
}

h1 {
	font-family: "Lora", serif;
	font-weight: 500;
	font-style: normal;
	color: white;
}

#wrapper {
	display: flex; /* Flexbox is perfect for horizontal layout */
	width: 100%;
	height: calc(100vh - 80px); /* full height minus header */
	overflow: visible;
	transition: all 0.6s ease;
	margin-top: 80px;
}

/*POP UP BOX*/

/* Popup overlay */
#popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6); /* dimmed background */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.8s ease; /* fade effect */
	z-index: 10;
}

/* Hidden state */
#popup.hidden {
	opacity: 0;
	pointer-events: none; /* prevent clicks while invisible */
}

/* Inner box */

#popup-content {
	background: #025939;
	padding: 2rem;
	border-radius: 1rem;
	text-align: center;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
	width: 400px;
}

#popup-content h2 {
	margin-top: 0;
	text-align: center;
	color: white;
    font-family: "Lora", serif;
    font-weight: 400;

}
#popup-content p {
	margin: auto;
    color: white;
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    text-align: left;
    width: 390px;
}

/*MARKERS*/
.marker {
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.2s;
	pointer-events: auto;
}

.marker img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

/*BUTTONS*/

#start-tour {
	cursor: pointer;
	border: none;
    border-radius: 4px;
    padding: 10px 13px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    background: #5D4038;
    margin-top: 10px;
    position: relative;
    left: 110px;
}

#start-tour:hover {
	background: white;
	transition: 0.3s ease;
	color: #5D4038;

}

#reset {
	position: fixed;
    top: 100px;
    left: 30px;
    cursor: pointer;
    background: #5D4038;
    color: white;
    border: none;
    padding: 10px 13px;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
}

#reset:hover  {
	background: white;
	transition: 0.3s ease;
	color: #5D4038;
}

#next {
	position: fixed;
    top: 100px;
    left: 860px;
    cursor: pointer;
    background: white;
    color: #5D4038;
    border: none;
    padding: 10px 13px;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
}

#next:hover {
	background: #5D4038;
	transition: 0.3s ease;
	color: white;
}

#previous {
	position: fixed;
    top: 100px;
    left: 740px;
    cursor: pointer;
    background: white;
    color: #5D4038;
    border: none;
    padding: 10px 13px;
    border-radius: 4px;	
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
}

#previous:hover {
	background: #5D4038;
	transition: 0.3s ease;
	color: white;
}

/*MAP CONTENT*/

#map-container { /*map on left side*/
	flex: 1; /* takes up all available space when sidebar hidden */
	transition: flex 0.8s ease; /* smooth width change when sidebar opens */
	position: relative;
}

#map { /*map itself (fill)*/
	width: 100%;
	height: 100%;
}

#side-bar {
	width: 0;
	overflow-y: auto;
    background: #012340;
    width: 0;
  	opacity: 0;                /* start invisible */
  	transition: width 0.8s ease, opacity 0.8s ease; /* smooth both */
  	z-index: 3;
  	overflow-y: auto;
  	overflow-x: hidden;
  	flex-shrink: 0;
}

#side-bar h2 {
	text-align: center;
	color: white;
    font-family: "Lora", serif;
    font-weight: 400;
}

p {
	width: 330px;
    margin: 10px auto;
    color: white;
    font-family: "Manrope", sans-serif;
    font-weight: 300;
}

#side-bar img {
	width: 300px;
	height: 500px;
	margin: 12px 50px;
	border-radius: 8px;
}

#side-bar video {
	width: 300px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	margin: 0 50px;
}

.sidebar-footer {
	margin-bottom: 20px;
    text-align: center;
    color: white;
    font-size: .9em;
}

/* When the tour starts, add .show-sidebar to wrapper */
#wrapper.show-sidebar #map-container {
	flex: 0 0 70%;
}

#wrapper.show-sidebar #side-bar {
	width: 30%;
	opacity: 1; 
}