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

body{
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background-color: hsl(235, 18%, 26%);
}

.wrapper{
    width:900px;
    height:65vh;
    display: flex;
    justify-content:center;
    padding:20px;
    padding-left:60px;
    align-items:center;
    border-radius:3%;
    background-color: white;
}

.first-half{
    display:flex;
    flex-direction:column;
    width:80%;
    align-items: flex-start;
    justify-content: center;
    gap:30px;
}
.first-half h1{
    font-size: 3rem;
    color:hsl(234, 29%, 20%);
}
.about-item-box{
    display:flex;
    flex-direction: column;
    gap:15px;
}
.main-img{
    border-radius:3%;
}

.about-item{
    display:flex;
    align-items:center;
    gap:10px;
}

.input-box{
    width:80%;
}
.input-box label{
    color:hsl(235, 18%, 26%);
    font-weight:500;
    font-size:14px;
}
.label-validation-box{
    display:flex;
    justify-content: space-between;
    font-size:14px;
}
.input-box input{
    width:100%;
    padding:15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius:5px;
    margin-top: 8px;
}
.input-box input:focus{
    border: 1px solid black;
}
.first-half button{
    width:80%;
    background-color: hsl(234, 29%, 20%);
    font-weight: bold;
    border-radius:5px;
    color:white;
    padding:15px;
    transition: background 0.8 ease-in;
}
.first-half button:hover{
    background: linear-gradient(to right, hsl(4, 84%, 76%), hsl(4, 100%, 67%));
    cursor: pointer;
    border: 2px solid transparent;
}

.success-message{
    display:none;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background-color: white;
    width:450px;
    height:450px;
    border-radius:25px;
}
.success-message h1{
    font: hsl(235, 18%, 26%);
    font-size:3rem;
}
.success-message .dismiss-button{
    background-color: hsl(234, 29%, 20%);
    color: white;
    height:42px;
    border-radius: 5px;
    font-weight:bold;
}
.success-message img{
    width:50px;
    height:50px;
}

.dismiss-button:hover{
    background: linear-gradient(to right, hsl(4, 84%, 76%), hsl(4, 100%, 67%));
    cursor: pointer;
    border: 2px solid transparent;
}

@media (max-width: 400px){

    .wrapper{
        flex-direction:column;
        justify-content: space-between;
        align-items:center;
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        padding:0;
    }
    .first-half{
        width: 100%;
        order : 1;
        flex: 1;
        align-items:center;
    }
    .texts-wrapper{
        margin-left:30px;
        margin-right:30px;
        display:flex;
        flex-direction:column;
        gap: 30px;
    }
    .main-img{
        border-radius:0 0 3% 3%;
        order: -1;
        width:100vw;
        height: 35vh;
        padding: 0;
        object-fit:cover;
    }
    .success-message{
        height: 100vh;
        justify-content:flex-start;
        gap: 20px;
    }
    .success-message img{
        margin-top:100px;
    }
    .success-message button{
        margin-top: auto;
    }
}