body {
  margin: 0;
  padding: 0;
  background: #e7f7fe;
  font-family: 'Fredoka', sans-serif;
  overflow-x: hidden;
}

h1 {
  font-family: 'Fredoka', sans-serif;
  display: block;
  text-align: center;
  color: #fcc7e2;
  font-weight: 900;
  font-size: 8rem;
  text-shadow: -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff, 4px 4px 0 #fff;
  z-index: 2;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}
.intro p {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  z-index: 100;
  width: 40vw;
  text-align: center;
  color: white;
}

.intro {
  background-color: #fdd9d9;
  padding: 10px 10px;
  border-radius: 10px;
  position: absolute;
  left: 30%;
  top: 45%;
  z-index: 2;
}


.Start-page {
  display: flex;
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
}
#music-button {
  background-color: #ffc4c4;
  width: 100px;
  height: 100px;
  color: white;
  padding: 10px;
  border: 5px solid white;
  border-radius: 50%;
  font-size: 50px;
  font-weight: 900;
  margin-top: 5vh;
  margin: 1vh;
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
#music-game{
  background-color: #ffc4c4;
  width: 100px;
  height: 100px;
  color: white;
  padding: 10px;
  border: 5px solid white;
  border-radius: 50%;
  font-size: 50px;
  font-weight: 900;
  margin-top: 5vh;
  margin: 1vh;
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
#music-button img{
  scale: 15%;
}
#music-game img{
  scale: 15%;
}
#music-button:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}
#music-game:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}
#start-button {
  background-color: #ffc4c4;
  width: 250px;
  height: 100px;
  color: white;
  padding: 10px;
  border: 5px solid white;
  border-radius: 10px;
  font-size: 50px;
  font-weight: 900;
  margin-top: 5vh;
  margin: 1vh;
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 2;
}
#start-button:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.sad-img img {
  position: absolute;
  bottom: 5%;
  max-width: 30vw;
  z-index: 2;
}

.gaming {
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}

.score-container {
  display: flex;
  align-items: center;
  margin-left: 4vh;

}

.score-container h2 {
  display: block;
  text-align: center;
  color: #fcc7e2;
  font-weight: 900;
  font-size: 3rem;
  margin-right: 20px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  width: 81vh;
  height: 81vh;
  align-items: center;
  justify-content: center;
  margin: auto;
  z-index: 3;
}

.square {
  margin: 0;
  width: 25vh;
  height: 25vh;
  border: solid pink 1vh;
}

.mole {
  background-image: url(Assets/Candies-02.png);
  background-size: 200px;
  background-repeat: no-repeat;
  background-position: center;
}

.finalscore {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #3939392d;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.popup {
  background-color: #ffc4c4;
  color: white;
  padding: 10px;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 16px;
  width: 50vh;
  height: 50vh;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup img {
  max-width: 50%;
  margin-bottom: 4vh;
}

.buttons {
  display: flex;
}

.buttons button {
  background-color: #ffc4c4;
  width: 140px;
  height: 70px;
  color: white;
  padding: 10px;
  border: 5px solid white;
  border-radius: 10px;
  font-size: 25px;
  font-weight: 900;
  margin-top: 5vh;
  margin: 1vh;
}
.buttons button:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}


.popup h2 {
  margin-top: 2vh;
  margin: 0;
}

.welcome-page {
  display: flex;
  width: 100vw;
  max-height: 100vh;
}

.rainbow {
  position: fixed;
  bottom: 0;
  right: 0%;
  z-index: 1;
}

.rainbow img {
  max-width: 50vw;
  opacity: 90%;
}

.clouds-start img {
  position: absolute;
  bottom: 0;
  max-width: 100%;
  height: 30vh;
  z-index: 1;
  animation: flow calc(15s * var(--i)) linear infinite;
}

@keyframes flow {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(100%);
  }
}
#rabcloud{
 position: absolute;
 top: 15%;
right: 10%;
}

.character img {
  position: absolute;
  bottom: 0%;
  left: 0%;
  max-width: 25vw;
  z-index: 2;
  margin: 0;
}
#tap{
  background-color: #fcc7e2;
  padding: 20px 10px;
  border-radius: 10px;
  position: absolute;
  left: 3%;
  top: 35%;
  z-index: 2;
  font-size: 1.5rem;
  z-index: 100;
  text-align: center;
  color: white;
}