/* UNIVERSAL STYLES */
* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

body {
    background-color: #F0F0F0;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

h1 { 
    font-size: 104px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    transition: all 0.25s ease-in;
}

span {
    color: hsl(259, 100%, 65%);
}


/* CALCULATOR */
main {
    max-width: 840px;
    width: 90%;
    height: fit-content;
    padding: 56px;
    background-color: white;
    border-radius: 24px 24px 200px 24px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

#form-inputs{
    display: flex;
    gap: 32px;
}

.form-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label{
    text-transform: uppercase;
    font-size: 14px;
    color: hsl(0, 1%, 44%);
    font-weight: 700;
}

input {
    width: 160px;
    height: 72px;
    border-radius: 8px;
    padding: 24px;
    font-size: 32px;
    font-weight: 700;
    border: 1px solid hsl(0, 0%, 86%);
}

input:focus,
input:hover {
    outline:1px solid hsl(259, 100%, 65%);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    -webkit-text-fill-color: black; /* Adjust this to match your text color */
    transition: background-color 5000s ease-in-out 0s;
}

.error-message {
    height: 14px;
    color: red;
    font-size: 14px;
}


/* DIVIDER */
#divider {
    height: 96px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: flex-end;
}

#divider-border{
    width: 100%;
    border-bottom: 1px solid hsl(0, 0%, 86%);
}

#submit-button-container{
    height: 96px;
    width: 96px;
    background-color: #854DFF;
    border: none;
    border-radius: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s ease-in-out, height 0.25s ease-in-out;
}

#submit-button-container:hover{
    background-color:black;
}

#submit-button {
    border: none;
    outline: none;
    height: 100%;
    width: 100%;
}


/* FOOTER */
.attribution {
    font-size: 11px; text-align: center;
    position: absolute;
    bottom: 0px;
}

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

@media only screen and (max-width: 850px) {

    #form-inputs{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    input{
        width: 100%;
    }
    #divider {
        align-items: center;
        margin: 32px 0px;
        height: 64px;
    }

    #submit-button-container{
        height: 64px;
        width: 64px;
    }

    #submit-button {
        height: 120%;
        width: 120%;
    }
}

@media only screen and (max-width: 750px) {
    h1 {
        font-size: 85px;
    }
}

@media only screen and (max-width: 640px) {
    main {
        padding: 48px 24px;
    }

    h1 {
        font-size: 70px;
    }

    input{
        font-size: 20px;
    }
}

@media only screen and (max-width: 540px) {
    h1 {
        font-size: 54px;
    }

    .form-input input {
        padding: 12px 16px;
    }

    .error-message {
        height: 12px;
        font-size: 12px;
    }
    
}

@media only screen and (max-width: 376px) {
    h1 {
        font-size: 42px;
    }
}