@import url("https://fonts.googleapis.com/css?family=Baloo+Paaji|Open+Sans:300,300i,400,400i,600,600i,700,700i");

.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}


.gameMemoryContainer {
  background-color: #695aa6;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  overflow: hidden;
}

.key {
  display: inline-block;
  margin: 10px;
  width: 80px;
  height: 120px;
  background-color: #ffdd99;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
  color: white;
  font-weight: bold;
  text-align: center;
  font-family: "Baloo Paaji";
line-height: 12;
}

.key:active {
  transform: scale(0.95);
}

.container {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 0px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow: hidden;
}

#score {
  font-size: 2.5em;
  color: #fff;
  width: 100%;
  text-align: center;
  margin-top: 150px;
  font-family: "Baloo Paaji";
  font-weight: bold;
}

#message {
  font-size: 2em;
  color: #fff;
  width: 100%;
  text-align: center;
  margin-top: 30px;
  font-family: "Baloo Paaji";
  font-weight: bold;
}

#replay {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.5em;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: "Baloo Paaji";
  margin-left: calc(50% - 98px);
  display: none;
  margin-top: 70px;
}

#replay:hover {
  background-color: orangered;
}

.dinletext
{
  font-size: 1.5em;
  color: white;
  font-family: "Baloo Paaji";
}

.button-image {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 30px;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loading {
  color: white;
  font-size: 2em;
  text-align: center;
}

.equalizer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.bar {
  width: 10px;
  height: 20px;
  background: white;
  animation: bounce 0.5s infinite;
}

.bar:nth-child(2) {
  animation-delay: 0.1s;
}

.bar:nth-child(3) {
  animation-delay: 0.2s;
}

.bar:nth-child(4) {
  animation-delay: 0.4s;
}

.bar:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes bounce {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(2);
  }
}

.confetti-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}


@media (max-width: 768px) {
  .key {
    width: 60px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .key {
    width: 50px;
    height: 80px;
    margin: 3px;
    line-height: 8;
  }

  .container {
    padding: 10px;
  }
}

#startButton {
  font-size: 2.5em;
  padding: 10px 30px;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Baloo Paaji";
  margin-top: 100px;
}

#startButton:hover {
  background-color: orangered;
}