body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Slab', serif;
  /* Jungle theme background */
  background: url('assets/jungle.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #fff;
  color: #000;
  border-bottom: 1px solid #000;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  text-align: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  text-align: center;
}

.logo img {
  max-width: 21%;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 20px;
  padding: 10px 15px;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover {
  color: #555;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

main {
  display: flex;
  padding: 100px 20px 20px;
  margin-right: 50vw; /* Reserve half the viewport for the fixed headshot */
}

.media {
  flex: 1;
  margin-right: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  background: #fff;
  margin-bottom: 20px;
}

.vjs-default-skin .vjs-play-progress,
.vjs-default-skin .vjs-load-progress {
  background-color: black !important;
}

.audio-player {
  margin-bottom: 20px;
  border: 1px solid #000;
  padding: 10px;
  background: #fff;
}

.audio-text {
  color: #000;
  margin-bottom: 10px;
}

.controls {
  display: flex;
  align-items: center;
}

.play-pause {
  background: none;
  border: none;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
}

.play-pause .icon {
  width: 30px;
  height: auto;
}

.progress-container {
  flex-grow: 1;
  position: relative;
  margin-top: 0;
}

.time-display {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #000;
}

.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  transition: background 0.1s linear;
}

.progress::-webkit-slider-runnable-track {
  height: 10px;
  border: 1px solid black;
  border-radius: 0;
  background: transparent;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: black;
  border-radius: 50%;
  margin-top: -3.7px;
  margin-left: -1px;
  transition: background 0.1s linear;
}

.progress::-moz-range-track {
  height: 10px;
  border: 1px solid black;
  border-radius: 0;
  background: transparent;
}

.progress::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: black;
  border-radius: 50%;
}

.progress::-ms-track {
  height: 10px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.progress::-ms-thumb {
  width: 15px;
  height: 15px;
  background: black;
  border-radius: 50%;
}

/* About Me section styling */
.about-me {
  font-family: 'Merriweather', serif;
  margin-top: 20px;
  padding: 10px;
  background: none;
  border: none;
}

.about-me h2 {
  margin-top: 0;
  font-size: 22px;
}

/* FAQ Section Styling */
.faq-section {
  margin-top: 20px;
}

.faq-section h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* FAQ item styling */
.faq-item {
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* FAQ question styling: text above the FAQ with a plus sign */
.faq-question {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding-bottom: 5px;
}

.faq-plus {
  font-size: 18px;
}

/* FAQ answer styling */
.faq-answer {
  font-size: 16px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Open state for FAQ item */
.faq-item.open .faq-answer {
  max-height: 500px;
  margin-top: 10px;
  padding-top: 5px;
}

/* The thin black line positioned below the FAQ answer */
.faq-line {
  width: 100%;
  height: 1px;
  background: black;
  transition: transform 0.3s ease;
  transform: translateY(0);
  margin-top: 5px;
}

/* Animate the line to slide down slightly when open */
.faq-item.open .faq-line {
  transform: translateY(5px);
}

/* Fixed headshot on the right spanning half the screen width */
.headshot {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 50vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-left: 1px solid #000;
  z-index: 500;
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 0;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: row;
    text-align: center;
  }
  main {
    flex-direction: column;
    margin-right: 0;
    width: 100vw; /* Set width to full viewport width */
    padding: 100px 0 20px; /* Remove horizontal padding so content touches both sides */
  }
  .media {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .headshot {
    display: none;
  }
}

/* In vertical (portrait) orientation, hide the logo */
@media (orientation: portrait) {
  .logo {
    display: none;
  }
  .headshot {
    display: none;
  }
}