@font-face{
  font-family: "boris";
  src:
    local("Boris"),
    url("fonts/Boris.woff") format("woff"),
}

a:focus,
button:focus {
    outline: 3px solid #ff75a3e1;
    outline-offset: 2px;        
}

* {
  box-sizing: border-box;
  border: none;
  outline: none;
}


body.home-page, body.stage-active-body {
  margin: 0;
  background: #21001a;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body.body-about{
  width: 80vw;
  margin: auto;
}
body.body-about {
  background: #ecc8e1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body.body-about .ui-button {
  margin: 1rem 0;
  background: #21001a;
  color: #ecc8e1;
  display: inline-block;
}

body.stage-page .ui-button{
  min-width: 150px;
}

.body-about h1,.body-about h2,.body-about h3, .body-about p{
  color: #21001a;
}

h1{
  color: #ffb8e8;
  text-align: center;
  padding: 0.5rem;
  margin-bottom: 2rem; 
  font-family: Boris, Tahoma, sans-serif;;
  text-shadow: 0 0 20px rgba(255,184,232,0.5);
  font-size: 3rem;
}

.description{
  color: #21001a;
  position: fixed;
  z-index: -999;
}

 @keyframes wiggle {
      0%   { transform: rotate(calc(-1 * var(--wiggle-rot))) translateX(calc(-0.5 * var(--wiggle-x))); }
      25%  { transform: rotate(calc( 0.6 * var(--wiggle-rot)))  translateX(calc( 0.4 * var(--wiggle-x))); }
      50%  { transform: rotate(calc(-0.2 * var(--wiggle-rot))) translateX(calc(-0.2 * var(--wiggle-x))); }
      75%  { transform: rotate(calc( 0.8 * var(--wiggle-rot)))  translateX(calc( 0.6 * var(--wiggle-x))); }
      100% { transform: rotate(calc(-1 * var(--wiggle-rot))) translateX(calc(-0.5 * var(--wiggle-x))); }
    }

.scream {
  transition: all 0.6s ease-in-out;
      --wiggle-rot: 4deg;
      --wiggle-x: 1.5px;
      --wiggle-duration: 3s;
      animation: wiggle var(--wiggle-duration) ease-in-out infinite;
  background: transparent;
}
.scream:nth-child(odd) { animation-delay: 1s; }


.blob {
  background-color: transparent;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 1px rgb(240, 198, 253));
  overflow: visible;
}

.play .ui-button{
  display: block;
  background: rgb(186, 255, 186);
  border-radius: 10px;
  padding: 0.2rem;
}



footer{
  padding: 2rem 1rem 3rem 1rem;
  margin-top: 2rem; 
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer a{
  text-decoration: none;
  color: #ffb8e8;
  text-shadow: 0 0 10px rgba(255,184,232,0.4);
}

.body-about{
  color: whitesmoke;
  padding: 1rem;
}

#caption-box {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffe9f7;
  background: rgba(19, 0, 22, 0.85);
  border: 1px solid rgba(255, 184, 232, 0.3);
  padding: 2rem 2.5rem;
  width: 70%;
  margin: 1rem auto;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;

}

#caption-box {

   font-family: "Inter", sans-serif;
}

#caption-box.show {
  opacity: 1;
}


body.home-page {
  overflow: hidden; 
}

body.home-page .stage {
  display: flex; 
  flex-direction: column; 
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
  flex: 1; 
  justify-content: center; 
  align-items: center; }

body.home-page .stage-top {
  position: relative; 
  width: 100%;
  height: 60vh;
  
}

body.home-page .scream {
  cursor: pointer;
  width: 100px;        
  height: 100px;
}

body.home-page .scream .blob {
  width: 100%;
  height: 100%;
  background: transparent;
  transform-origin: center center;
  overflow: visible;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 25px rgba(255,200,220,0.6))
          drop-shadow(0 0 50px rgba(255,180,200,0.4));
  isolation: isolate
}




body.stage-page {
  height: 100%;
  overflow-y: auto; 
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.stage-page #back-button {
  display: block;  
}

body.stage-page .parallax {
  flex: 1;
  height: auto; 
  overflow-y: visible; 
}

body.stage-page .stage {
  display: flex; 
  flex-direction: column; 
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

body.stage-page .stage-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

body.stage-page .scream {
  width: 200px; 
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.stage-page .blob {
  width: 100%;
  height: 100%;
}

body.stage-page .blob svg {
    width: 100%;
    height: 100%;
}

body.stage-page #big-blob-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem;
  padding: 2rem;
  margin: 2rem 0;
}

body.stage-page #caption-box {
  height: auto; 
  text-align: left; 
  border-radius: 10px;
}



.ui-button {
    background-color: #ffb8e8;
    color: #21001a;
    border: none;
padding: 0.5rem 1rem;
  border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(255,184,232,0.6);
    transition: all 0.3s ease;

}

.ui-button:hover {
    box-shadow: 0 0 25px rgba(255,184,232,0.8);
    transform: translateY(-2px);
}

body.home-page footer{
  position: fixed;
  bottom: 0;
}

@media (max-width: 600px) {
  h1{
    font-size: 2rem;
  }
  #caption-box {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  body.stage-page .stage {
  padding: 1rem;


}


}

@media (max-width: 768px) {
  body.stage-page .big-blob .blob{
  height: 100px;
  width: 100px;
}

body.body-about{
  width: 100%;

}
  body.stage-page .parallax {
    height: auto;
    overflow: visible;
  }

  body.stage-page .blob {
    width: 50px;
    height: 50px;
  }

  body.stage-page .stage-bottom {
    flex-direction: column; 
    align-items: center; 
  }

  body.stage-page h1 {
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  body.stage-page footer {
    height: auto;
  
    text-align: center;
  }


  body.stage-page .stage-top {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }


  body.stage-page #big-blob-container {
    padding: 2rem;
  }

  .ui-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  
  body.stage-page .big-blob {
    width: 150px;
    height: 150px;
  }
  
  body.stage-page h1 {
    font-size: 1.2rem;
  }

  body.stage-page #back-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

#back-button{
  box-shadow: none;
}

/* ally code */
    .visually-hidden {
      position: absolute;
      width: 1px; height: 1px;
      margin: -1px; padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      border: 0;
    }

    button:focus-visible {
      outline: 3px solid hotpink;
      outline-offset: 3px;
    }

.names-to-thank{
      padding-bottom: 2rem;
 }
.names-to-thank p{

  margin: 0.5rem;
}

.credits{
  color: #21001a;
  font-size: 0.9rem;
}


body.stage-page #big-blob-container .scream {
  position: static; 
  transform: none;  
}

body.stage-page #big-blob-container .blob {
  width: 350px; 
  height: 350px;
}

#audio-timer {
    display: none;  
    color: whitesmoke;   
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 10px;
}

.nav-btns{
  z-index: 5;
}
.play{
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
  padding-top: 1rem;
  align-items: center;
  gap: 1rem;
  z-index: 99999;
  position: relative;

}

/* position blobs home */
.scream {
  position: absolute;
  transition: transform 0.3s ease;
}


.scream[data-letter="j"] { top: 0; left: 5%; }
.scream[data-letter="b"] { top: 35%; left: 50%; }
.scream[data-letter="p"] { top: 25%; left: 15%; }
.scream[data-letter="t"] { top: 60%; left: 70%; }
.scream[data-letter="k"] { top: 50%; left: 0; }
.scream[data-letter="s"] { top: 15%; left: 65%; }
.scream[data-letter="r"] { top: 70%; left: 45%; }
.scream[data-letter="i"] { top: 40%; left: 75%; }
.scream[data-letter="g"] { top: 80%; left: 15%; }

@media (min-width: 480px){
  .scream[data-letter="s"] { top: 15%; left: 65%; }
  .scream[data-letter="i"] { top: 40%; left: 90%; }
  .scream[data-letter="t"] { top: 60%; left: 70%; }
}

svg[data-caption="k"] {
  transform: scale(0.8);
}


.scream:hover {
  transform: translate(-10%, -10%) scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .parallax,
  .blob {
    animation: none;
    transform: none;
  }
}