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

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

* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Roboto-Regular';
    font-size: 16px;
}

body, html {
    height: 100%;
}

body {
    background-color: hsl(235, 18%, 26%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 70%;
    max-width: 800px;
    padding: 1em;
    border-radius: 30px;
}

.left-div {
    padding: 0 3em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

h1 {
    font-size: 2.75rem;
}

p {
    line-height: 1.5em;
}

.sign-up-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

form {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

form label, #invalid-label {
    font-size: .75rem;
}

form input {
    height: 3.75em;
    border-radius: 8px;
}

p, li, form input, #submit-button, button, #submitted-email {
    font-size: 0.8rem;
}

h1, #submit-button, form label, #invalid-label, button, #submitted-email {
    font-family: 'Roboto-Bold';
}

h1, ul, p {
    color: hsl(234, 29%, 20%);
}

ul {
    list-style-image: url(assets/images/icon-list.svg);
    list-style-position: outside;
    padding: 0;
    margin-left: 1.5em;
}

li {
    margin: .5em 0;
    padding-left: 1em;
}

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

#invalid-label {
    display: none;
    color: hsl(4, 100%, 67%);
}

#email {
    padding-left: 1em;
    margin-bottom: 1em;
    border-style: solid;
    border-width: 1px;
}
#email.invalid {
    padding-left: 1em;
    margin-bottom: 1em;
    border-style: solid;
    border-width: 1px;
    border-color: hsl(4, 100%, 67%);
    color: hsl(4, 100%, 67%);
    background-color: hsla(4, 100%, 67%, 0.208);
}

#submit-button, #dismiss {
    background-color: hsl(234, 29%, 20%);
    color: white;
}

#dismiss {
    height: 3.75em;
    border-radius: 8px;
    margin-top: 1em;
}

.success-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 40%;
    padding: 2em 4em;
    border-radius: 30px;
    gap: 1em;
}

.success-icon {
    width: 40px;
}

.hidden {
    display: none;
}


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

    
    .main-container {
        width: 90vw;
        height: 100%;
        flex-direction: column-reverse;
        border-radius: 0;
        max-width: none;
        padding-bottom: 4em;
    }

    .left-div {
        padding: 2em;
        height: 100%;
    }
    
    .right-div {
        width: 100%;
        padding: 1em;
    }

    .success-card {
    width: 70vw;
    padding: 2em 4em;
}

    #submit-button {
        margin-top: auto;
        margin-bottom: 0;
    }


}
@media screen and (max-width: 500px) {
    
    body {
        background-color: #FFF;
    }

    .main-container {
        width: 100%;
        padding: 0;
    }

    .right-div {
        padding: 0;
    }

    .success-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 2em;
        padding-top: 4em;
    }

    #dismiss {
        margin-top: auto;
        margin-bottom: 2em;
    }


}