/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

*{
  margin: 0;
  padding: 0;
}

*, *::after, *::before{
  box-sizing: border-box;
}

main{
  display: grid;
  place-items: center;
  min-height: 100dvh;
}

h1{
  text-align: center;
  margin-top: 1em;
}

body{
  background-color: black;
  color: #fefefe;
}

.container{
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 80%;
  max-width: 750px;
}

#box-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center;
  row-gap: 2em;
}

#box-grid .box{
  border: 1px solid orange;
  border-radius: 1em;
  padding: 2em;
}

#box-grid .toggle-box{
  display: block;
}

.container input{
  width: 10%;
  height: 50px;
  place-self: center;
  border: 4px solid rgb(61, 55, 55);
  text-align: center;
  border-radius: .8em;
}

.container .submit-btn, .container .randomize-btn{
  align-self: center;
  padding: 1em 1.5em;
  border-radius: .5rem;
  cursor: pointer;
  background-color: black;
  color: white;
  border: 3px solid white;
}

.container p{
  text-align: center;
}

.container .result{
  display: none;
}