@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&family=Averia+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Grandiflora+One&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


:root {
    --Pine: #053E25;
    --Moss: #bed37f;
    --Moss2: #BFD1A9;
    --Wood: #704214;
    --Legal: #FFFF88;
    --Graphite: #161818;
    --Blue: #002f61;
}

img {
  max-width: 100%;
}

/* General body and map styling */
body { 
    margin: 0; 
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh; /* full viewport height */
    font-size: 22px; 
}

header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px;
    background-color: var(--Graphite);
    color: var(--Moss);
    font-size: 1em;
}

#title {
    margin-left: 4%; /* Adjust margin-left for the title div */
}

#title h3 {
    position: relative;
    margin-left: 4%;
    margin-bottom: 0; /* Adjust margin-bottom */
    line-height: 1;
    font-family: "Alegreya", sans-serif;
    font-size: 1em;
    color: var(--Moss2);
    z-index: 3;
}

#title h2 {
    position: relative;
    margin-left: 5%;
    margin-top: 0; /* Adjust margin-top */
    line-height: 1;
    font-family: "Alegreya", sans-serif;
    z-index: 3;
    white-space: nowrap;
}

#plane {
    position: absolute;
    left: 30px;
    height: 65px;
    z-index: 2;
    transition: all 0.5s;
}

.hover-learn {
    left: 13% !important;
}
.hover-markers {
    left: 18% !important;
}

nav {
    margin-left: 4%;
    z-index: 3;
}

nav ul {
    display: flex;
}

nav ul li {
    padding: 10px;
    font-family: "Grandiflora One", cursive;
    font-size: 0.8em;
    color: var(--Legal);
    transition: hover 0.5s;
    cursor: pointer;
}

nav ul li:hover {
    filter: saturate(500%);
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
display: none;
position: absolute;
background-color: var(--Graphite);
min-width: 160px;
z-index: 1;
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content p {
margin: 0;
padding: 10px 12px;
cursor: pointer;
border-bottom: 1px solid #ddd;
}

.dropdown-content p:hover {
background-color: var(--Pine);
}

/* Show dropdown on hover over the entire dropdown li */
.dropdown:hover .dropdown-content {
display: block;
}
  

footer {
    padding: 5px;
    background-color: var(--Graphite);
    color: var(--Moss);
    text-align: center;
    z-index: 2000;
    font-family: "Alegreya", sans-serif;
    font-size: 0.8em;
}

#map { 
    width: 100%;
    height: 100%; /* full viewport height */
    flex: 1;
}

/* Popup content styling */
.mapboxgl-popup-content {
    position: relative; /* Ensure the popup content is relative for absolute positioning */
    padding-bottom: 45px; /* Add padding to make room for the button */
    background-color: var(--Legal);
    max-height: 80vh; /* Clamp to 60% of viewport height */
    overflow-y: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    /* border: 4px solid var(--Graphite); */
}

/* Position button at the bottom of the popup */
.popup-button {
    position: absolute;
    bottom: 10px;  /* Position 10px from the bottom */
    left: 50%;
    transform: translateX(-50%);  /* Center the button horizontally */
    padding: 6px 40px;
    background-color: var(--Pine);
    color: var(--Moss);
    border: none;
    cursor: pointer;
    pointer-events: auto;  
    z-index: 1000;  /* Ensure button is clickable */
    font-family: "Alegreya", sans-serif;
    font-weight: 700;
    font-size: 1.4em;
    transition: background-color 0.5s, color 0.5s;
}

.popup-button:hover {
    background-color: var(--Blue);
    color: var(--Legal);
}

.popup-title{
    padding-bottom: 3%;
    font-family: "Alegreya", sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--Pine);
}

.popup-img{
    margin:auto;
    margin-bottom: 3%;
    display:block;
    border: 4px solid var(--Graphite);
}

.popup-content{
    font-family: "Saira Condensed", sans-serif;
    font-size: 1.3em;
    color: var(--Graphite);
}

.hide{
    display:none;
}

#learn-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: linear-gradient(to bottom, var(--Graphite), var(--Blue));
    overflow: auto;
}

#learn-container h2 {
    font-family: "Averia Libre", sans-serif;
    font-size: 2em;
    color: var(--Moss);
    text-align: center;
}

#learn-container ul {
    margin: 0 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#learn-container a {
    font-family: "Saira Condensed", sans-serif;
    font-size: 0.9em;
    color: var(--Legal);
}

#learn-container a:hover {
    filter: saturate(500%);
}

#learn-container p {
    font-family: "Saira Condensed", sans-serif;
    font-size: 0.8em;
    color: var(--Moss2);
}

/* Splash Screen Styling */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's on top of everything */
  }
  
  .splash-content {
    background: var(--Legal); /* White background */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .splash-content h1 {
    font-family: "Averia Libre", sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--Pine); /* Dark text */
    text-align: center;
  }
  
  .splash-content p {
    font-family: "Saira Condensed", sans-serif;
    font-size: 0.9em;
    color: var(--Graphite); /* Gray text */
    margin-bottom: 20px;
  }
  
  .splash-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .splash-buttons button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #begin-button {
    background: var(--Blue);
    color: var(--Legal);
  }