*,
*::before,
*::after {
  padding: 0;
  border: none;
  margin: 0;
  box-sizing: border-box;
  font-family:  serif;
  font-weight: bold;
  font-style: normal;
}

.body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 0;
  background-color: #f0f0f0;
}

.title {
  margin-bottom: 20px;
  font-size: 36px;
  color: #2F4F4FFF;
}

.subtitle {
  font-size: 32px;
  color: #2F4F4FFF;
}
.control__list,
.level__list {
  width: 30%;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 20px 0;
}

.control__button,
.level__button {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid dimgray;
  border-radius: 10px;
  margin: 5px 0;
}

.control__button:not([disabled]):hover:not(.key--active),
.level__button:not([disabled]):hover:not(.key--active) {
  background-color: rgba(47, 79, 79, 0.2);
  cursor: pointer;
}

.keyboard {
  display: flex;
  flex-wrap: wrap;
  width: 82%;
  max-width: 650px;
  height: 200px;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.key {
  display: flex;
  width: 3.3rem;
  height: 3.3rem;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: rgba(47, 79, 79, 0.1);
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.key--active:hover {
  background-color: rgba(225, 0, 0, 0.5);
  cursor: not-allowed;
}

.key:not(.key--active):hover {
  background-color: rgba(47, 79, 79, 0.2);
}

.key--active {
  background-color: rgba(225, 0, 0, 0.5);
  color: #494949;
}

.display-none {
  display: none;
}

.display {
  display: flex;
  text-align: center;
  width: 100%;
  height: 250px;
  font-size: 42px;
  border-radius: 15px;
  margin: 0 1rem;
  background-color: rgba(47, 79, 79, 0.1);
  cursor: default !important;
}

:disabled {
  cursor: not-allowed;
  border: 1px solid #bebebe;
}

.main {
  width: 80vw;
  max-width: 1000px;
  display: flex;
  margin: 2rem 0 0 0;
}

.button-container {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 80vw;
  height: 100px;
}

.start-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  max-width: 600px;
  height: 3rem;
  margin: 1rem 0;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #696969;
  border-radius: 10px;
}

.start-button:not(.hidden):hover{
  background-color: rgba(47, 79, 79, 0.1);
  cursor: pointer;
}

.hidden {
  color: rgba(0, 0, 0, 0.0);
  background-color: rgba(0, 0, 0, 0.0);
  border: rgba(0, 0, 0, 0.0);
  cursor: default !important;
  pointer-events: none;
  user-select: none;
}


@media (min-width: 360px) and (max-width: 767px) {
  .main {
    width: 80vw;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0 0 0;
  }


  .level__list {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    column-gap: 5px;
    margin: 10px 0;
  }

  .control__list {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: 50px;
    column-gap: 5px;
    margin: 10px 0;
  }

  .control__button,
  .level__button {
    width: 100%;
    padding: 10px 15px;
  }

  .keyboard {
    width: 85%;
    max-width: 600px;
  }

  .key {
    width: 20px;
    height: 20px;
  }

  .button-container {
    width: 80vw;
    height: 50px;
  }
  .start-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 0;
  }

  .display {
font-size: 32px;
  }

  .keyboard {
    width: 82%;
    max-width: 650px;
    height: 0;
  }
}

@media (min-width: 360px) and (max-width: 860px) {
  .control__button {
    font-size: 14px;
  }
}
