@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent any scrolling or overscroll gestures */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  font-family: 'SF Pro Display', sans-serif;
  /* Fixed-height, no scrolling */
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

h1 {
  display: block;
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 30;
  color: white;
  mix-blend-mode: difference;
  
  transition: color 5s ease-out;
}

h1 a {
  text-decoration: none;
  color: white;
  transition: color 5s ease-out;
  opacity: 1;
}

h1 a:hover {color: black; opacity: 0.8; transition: opacity 300ms linear;}

.background {
  display: block;
  position: absolute;
  width: 400%;
  height: 400%;
  background-size: cover;
  transform: translate(0%, 0%);
  transition: transform 1000ms ease-out 10ms;

  background-color: #797979;
  opacity: 0.8;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #061efe 20px), repeating-linear-gradient(#ffcc00, #3700ff3e);
  background-image: -moz-radial-gradient (circle at 0 0, transparent 0, #061efe 20px), -moz-repeating-radial-gradient (#ffcc00, #3700ff3e);

  
  z-index: 10;
  animation: float 80s infinite linear alternate;
}

@keyframes float{
  0% {top: -100%; left: -100%;}
  100% {top: -20%; left: -20%;}
}

nav {
  position: absolute;
  display: block;
  width: 200%;
  height: 200%;
  z-index: 11;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 5rem;
  flex-direction: column;
  position: relative;
  transform: translate(10%, 50%);
  transition: transform 500ms ease-in-out;
}

nav ul a {
  position: absolute;
  text-decoration: none;
  font-size: 5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all 200ms ease-out 10ms;
  transform-property: translate, color;
  mix-blend-mode: difference;
  
  cursor: pointer;
}

ul li a:hover {
  color: rgba(255, 255, 255, 0.8);  
  transform: translate(10%, 0%) scale(130%);
  transition: all 200ms ease-in 10ms;
  transform-property: translate, color;
}

button{
  cursor: pointer;
  display: block;
  position: absolute;

}

#back {
  height: 3.5rem;
  width: 3.5rem;
  background:rgb(255, 221, 0);
  background-image: url(/images/left_w.png);
  background-size: cover;
  border: 0.4rem dashed hsla(0, 0%, 60%, 0.61);

  top: 2rem;
  left: 1rem;
  z-index: 100;
  mix-blend-mode: difference;
  transform: translateX(-200%);
  transition: transform 200ms;
}

#fwd{
  top: 80%;
  right: 2rem;
  height: 8rem;
  width: 12rem;
  z-index: 100;
  background-color: white;
  background:url(/images/right_w.png);
  background-size: cover;


  border: none;
  mix-blend-mode: difference;
  z-index: 100;
  transform: translateX(300%);
  transition: transform 800ms ease-in-out;
}


#container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: none;
  
  position: absolute;
  right: 3rem;
  top: 8rem;  
  width: 75vw;
  height: auto;
  padding-right: 1rem;
  
  background: rgba(0, 8, 255, 0.4);
  border: 0.5rem dashed gray;
  align-items: stretch;
  z-index: 100;
  text-align: right;
  

  transform: translate(150%, 150%);
  transition: transform 500ms ease-in-out;
}

#title {
  display: block;
  border: 0.1rem dashed rgba(0,0,0,0.1);
}

#title h3 {
  font-size: 5rem;
  color: lightgray;
}

#content {
  flex-grow: 1;
  font-size: 3rem;
  color: #ffcc00;
  text-shadow: lightblue 2px 4px 2px;
}

.links-list{
  list-style: none;
  padding-left: 0;
  font-size: 1.6rem;
}
.links-list li { margin: 0.6rem 0; }
.links-list a { color: #e6e6e6; text-decoration: none; }
.links-list a:hover { text-decoration: underline; }
.content iframe, #content iframe { border: 0; max-width: 420px; width: 100%; height: 180px; }

/* Make the Listen button flow inside the content instead of being absolutely positioned */
#content #open-radio {
  position: static !important;
  display: inline-block !important;
  margin-top: 1rem;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: #222;
  color: #fff;
  border: 0;
  cursor: pointer;
}

@media only screen and (max-width: 800px) {
  #container{
    width: 90%;
    right: 5%;
    top: 6rem;
    font-size: 0.88rem;
  }
  #content {font-size: 2.2rem;}
  h1{display: none;}
  /* scale navigation and title down on medium screens */
  #title h3 { font-size: 3rem; }
  #fwd { height: 6rem; width: 9rem; }
}

@media only screen and (max-width: 420px) {
  #title h3 { font-size: 2rem; }
  /* Slightly increase text inside #container for better readability on small screens */
  #content { font-size: 2rem; }
  .links-list { font-size: 1.4rem; }
  /* move container down so it's positioned below the back button on small screens */
  #container { right: 3%; top: 7.5rem; width: 94%; }
  #fwd { height: 4.8rem; width: 7rem; right: 1rem; }
  h1 { display: none; }
}

/* Player iframe: absolute placement at bottom of viewport (reparented to escape transformed ancestors) */
#player-frame {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2147483647 !important;
  transform: none !important;
}

@media only screen and (max-width: 420px) {
  /* reduce iframe/player height on small screens */
  #player-frame { height: 120px !important; }
}
