@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 {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #8f07ce 30%, #082bc7 70%) no-repeat;
  min-height: 100vh;
  font-family: "Ubuntu", sans-serif;
}

.container {
  background: white;
  width: max(60vw, 300px);
  min-height: 400px;
  border-radius: 5%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.title-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: fit-content;
  padding: 20px;
}

.title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.sub-title {
  font-size: 1.5em;
  text-align: center;
  margin-top: 5px;
}

#guess {
  font-size: 2em;
  width: 2em;
  text-align: center;
  outline: none;
  border: 2px solid black;
  border-radius: 5px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.guess-btn {
  margin-top: 20px;
  font-size: 1em;
  padding: 0.6em 1em;
  outline: none;
  background: #7406a7;
  border: none;
  border-radius: 3px;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
}

.guess-btn:active {
  transform: translateY(1px);
}

#result {
  font-size: 1.2em;
  text-transform: capitalize;
}

.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%;
}
