@font-face {
  font-family: "GrotzecCond-Demibold";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/GrotzecCond-Demibold3.woff2);
}

@font-face {
  font-family: "LeJeunePoster-Regular";
  src: url(https://journalismdesign.camd.northeastern.edu/clean/fonts/LeJeunePoster-Regular.woff2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "LeJeunePoster-Regular", "Georgia", serif;
  background: white;
  transition: background-color 0.5s ease;
  overflow: hidden;
}

body.scrolled {
  background: #f5e6d3;
}

/* Navigation Bar - Fixed at top with highest z-index */
ul.nav {
  background-color: #2961c2;
  color: white;
  padding: 5px;
  font-family: "GrotzecCond-Demibold", "impact", sans-serif;
  font-size: 2em;
  overflow: visible;
  list-style-type: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
}

ul.nav li.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

ul.nav li.logo a:hover {
  text-decoration: none;
  background-color: #2961c2;
  letter-spacing: 2px;
  transition: letter-spacing 0.2s ease-in;
}

ul.nav li a:link, ul.nav li a:visited {
  text-decoration: none;
  color: white;
}

div.dropdowncontent {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px grey;
  z-index: 100001;
  top: 100%;
  left: 0;
}

li.dropbutton:hover div.dropdowncontent {
  display: block;
}

li.dropbutton {
  position: relative;
}

li.dropbutton:hover div.dropdowncontent a:link,
li.dropbutton:hover div.dropdowncontent a:visited {
  color: #666;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.5em;
  border-bottom: 1px solid #666;
}

li.dropbutton:hover div.dropdowncontent a:hover {
  color: white;
  background-color: #666;
  transition: background-color 0.2s ease-in;
}

/* Sticky Header - below nav */
.sticky-header {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: center;
  background: transparent;
  z-index: 1000;
}

.sticky-header h1 {
  font-family: "GrotzecCond-Demibold", Arial, sans-serif;
  font-size: 2.2rem;
  color: #001f3f;
  margin: 0;
}

/* Main Content Area */
.main-section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 100px 80px;
}

.step-text {
  font-family: "GrotzecCond-Demibold", Arial, sans-serif;
  font-size: 1.3rem;
  color: #001f3f;
  margin-bottom: 1.5rem;
}

.character-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  max-height: calc(100vh - 280px);
}

.character-stack {
  position: relative;
  width: 450px;
  height: 100%;
  max-height: 600px;
}

.character-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.character-layer.visible {
  opacity: 1;
}

.character-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  justify-content: center;
  align-items: center;
}

.nav-btn {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 2px solid #001f3f;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "LeJeunePoster-Regular", "Georgia", serif;
  color: #001f3f;
  min-width: 130px;
}

.nav-btn:hover:not(:disabled) {
  background: #001f3f;
  color: white;
  transform: scale(1.05);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

/* Music Section */
.music-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #f5e6d3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 140px 2rem 100px 2rem;
}

.music-section.show {
  opacity: 1;
  pointer-events: all;
}

.music-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex: 1;
}

.music-header h2 {
  font-family: "GrotzecCond-Demibold", Arial, sans-serif;
  font-size: 2.2rem;
  color: #001f3f;
  margin: 0;
  text-align: center;
}

.music-header p {
  font-family: "GrotzecCond-Demibold", Arial, sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.8rem;
  text-align: center;
}

.play-button {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #001f3f;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  background: #003366;
  transform: scale(1.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 22px solid white;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}

.music-buttons {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  justify-content: center;
}

.music-btn {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 2px solid #001f3f;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "LeJeunePoster-Regular", "Georgia", serif;
  color: #001f3f;
  min-width: 110px;
}

.music-btn:hover {
  background: #001f3f;
  color: white;
  transform: scale(1.05);
}

/* Article Section */
.article-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #faf8f3;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  padding-top: 60px;
}

.article-section.show {
  opacity: 1;
  pointer-events: all;
  overflow-y: auto;
}

.article-content {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem 2rem;
}

.article-header-image {
  width: 70%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.article-title {
  font-family: "GrotzecCond-Demibold", Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #001f3f;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-align: center;
}

.article-subtitle {
  font-family: "LeJeunePoster-Regular", "Georgia", serif;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
  text-align: center;
}

.article-body {
  font-family: "LeJeunePoster-Regular", "Georgia", serif;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.5rem;
}

figure {
  margin: 2.5rem 0;
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Audio Control */
.audio-control {
  position: fixed;
  top: 80px;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 31, 63, 0.1);
  border: 2px solid #001f3f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100002;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.audio-control.show {
  opacity: 1;
  pointer-events: all;
}

.audio-control:hover {
  background: rgba(0, 31, 63, 0.2);
  transform: scale(1.1);
}

.audio-control svg {
  width: 24px;
  height: 24px;
  fill: #001f3f;
}


/* Style the container to use flexbox for horizontal arrangement */
.video-container {
  display: flex; /* Arrange children in a row */
  flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
  justify-content: center; /* Center the videos horizontally */
}

/* Style each video wrapper to take up roughly one-third of the width */
.video-wrapper {
  width: 30%; /* Adjust width to leave some spacing */
  margin: 5px; /* Add some spacing between videos */
  flex: 1; /* Allow items to grow and shrink */
}

/* Ensure the iframe fills its container */
.video-wrapper iframe {
  width: 100%;
  height: 300px; /* Adjust height as needed */
}

/* Add a media query for smaller screens to stack videos vertically */
@media only screen and (max-width: 500px) {
  .video-wrapper {
    width: 100%;
    margin: 5px;
  
 /* Center the video and add more margin */
  }

  .video-container{
    display:block;
  }

  .article-content{ width: 90%; 
    margin: 10px auto; /* Center the video and add more margin */}
}

@media only screen and (min-width: 501px) {


  .article-content{width: 50%; 
    margin: 0px auto 0 auto; /* Center the video and add more margin */
}}