@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

/*houdini*/
@property --blink-opacity {
   syntax: "<number>";
   inherits: false;
   initial-value: 1;
}

@keyframes blink-animation {
  0%,
  100% {
    opacity: var(--blink-opacity, 1);
  }
  50% {
    opacity: 0;
  }
}

/*base*/
:root {
  font-family: Inter, sans-serif;

  --stripe-color: #fff;
  --bg: var(--stripe-color);
  --maincolor: var(--bg);
}


/*custom*/
@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.player-container , .chat-container{
  background: transparent;
  border-color: transparent;
}

.toolbar-button {
    background-color: rgba(148, 155, 157, 0.4);
   color: #ffffff;
}

.move_button{
  background-color: transparent; 
}

.wrapper {
  width: 780px;
  height: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.hero {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  --stripes: repeating-linear-gradient(
    100deg,
    var(--stripe-color) 0%,
    var(--stripe-color) 7%,
    transparent 10%,
    transparent 12%,
    var(--stripe-color) 16%
  );

  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(100%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: smoothBg 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: difference;
}

.wrapper:has(:checked) {
  --stripe-color: #000;
}

/* Stile, die auf .hero und .hero::after angewendet werden, wenn die Checkbox aktiviert ist */
.wrapper:has(:checked) .hero,
.wrapper:has(:checked) .hero::after {
  filter: blur(10px) opacity(50%) saturate(200%);
}

.content {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4.5%;
  text-align: center;
  mix-blend-mode: difference;
  -webkit-mix-blend-mode: difference;
  filter: invert(1);
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 10px;
}

.h1--scalingSize {
  font-size: 1.5rem; /* Reduced font size to fit the smaller height */
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  margin: 0;
}

#switch {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  font-weight: 200;
  
}

[for="switch"] {
  cursor: pointer;
  transition: 0.15s linear;
  will-change: transform, font-weight;
  padding: 0.5rem;
}

[for="switch"]:hover, [for="switch"]:active, [for="switch"]:focus-within {
  transition: 0.3s ease;
  animation: animSwitch 0.2s alternate;
}

@keyframes animSwitch {
  50% {
    transform: scale(1.2);
    font-weight: 900;
  }
}

.icon {
  width: 1lh;
  height: 1lh;
  aspect-ratio: 1/1;
  padding: 0.25em 0.35rem;
  border-radius: calc(1px / 0);
  border: 1px dashed;
  --blink-opacity: 1;
  animation: blink-animation 2s ease-in-out infinite running;
}

.h1--scalingSize::before {
  content: attr(data-text);
  position: absolute;
  margin-left: 10px;
  inset: 0;
  background: white;
  text-shadow: 0 0 1px #ffffff;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: white;
  -webkit-mask: linear-gradient(#000 0 0) luminance;
  mask: linear-gradient(#000 0 0) luminance, alpha;
  backdrop-filter: blur(19px) brightness(12.5);
  -webkit-text-stroke: 1px white;
  display: flex;
  margin: auto;
  z-index: 1;
  pointer-events: none;
}

.controls {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 2; /* Ensure controls are on top */
  padding: 3px;
  box-sizing: border-box;
}

#playButton,
#stopButton {
  cursor: pointer;
  font-size: 1rem;
}

#playContainer{
  position: relative;
  top: -10px;
}

#volumeControl {
  width: 100px;
  cursor: pointer;
}

#onairContainer{
    font-size: 1.5rem;
    position: relative;
    color: #ffffff;
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    margin: 0;
}

/* Media Query fÃ¼r Tablets und kleinere Bildschirme */
@media (max-width: 768px) {
  .wrapper {
      width: 100%;
      height: auto;
  }

  .hero {
      height: 200px; /* HÃ¶he fÃ¼r kleinere Bildschirme anpassen */
      background-size: 400%, 200%; /* Hintergrundbild fÃ¼r kleinere Bildschirme anpassen */
  }

  .header {
      flex-direction: column;
      gap: 10px;
  }

  .h1--scalingSize {
      font-size: 1.5rem; /* SchriftgrÃ¶ÃŸe fÃ¼r kleinere Bildschirme anpassen */
  }

  #switch + label {
      font-size: 1rem; /* SchriftgrÃ¶ÃŸe fÃ¼r Schalter anpassen */
  }

  label[for='switch'] {
    display: none; /* Element vollständig ausblenden */
}
  .controls {
      flex-direction: column;
      gap: 10px; /* Abstand zwischen den Steuerungselementen erhÃ¶hen */
      padding: 10px;
  }

  .control-button{
    margin-right: 250px;
  }

  #playButton,
  #stopButton {
      font-size: 1.2rem; /* SchriftgrÃ¶ÃŸe fÃ¼r Buttons anpassen */
      
  }

  #volumeControl {
      width: 80px; /* Breite des LautstÃ¤rkereglers anpassen */
  }

  #onairContainer {
      margin-top: -50px;
      font-size: 1.2rem; /* SchriftgrÃ¶ÃŸe fÃ¼r On-Air Container anpassen */
  }
}

/* Media Query fÃ¼r Smartphones */
@media (max-width: 480px) {
  .wrapper {
      width: 100%;
      height: auto;
      padding: 0 10px;
  }

  .hero {
      height: 150px; /* HÃ¶he fÃ¼r sehr kleine Bildschirme anpassen */
      background-size: 500%, 200%; /* Hintergrundbild weiter anpassen */
  }

  .header {
      gap: 5px; /* Abstand zwischen Header-Elementen reduzieren */
  }

  .h1--scalingSize {
      font-size: 1.5rem; /* SchriftgrÃ¶ÃŸe weiter anpassen */
  }

  #switch + label {
      font-size: 0.9rem; /* SchriftgrÃ¶ÃŸe fÃ¼r Schalter weiter anpassen */
  }

  .controls {
      flex-direction: column;
      gap: 8px; /* Abstand zwischen den Steuerungselementen weiter reduzieren */
      padding: 5px;
  }

  #playButton,
  #stopButton {
      font-size: 1rem; /* SchriftgrÃ¶ÃŸe weiter anpassen */
  }

  #volumeControl {
      width: 60px; /* Breite des LautstÃ¤rkereglers weiter anpassen */
  }

  #onairContainer {
      font-size: 1rem; /* SchriftgrÃ¶ÃŸe fÃ¼r On-Air Container weiter anpassen */
  }
}
