/* ===========================
   MAIN STYLESHEET (main.css)
   Unified from mfmtls.css, mfmtp.css, mfmtsd.css, mfmtsr.css
   =========================== */

/* RESET & BASE */
body {
  font-family: Helvetica, serif;
  margin: 0;
  background: #ffffff;
  color: #222;
}

img, video, audio {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
}

.header-logo {
  max-width: 200px;
  height: auto;
  cursor: pointer;
}

.header-logo :hover {
  background-color: #555555;
}
.header-title {
  flex: 1;
  text-align: center;
  font-family: "Cal Sans", sans-serif;
  margin: 0;
  color: #ffffff;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px;
  list-style: none;
  flex-direction: row;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
}

.nav-links :hover {
  background-color: rgb(188, 191, 192);
}

.nav-links .nav-cta-button {
  background-color: #000000;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
}


/* ===========================
   SECONDARY (IN-PAGE) NAVBAR
   =========================== */
.sub-nav {
  background-color: #000000;
  padding: 0.5rem 0;
  border-top: 2px solid #bcbfbf;
  border-bottom: 2px solid #bcbfbf;
  top: 30px; 
  z-index: 100;
  cursor: pointer;;
}

.sub-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.sub-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Cal Sans", sans-serif;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.10s ease;
}

.sub-nav a:hover {
  background-color: #bcbfbf;
  color: #000000;
}



/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: 0.4s;
  border-radius: 10px;
}

/* ===========================
   MAIN CONTENT
   =========================== */
main {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: "Cal Sans", sans-serif;
  text-align: left;
  color: #000;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  line-height: 1.6;
  margin: 1rem 0;
  font-family: "Noto Sans", sans-serif;
}

/* ===========================
   MEDIA ELEMENTS
   =========================== */
video {
  display: block;
  margin: 2rem auto;
  width: 80%;
  max-width: 800px;
  height: auto;
}

/* ===========================
   DEBUG: AUDIO ELEMENT VISUALIZER
   =========================== */
audio {
  background-color: #ffffff !important;
  margin: 1rem auto !important;
  width: 80% !important;
  height: 50px !important; /* force a visible size */
  
}

iframe {
  display: block;
  margin: 2rem auto;
  width: 80%;
  max-width: 400px;
  background: #fff;
}

.p5-link{

  font-weight: bold;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
}

.p5-link :hover {
  background-color: rgb(188, 191, 192);
}

/* ===========================
   PAGE-SPECIFIC ELEMENTS
   =========================== */
.livesoundimages {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

.images,
.studiorecording-images,
.studiorecording-images2 {
  display: block;
  margin: 0 auto 1rem;
  max-width: 90%;
  height: auto;
}

.sounddesign-images{
  display: block;
  margin: 0 auto 1rem;
  height: 70%;
  max-width: 70%;
  
}

.download-links {
  font-size: 1.5rem;
  text-decoration: underline;
  color:rgb(5, 5, 5)f;
  text-decoration: none;
  font-family: "Cal Sans", sans-serif;
  cursor: pointer;
}

.download-links :hover {
  background-color: rgb(188, 191, 192);
}


/* ===========================
   FOOTER
   =========================== */
.footer-main {
  width: 100%;
  padding: 60px 0 60px;
  background: #000000;
  color: #ffffff;
  margin-top: 2rem;
  font-family: "Cal Sans", sans-serif;
}

.footer-sitemap {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  cursor: pointer;
}

.footer-sitemap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 200px;
}

.footer-sitemap li {
  margin: 0.5rem 0;
}

.footer-sitemap a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-sitemap a:hover {
  color: #bcbfbf;
}

.footer-sitemap p {
  margin: 0.5rem 0;
  line-height: 1.6;
  font-family: "Noto Sans", sans-serif;
}


/* ===========================
   READ MORE BUTTON
   =========================== */
.read-more-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.read-more-btn:hover {
  background-color: #bcbfbf;
  color: #000000;
  transform: translateY(-2px);
  text-decoration: underline;
}

/* Optional smaller button for compact layouts */
.read-more-btn.small {
  font-size: 0.9rem;
  padding: 8px 14px;
}

/* ===========================
   READ MORE TOGGLE
   =========================== */


.read-more-container {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s ease;
}


.read-more-container.collapsed {
  max-height: 160px; /* Adjust to how much you want visible */
}


.read-more-btn[data-state="less"] {
  display: none;
}


.read-more-container.expanded {
  max-height: 1000px; /* Large enough to reveal full content */
}

.read-more-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  cursor: pointer;
}

.read-more-btn:hover {
  background-color: #bcbfbf;
  color: #000000;
  transform: translateY(-2px);
  text-decoration: underline;
}


.read-more-container::after {
  content: "";
  display: block;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 0.3s ease;
}

.read-more-container.expanded::after {
  opacity: 0;
}

#toggle-sounddesign:checked ~ .read-more-container {
  max-height: 1000px;
}

#toggle-sounddesign:checked ~ [data-state="more"] {
  display: none;
}

#toggle-sounddesign:checked ~ [data-state="less"] {
  display: inline-block;
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 600px) {
  .wrapper-main, main {
    max-width: 90%;
  }

  .header-logo {
    max-width: 100px;
    height: auto;
  }

  h1 {
    font-size: 1.2rem;
  }

  /* Hamburger visible on mobile */
  .hamburger {
    display: flex;
    flex-wrap: wrap;
    z-index: 1002;
    top: 20px;
    right: 20px;
  }

  /* Slide-out mobile menu */
  .nav-links {
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 50px;
    right: -70vw;
    width: 25vw;
    height: 100vh;
    background: #000000;
    color: #fff;
    transition: right 0.3s ease;
    z-index: 1001;
    font-size: 1rem;
    box-shadow: -2px 0 8px rgb(255, 255, 255);
    padding-top: 0;
    margin: 0;
  }

  .nav-links.open {
    right: 0;
    display: flex;
  }

  .nav-links li {
    margin: 0.3rem 0;
    text-align: center;
  }

  .livesoundimages {
    flex-direction: column;
    max-width: 60%;
  }

  .footer-sitemap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-sitemap ul {
    flex: 1 1 100%;
  }

}

@media (min-width: 768px) {
  .wrapper-main {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .wrapper-main {
    width: 100%;
  }
}

@media (max-width: 1800px) {
  .wrapper-main {
    width: 100%;
  }
}
