* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 1em;
}

main {
  background-color: wheat;
  padding: 1em;
  border-radius: 7px;
  max-width: 400px;
}

h1,
h2,
h3,
p {
  font-family: Arial, Helvetica, sans-serif;
}

h1,
h3 {
  margin-bottom: 10px;
}

p {
  margin-bottom: 5px;
  font-size: 13px;
}

.level-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.outcome-msg {
  text-align: center;
  margin-bottom: 15px;
}

.outcome-msg.win {
  color: green;
}

.outcome-msg.lose {
  color: red;
}

#attempts {
  text-align: center;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-bottom: 10px;
}

#rules {
  margin-bottom: 20px;
}
#guess {
  border: none;
  padding: 10px;
  margin-bottom: 10px;
  outline: none;
  text-align: center;
}

#btn,
.restart,
.level-btn {
  text-transform: uppercase;
  padding: 0.9em;
  border-radius: 5px;
  border: none;
  background-color: rgb(225, 179, 100);
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;

  transition: all 0.15s ease;
}

.level-btn {
  width: 33%;
  padding: 0.3em;
}

.level-btn.clicked {
  color: whtie;
  background-color: rgb(150, 127, 84);
}

#btn:hover,
.restart:hover {
  background-color: rgb(233, 188, 104);
}

#warning {
  text-align: center;
  color: red;
  font-size: 14px;
  margin-bottom: 20px;
}

.history-container {
  text-align: center;
}

@media screen and (min-width: 450px) {
  body {
    padding: 0;
  }
}
