@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;0,800;1,400;1,800&display=swap');
:root{
  --Purple: hsl(259, 100%, 65%);
  --Light-red: hsl(0, 100%, 67%);
  --White: hsl(0, 0%, 100%);
  --Off-white: hsl(0, 0%, 94%);
  --Light-grey: hsl(0, 0%, 86%);
  --Smokey-grey: hsl(0, 1%, 44%);
  --Off-black: hsl(0, 0%, 8%);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* =====> General Styles <===== */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--Light-grey);
}

.card{
  background-color: var(--White);
  width: 600px;
  border-radius: 1rem 1rem 10rem .1rem;
}

.container{
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

form{
  display: flex;
  flex-direction: column;
}

.form-container{
  display: flex;
  gap: 2rem;
}

.block{
  display: flex;
  flex-direction: column;
}
.block label{
  text-transform: uppercase;
  font-weight: 600;
}

input{
  width: 100px;
  padding: 0.5rem;
  border-radius: .5rem;
  border: 1px solid --Light-grey;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}
input::placeholder{
  font-size: 1.5rem;
  font-weight: 800;
}

.submit_block{
  display: flex;
  align-items: center;
}

.submit_block hr{
  width: 100%;
}

.btn_submit{
  border-radius: 50%;
  padding: 1rem;
  background-color: var(--Purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output h1{
  font-size: 5rem;
  font-weight: 800;
  font-style: italic;
  height: fit-content;
}

small{
  color: red;
}

.attribution {
  margin: 24px 0;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

@media screen and (max-width: 600px) {
  .card{
    width: 360px;
  }
  .container{
    padding: 1rem;
  }
  .form-container{
    margin-bottom: 5rem;
    gap: 0;
    justify-content: space-between;
  }
  .submit_block{
    position: relative;
  }
  .btn_submit{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .output{
    margin-top: 5rem;
  }
  .output h1{
    font-size: 3.5rem;
  }
}

