@import url('https://fonts.googleapis.com/css2?family=Just+Another+Hand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
 
@keyframes wiggle {
    0%, 100% {
      transform: translateX(-50%) rotate(-3deg);
    }
    50% {
      transform: translateX(-50%) rotate(3deg);
    }
}
 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
 }

.title-container {
    position: relative;
    height: 100px;
}

.title {
    position: absolute;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 4em;
    color: #3D2F8E;
    -webkit-text-stroke: 1px #40E0D0;
    animation: wiggle 0.5s infinite;
}

body {
  animation: changeBackground 5s steps(5, end) infinite;
  background-size: cover; /* Make sure it covers the whole screen */
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh; /* This ensures the body is at least 100% of the viewport height */
  margin: 5; /* Reset margin */
  font-family: Comic Sans MS, sans-serif;
  text-align: center;
  color: rgb(219, 2, 2);
  
}


  @keyframes changeBackground {
    0% {
      background-image: url('assets/lol2.gif');
    }
    25% {
      background-image: url('assets/coe2.gif');
    }
    50% {
      background-image: url('assets/fan.gif');
    }
    75% {
      background-image: url('assets/hiccup.gif');
    }
    100% {
        background-image: url('assets/lol2.gif');
    }
  }

 /* Container for the purple square */
.button-container {
    position: absolute;    
    top: 300px;             
    left: 475px;           
    width: 350px;          
    height: 220px;         
    background-image: url('assets/purpleone.jpg');  
    background-size: cover;  
    background-position: center;  
    background-repeat: no-repeat;  
    display: flex;            
    align-items: center;      
  }
  
  /* Button inside the container */
  #hiButton {
    background: transparent;  
    border: none;            
    padding: 0;               
    cursor: pointer;          
    display: inline-block;     
    margin-right: 10px;       
  }
  
  /* Button image size */
  #hiButton img {
    width: 150px;             
    height: auto;             
    display: block;           
  }
  
  .button-text {
    color: white; 
    font-family: 'Just Another Hand', cursive;
    font-size: 3em;
    -webkit-text-stroke: 1px rgb(45, 28, 46); 
    margin: 0;
  }
  
  
  #hiButton:hover img {
    filter: hue-rotate(600deg); 
  }
  
#hiButton:active img {
  transform: scale(1.2); 
}

.turnoff-container {
    position: absolute;
    top: 300px; 
    left: 1000px;
    width: 350px;
    height: 220px;
    background-image: url('assets/miku.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
  }
  
  #turnOffButton {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
  }
  
  #turnOffButton img {
    width: 150px;
    height: auto;
    display: block;
  }
  
  #turnOffButton:hover img {
    filter: hue-rotate(270deg); 
  }
  #turnOffButton:active img {
    transform: scale(1.2); 
  }

  .hicounter-container {
    position: absolute;
    top: 550px; 
    left: 100px; 
    width: 400px;
    height: 420px;
    background-image: url('assets/tamagotchi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    flex-direction: column; 
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    text-align: center;
  }


.animate-glow .count-text {
  animation: rainbowGlow 1.5s ease-in-out infinite; 
}

@keyframes rainbowGlow {
  0% {
    text-shadow: 0 0 10px #ff4081, 0 0 20px #ff4081, 0 0 30px #ff4081, 0 0 40px #ff4081;
  }
  14% {
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000, 0 0 40px #ff0000;
  }
  28% {
    text-shadow: 0 0 10px #ff7300, 0 0 20px #ff7300, 0 0 30px #ff7300, 0 0 40px #ff7300;
  }
  42% {
    text-shadow: 0 0 10px #f7ff00, 0 0 20px #f7ff00, 0 0 30px #f7ff00, 0 0 40px #f7ff00;
  }
  57% {
    text-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66, 0 0 30px #00ff66, 0 0 40px #00ff66;
  }
  71% {
    text-shadow: 0 0 10px #0099ff, 0 0 20px #0099ff, 0 0 30px #0099ff, 0 0 40px #0099ff;
  }
  85% {
    text-shadow: 0 0 10px #9b00ff, 0 0 20px #9b00ff, 0 0 30px #9b00ff, 0 0 40px #9b00ff;
  }
  100% {
    text-shadow: 0 0 10px #ff4081, 0 0 20px #ff4081, 0 0 30px #ff4081, 0 0 40px #ff4081;
  }
}

.hicounter-container {
  position: absolute;
  top: 200px; 
  left: 100px; 
  width: 400px;
  height: 420px;
  background-image: url('assets/tamagotchi.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  flex-direction: column; 
  align-items: center;
  font-family: 'Press Start 2P', cursive;
  color: #fff;
  text-align: center;
}

#hiCounterText {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  line-height: 1.5;
  color: #c05fb8;
  text-align: center;
  -webkit-text-stroke: 1px rgb(68, 23, 110);
  animation: rainbowGlow 1.5s ease-in-out infinite; 
  margin: 0;
}

#popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#popupContent {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
}

#popupContent img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

#popupContent button {
  padding: 8px 16px;
  margin-top: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#popupContent button:hover {
  background: #45a049;
}

#resetButton {
  position: relative;
  top: 50px; 
}


.hydrate-container {
  display: flex;
  flex-direction: column;  
  align-items: center;     
  justify-content: center; 
  margin-top: 20px;        
  margin-bottom: 20px;     
  padding: 10px;           
}


#hydrateButton {
  background-color: transparent;  
  border: none;  
  padding: 10px;  
  cursor: pointer;  
  transition: transform 0.3s;  
  margin-top: 300px; 
}


#hydrateButton:hover {
  transform: scale(0.9);  
}


#hydrateButton img {
  width: 50px; 
  height: auto;  
}

/* Style for the hydration bar  */
.hydration-bar-container {
  width: 100%;
  height: 10px;
  background-color: #ccc;
  border-radius: 5px;
  margin-top: 10px; /*  space above the bar */
}

#hydrationBar {
  height: 100%;
  width: 0%;  
  background-color: #00bfff;  /* Set color for the hydration bar */
  border-radius: 5px;
}

.piano-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 20px;
}

.piano-key {
  width: 50px;
  height: 120px;
  background: white;
  border: 2px solid black;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.piano-key:active {
  background: #eee;
}

.piano-key {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  padding: 10px;
  margin: 0px;
  font-size: 18px;
  padding: 0;
}

.piano-key:hover {
  background-color: #ddd;
}


.special-key {
  background-color: rgb(0, 0, 0);
  color: white;
}

.special-key:hover {
  background-color: rgb(31, 134, 117);
}
 
#personalCount {
  font-size: 24px;
  color: pink;
 margin-top: -70px;
}
#checkMeOut {
  font-size: 14px;
  color: rgb(224, 0, 0);
  font-family: 'Press Start 2P', cursive;
  background-color: #000000;
  padding: 80x 20x;
  text-align: center;
  margin: 100px auto 20px auto;
  width: fit-content;
  box-shadow: 2px 2 px 5px rgb(0, 0, 0);

  
  
}
/* Phone */

@media (max-width: 600px) {
  .button-container {
    width: 80%; 
    height: auto; 
    left: 0%; 
    top: 300px; 
    position: relative;
  }
  .turnoff-container {
    width: 60%; 
    height: auto; 
    left: 90%; 
    top: 530px; 
    margin-bottom: 50px;
    position: relative;
  }
  #turnOffButton img {
    width: 100px;

    }

    html, body{
      background-size: cover;
      height: 80vh;
      margin: 0;
      padding: 0;
    }
  #hiButton {
    font-size: 14px;  
    padding: 8px 16px;  
    margin-right: 5px;  
}

#hiButton img {
  width: 100px;  
  

  }
  .hicounter-container {
    top: 200px; /* Adjust position */
    left: 10%; /* Center horizontally */
    width: 80%; /* Reduce width on mobile */
    min-height: 300px;
    height: auto; /* Adjust height to fit content */
    font-size: 12px; /* Reduce font size for smaller screens */
}

}



@media (max-width: 1366px) {
 
html, body{
  background-size: cover;
  background-position: center;
  height: 150vh;
  margin: 0;
  padding: 0;

}
.title {
  position: absolute;
white-space: nowrap;
}

}
