/* Removing this will fuck up your element sizing for the whole site DO NOT REMOVE IT */
* {
  box-sizing: border-box;
}


html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Nunito Sans", sans-serif;
  background-color: #805781;
}



html {
  scroll-behavior: smooth;
}

/* General Styling */

#header, #footer {
  width: 100%;
  background-color: #411C42;
  padding: 15px 1em;
  box-sizing: border-box;
  color: #ECECEC;
  z-index: 1000;
}

#header {
  font-family: "Skranji", system-ui;
  font-style: bold;
  color: #ECECEC;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1001;
}

#header h1 {
  font-family: "Skranji", system-ui;
  font-style: bold;
  text-align: center;
  font-size: 2.5rem;        /* adjust size to match your layout */
  letter-spacing: 0.02em;   /* same as Google Fonts preview */
  line-height: 1.2;  
  margin: 0;
}

#header h1 a {
  font-family: "Skranji", system-ui;
  font-style: bold;
  color: inherit;          
  text-decoration: none;   
}

h1 {
  font-family: "Skranji", system-ui;
  font-style: normal; 
  text-align: center;
  font-size: 38px;
}

h2 {
font-family: "Faculty Glyphic", sans-serif;
font-size: 28px;
text-align: center;
margin: 1em 0;
margin-left: 2em;
}

h3 {
  font-family: "Faculty Glyphic", sans-serif;
  font-size: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 4em;
  padding-left: 1em;
}

h3 .date {
  font-size: 0.7em;
}

h3, h4, p {
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

p {
font-size: 14.5px;
/*color: #333333;*/
margin: 0.8em 0;                    /* Space above and below paragraphs */
text-align: justify;
margin-left: 4em;
padding-left: 1em;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.role-text {
  font-family: "Nunito Sans", sans-serif;
  font-style: normal;
  font-size: 13px;
  margin-left: 4em;
  padding-left: 1em;
}

hr { 
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 1px;
  border-color: #e4edf2;
} 

/* Navigation links container */
#navLinks {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  width: 100%;
}

/* Navigation links styling */
#navLinks a {
  color: #fff5c4;
  transition: all 0.2s ease-out;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 1.1em;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#navLinks a:hover {
  color: #BCE784;
  text-decoration: underline;
  background-color: rgba(255, 245, 196, 0.1);
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown menu*/
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: #6B366D;
  min-width: 160px;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  margin-top: 2px;
  padding: 0.25rem 0;
  pointer-events: none;
  transition: opacity 0.2s ease 0.1s, visibility 0.2s ease 0.1s;
}

/* Show dropdown content when you hover over it */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Dropdown button styling */
.dropbtn {
  background: none;
  border: none;
  color: #fff5c4;
  font: inherit;
  cursor: pointer;
  padding: 0.75rem 1rem;
  text-decoration: underline;
  transition: color 0.2s ease-out;
  font-size: 1.1em;
  min-height: 44px;
  border-radius: 4px;
}

.dropbtn:hover,
.dropdown:hover .dropbtn {
  color: #ECECEC;
  text-decoration: none;
  outline: none;
  background-color: rgba(255, 245, 196, 0.1);
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #fff5c4;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
  font-size: 1em;
  min-height: 40px;
  border-radius: 4px;
}

.dropdown-content a:hover {
  background-color: rgba(255, 245, 196, 0.15);
  color: #BCE784;
}

/* Main content styling */
.main {
  flex-grow: 1;    /* This makes main content fill remaining space */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2em;
  box-sizing: border-box;
}


hr {
  margin: 2em 0;
}

#footer {
  width: 100%;
  color: #e4edf2;
  text-align: center;
  margin-top: 1em;
  padding: 15px;
  position: relative;
  z-index: 1000;
}


.social-icons a {
  color: rgb(228, 237, 242);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons a .icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.social-svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Website name styling */
.site-title {
  font-family: "Skranji", system-ui;
  font-style: bold;
  color: #ECECEC;
  text-decoration: none;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-title .logo {
  height: 70px;
  width: auto;
  vertical-align: middle;
}

/* Copyright styling */
.copyright {
  font-family: Arial, sans-serif;
  color: #7b3e7d;
  font-size: 0.9em;
  text-align: center;
  margin: 0;
}

#footer p {
  color: #7b3e7d;
  font-size: 0.9em;
  text-align: center;
}

/* Page specific */
.textPage {
  color: #e4edf2;
  max-width: 500px;
  margin: 0 auto;
  padding: 2em 6em; /* Reduce side padding to prevent navigation issues */
  position: relative; /* needed for absolute positioning of child elements */
  z-index: 1; /* ensure it doesn't cover header navigation */
}

.main.textPage {
  max-width: none; /* remove the 800px limit */
}

.left-drawing {
  position: absolute;
  left: 2em;
  top: 4em;
  max-width: 150px;
  max-height: 200px;
  object-fit: contain;
}

.right-drawing {
  position: absolute;
  right: 2em;
  top: 50%;
  transform: translateY(-50%);
  max-width: 150px;
  max-height: 200px;
  object-fit: contain;
}

/* About page layout */
.about-content {
  display: flex;
  align-items: center;
  gap: 2em;
  margin: 2em 0;
}

.profile-photo {
  flex: 0 0 30%;
  max-width: 350px;
  min-width: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 0;
}

.side-drawing {
  flex: 0 0 25%;
  max-width: 280px;
  min-width: 180px;
  object-fit: contain;
}

/* About page specific text sizing */
.about-text p {
  font-size: 16px;
  margin-left: 0;
  padding-left: 0;
}

/* Contact Form Styling */
.contact-section {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 2px solid #e4edf2;
}

.contact-section h2 {
  text-align: center;
  color: #e4edf2;
  margin-bottom: 1.5em;
  font-family: "Faculty Glyphic", sans-serif;
  margin-left: 0;
}

.contact-form {
  max-width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  color: #BCE784;
  font-weight: 600;
  font-size: 1em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75em;
  border: 2px solid #BCE784;
  border-radius: 4px;
  background-color: #7A4A7B;
  color: #e4edf2;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff5c4;
  background-color: #7A4A7B;
  box-shadow: 0 0 8px rgba(188, 231, 132, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #BCE784;
  color: #220b22;
  padding: 0.75em 2em;
  border: 2px solid #BCE784;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  font-family: "Nunito Sans", sans-serif;
}

.submit-btn:hover {
  background-color: transparent;
  color: #BCE784;
  border-color: #BCE784;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188, 231, 132, 0.4);
}


.gallery {
  column-width: 250px;
  column-gap: 0.5em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5em;
}
.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.2em;
}
.gallery-item img {
  width: 100%;
  border: 1px solid #220b22;
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.gallery-item img:hover {
  box-shadow: 0 0 10px 2px #8AB857;
}

.index-gallery-item {
  position: relative; /* needed for overlay positioning */
  display: inline-block;
  width: 250px;
  height: 200px;
  margin-bottom: 0.1em;
  margin-top: 1.5rem;
  overflow: hidden; /* clip anything overflowing */
}




.index-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #220b22;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 0; /* image behind overlay */
}


.index-gallery-item:hover {
  box-shadow: 0 0 10px 2px #8AB857;
}

.index-gallery-item:hover .overlay-text {
  opacity: 1;
}
.index-gallery-item .overlay-text {
  opacity: 0;
}

/* Overlay container */
.overlay-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(138, 184, 87, 0.5); /* slightly lighter green with transparency */
  color: black;
  font-weight: bold;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1; /* keep visible */
  pointer-events: none; /* allows clicking through */
  z-index: 1; /* make sure overlay is above image */
}

figure {
  display: inline-block;
  margin: 0 0 15px 0;
}

.spotlightImage {
  display: block;
  margin: 0 auto;
}

/* ---------------------------------
   Lightbox Slideshow Styles
---------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 17, 38,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  padding: 1em;
  box-sizing: border-box;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  opacity: 1;
}

/* This makes sure the image fits nicely inside viewport */
.lightbox img {
  max-width: 90vw;    /* max 90% of viewport width */
  max-height: 80vh;   /* max 80% of viewport height */
  object-fit: contain;
  margin-bottom: 0.5em;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox.show img {
  transform: scale(1);
}

/* Caption below image */
.lightbox-caption {
  color: #eee;
  font-size: 1.1em;
  max-width: 80%;
  text-align: center;
  margin-bottom: 1em;
  font-style: italic;
  user-select: none;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #ECECEC;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
}

/* Arrows */
.lightbox-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #ECECEC;
  padding: 10px;
  user-select: none;
  z-index: 10001;
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.lightbox-arrow:hover {
  color: #ECECEC;
}

/* Video container styles for YouTube and Google Drive embeds */
.video-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 1.5em auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

/* Video grid for multiple videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.music-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgb(193, 142, 194, 0.5);
  padding: 12px 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 30px auto; /* centers it horizontally */
  font-family: "Nunito Sans", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#play-pause {
  background: #805781;
  border: none;
  color: #ECECEC;
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

#play-pause:hover {
  background: #9a6ca3; /* lighter purple */
}

#seek-bar {
  flex: 1;
  accent-color: #805781; /* purple track color */
  cursor: pointer;
}

#time-display {
  font-family: monospace;
  font-size: 14px;
  color: #4a375a;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, rgba(138, 184, 87, 0.8), rgba(122, 168, 74, 0.8));
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 55px;
  height: 55px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(138, 184, 87, 0.3);
  transition: all 0.3s ease;
  display: none;
  z-index: 1000;
}

#backToTop:hover {
  background: linear-gradient(135deg, rgba(122, 168, 74, 0.9), rgba(107, 150, 64, 0.9));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 184, 87, 0.4);
}

#backToTop:active {
  transform: translateY(-1px);
}
