@font-face {
    font-family: Roboto;
    src: url(./assets/fonts/Roboto-Regular.ttf);
    font-weight: normal;
}
@font-face {
    font-family: Roboto;
    src: url(./assets/fonts/Roboto-Bold.ttf);
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

a, a:active, a:hover{
    text-decoration: none;
    cursor: default;
    color: inherit;
}


:root{
    /* ## Colors */

    /* ### Primary */
    
    --Red: hsl(4, 100%, 67%);

    /* ### Neutral */

    --Blue-800: hsl(234, 29%, 20%);
    --Blue-700: hsl(235, 18%, 26%);
    --Grey: hsl(0, 0%,58%);
    --White: hsl(0, 0%, 100%);
}

strong{
    font-weight: bold;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    gap: 1rem;
    line-height: 150%;
    background-color: var(--Blue-700);
}

.main-content{
    display: flex;
    align-items: center;
    background-color: var(--White);
    width: 760px;
    height: 500px;
    border-radius: 15px;
    padding: 1rem;
}
.blog{
    display: flex;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    justify-content: space-evenly;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}
h1{
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 100%;
    color: var(--Blue-800);
}
ul{
    list-style: none;
    list-style-image: url(./assets/images/icon-list.svg);
    list-style-position: inside;
}
li{
    padding-bottom: 1rem;
    line-height: 120%;
}
#sub-form{
    display: flex;
    flex-direction: column;

}
.label{
    display: flex;
    justify-content: space-between;
}

label{
    font-size: 0.8rem;
    color: var(--Blue-800);
    font-weight: 800;
    margin-bottom: 5px;
    justify-self: flex-start;
}

#invalid-email{
    justify-content: flex-end;
    display: inline;
    color: var(--Red);
}

#email {
    border-radius: 10px;
    border: 2px solid rgba(100,100,100, 0.5);
    padding: 1rem;
    margin-bottom: 10px;
}
#sub-form button{
    border: none;
    font-weight: bold;
    border-radius: 10px;
    padding: 1rem 0;
    color: var(--White);
    background-color: var(--Blue-800);
}
#sub-form button:hover{
    background: linear-gradient(to right, var(--Red) 60%, orange);
    box-shadow: 2px 2px 20px var(--Red);
    cursor: pointer;
    

}
.design{
    width: 80%;
    height: 100%;
    border-radius: 15px;
    background-image: url(assets/images/illustration-sign-up-desktop.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.attribution{
    justify-self: flex-end;
    color: var(--White);
}

.success-message{
    background-color: var(--White);
    display: grid;
    gap: 1rem;
    width: 400px;
    border-radius: 20px;
    padding: 2rem;
}
.success-message h2{
    font-weight: bold;
    font-size: 3rem;
    line-height: 100%;
    color: var(--Blue-800);
}

.success-message button{
    color: var(--White);
    border: none;
    background-color: var(--Blue-700);
    font-weight: bold;
    font-size: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
}

.success-message button:hover{
    background: linear-gradient(to right, var(--Red) 60%, orange);
    box-shadow: 2px 2px 20px var(--Red);
    cursor: pointer;
}

@media (max-width:750px) {
    .main-content{
        flex-direction: column-reverse;
        min-width: 300px;
        justify-content: flex-start;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        padding: 0;
    }
    .design{
        min-width: 300px;
        width: 100vw;
        max-height: 300px;
        border-radius: 0 0 10px 10px;
        background-image: url(assets/images/illustration-sign-up-mobile.svg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    .blog{
        font-size: 0.8rem;
        gap: 0rem;
    }
    h1{
        font-size: 2.5rem;
    }
    .attribution{
        display: none;
    }
    .success-message{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 5vh;
        min-height: 100dvh;
    }
    .success-message img{
        margin-top: 5vh;
        width: 100px;
    }
    .success-message button{
        margin-top: auto;
        margin-bottom: 5vh;
    }
}