.cButton {
  width: max-content;
  display: inline;
  cursor: pointer;
  font-size: medium;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  color: white;
  background-color: #181818;
  border: 2px solid #333333;
  border-radius: 5px;
}

.title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2.2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.7rem 1.2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 95vw;
  box-sizing: border-box;
}

/* Lightbar */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.lights-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbar {
  position: relative;
  width: 90vw;
  max-width: 800px;
  height: 7vh;
  min-height: 40px;
  max-height: 80px;
  display: flex;
  border-radius: 2vh;
  overflow: hidden;
  filter: blur(30px) brightness(1.3);
  opacity: 0.85;
}
.segment {
  flex: 1;
  height: 100%;
  opacity: 0.7;
  filter: blur(8px);
  animation-duration: 0.7s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(2, end);
}

.segment.red {
  animation-name: flashRed;
  animation-delay: 0s;
}
.segment.white {
  animation-name: flashWhite;
  animation-delay: 0.35s;
}
.segment.blue {
  animation-name: flashBlue;
  animation-delay: 0.7s;
}
.segment.red:nth-child(5) {
  animation-delay: 0.7s;
}
.segment.white:nth-child(4),
.segment.white:nth-child(7) {
  animation-delay: 0s;
}
.segment.blue:nth-child(6) {
  animation-delay: 0.35s;
}
.segment.red {
  background: linear-gradient(90deg, rgba(255, 0, 40, 0.8) 70%, rgba(255, 0, 40, 0.2) 100%);
}
.segment.white {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0.2) 100%);
}
.segment.blue {
  background: linear-gradient(90deg, rgba(0, 80, 255, 0.8) 70%, rgba(0, 80, 255, 0.2) 100%);
}
@keyframes flashRed {
  0%,
  40%,
  100% {
    opacity: 0.2;
  }
  10%,
  50%,
  90% {
    opacity: 1;
  }
}
@keyframes flashWhite {
  0%,
  100% {
    opacity: 0.2;
  }
  25%,
  75% {
    opacity: 1;
  }
}
@keyframes flashBlue {
  0%,
  40%,
  100% {
    opacity: 0.2;
  }
  30%,
  60% {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 40px;
    padding: 0.5rem 0.7rem;
  }
  .lightbar {
    min-height: 24px;
    max-height: 40px;
  }
  .cButton {
    width: 90% !important;
  }
}
