body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #b3e6b8;
  margin-top: 80px;
  margin-bottom: 80px;
}

h1 {
  text-align: center;
  font-family: 'Slackey', cursive;
  font-size: 40pt;
  color: #3498db;
}

.input-length {
  display: flex;
  align-items: center;
  justify-content: center;
}

label {
  font-size: 18px;
  margin-right: 10px;
}

input[type="number"] {
  font-size: 16px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  width: 60px;
}

#container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

table {
  border-collapse: collapse;
}

td {
  width: 40px;
  height: 40px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  color: #ffffff;
  background-color: #3498db;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: background-color 0.2s;
}

td.opened {
  border: 2px solid #ffffff;
}

td.correct {
  border: 2px solid #ffffff;
}

td.wrong {
  background-color: #e74c3c;
  border: 2px solid #ffffff;
}

button {
  display: block;
  margin: 40px auto;
  padding: 10px 20px;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.5s;
  font-size: 16px;
}

button:hover {
  transform: scale(1.1);
}

#scoreContainer p {
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 24px;
  margin-top: 40px;
}

#score {
  font-weight: bold;
  margin-left: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  border-radius: 10px;
  max-width: 300px;
  margin: 15% auto;
  padding: 20px;
  text-align: center;
}

.modal-content button {
  display: block;
  margin: 10px auto;
}

@media screen and (max-width: 768px) {
  #container {
    max-width: 90%;
    margin: 0 auto;
    padding: 10px;
  }

  td {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
  