* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root {
  --primary-color: #f44336;
}

body {
  margin: 0;
  background-color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}

.container {
  display: -ms-grid;
  display: grid;
  justify-items: center;
  padding-bottom: 100px;
}
.container > h1, .container > h2 {
  text-align: center;
  padding: 20px 20px 0;
  margin: 0;
  background-color: white;
  width: 100%;
}
.container > h2 {
  padding: 20px;
  margin: 0 0 50px;
  color: #f89e13;
}

.guess-game {
  text-align: center;
  margin: 20px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 80px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.guess-game .game-area .inputs > div {
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.guess-game .game-area .inputs > div span {
  font-size: 30px;
  margin-right: 15px;
  font-weight: bold;
}
.guess-game .game-area .inputs .disabled-inputs {
  opacity: 0.5;
  pointer-events: none;
}
.guess-game .game-area .inputs input {
  margin: 0 5px;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 50px;
  caret-color: var(--primary-color);
  background: white;
  border: none;
  border-bottom: 3px solid #333;
}
.guess-game .game-area .inputs input:focus {
  outline-color: #ccc;
}
.guess-game .game-area .inputs input.not-in-place {
  background-color: #f89e13;
  border: #f89e13;
  color: white;
}
.guess-game .game-area .inputs input.yes-in-place {
  background-color: #18ba89;
  border: #18ba89;
  color: white;
}
.guess-game .game-area .inputs input.no {
  background-color: #27303f;
  border: #27303f;
  color: white;
}
.guess-game .game-area .control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 500px;
  margin: 30px auto;
  gap: 10px;
}
.guess-game .game-area .control .check {
  background-color: var(--primary-color);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.guess-game .game-area .control .hint {
  background-color: #009688;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.guess-game .game-area .control .reset {
  background-color: #f89e13;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.guess-game .game-area .control button {
  border: none;
  font-size: 25px;
  padding: 15px 20px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.guess-game .game-area .control button:disabled {
  background-color: black;
  opacity: 0.4;
  cursor: no-drop;
}
.guess-game .key-colors {
  width: 385px;
}
.guess-game .key-colors .key-color {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 15px;
  background-color: white;
  margin-bottom: 10px;
}
.guess-game .key-colors .key-color .key {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}
.guess-game .key-colors .key-color .key.not-in-place {
  background-color: #f89e13;
}
.guess-game .key-colors .key-color .key.in-place {
  background-color: #18ba89;
}
.guess-game .key-colors .key-color .key.no {
  background-color: #27303f;
}
.guess-game .key-colors .key-color .key-text {
  font-size: 20px;
  font-weight: bold;
}

.message, .results {
  text-align: center;
  font-weight: bold;
  font-size: 30px;
  color: var(--primary-color);
  text-transform: capitalize;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  display: grid;
  gap: 20px;
}

footer a{
  text-decoration: none;
  background-color: #1a9687;
  padding: 8px;
  border-radius: 9px;
  color: white;
  font-weight: bold;
}
@media (max-height: 568px) {
  footer{
    position: relative;
  }
}
