/* CUSTOM FONTS */

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

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

/* MOBILE LAYOUT */

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 16px;
}

main {
    width: 100%;
    height: 100%;
}

h1,
p,
ul {
    margin: 0;
}

.container {
    width: 100%;
    height: 100%;
    font-family: Roboto-Regular;
}

.image-container {
    width: 100%;
    height: 30%;
}

.image-container > img {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    object-fit: cover;
}

.form-container {
    width: 100%;
    height: 70%;
    padding: 25px;
    box-sizing: border-box;
    background-color: hsl(0, 0%, 100%);
}

.form-container h1 {
    font-family: Roboto-Bold;
    color: hsl(234, 29%, 20%);
}

form {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: hsl(235, 18%, 26%);
}

ul {
    list-style-image: url("../assets/images/icon-list.svg");
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 22.5px;
}

li {
    margin-bottom: 20px;
}

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

.error-message {
    color: hsl(4, 100%, 67%);
}

input,
button {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border: none;
    border-radius: 8.5px;
}

input[placeholder="email@company.com"] {
    margin-top: 5px;
    outline: 1px solid hsl(0, 0%, 58%);
}

input[type="submit"],
button {
    font-family: Roboto-Bold;
    color: hsl(0, 0%, 100%);
    background-color: hsl(234, 29%, 20%);
}

/* MOBILE SUCCESS-MESSAGE */

.mobile-success-container {
    width: 100%;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
    font-family: Roboto-Regular;
    color: hsl(235, 18%, 26%);
}

.mobile-success-message-container,
.mobile-dismiss-button-container {
    height: 50%;
    display: flex;
    flex-direction: column;
}

.mobile-success-message-container {
    padding-top: 60px;
    box-sizing: border-box;
    justify-content: space-evenly;
}

.mobile-dismiss-button-container {
    justify-content: flex-end;
}

/* DESKTOP SUCCESS-MESSAGE */

.desktop-success-container {
    width: 45%;
    max-width: 430px;
    padding: 45px;
    box-sizing: border-box;
    border-radius: 25px;
    font-family: Roboto-Regular;
    color: hsl(235, 18%, 26%);
    background-color: hsl(0, 0%, 100%);
}

.desktop-success-message-container,
.desktop-dismiss-button-container {
    display: flex;
    flex-direction: column;
}

.desktop-success-message-container {
    padding-top: 20px;
    box-sizing: border-box;
    gap: 20px;
    justify-content: space-evenly;
}

.desktop-dismiss-button-container {
    margin-top: 20px;
    justify-content: flex-end;
}

.desktop-dismiss-button-container > button:hover {
    cursor: pointer;
    background-image: linear-gradient(to right, deeppink, #ff4500);
}

/* MOBILE AND DESKTOP SUCCESS-MESSAGE */

.mobile-success-message-container h1,
.desktop-success-message-container h1 {
    font-family: Roboto-Bold;
    color: hsl(234, 29%, 20%);
}

.mobile-success-message-container p,
.desktop-success-message-container p {
    line-height: 1.5;
}

/* MEDIA QUERIES */

@media screen and (min-width: 920px) {
    main {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: hsl(235, 18%, 26%);
    }
    .container {
        width: 70%;
        max-width: 880px;
        height: 70%;
        display: flex;
        gap: 20px;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 25px;
        background-color: hsl(0, 0%, 100%);
    }
    .image-container {
        width: 50%;
        height: 100%;
        order: 2;
    }
    .image-container > img {
        border-radius: 10px;
    }
    .form-container {
        width: 50%;
        height: 100%;
        order: 1;
    }
    input[placeholder="email@company.com"]:focus {
        cursor: pointer;
        outline: 1px solid #000000;
    }
    input[type="submit"]:hover {
        cursor: pointer;
        background-image: linear-gradient(to right, deeppink, #ff4500);
    }
}
