@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;
}

.content {
  background: var(--White);
  width: 750px;
  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(--Light-red);
}

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);
}

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;
}

.aa {
 
  color: white;
}

.result h1 {
  font-size: 60px;
  font-style: italic;
}

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

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

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

/* Mobile and Tablet Responsiveness */
@media only screen and (max-width: 768px) {
  .content {
    width: 90%;
    padding: 40px;
    border-radius: 15px;
  }
  .input {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }
  input {
    font-size: 24px;
    width: 90%;
    margin-bottom: 10px;
    margin-right: 0;
  }
  h6 {
    font-size: 14px;
    text-align: center;
  }
  button {
    width: 55px;
    height: 55px;
    right: 20px;
  }
  .result h1 {
    font-size: 50px;
  }
}

@media only screen and (max-width: 480px) {
  .content {
    width: 90%;
    padding: 25px;
    border-radius: 10px;
    border-bottom-right-radius: 30%;
  }
  input {
    font-size: 20px;
    width: 80%;
    border-radius: 5px;
  }
  h6 {
    font-size: 12px;
  }
  .result h1 {
    font-size: 40px;
  }
  p.error {
    font-size: 10px;
  }
  button {
    width: 50px;
    height: 50px;
    right: 30px;
  }
  .result {
    margin-top: 20px;
  }
}
