@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%);
    --Smoke-Grey: hsl(0, 1%, 44%);
    --Off-Black: hsl(0, 0%, 8%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--Off-Black);
    background-color: var(--Light-Grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    background-color: var(--White);
    padding: 2rem;
    max-width: 520px;
    border-radius: 1rem;
    border-bottom-right-radius: 30%;
}

.form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    color: var(--Smoke-Grey);
    letter-spacing: 3px;
    text-align: center;
}

.form-group input {
    width: 80%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid var(--Light-Grey);
    border-radius: 0.3rem;
    font-family: inherit;
    font-size: 1.3rem;
}

.btn {
    margin: 0 auto;
    border: none;
    background-color: var(--Purple);
    border-radius: 50%;
    font-family: inherit;
    cursor: pointer;
    padding: .8rem 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease-in-out;
}

.btn img {
    width: 2rem;
}

.btn:hover {
    background-color: var(--Light-Red);
}

.result {
    font-weight: 800;
    line-height: 1;
    font-size: 2rem;
    padding: 1rem 0;
    margin-top: 1rem;
}

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

.can {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow-y: hidden;
}

.attribution {
    font-size: 0.75rem;
    text-align: center;
    margin: 1rem 0;
}

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

.error {
    display: inline-block;
    color: var(--Light-Red);
    font-size: 0.6rem;
    font-weight: 700;
    padding-top: 10px;
}

span .error {
    display: inline-block;
    color: var(--Light-Red);
    font-size: 0.7rem;
    font-weight: 700;
}.btn{border:0;cursor:pointer;font:inherit}.btn:focus-visible{outline:3px solid #854dff;outline-offset:5px}
