*{
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    text-decoration: none;
    color: rgb(90, 90, 90);
}

/* .background{
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(var(--color-02) ,var(--color-01));
} */

/* .top{
    height: 15vh;
}

.logo img{
    width: 100px;
    margin: 10px 0px 0 10px;
} */

.middle{
    height: 80vh;
    display: flex;
    flex-direction: column;
   
   
}

.middle h1{
    text-align: center;
    font-weight: 100;
}

.middle h1 span{
    color: rgb(0, 0, 0);
    font-weight: 900;
}

.upload{
    width: 80vw;
    height: 70%;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.placeholder{
    width: calc(80%/4);
    height: 200px;
    margin-bottom: 50px;
    color: black;
    
}



.image-preview{
    border: 2px dashed black;
    background-color: rgba(0, 0, 0, 0.199);  
    height: 200px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;       
    overflow: hidden;
    
}

.error{
    border: 3px solid rgb(206, 0, 0);

}





img{
    max-width: 100%; /* Ensure image doesn't exceed container width */
    max-height: 200px; /* Ensure image doesn't exceed container height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Show full image without cropping */
    border-radius: 10px;
    cursor: pointer;
}



.submit{
    text-align: center;
    margin-top: 100px;
}

.submit button{
    background-color: var(--color-01);
    padding: 10px 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.616);
    color: aliceblue;
    cursor: pointer;
}

.submit button:hover{
    transform: scaleX(105%);
}

.details{
    text-align: center;
}

.title{
    font-size: 1.1rem;
    margin: 5px 0;
    color: aliceblue;
    
}

.size, .dimentions{
    font-size: .8rem;
    
}


.err-message p{
    text-align: center;    
    max-width: 400px;
    height: auto;
    margin: auto;   
    border-radius: 5px;
    color: rgb(255, 255, 255);
    font-size: .9rem;
}

.err-message{
    padding: 10px;
    background-color: red;
    max-width: 400px;
    border-radius: 10px;
    margin: 10px auto;
}

.nodisplay{
    padding:  0;
}


.form-footer{
    
    
    text-align: center;
    margin: 10px;
    height: 30px;
}

.progress-container{
    
    margin-top: 10px;
    
    
}

.progress-bar{
    height: 25px;
    width: 100%;
    background-color: aqua;
}

.progress-text{
    color: black;
}

.message-area{
    margin-top: 10px;
   
}

.action-buttons button{
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.459);
    margin: 40px 5px;
    cursor: pointer;
}

.action-buttons button:hover{
    background-color: rgb(179, 179, 179);

}



  

.back{
    text-align: center;
    margin-top: 100px;
}

.back a{
    text-decoration: none;
    color: black;
}


.footer{
    height: 5vh;    
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Mobile */
@media screen and (max-width: 400px) {

    p{
        font-size: 1rem;
       
    }

    .top{
        height: 5vh;
    }

    .middle{
        height:80vh;
        overflow-y: scroll;
        margin: 0;
    }

    .logo{
       display: flex;
       align-items: center;
       justify-content: center;
    }

    h1{
        font-size: .8rem;
        margin-top: 10px;
    }


   

    .upload{
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 60vh;
        gap: 5px;
        margin-top: 5px;
        
    }

    .placeholder{
        width: 300px;
        display: flex;
        justify-content: space-evenly;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .image-preview{
        width: 150px;
        height: 90px;
    }

    .btn-clear{
        display: none;
    }

    .submit{
        
        margin-top: 60px;
    }

   



   
   

    .logo img{
        margin: 10px 0;
    }

    .back{
       
        margin-top: 10px;
    }

    

    .err-message p{
        font-size: .9rem;
    }
    
}