@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

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

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--off-white);
}

.wrapper{
    width:40vw;
    height:60vh;
    background-color: var(--white);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius:1rem ;
    border-bottom-right-radius: 10rem;
    padding: 3rem 4rem;
    margin-top: 8rem;
}
.container{
    width: 30vw;
    height: 14vh;
    border-bottom: 1px solid var(--off-white);
    margin-bottom: 3rem;
}
.input-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 27vw;
    height: 16vh;

}
.input-container{
    display: flex;
    flex-direction: column;
    width:8vw;
    height: 9vh;
    margin-bottom: 1px;
}
.input-container small{
    color: var(--light-red);
}
.input-container label{
    font-size: 1rem;
    margin-bottom: 0.1rem;
    font-weight: 800;
    color: var(--Smokey-grey);
    text-transform: uppercase;
}
.input-container input{
    width: 8vw;
    padding: 0.4rem;
    outline: none;
    border: 0.1rem solid var(--off-white);
    font-size: 32px;
    font-weight: 800;
    caret-color: var(--purple);
}

.input-container input:focus{
    box-shadow: 0 0 2px var(--purple);
}

.input-container ::placeholder{
    color: var(--Off-black);
}
button{
    width: 3vw;
    height: 6vh;
    border: none;
    border-radius: 50%;
    background-color: var(--purple);
    top: 16rem;
    position: absolute;
    right:32rem;
    cursor: pointer;
}
button:hover{
    background-color: var(--Off-black);
}
button img{
    width: 1.5vw
}
.output-div{
    width: 35vw;
    height: 33vh;
}
.output-div h1{
    font-size: 3.3rem;
    font-weight: 800;
}
.output-div h1 span{
    color: var(--purple);
}
.attribution { 
    font-size: 11px; 
    text-align: center;
    margin-top: 5%; 
}
.attribution a { color:var(--purple) }

@media (max-width:375px){
    .wrapper{
        width: 80vw;
        height: 50vh;
        padding: 1.5rem ;
        margin-bottom: 2rem;
        border-bottom-right-radius: 5rem;
    }
    .container{
        width: 75vw;
        height: 15vh;
    }
    .input-flex{
        width: 75vw;
        height: 10vh;
    }

    .input-container{
        width: 25vw;
    }
    .input-container small {
        font-size: 0.5rem;
    }
    .input-container label{
        font-size: 0.7rem;
    }
    .input-container input{
        width: 5rem;
        height: 5vh;
        font-size: 22px;
    }

    .output-div{
        width: 69vw;
        height: 25vh;
    }
    .output-div h1{
        font-size: 2.3rem;
    }

    button{
        width: 2rem;
        height: 2rem;
        top: 33vh;
        right: 47vw;
    }
    button img{
        width: 1rem;
    }
    .attribution{
        font-size: 8px;
        margin-top: 1rem;
    }
    
}