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

:root {
  font-size: 62.5%;
}

body {
  background: linear-gradient(287.56deg, #C2E9FB 0%, #A1C4FD);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  height: 100vh;
}

body, button, input {
  font-family: 'DM Sans', sans-serif;
}

button {
  background-color: #7879f1;
  color: white;
  font-weight: bold;
  border-radius: 0 .4rem .4rem 0;
  cursor: pointer;

  transition: background .3s;
  
}
button:hover {
  background-color: #6a6ad0;
}

.hide {
  display: none;
}

main {
  background: #FFFFFF;
  box-shadow: 0px .2rem .4rem rgba(0, 0, 0, 0.1);
  border-radius: .6rem;
  padding: 4.8rem 6.4rem 6.4rem;

  width: min(42.8rem, 90%);
  margin: 0 auto;

  text-align: center;
}

/*screen1*/

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1.6rem;
}

h1, p {
  color: #34355B;
  text-align: center;
}

p {
  opacity: 0.8;
}

form {
  margin-top: 4.8rem;
  display: flex;
  justify-content: center;
}

input, button {
  border: none;
  padding: 1.6rem;
}

input {
  background-color: #dce2e9;
  width: 5rem;
  border-radius: .4rem 0 0 .4rem;
  text-align: center;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

/*screen2*/

h2 {
  font-size: 2.4rem;
  font-weight: normal;

  margin-bottom: 3.3rem;
}

.screen2 button {
  border-radius: .4rem;
}