/* Sidebar menu styles */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(40, 50, 70, 0.98);
  color: #fff;
  box-shadow: 2px 0 16px #0003;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px 18px;
  overflow-y: auto;
}
.sidebar-menu.open {
  transform: translateX(0);
}
.close-sidebar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2010;
}
.sidebar-menu h2 {
  font-size: 1.2rem;
  margin: 1.2em 0 0.5em 0;
  font-family: "Courier Prime", monospace;
  color: #c1c9e5;
}
.bg-sound-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}
.bg-sound-btn {
  width: 100%;
  padding: 0.7em 0.5em;
  margin-bottom: 0.5em;
  background: #283246;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.bg-sound-btn.active,
.bg-sound-btn:focus {
  background: #8d9dda;
  color: #283246;
  outline: none;
}
.instructions {
  font-size: 1rem;
  color: #c1c9e5;
  margin-top: 0.5em;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .sidebar-menu {
    width: 90vw;
    padding: 18px 8px 8px 8px;
  }
  .sidebar-menu h2 {
    font-size: 1rem;
  }
  .bg-sound-btn {
    font-size: 0.95rem;
    padding: 0.6em 0.3em;
  }
  .instructions {
    font-size: 0.95rem;
  }
}
/* Burger menu styles */
.burger-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(40, 50, 70, 0.7);
  border: none;
  border-radius: 8px;
  z-index: 1001;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}
.burger-menu:active,
.burger-menu:focus {
  background: rgba(141, 157, 218, 0.9);
  outline: none;
}
.burger-bar {
  display: block;
  width: 26px;
  height: 4px;
  margin: 3px 0;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s;
}
@media (max-width: 600px) {
  .burger-menu {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
  }
  .burger-bar {
    width: 20px;
    height: 3px;
    margin: 2.5px 0;
  }
}
body.pulsate::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vmax;
  height: 100vmax;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 10%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  animation: rippleEffect 3s ease-out forwards;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: rgb(2, 0, 20);
  background: radial-gradient(circle, rgb(40, 50, 70) 0%, rgb(0, 8, 16) 200%);
  color: rgb(255, 255, 255);
  overflow-x: hidden;
  overflow-y: auto; /* or scroll */
  display: flex;
  flex-direction: column;
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

header {
  text-align: center;
  margin-bottom: 5px;
}

.quote {
  text-align: center;
  font-family: "Courier Prime", monospace;
  color: rgb(193, 201, 229);
}
h1 {
  font-family: "Courier Prime", monospace;
  letter-spacing: 2px; /* Adds breathing space */
  font-weight: 300;
  color: rgb(193, 201, 229);
  margin-top: 0;
  font-size: 2.5rem; /* Adjust size */
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.breathe-478-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  pointer-events: none;
}
.breathe-478-circle {
  width: 25vw;
  height: 25vw;
  background: linear-gradient(135deg, #8d9dda 60%, #c1c9e5 100%);
  border-radius: 50%;
  box-shadow: 0 0 80px 10px #8d9dda55, 0 0 0 8px #fff2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), background 1s,
    box-shadow 1.5s;
  pointer-events: auto;
}
.breathe-478-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.breathe-478-circle svg circle {
  stroke: #fff;
  stroke-width: 1.5;
  opacity: 0.1;
}
.breathe-478-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: 0 0 120px 40px #fff3;
  pointer-events: none;
  z-index: 1;
}
.breathe-478-text {
  font-family: "Courier Prime", monospace;
  font-size: 2.2rem;
  color: rgb(193, 201, 229);
  text-align: center;
  user-select: none;
  margin-top: 18px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #23294699, 0 0 2px #fff8;
  transition: color 1s;
  font-weight: 700;
}

@media (max-width: 600px) {
  .breathe-478-center {
    width: 100vw;
    height: 100vh;
    min-width: unset;
    min-height: unset;
    padding: 0;
    margin: 0;
    justify-content: center;
  }
  .breathe-478-circle {
    width: 70vw;
    height: 70vw;
    margin-bottom: 14px;
    touch-action: manipulation;
  }
  .breathe-478-circle svg circle {
    stroke-width: 1;
    opacity: 0.08;
  }
  .breathe-478-text {
    font-size: 3rem;
    margin-top: 80px;
    padding: 0 0.5rem;
    word-break: break-word;
  }
  header h1 {
    font-size: 1.1rem;
    padding: 0 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  header {
    padding: 0.3rem 0;
  }
  body {
    font-size: 15px;
    min-width: 0;
    min-height: 0;
  }
}
@media (max-width: 400px) {
  .breathe-478-circle {
    width: 65vw;
    height: 65vw;
  }
  .breathe-478-circle svg circle {
    stroke-width: 0.7;
    opacity: 0.06;
  }
  .breathe-478-text {
    font-size: 2rem;
  }
  header h1 {
    font-size: 0.95rem;
  }
}

@keyframes rippleDrop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 800px) {
  .quote {
    visibility: hidden;
  }
  h1 {
    font-size: 1rem;
    text-align: center;
    width: 100vw;
    box-sizing: border-box;
  }

  .container {
    width: 100%;
    max-width: 100vw;
    margin: 20px auto;
    align-items: center;
    box-sizing: border-box;
  }
}
