@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,700;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;
}

body {
  background: var(--Light-grey);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 10px;
  margin: 0 auto;
}

.content {
  background: var(--White);
  width: 650px;
  padding: 50px;
  border-radius: 20px;
  border-bottom-right-radius: 40%;
  position: relative;
}

.input {
  display: flex;
  margin-bottom: 35px;
}

input {
  font-size: 32px;
  width: 150px;
  padding: 10px;
  margin-top: 10px;
  margin-right: 20px;
  border-radius: 10px;
  border: 0.5px solid var(--Light-grey);
  outline: none;
  letter-spacing: 2px;
  caret-color: var(--Purple);
}

h6 {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--Smokey-grey);
}

hr {
  border: none;
  height: 1px;
  background: var(--Light-grey);
}

button {
  position: absolute;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: var(--Purple);
  right: 50px;
  margin-top: -32px;
  cursor: pointer;
}

button:hover {
  background: var(--Off-black);
  transition: 0.3s linear;
}

input:focus {
  border: 0.5px solid var(--Purple);
}

p.error {
  font-size: 12px;
  font-weight: 400;
  color: var(--Light-red);
  font-style: italic;
  margin: 5px 0;
}

.result h1 {
  font-size: 70px;
  font-style: italic;
  font-weight: 800;
}

.result span {
  color: var(--Purple);
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (max-width: 650px) {
  .input {
    margin-bottom: 30px;
  }
  input {
    font-size: 24px;
    width: 120px;
    margin-right: 15px;
    border-radius: 8px;
  }
  .content {
    width: 500px;
    padding: 35px;
    border-radius: 15px;
    border-bottom-right-radius: 35%;
  }
  .result h1 {
    font-size: 55px;
  }
  p.error {
    font-size: 11px;
  }
  button {
    right: 30px;
  }
  .result {
    margin-top: 30px;
  }
}

/* @media only screen and (max-width: 375px) { */
@media only screen and (max-width: 490px) {
  .input {
    margin-bottom: 40px;
  }
  input {
    font-size: 18px;
    width: 80px;
    margin-right: 10px;
    border-radius: 5px;
  }
  .content {
    background: var(--White);
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    border-bottom-right-radius: 30%;
    position: relative;
  }
  .result h1 {
    font-size: 45px;
    font-style: italic;
  }
  p.error {
    font-size: 10px;
  }
  button {
    right: 40%;
  }
  .result {
    margin-top: 40px;
  }
}
