/* ============================================
   Buffalo Bayou Geology - Shared Styles
   ============================================ */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Roboto Condensed", sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

/* === Typography === */
.roboto-condensed-one {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

h1 { 
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-family: "Roboto Condensed", sans-serif;
}

h3 {
    font-family: "Roboto Condensed", sans-serif;
}

p {
    font-family: "Roboto Condensed", sans-serif;
    font-size: larger;
}

/* === Header === */
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Wide header variant for map pages */
.header-content-wide {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Narrow header variant for index page */
.header-content-narrow {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* === Navigation === */
nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: #a8d8ea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover {
    background: rgba(168, 216, 234, 0.3);
    transform: translateY(-2px);
}

nav a.active {
    background: rgba(168, 216, 234, 0.4);
    font-weight: 600;
}

/* Nav links should not change color when visited */
nav a,
nav a:visited {
    color: #a8d8ea;
    text-decoration: none;
}

/* === Link Styles (Accessibility) === */
a {
    color: #5bc0de;
}

a:visited {
    color: #c8e8f0;
    text-decoration: underline dotted;
}

a:visited:hover {
    color: #e0f4f8;
    text-decoration: underline;
}

/* === Main Content === */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Wide main for map pages */
main.main-wide {
    max-width: 1800px;
    padding: 1.5rem 2rem;
}

/* === Notice & Info Banners === */
.notice {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
    padding: 0.75rem 1rem;
    margin: 1rem 2rem;
    border-radius: 0 8px 8px 0;
    color: #ffc107;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.notice-wide {
    max-width: 1800px;
}

.info-banner {
    background: rgba(168, 216, 234, 0.15);
    border-left: 4px solid #a8d8ea;
    padding: 0.75rem 1rem;
    margin: 0.5rem 2rem 1rem;
    border-radius: 0 8px 8px 0;
    color: #a8d8ea;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.info-banner-wide {
    max-width: 1800px;
}

.info-banner a {
    color: #fff;
    text-decoration: underline;
}

/* === Section Styles === */
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section h2 {
    font-size: 1.5rem;
    color: #a8d8ea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(168, 216, 234, 0.3);
}

.section h3 {
    font-size: 1.2rem;
    color: #a8d8ea;
    margin-bottom: 0.75rem;
}

.section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* === Page Title === */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h2 {
    font-size: 2rem;
    color: #a8d8ea;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* === PDF Container === */
.pdf-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-container h3 {
    font-size: 1.3rem;
    color: #a8d8ea;
    margin-bottom: 1rem;
}

.pdf-container p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pdf-container iframe {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#geoData{
    width: 48%;
    float: left;
    margin-left: 1%;
    margin-right: 0.5%;
}

#geoDataLarge{
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
}


#geoDataB{
    width: 49%;
    float: right;
    margin-left: 0.5%;
    margin-right: 1%;
}

#map {
    width: 48%;
    float: left;
    margin-left: 1%;
    margin-right: 0.5%;
}
#macrostrat-map {
    width: 49%;
    float: right;
    margin-left: 0.5%;
    margin-right: 1%;
}
#streetview {
    width: 98%;
    margin-left: 1%;
    margin-right: 0.5%;
    float: left;
    background-color: gray;
}
#clickedDiv {
    width: 49%;
    float: right;
    margin-left: 0.5%;
    margin-right: 1%;
    height:30rem;
    padding:0.5rem;
}
#generativeFieldTripStopHolder {
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
    float: left;
    background-color: gray;
}
.mapHolder {
    width: 47.5%;
    height:30rem;
    margin-top:0.5%;
    margin-bottom:0.5%;
    box-sizing: border-box;
    border: 1px solid black;
} 

.mapHolderLarge {
    width: 96%;
    height:50rem;
    margin-top:1%;
    margin-bottom:1%;
    margin-left: 1%;
    margin-right: 1%;
    box-sizing: border-box;
    border: 1px solid black;
} 
.title {
    text-align: center;
}
#lastLatLongClicked {
    min-height: 2rem;
    margin-bottom:0rem;
    background-color: rgb(227, 227, 227);
    padding: 0.25rem;
    border-radius: 0.5rem;

}

#RocksAtSurfaceDiv {
    background-color: rgb(227, 227, 227);
    padding: 0.25rem;
    margin-top:0.5rem;
    margin-bottom:0.5rem;
    height:21.5rem;
    overflow: auto;
    border-radius: 0.5rem;
}
#results {
    display: flex;
    flex-direction: row;
    /* background-color: rgb(227, 227, 227);
    padding: 0.25rem; */
    overflow: scroll;
}
.result {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: left;
    justify-content: center;
    margin: 0.2rem;
    padding: 0.2em;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: rgb(208, 248, 212);
  }
  
  .result h4 {
    font-size: 1rem;
    margin:0.02rem;
  }
  
  .result p {
    margin-bottom: 0.05rem;
  }
  
  .result ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
  }
  
  .result li {
    margin-bottom: 0.05rem;
  }
  
  .result li strong {
    margin-right: 0.05rem;
  }

  div.textHolder {
    width: 100%;
    height: 100%;
    margin: 1%;
    /* flex-direction: column; */
    display: flex;
    justify-content: space-around;
  }

  .textHolder > .textHolder {
    flex: 1 0 80%; /* grow | shrink | basis */
}


  .centerText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .mapTitles{
    position: relative; /* Required for z-index to work */
    z-index: 100000; /* Any number greater than the z-index of other elements */
    margin-left:5rem;
    font-size: large;
}

.fontLight{
    color:white;
}
.fontDark{
    color:darkblue
}

.gallery-item {
    display: flex; /* Make it a flex container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    gap: 1rem; /* Space between items */
    outline: 1px solid black; /* Add an outline */
}

.gallery-item img {
    width: 55%;
    height: auto;
    /* margin-top: 0rem; */
    margin-bottom: 1rem;
    float: top;
}

.map-container {
    width: 100%; /* Or a specific width, e.g., 300px */
    height: 100%; /* Ensure height is explicitly set */
    /* margin-top: 10px; */
    position: relative; /* Required for Leaflet maps */
}

.gallery-item h3,
.gallery-item p,
.gallery-item .map-container {
    margin: 10px 0;
}