@font-face {
  font-family: "Cat";
  src: url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.eot");
  src: url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.eot?#iefix")format("embedded-opentype"),
    url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.woff")format("woff"),
    url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.woff2")format("woff2"),
    url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.ttf")format("truetype"),
    url("/kenny-alive-JSFE2024Q4/fonts/07fcf052a73852c3d74636ec1df22d4c.svg#Cat")format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

body {
  font-family: "Cat", serif;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  max-height: 100%;
  background: linear-gradient(21deg, #dd03e4, #5611ec);
  flex-direction: column;
  /* overflow-x: hidden; */
}

.game__container {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(to right, #f00, #ffa500, #ff0, #008000, #00f, #4b0082, #ee82ee);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  transition: max-height 0.6s ease-in-out, padding 0.6s ease, max-width 0.6s ease;
  justify-content: center;
  align-items: center;
  /* overflow: hidden; */
  /* max-height: 600px; */
  margin-bottom: 0;
}

.game__container.easy {
  max-width: 800px;
  max-height: 800px;
}

.game__container.medium {
  max-width: 900px;
  max-height: 800px;
}

.game__container.hard {
  max-width: 1000px;
  max-height: 1000px;
}

.game__container.keyboard-active {
  max-height: 800px;
  margin-bottom: 100px;
}

.start__btn {
  font-family: 'cat';
  font-size: 3rem;
  padding: 12px 20px;
  margin: 10px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  border: none;
}

.start__btn:hover {
  background-color: #45a049;
}

.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.6s ease, transform 0.6s ease;/
}

.new-game__btn,
.sequence__btn {
  font-family: 'cat';
  font-size: 1rem;
  padding: 12px 20px;
  margin: 10px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  display: inline-block;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sequence__btn:disabled {
  cursor: not-allowed;
  background-color: grey;
  transform: scale(0.9);
}

.sequence__btn:hover:disabled {
  cursor: not-allowed;
  background-color: grey;
  /* transform: scale(0.5); */
}

.new-game__btn:hover,
.sequence__btn:hover {
  background-color: #45a049;
}

.next__btn {
  font-family: 'cat';
  font-size: 1rem;
  padding: 12px 20px;
  margin: 10px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  display: inline-block;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.current__level {
  font-size: 2.5rem;
  margin-top: 20px;
  color: rgb(248, 127, 5);
  font-weight: bold;
}

.round__counter {
  font-size: 2rem;
  margin-top: 20px;
  color: rgb(255, 217, 1);
  font-weight: bold;
}

.difficulty__container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.difficulty__btn {
  font-family: 'cat';
  font-size: 3rem;
  padding: 15px 20px;
  margin: 0 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 120px;
  transition: background-color 0.6s ease, transform 0.6s ease;
}

.difficulty__btn:disabled {
  cursor: not-allowed;
  background-color: grey;
  transform: scale(0.5);
}

.difficulty__btn:hover:disabled {
  cursor: not-allowed;
  background-color: grey;
  transform: scale(0.5);
}

.easy {
  background-color: rgb(3, 247, 3);
  color: white;
}

.medium {
  background-color: blue;
  color: white;
}

.hard {
  background-color: red;
  color: white;
}

.hard:active {
  color: #4b0082;
}

.difficulty__btn:hover {
  background-color: #f809e4;
  transform: scale(1.1);
}

.sequence__input {
  font-family: 'cat', serif;
  font-size: 2rem;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  text-align: center;
  outline: none;
  transition: all 0.3s ease-in-out;
}

.sequence__input:focus {
  border-color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.2);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
}

.sequence__input[readonly] {
  background-color: rgba(255, 255, 255, 0.5);
  color: #0c011f;
  cursor: not-allowed;
}

.keyboard__container {

  flex-wrap: wrap;
  justify-content: center;
  display: flex;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, max-height 0.6s ease;
}

.keyboard__container.active {

  opacity: 1;
  display: flex;
  max-height: 1000px;
}

.keyboard__container.inactive {
  opacity: 0;
  max-height: 0;
}

.key {
  font-family: 'cat', serif;
  width: 60px;
  height: 60px;
  margin: 5px;
  font-size: 2rem;
  /* background: #DBCB35; */
  background-color: yellowgreen;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
}

.key:hover {
  background-color: #ddd;
}

.key:disabled {
  color: black;
}

.wasted__img {
  position: absolute;
  left: 50%;
  top: 50%;
  background: transparent;
  visibility: hidden;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 2s ease-out;
  max-width: 100%;
  max-height: 100%;
}

.winner__img {
  position: absolute;
  left: 50%;
  top: 50%;
  background: transparent;
  visibility: hidden;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 2s ease-out;
  max-width: 100%;
  max-height: 100%;
}


@media (max-width: 768px) {
  .game__container {
    max-width: 90%;
  }

  .start__btn,
  .difficulty__btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .key {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {

  .start__btn,
  .difficulty__btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .key {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}