html, body {
  margin: 0;          /* remove the 8 px default gap */
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;  /* makes width math predictable everywhere */
}

/* Let the list wrap onto a second line if it runs out of room */

/* Optional: shrink padding on very narrow screens */
@media (max-width: 480px) {
  .sticky-nav ul {
    flex-wrap: wrap;        /* prevents side-ways overflow            */
    justify-content: center;
  }

  .sticky-nav button,
  .sticky-nav .nav-link,
  .sticky-nav .brand {
    padding: 1rem 0.75rem;   /* was 1.5 rem; trims 3 rem total width */
  }

  .logo {
    padding-top: 2rem;
  }

  .led-panel {
    padding-top: 2rem;
  }

  .logo {
    max-width: 350px;
    width: auto;
  }
}


.logo {
    display: block;
    margin: 0 auto;
    max-width: 375px;
    width: auto;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    z-index: 1000;
}

.sticky-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.sticky-nav li {
    position: relative
}

/* ---- colour tokens for easy tweaking ---- */
:root {
  --card-bg:    #1e1e1e;   /* panel background            */
  --card-text:  #dcdcdc;   /* body text colour            */
  --card-heading: #fff;    /* project title colour        */
  --card-shadow: 0 4px 10px rgba(0,0,0,.45);
}

/* ---- card layout ---- */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;

  /* container-wide: just fill whatever width we’re given */
  width: 100%;
  padding: 1.5rem;

  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
}

/* ---- image ---- */
.project-img {
  width: 40%;          /* fixed thumbnail */
  height: 10%;
  flex-shrink: 0;        /* never shrink the image */
  border-radius: .5rem;
  object-fit: cover;
}

/* ---- text ---- */
.project-title {
  margin: 0 0 .5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--card-heading);
}

.project-description {
  margin: 0;
  line-height: 1.55;
}

/* ---- small screens ---- */
@media (max-width: 600px) {
  .project-card {
    flex-direction: column; /* stack image over text */
    text-align: center;
  }
  .project-img {
    width: 100%;           /* image spans full card width */
  }
}



.sticky-nav button,
.sticky-nav .nav-link {
    display: block;
    background: none;
    border: none;
    padding: 1.5rem 1.5rem;
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.sticky-nav li > .not-name:hover {
    background: #444;
}

.has-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    display: none;
    flex-direction: column;
    min-width: 8rem;
}

.sticky-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    display: none;
    flex-direction: column;
    min-width: 8rem;
}

.sticky-nav .dropdown li {
    width: 100%;
}

.has-dropdown:hover > .dropdown {
    display: flex;
}

.has-dropdown .dropdown li:hover {
    background: #444; 
}

.dropdown button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.sticky-nav .brand {
    padding: 1.5rem 1.50rem;
    font-weight: 700;
    text-align: center;
}

.page-header {
    padding-top: 5rem;
    text-align: center;
    height: 25px;
}

.project-section-header {
    display: block;
    max-width: 100%;
    padding-top: 3rem;
    margin: 5rem auto;
    width: 400px;
}

.music-info {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 400px;
}





.project-section {
    width: 100%;
    height: 350px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

h1 {
    margin: 0 0 0.5rem;
    color: rgb(235, 203, 230);
}



.links-and-licensing {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    position: relative;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 1rem;
}

.links-and-licensing .has-dropdown {
    margin-top: 0;
    position: relative;
}

.links-and-licensing .social-links a + a {
    margin-left: 0.5rem;
}

.social-link {
    text-decoration: none;
    color: #FFF;
    margin-right: 1rem;
}

.audio-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-controls button {
    width: 100px;
}

.social-link:hover {
    text-decoration: underline;
}

#led-vu-meter {
    display: block;
    position: absolute;
    top: 0;
    pointer-events: none;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

:root {
    --led-cols: 32;
    --led-rows: 16;
}

#audio-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.intro-sec {
    width: 100%;
    height: 350px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.content {
    position: absolute;
    inset: 20px 0 0;
    z-index: 1;
}

.led-panel {  
    display: grid;
    flex: 1 1 50%;          
    min-width: 0;           
    box-sizing: border-box; 
    grid-template-columns: repeat(var(--led-cols), 1fr);
    grid-auto-rows: auto;
    gap: 3.5px;
    padding-right: 0.3rem;
    position: relative;
}

.led {
    background: #03030311;
    width: 100%;
    border-radius: 4px;
    transition: background 0.1s, box-shadow 0.1s;
}

.led.on.green {
  background: #1FFF73 !important;
  box-shadow: 0 0 8px #1FFF73 !important;
}

.led.on.yellow {
  background: #FFFF00 !important;
  box-shadow: 0 0 8px #FFFF00 !important;
}

.led.on.red {
  background: #FF0000 !important;
  box-shadow: 0 0 8px #FF0000 !important;
}
/* default “on” color becomes green */
.led.on.green {
  background: #1FFF73;
  box-shadow: 0 0 8px #1FFF73;
}

/* mid-level → yellow */
.led.on.yellow {
  background: #FFFF00;
  box-shadow: 0 0 8px #FFFF00;
}

/* peak-level → red */
.led.on.red {
  background: #FF0000;
  box-shadow: 0 0 8px #FF0000;
}
/* remove or keep your existing generic .led.on if you like, but make sure
   these come after it in the file */

.led.on.green {
  background: #1FFF73 !important;
  box-shadow: 0 0 8px #1FFF73 !important;
}

.led.on.yellow {
  background: #FFFF00 !important;
  box-shadow: 0 0 8px #FFFF00 !important;
}

.led.on.red {
  background: #FF0000 !important;
  box-shadow: 0 0 8px #FF0000 !important;
}


body {
    background-color: rgb(26, 26, 25);
}

h1 {
    padding: 5rem
}


.resume-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: #25064c;
    border: 2px solid #000;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}