html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  color: #333;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.container-fluid{
  padding: 0px !important;
  margin: 0px !important;
}

p{
  font-size: 1.5rem !important;
}

.main-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: auto;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.logo-link {
  display: inline-block;
}

.logo-gwa, .logo-skt, .logo-sfc {
  display: inline-block;
  padding: 10px;
}

.logo-sfc{
  max-height: 130px;
}

.logo-gwa{
  max-height: 100px;
}

.logo-skt{
  max-height: 75px;
}

.main-nav {
  margin-left: auto; 
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 0 0 30px;
}

.nav-link {
  color: #555;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  font-size: 1.2rem;
}

.nav-link:hover,
.nav-link.active {
  color: #8B0000;
}

.nav-link.active {
  border-bottom: 2px solid #8B0000;
  font-weight: 600;
}

.parallax-section1, .parallax-section2, 
.parallax-section3, .parallax-section4, 
.parallax-section5, .parallax-section6{
  position: relative;
  min-height: 100vh;
  padding-top: 70px;
  scroll-margin-top: 90px;
  scroll-padding-top: 90px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  display: flex;
  align-items: center;
}

.parallax-section1{
  background-image: url('img/logger-install.jpeg');
}

.parallax-section2{
  background-image: url('img/salmon.jpg');
}

.parallax-section3{
  background-image: url('img/Ironside_Kispiox_Low.jpg');
}

.parallax-section4{
  background-image: url('img/glacier.jpg');
}

.parallax-section5{
  background-image: url('img/water-temp.jpg');
}

.parallax-section6{
  background-image: url('img/river8764.jpeg');
}

.content-text {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 15px;
  backdrop-filter: blur(5px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-text p {
  color: #333;
  line-height: 1.6;
}

.section-title {
  color: #2a3f54;
  font-weight: 700;
  position: relative;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.section-title-underline {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
}


/* Viz pages */
/* Visualization sections */
.visualization-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.visualization-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  padding: 12px 30px;
  font-size: 1.2rem;
  border-radius: 30px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Visualization pages */
.visualization-page-title {
  color: #2a3f54;
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 20px;
}

.map-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-height: 500px;
  margin-top: 20px;
}

.header-right {
  display: flex;
  align-items: center;
}


/* Section 2 */
#section2 {
  background-color: #F5F5F0;
  min-height: 100vh;
  padding-top: 90px;
  scroll-margin-top: 90px;
  scroll-padding-top: 90px;
}

.content-text {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.section-title {
  text-transform: uppercase;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 992px) {
  .content-card {
    margin: 15px 0;
  }
  
  .background-section {
    background-attachment: scroll; 
  }
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .content-text {
    margin-bottom: 20px;
  }
  
  .col-md-6:first-child .content-text {
    margin-bottom: 15px;
  }
}

.map-wrapper {
  min-height: 400px;
  width: 100%;
  position: relative;
  background-color: #f0f0f0;
}

.centered{
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  z-index: 1000; 
  text-align: center;
}

.leaflet-container {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100% !important;
  width: 100% !important;
  z-index: 1;
}

#glacierMap {
  height: 100% !important;
  width: 100% !important;
}

.image-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 15px auto;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-container img{
  width: 100%;
  height: auto;
}