:root {
  --neon-blue: #64c2c2;
  --dark-blue: #03525f;
  --dark-pink: #b194dc70;
  --neon-pink: #ff00ff;
  --light-text: #f9f9f9;
  --background: #05050582;
  --layout-max-width: 1200px;
  --layout-gutter: clamp(1.5rem, 4vw, 3.5rem);
  --text-max-width: 68ch;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto Mono', monospace;
  color: var(--light-text);
  -webkit-text-size-adjust: 100%;
  /* Prevent text size adjustment on orientation change */
  -webkit-font-smoothing: antialiased;
  /* Improve text rendering */
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100vh;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

header, .header {
  height: 23.33vh;
  background-image: url('/public/civili-v9.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 20vh;
  opacity: 0;
}

h1.animate {
  animation: neon 2s ease-in-out infinite alternate;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

h1 #letter-C {
  animation: flicker linear 1.5s 1s;
}

h1 #letter-I {
  animation: flicker linear 2s 1s;
}

h1 #letter-L {
  animation: flicker linear 2.5s 1s;
}

@keyframes neon {
  from {
    text-shadow: 0 0 1px var(--neon-blue), 0 0 5px var(--neon-blue), 0 0 7px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 22.5px var(--neon-pink), 0 0 25px var(--neon-pink);
  }

  to {
    text-shadow: 0 0 1.5px var(--neon-blue), 0 0 2.5px var(--neon-blue), 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 12px var(--neon-pink), 0 0 15px var(--neon-pink), 0 0 17px var(--neon-pink), 0 0 20px var(--neon-pink);
  }
}

@keyframes flicker {
  75% {
    color: inherit;
    text-shadow: inherit;
  }

  76% {
    color: #222;
  }

  77% {
    color: inherit;
    text-shadow: none;
  }

  78% {
    color: inherit;
    text-shadow: inherit;
  }

  79% {
    color: #222;
    text-shadow: none;
  }

  80% {
    color: inherit;
    text-shadow: inherit;
  }

  90% {
    color: #222;
    text-shadow: none;
  }

  90.5% {
    color: inherit;
    text-shadow: inherit;
  }
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
  -webkit-text-stroke: 1px rgb(78, 102, 150);
}

h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
  -webkit-text-stroke: 1px rgb(78, 102, 150);
}

p {
  line-height: 1.6;
  /* font-size: 1rem; */
  color: var(--dark-blue);
  margin-bottom: 1rem;
  max-width: var(--text-max-width);
  margin-left: auto;
  margin-right: auto;
}

nav {
  position: fixed;
  top: 1.5rem;
  width: 100%;
  max-width: var(--layout-max-width);
  left: 50%;
  transform: translateX(-50%);
  padding: 0 var(--layout-gutter);
  box-sizing: border-box;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  justify-content: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
}

nav li {
  position: relative;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  font-weight: bold;
}

nav li a {
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  color: var(--neon-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  -webkit-text-stroke: 1px rgb(78, 102, 150);
}

nav a.active {
  text-shadow: 0 0 10px var(--neon-pink);
  /* text-shadow: 1px; */
  color: #f2f7f7;
}

nav a:hover {
  color: #f2f7f7;
}

@keyframes neonPulse {
  0% {
    text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink), 0 0 15px var(--neon-pink);
  }

  50% {
    text-shadow: 0 0 7px var(--neon-pink), 0 0 15px var(--neon-pink), 0 0 25px var(--neon-pink);
  }

  100% {
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink);
  }
}

main#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  width: min(100%, var(--layout-max-width));
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
  margin: 0 auto;
}


section {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  width: min(100%, var(--layout-max-width));
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
  margin: 0 auto;
}

.band {
  width: min(100%, var(--layout-max-width));
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
  margin: 0 auto;
  background: radial-gradient(circle, rgba(139, 186, 239, 0.32) 0%, rgba(201, 220, 243, 0.35) 100%);
}

photo-slider {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 55vh;
  background-color: #f0f0f0;
  width: 100%;
  max-width: min(85vw, var(--layout-max-width));
  aspect-ratio: 1/1 auto;
  box-shadow: rgba(0, 0, 0, 0.471) 0px 8px 16px;
  margin-left: auto;
  margin-right: auto;
}

audio-player {
  margin-top: -3rem;
  --player-height: min(80vh, 500px);
}

.video-player {
  position: relative;
  padding-top: 3rem;
  border-radius: 5px;
  border-width: 1px;
}

.group-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-blue);
}

.group-list ul li::marker {
  display: none;
}

span.pedja {
  color: var(--neon-pink);
}

.tour-list {
  list-style-type: none;
  padding: 0;
}

.tour-item {
  width: 100%;
  max-width: min(70vw, 900px);
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: skew(-5deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.tour-item:hover {
  transform: skew(-5deg) scale(1.05);
  box-shadow: 0 0 20px var(--neon-blue);
}

.tour-date,
.tour-location {
  font-size: 1rem;
  margin: 0.25rem 0;
}

.content-wrapper {
  position: fixed;
  background: linear-gradient(92deg, rgba(187, 189, 221, 1) 10.92%, rgba(227, 231, 234, 1) 51%, rgba(187, 189, 221, 1) 92.44%);
  height: calc(100vh - 23.33vh);
  overflow-y: auto;
  top: 23.33vh;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--layout-gutter) 5rem;
  box-sizing: border-box;
  z-index: 2;
}

footer {
  position: relative;
  width: min(100%, var(--layout-max-width));
  height: 25px;
  margin: 5rem auto 2rem auto;
  padding: 0 1rem;
  background-color: #bbbdddd9;
  color: var(--dark-blue);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: rgba(0, 0, 0, 0.471) 0px 8px 16px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  body {
    font-size: 0.9rem;
    background-size: contain;
    background-position: center top;
    background-attachment: scroll;
    margin-bottom: 0;
  }

  .content-wrapper {
    height: calc(100vh - 23.33vh);
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  nav li a {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  nav ul {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.2rem;
  }

  nav li {
    display: inline-block;
    vertical-align: top;
  }

  footer {
    position: relative;
  }
}

@media (min-width: 601px) {
  body {
    background-size: contain;
    background-position: center top;
    background-attachment: scroll;
  }

  .header {
    background: linear-gradient(92deg, rgba(187, 189, 221, 1) 10.92%, rgba(227, 231, 234, 1) 51%, rgba(187, 189, 221, 1) 92.44%);
  }

  .content-wrapper {
    /* height: calc(86.67vh - 25px); */
    background: linear-gradient(92deg, rgba(187, 189, 221, 1) 10.92%, rgba(227, 231, 234, 1) 51%, rgba(187, 189, 221, 1) 92.44%);
  }

  .content-wrapper-background-image {
    background-image: url('/public/civili-v9.jpg');
    background-size: contain;
    background-repeat: no-repeat;
  }

  photo-slider {
    max-width: min(60vw, var(--layout-max-width));
    align-items: center;
    background: linear-gradient(92deg, rgba(187, 189, 221, 1) 10.92%, rgba(227, 231, 234, 1) 51%, rgba(187, 189, 221, 1) 92.44%);
  }

  audio-player {
    margin-top: -1em;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav li a {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
    max-width: var(--text-max-width);
  }

  nav li {
    margin: 0.5rem 0;
  }
}

/* Prevent pull-to-refresh on iOS */
@supports (-webkit-touch-callout: none) {
  body {
    overscroll-behavior-y: none;
  }
}

.ray {
  clip-path: polygon(0% 45%, 100% 0%, 100% 100%, 0% 55%);
  transition: 4s;
  transform: translateY(-50%) translateX(-50%) rotate(var(--angle)) translateY(50%) translateX(50%) translateY(-50%);
  position: absolute;
  top: -30px;
  left: 50%;
  width: 500px;
  height: 100px;
  background: linear-gradient(0.25turn, rgba(89, 163, 243, 0.7), rgba(255, 255, 100, 0));
}

.lights {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: -10;
}

.light1 {
  animation-duration: 5s;
  animation-name: wave;
  animation-iteration-count: infinite;
}

.light2 {
  animation-duration: 7s;
  animation-name: wave;
  animation-iteration-count: infinite;
}

.light3 {
  animation-duration: 9s;
  animation-name: wave;
  animation-iteration-count: infinite;
}

@keyframes wave {
  0% {
    --angle: 60deg;
  }

  25% {
    --angle: 90deg;
  }

  50% {
    --angle: 110deg;
  }

  75% {
    --angle: 90deg;
  }

  100% {
    --angle: 60deg;
  }
}
