html, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: hsl(235, 18%, 26%);
    font-family: "Roboto", sans-serif;
}

body h1, p{
    margin: 0;
    padding: 0;
    color: hsl(229, 37%, 15%);
}

.main-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.card{
    display: flex;
    width: 800px;
    height: 500px;
    background-color: white;
    border-radius: 20px;
    padding: 20px 20px;
}

.text-section{
    display: flex;
    flex-direction: column;
    width: 400px;
    padding: 50px 40px;
    gap: 20px;
}

.image-section{
    width: 400px;
    height: auto;
}

.image-section img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.text-section h1{
    font-size: 2.7rem;
}

.text-section p{
    font-size: 0.9rem;
}

.list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.list-item{
    display: flex;
    align-items: center;
}

.list-item svg{
    margin-right: 20px;
}

.email-input{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;

}

.email-input input{
    height: 35px;
    border-radius: 5px;
    border-style: none;
    border: 2px solid lightgrey;
    margin-bottom: 20px;
    padding-left: 15px;
    outline: none;
}

.email-button{
    width: 100%;
    height: 40px;
    background-color: hsl(232, 31%, 20%);
    border-style: none;
    color: white;
    border-radius: 5px;
    font-family: "Roboto", sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}

.title{
    display: flex;
}

.error-msg{
    visibility: hidden;
    margin-left: auto;
    color: rgb(255, 156, 156);
}

.card-success{
    display: none;
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: white;
    border-radius: 40px;
    padding: 40px;
}

.content{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content svg{
    transform: scale(2.2);
    padding-left: auto;
    margin-bottom: 20px;
}

.content h1{
    font-size: 2.5rem;
    line-height: 1;
}

.content button{
    font-family: "Roboto", sans-serif;
    width: 100%;
    height: 40px;
    color: white;
    background-color: hsl(232, 31%, 20%);
    border-style: none;
    border-radius: 10px;
    cursor: pointer;
}

@media(max-width:600px){
    *{
        box-sizing: border-box;
    }

    .main-wrapper{
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: white;
        justify-content: flex-start;
    }

    .card{
        display: flex;
        flex-direction: column;
        height: 80vh;
        width: 100%;
        padding: 0;
    }

    .text-section{
        width: 100%;
    }

    .image-section{
        order: -1;
        width: 100%;
        height: 30vh;
    }

    .image-section img{
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .email-input input{
        height: 6vh;
    }

    .email-button{
        height: 6vh;
    }

    .card-success{
        margin-top: 20vh;
        display: none;
        flex-direction: column;
        align-items: center;
        width: 45vh;
    }

    .content button{
        margin-top: 33vh;
        height: 6vh;
    }
}