*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face{
    font-family: 'Roboto-Regular';
    src: url("assets/fonts/Roboto-Regular.ttf");
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    background-color: hsl(235, 18%, 26%);
    font-family: Roboto-Regular;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: hsl(0, 0%, 100%);
    border-radius: 1.5rem;
}
.text-box{
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    width: 400px;
    padding: 20px;
}
.text-box h1{
    color: hsl(234, 29%, 20%);
    font-size: 35px;
    font-weight: 800;
}
.text-box p{
    font-size: 16px;
    color: hsl(234, 29%, 20%);
    font-weight: 400;
}
h1,p,ul,input{
    margin-bottom: 15px;
}
ul{
    list-style-type: none;
}
li{
    background-image: url(./assets/images/icon-list.svg);
    font-size: 16px;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: hsl(235, 18%, 26%);
    font-weight: 400;
}
.img-box{
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}
.desktop{
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.mobile{
    display: none;
}
#success-box {
    display: none;
    flex-direction: column;
    padding: 20px;
    width: 350px;
    height: max-content;
    background: hsl(0, 0%, 100%);
    border-radius: 15px;
}

h2{
    font-size: 35px;
    font-weight: 800;
    color: hsl(234, 29%, 20%);
    margin-bottom: 20px;
}
#confirmation-txt{
    font-size: 16px;
    color: hsl(235, 18%, 26%);
    font-weight: 400;
    margin-bottom: 30px;
}
#validEmail{
    color: hsl(234, 29%, 20%);
    font-weight: 700;
}
#dismiss{
    color: hsl(0, 0%,58%);
    background-color: hsl(234, 29%, 20%);
    font-size: 18px;
    cursor: pointer;
}
#dismiss{
    padding: 10px 91px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    color: white;
    text-decoration: none;
}
.sucess-txt{
    margin-bottom: 10px;
}
.success-img img{
    width: 60px;
    height: 60px;
}
.success-img{
    margin-bottom: 20px;
}
label{
    font-size: 15px;
    color: hsl(234, 29%, 20%);
    font-weight: 700;
    margin-bottom: 10px;
}
input{
    padding: 10px;
    border-radius: 5px;
    border: 1.5px solid hsl(0, 0%,58%);
}
#Email:focus{
    cursor: pointer;
    outline: hsl(0, 0%,58%);
    font-weight: 400;
}
input::placeholder{
    font-size: 13px;
    color: hsl(0, 0%,58%);
    font-weight: 400;
}
#submitButton{
    padding: 13px;
    border: none;
    color: white;
    background: hsl(234, 29%, 20%);
    transition: 0.3s;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
}
#submitButton:hover, #dismiss:hover{
    cursor: pointer;
    background: hsl(4, 100%, 67%);
    box-shadow: 8px 10px 8px hsl(4, 81%, 65%);
}
#label-div{
    display: flex;
    justify-content: space-between;
}

@media  only screen and (max-width: 750px){
    .container{
        display: flex;
        flex-direction: column-reverse;
        padding: 0;
        border-radius: 0;
        width: 400px;
    }
    .img-box{
        width: 100%;
        height: 300px;
    }
    .desktop{
        display: none;
    }
    .mobile{
        position: absolute;
        display: initial;
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    .img-box{
        margin-top: 0;
    }
    .text-box{
        width: 100%;
        padding: 30px;
    }
    .text-box p{
        font-size: 20px;
    }
    li{
        font-size: 20px;
        background-size: 20px 20px;
    }
    ul{
        margin-bottom: 30px;
    }
    input, button{
        padding: 18px;
    }
    #success-box{
        height: 100vh;
        justify-content: center;
        border-radius: 0;
    } 
    .success-img{
        margin-bottom: 70px;
    } 
    #confirmation-txt{
        margin-bottom: 200px;
    }
}