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

:root {
    --red: hsl(4, 100%, 67%);
    --blue800: hsl(234, 29%, 20%);
    --blue700: hsl(235, 18%, 26%);
    --grey: hsl(0, 0%, 58%);
    --white: hsl(0, 0%, 100%);


}

body {
    font-size: 16px;
    color: var(--blue800);
    font-family: "Roboto", sans-serif;
    background: var(--blue800);
}

main {
    background: var(--white);
}

picture {
    width: 100%;
}

img{
    width: 100%;
}

.main-section {
    padding: 2em 1.5em;
}

p {
    padding: 1em 0;
    font-size: 1.1rem;
}

ul {
    list-style-image: url('./assets/images/icon-list.svg');
    padding: 0 1.5em 2em 1.5em;
    line-height: 1.9;
    font-size: 1.1rem;
}

form input {
    width: 100%;
    padding: 1em;
    border-radius: 10px;
    border: 0.5px solid var(--grey);
}

input[type=submit] {
    width: 100%;
    padding: 1.1em;
    background: var(--blue800);
    color: var(--white);
    border-radius: 10px;
    border: none;
    font-weight: 700;
}

input[type=submit]:hover{
    background: var(--red);
    box-shadow: 0 0 15px var(--red), 0 0 30px var(--red);
}

form label {
    font-weight: 700;
    font-size: 0.9rem;
}

input:invalid {
    box-shadow: 0 0 5px 1px var(--red);
}

/* responsive */

@media only screen and (min-width: 821px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    main {
        max-width: 600;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        padding: 1.5em 1.5em 1.5em 1.5em;
        border-radius: 30px;
    }

    img {
        width: 100%;
    }

    picture {
        width: 40%;
    }

    .main-section {
        width: 55%;
    }

    h1{
        font-size: 3rem;
        padding-top: 1em;
    }
}


/* modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed;/* Stay in place */
    z-index: 1;/* Sit on top */
    left: 0;
    top: 0;
    width: 100%;/* Full width */
    height: 100%;/* Full height */
    overflow: auto;/* Enable scroll if needed */
    background-color: var(--blue800);/* Black w/ opacity */
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    margin: 15% auto;/* 15% from the top and centered */
    padding: 4em;
    /* border: 1px solid #888; */
    max-width: 500px;/* Could be more or less, depending on screen size */
    /* text-align: center; */
}

.close-button {
    background: var(--blue800);
    color: var(--white);
    font-size: 1rem;
    display: block;
    width: 100%;
    font-weight: bold;
    padding: 1em;
    text-align: center;
    border-radius: 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    background: var(--red);
    box-shadow: 0 0 15px var(--red), 0 0 30px var(--red);
}

.success-icon{
    width: 60px;
    padding: 0 0 2em 0;
}


/* responsive mobile */
@media only screen and (max-width: 820px) {
    
    body{
        display: flex;
        justify-content: center;
        background: var(--white);
    }

    .modal{
        background-color: var(--white);
    }

    .close-button{
        margin-top: 60%;
    }

    h1{
        font-size: 2.7rem;
    }
}