
  html {
    background-image: url();
    background-position: center;
    background-repeat: no-repeat; 
    background-size: cover;
    background-color: #000000;
  }


* {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, sans-serif;
      background: #0000008e;
      color: #eee;
      background-image: url('imgs/b.png');
      background-repeat: no-repeat;
      background-position: center calc(100% + 1040px); /* tweak px/rem */
      background-size: cover;
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

      .corner-icon {
  position: fixed
  top: 20px;
  z-index: 1000;
  width: 120px;
  height: 120px;
  cursor: pointer;

  opacity: 0;
  transform: scale(0.6) translateY(-20px);
  animation: popIn 0.8s ease-out forwards;
  animation-delay: 1.5s; /* ⏳ wait before appearing */
}

.corner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.corner-icon:hover img {
  transform: scale(1.1);
}

.left-corner {
  left: 20px;
}

.right-corner {
  right: 20px;
}


  .corner-icon {
  position: fixed;
  top: 20px;
  z-index: 1000;
  width: 120px;
  height: 120px;
  cursor: pointer;
}
.corner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.corner-icon:hover img {
  transform: scale(1.1);
}
.left-corner { left: 20px; }
.right-corner { right: 20px; }

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  z-index: 2000;
  cursor: pointer;
}
.overlay.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}



#backdrop {
      position: fixed;
      inset: 0; /* shorthand for top/right/bottom/left: 0 */
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.8);
      color: white;
      display: none; /* hidden by default */
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #backdrop-box {
      background: #22222200;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      max-width: 400px;
    }

    #dismiss-btn {
      margin-top: 20px;
      padding: 10px 20px;
      background: rgb(14, 14, 14);
      border: none;
      color: white;
      font-size: 3rem;
      padding: 30px 50px;
      border-radius: 5px;
      cursor: pointer;
    }


        .alarm-container {
      font-family: sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 40vh;
      margin: 0;
      color: #eee;
      background-color: #00000000;
      text-align: center;
    }
    .alarm-input,
    .alarm-button {
      padding: 20px 30px;
      margin: 10px;
      font-size: 2rem;
      border: none;
      border-radius: 8px;
    }
    .alarm-input {
      background-color: #00000000;
      color: #eee;
    }
    .alarm-button {
      cursor: pointer;
    }
    .alarm-status {
      margin-top: 20px;
      font-size: 2rem;
    }

/* dreamy floating animation */
@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes popupFadeOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    filter: blur(10px);
  }
}

.info-popup {
  display: none;
  position: fixed;
  left: 50%;
  
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 40px 90px;
  text-align: center;
  border-radius: 20px;
  font-size: 2.5rem;
  min-height: 15vh;
  min-width: 800px;
  max-width: 80vw;
  
  z-index: 1000;
  box-shadow: 0 0 40px rgba(173, 216, 230, 0.5); /* soft glowing edge */
  
  backdrop-filter: blur(12px); /* dreamy glassy feel */
}

/* When active, animate in */
.info-popup.active {
  display: block;
  animation: popupFadeIn 1s ease forwards;
  z-index: 1000 !important;
}

/* Optional: when hiding, animate out */
.info-popup.closing {
  animation: popupFadeOut 0.8s ease forwards;
}



.close-btn {
  position: absolute;
  top: 75vh;
  left: 50%;
  transform: translateX(-50%);  /* centers the bar horizontally */
  
  background: #f44336;          /* red bar */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;

  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  background: #d32f2f;          /* darker red */
  transform: translateX(-50%) scale(1.05); /* subtle grow on hover */
}
.close-btn {
  position: absolute;
  top: 75vh;
  left: 50%;
  transform: translateX(-50%);  /* centers the bar horizontally */
  
  background: #f44336;          /* red bar */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;

  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  background: #d32f2f;          /* darker red */
  transform: translateX(-50%) scale(1.05); /* subtle grow on hover */
}

    .header {
        font-size: 4rem;
        background-color: #00000000;
    }

    header, footer {
      background: #000000;
      color: #363636;
      text-align: center;
      padding: 0rem;
      font-weight: 600;
      font-size: 1.2rem;
      z-index: 0;
    }

    footer {
      font-size: 0.9rem;
      color: #6c6c7d;
    }


    .circle {
      position: fixed;
      bottom: -42px;
      left: 50%;
      transform: translateX(-50%);
      width: 400px;
      height: 180px;
      background-color: #000000;
      border-radius: 30%;
      transition: all 0.4s ease;
      z-index: 10;
      cursor: pointer;
    }

    .circle.expanded {
      width: 100%;
      height: 100%;
      border-radius: 20px 20px 0 0;
      bottom: 0;
      left: 0;
      text-align: center;
      transform: none;
    }

 .profile-img {
      width: 220px;
      height: 220px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid #474747;
      margin-bottom: 20px;
    }

     #visualizer {
    position: absolute;
    filter: grayscale(100%);
    top: 30%;
    z-index: 9999;
    left: 50%;
    width: 100%;   /* adjust size */
    height: 700px;
    transform: translate(-50%, -50%);
    pointer-events: none;   /* optional: don’t block clicks */
  }

    

    main {
      flex: 1;
      overflow-y: scroll;
      padding: 8rem;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      width: 100%;
      margin: 0;
      margin-bottom: 5vh;
 
    }

    .soundControl {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-bottom: -2vh;
      z-index: 9;
    }

    .soundLabel {
      font-size: 2rem;
      font-weight: bold;
      margin: 8vh;
      color: #d4d4f0;
      margin-bottom: 1rem;
    }

    

    .volumeControl {
      -webkit-appearance: none;
      width: 100%;
      height: 14px;
      background: #000000;
      border-radius: 10px;
      cursor: pointer;
      outline: none;
    }

    .volumeControl:hover {
      background: #ebebeb;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0);

    }

    .volumeControl::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: clamp(80px, 20vw, 120px);
      height: clamp(80px, 20vw, 120px);
      background: var(--thumb-img) no-repeat center center;
      background-size: contain;
      z-index: 5000;
      border: none;
      border-radius: 50%;
      margin-top: calc(-1 * (clamp(40px, 10vw, 60px) / 2) + 7px);
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
      transition: transform 0.15s ease;
    }

    .volumeControl::-webkit-slider-thumb:hover {
      transform: scale(1.15);
            box-shadow: 0 0px 5px rgba(0, 0, 0, 0);

    }

    .volumeControl::-moz-range-thumb {
      width: clamp(80px, 20vw, 120px);
      height: clamp(80px, 20vw, 120px);
      background: var(--thumb-img) no-repeat center center;
      background-size: contain;
      border: none;
      border-radius: 50%;
      z-index: 5000;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
      transition: transform 0.15s ease;
    }

    .volumeControl::-moz-range-thumb:hover {
      transform: scale(1.15);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0);

    }


     .soundControl {
  position: relative;
}

/* Star button */
.favorite-btn {
  position: relative;
  top: 10px;
  right: 10px;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #777; /* default gray */
  transition: color 0.3s ease, transform 0.2s ease;
}

.favorite-btn:hover {
  transform: scale(1.2);
}

.favorite-btn.favorited {
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}


    /* Scrollbar (optional) */
    main::-webkit-scrollbar {
      width: 8px;
    }
    main::-webkit-scrollbar-thumb {
      background-color: #ffffff;
      border-radius: 4px;
    }
    main::-webkit-scrollbar-track {
      background: #1e1e2f;
    }