
*{

    margin:0;
    padding:0;
    font-family: 'Bebas Neue'; /* fallback font */


}

.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}


/* Keep normal elements interactive */
header, #start-page, #game-page, button, #answer-input,#answer-input-div,#end-page {
  position: relative; /* so they are above the gradients */
  z-index: 1;         /* ensure they visually sit on top */
}

@media (max-width: 768px) {
  /* Scale down big fonts */
  .nutsflicks-title {
    font-size: 40px;
    
  }

  .getMovieButton {
    width: 90%;
    font-size: 24px;
    height: 60px;
  }

  #answer-input {
    width: 90%;
    font-size: 24px;
    height: 50px;
  }

  #start-page, #game-page, header {
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .g1, .g2, .g3, .g4, .g5 {
    overflow: visible;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
  }

  body {
    overflow-x: hidden;
  }
}
:root{

    --color-bg1: rgb(25, 13, 78);
    --color-bg2: rgb(136, 27, 154);
    --color1: 95, 58, 168;
    --color2: 61, 34, 112;
    --color3: 225, 90, 210;
    --color4: 100, 0, 50;
    --color5: 180, 180, 50;
    --loser-color: 252, 45, 17;
    --color6: 255, 155, 79;
    --winner-color: 240, 190, 50;
    --color-interactive: 32, 74, 252;
    --circle-size:90vw;
    --blending: hard-light;
}
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

body {
  --angle: 0deg;
  width: 100%;             /* avoids extra viewport width */
  min-height: 100vh;       /* lets content grow if needed */
  background: linear-gradient(var(--angle), var(--color-bg1), var(--color-bg2));
  background-size: cover;  /* ensures gradient fills entire container */
  background-position: center;
  overflow-x: hidden;      /* no horizontal scroll */
  overflow-y: auto;        /* allow vertical scroll */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* disables ALL scrolling */
}


@keyframes rotateGradient {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

body.animate {
  animation: rotateGradient 15s linear infinite;
}


@keyframes growCircle {
  0% {
    transform: scale(0%);
    opacity: 0;
  }

  6% {
    transform: scale(200%);
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}




@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}




/* 
.gradient-container {
      overflow: visible;

    position: fixed;
    top:0;
    left:0;
    width: 0;
    height: 0;
    overflow: visible;
    filter: url(#goo) blur(40px) ;
    width: 100%;
    height: 100%;
} */

.g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: center center;
    animation: moveVertical 40s ease infinite;

    opacity: 1;
}

.g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 400px);
    animation: moveInCircle 30s reverse infinite;

    opacity: 1;
}

.g3 {
    position: absolute;
    
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    /* v */
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);

    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;

    opacity: 1;
}

.g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;

    opacity: 0.7;
}

.g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));

    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 40s ease infinite;

    opacity: 1;
}

/* base state: invisible */
#win-colors {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0; /* start invisible */
}

#win-colors.animate {
  animation: growCircle 10s forwards;
}

#lose-colors {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0; /* start invisible */
}

#lose-colors.animate {
  animation: growCircle 10s forwards;
}




.g6 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color6),1) 0, rgba(var(--color6), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;


}


.g7 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color6), 0.7) 0, rgba(var(--color6), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;


}

.g8 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--loser-color), 1) 0, rgba(var(--loser-color), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;


}


.g9 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--loser-color), 0.8) 0, rgba(var(--loser-color), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    overflow: visible;

    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;


    opacity: 0;
}
.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: 90vw;
    height: 90vw;
    top: -50%;
    left: -50%;

    opacity: 0.9;
}




header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 30px;

}
.nutsflicks-title {
    font-size: 100px;
    color: white;
    text-shadow: 4px 5px #000000;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.nutsflicks-title.animate{
  animation: nutsflicksAnimate 0.5s ease-out;
  animation-fill-mode: forwards;
}

@keyframes nutsflicksAnimate{
  0%{
    margin-top:150px;

  }
  20%{

    margin-top:170px;
  }
  100%{
    margin-top: 0px;
  }
}

/* .nutsflicks-title:hover{
  animation: headShake 1s;

} */

#start-page{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
}

/* .getMovieButton{
    border-radius: 15px;
    border-width: 2px;
    border-color: var(--color-bg2);
    background-color: transparent;
    font-family: 'Bebas Neue';
    width: 500px;
    font-size: 50px;
    height:100px;
    box-shadow: 4px 5px black;
    color:rgba(255, 255, 255, 0.3);



}
.getMovieButton:hover{
    color:rgb(255, 255, 255);

    background-color: rgba(255, 0, 0, 0.15);


} */

.getMovieButton{

  width:300px;
  height:100px;
  font-size: 40px;
  border-width: 0px;
  border-radius: 10px;
  border-style:solid;
  color:rgba(255, 255, 255, 0.581);
  font-weight: 100;
  
  /* background-color: rgba(0, 0, 0, 0.339);
  box-shadow: 10px 0px 30px rgba(0,0,0,0.5);

 */

  background-color: transparent;
  animation: end-button-animation 1s ease-in-out,pulse 1s;
  animation-delay: 0.5s;

}


.getMovieButton:hover{
  box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.513);
  transition: box-shadow 0.3s ease-in,color 0.3s ease-in,text-shadow 0.3s ease-in,background-color 0.5s ease-in;
  color:rgba(255, 255, 255, 0.854);
  text-shadow: 4px 3px #000000b8;
  background-color: rgba(13, 1, 29, 0.823);


}

.getMovieButton:active{
  color:rgb(255, 255, 255);
  transition:background-color 0.1s ease-in;
    background-color: transparent;

  text-shadow: none;

}

#game-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 15px;

}
/* #game-page img:nth-child(1) { animation-delay: 0s; }
#game-page img:nth-child(2) { animation-delay: 0.2s; }
#game-page img:nth-child(3) { animation-delay: 0.4s; }
#game-page img:nth-child(4) { animation-delay: 0.6s; }
#game-page img:nth-child(5) { animation-delay: 0.8s; } */



@keyframes slideInTwirl3D {
  0% {
    transform: translateX(-500px) rotateZ(-90deg);
    opacity: 0;
  }
  50% {
    transform: translateX(20px) rotateZ(20deg);
  }
  100% {
    transform: translateX(0) rotateZ(0deg);
    opacity: 1;
  }
}

#game-page img {
    transform-origin: center; /* makes the twirl around the center */
    object-fit: cover;
    border-radius: 5%;
    height: 400px;
    width: 270px;
    overflow: hidden;
    transition: transform 0.5s ease-out; /* hover effect only */
    box-shadow: 10px 0px 30px rgba(0,0,0,0.5);

}
#actor-images{
    justify-content: center;
    align-content: center;
    width: auto;
    height:400px;

}
#actor-images div {

    position: relative;
    display: inline-block;

}

#actor-images div:hover {
    z-index: 100;             /* bring wrapper on top */

}


#actor-images div:hover img {
    transform: scale(1.2);
    box-shadow: 10 15px 30px rgba(0,0,0,0.5);

}
#answer-input-div{
    display: flex;
    flex-direction: column;
    margin-top: 55px;
    justify-content: center;
    align-items: center;

}

#answer-input{
    all: unset;
    width: 700px;
    height:60px;
    border-radius: 10px;
    border-width: 10px;
    font-size: 40px;
    text-align: center;
    border-color: white;
    color: white;
    background-color: transparent;
    
}

#answer-input:focus::placeholder {
    transition: opacity 0.2s ease-out;
    opacity: 0;
}


#answer-input::placeholder { /* Standard syntax */
    color: rgba(255, 255, 255, 0.631);
    transition: opacity 0.5s ease;


}



#guess-status-handler{
  display: flex;
  justify-content: center;
}

#guess-status-handler p{
    font-size: 40px;
    color: rgb(255,255,255,0.4);
    animation-name: delayedFadeOut;
    animation-duration: 5s; /* How long the animation takes */
    animation-timing-function: linear; /* The speed curve of the animation */
    animation-fill-mode: forwards; /* Retain the end state after the animation finishes */
    opacity: 0; /* Initial state before animation starts (can also be defined in keyframes) */
}




@keyframes delayedFadeOut {
    0% {
      opacity: 0; /* Start completely transparent */
      transform: translateY(20px); /* Start 20 pixels down (or use translateX for left/right) */
    }

    4% {
      opacity: 0.5; /* End completely opaque */
      transform: translateY(15px); /* End in original position */
    }
    20% {
      opacity: 1; /* End completely opaque */
    }
    40% {
        opacity: 0;
        transform: translateY(0); /* End in original position */

    }
}
/* Define the animation steps */
@keyframes slideInFadeIn {
  from {
    opacity: 0; /* Start completely transparent */
    transform: translateY(20px); /* Start 20 pixels down (or use translateX for left/right) */
  }
  to {
    opacity: 1; /* End completely opaque */
    transform: translateY(0); /* End in original position */
  }
}


#end-page{

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  transform-origin: center; 
  
}

  /* margin-left: auto;
  margin-right: auto;
  transform-origin: center; 
  border-radius: 15px;
  height: 600px;
  width: 1000px;
  overflow: hidden;
  background-color: rgb(0,0,0,0.3);
  transition: transform 0.5s ease-out; 
  box-shadow: 10px 0px 30px rgba(0,0,0,0.5); */


#end-page #result-text{
  margin-top: 170px;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.7);
  animation: winningAnimation ease-in;
  animation-duration:2s; 
  opacity: 0;

  
}
@keyframes winningAnimation {
  0% {
    transform: scale(2000%,2000%);
    opacity: 0;
  }

  10% {
    transform: scale(100%,100%);
    opacity: 1;
    transform: translateY(0);
  }
  80%{
    transform: scale(100%,100%);
    opacity: 1;
    transform: translateY(0);

  }
  100%{
    transform: translateY(-200px);
    opacity: 0;

  }
}
#game-info-result{

  border-radius: 15px;
  height: 600px;
  width: auto;
  overflow: visible;
  /* background-color: rgb(0,0,0,0.3);
  transition: transform 0.5s ease-out; 
  box-shadow: 10px 0px 30px rgba(0,0,0,0.5); */
  display: flex;
  direction: row;
  justify-content: center;
  gap: 50px;
  padding-top: 50px;
  animation: animate-info-card 0.4s ease-out forwards;
  /* position: absolute; z-index: 10; top: 0; left: 0; */
}

#movie-info-container{
  width: 800px;
  height: auto;
  /* background-color: white; */

}
#game-info-result h2{
  padding-bottom: 10px;
  font-size: 50px;
  color: white;
  font-family: "Special Elite", system-ui;
  text-shadow: 4px 5px #0000009b;

}

#poster-image{

    transform-origin: center;
    border-radius: 5%;
    height: 500px;
    width: auto;
    overflow: hidden;
    animation: slideInTwirl3D ease;
   /*  transition: transform 0.5s ease-out; hover effect only */
    box-shadow: 10px 0px 30px rgba(0,0,0,0.5);
    animation: tada 1s;


}

#poster-image:hover {
    animation: bounce 1s;     /* reapply animation */
}

@keyframes animate-info-card{
  0%{
    transform: translateY(200px);

  }
  100%{
    transform: translateY(-300px);

    
  }

}
#actor-image-results {
    width: 800px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
    box-sizing: border-box;
    overflow: visible;
}

#actor-image-results div {
    position: relative;
    display: inline-block;
}


#actor-image-results img {
    max-width: 130px;        /* controls overall size */
    height: auto;            /* keeps proportions */
    border-radius: 5%;
    box-shadow: 5px 0px 10px rgba(0,0,0,0.5);
    transition: transform 0.5s ease-out;
    transform-origin: center;
}


#actor-image-results div:hover img {
    transform: scale(1.2);
    box-shadow: 5x 5px 10px rgba(0, 0, 0, 0.418);
}

#actor-image-results p {
  margin-top: 25px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.705);
  opacity: 0;
  transform: translateY(10px); 
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  height: auto;     
  pointer-events: none; 
}

#actor-image-results div:hover + p {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#end-screen-buttons{
  display: flex;
  flex-direction: row;
  padding-top: 80px;
  padding-right: 80px;
  justify-content: space-between;

}



#end-screen-btn{

  width:190px;
  height:70px;
  font-size: 40px;
  border-width: 0px;
  border-radius: 10px;
  border-style:solid;
  color:rgba(255, 255, 255, 0.581);
  font-weight: 100;
  
  /* background-color: rgba(0, 0, 0, 0.339);
  box-shadow: 10px 0px 30px rgba(0,0,0,0.5);

 */

  background-color: transparent;
  animation: end-button-animation 1s ease-in-out,pulse 1s;
  animation-delay: 0.5s;

}


#end-screen-btn:hover{
  box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.513);
  transition: box-shadow 0.3s ease-in,color 0.3s ease-in,text-shadow 0.3s ease-in,background-color 0.5s ease-in;
  color:rgba(255, 255, 255, 0.854);
  text-shadow: 4px 3px #000000b8;
  background-color: rgba(13, 1, 29, 0.823);


}

#end-screen-btn:active{
  color:rgb(255, 255, 255);
  transition:background-color 0.1s ease-in;
    background-color: transparent;

  text-shadow: none;

}

@keyframes end-button-animation{

  0%{
    background-color: transparent;
    box-shadow: none;
    color:rgba(255, 255, 255, 0.581);

  }
  50%{
    background-color: rgba(0, 0, 0, 0.443);
    box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.513);
    color:rgba(255, 255, 255, 0.854);

  }
  100%{
    background-color: transparent;
    box-shadow: none;
    color:rgba(255, 255, 255, 0.581);

  }



}
#animated-warn-txt{
  color:rgba(255, 255, 255, 0.698);
  font-family: "Special Elite", system-ui;;
  font-size: 20px;
}
