@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500&family=Ubuntu:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: #232323;
  font-family: "Ubuntu", sans-serif;
}

.container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.letter {
  color: #2940d3;
  list-style: none;
  border-bottom: 5px solid #2940d3;
  text-transform: uppercase;
  transition: 0.2s;
  font-size: 2em;
  height: calc(2em + 20px);
  width: calc(2em + 20px);
  text-align: center;
  padding: 10px;
  margin: 0 10px 25px;
}

.word {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.guess {
  display: flex;
  justify-content: center;
  column-gap: 20px;
}

#guessletter {
  font-size: 2em;
  padding: 10px;
  color: #555;
  text-transform: capitalize;
  outline: none;
  border: 1px solid #232323;
}

#guessletter::placeholder {
  color: #555;
  text-transform: none !important;
}

#submit {
  font-size: 1.2em;
  background-color: #2940d3;
  outline: none;
  border: none;
  color: #eee;
  cursor: pointer;
  padding: 0.2em 2em;
}

#submit:hover {
  background-color: #4c5ed3;
}

.wrong-text {
  font-size: 2em;
  color: white;
}

.wrong {
  margin: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrong-div {
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  visibility: hidden;
}

.wrong-letter {
  font-size: 2em;
  margin: 0 10px;
  background: red;
  border: 1px solid black;
  list-style: none;
  text-align: center;
  color: white;
  border-radius: 3px;
  padding: 0.2em 0.5em;
}

.message {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  visibility: hidden;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-family: "Open Sans", sans-serif;
  color: #f5f5f5;
  background-color: black;
  padding: 10px 0px;
  font-size: min(2vw, 15px);
  position: fixed;
  left: 0px;
  bottom: 0px;
  width: 100%;
}

h1 {
  margin: 0;
}

@media only screen and (max-width: 600px) {
  html {
    font-size: 50%;
  }
}

@media only screen and (max-width: 350px) {
  html {
    font-size: 30%;
  }
}
