/* Style.css*/

    /* Photo by <a href="https://unsplash.com/@fakurian?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Milad Fakurian</a> on <a href="https://unsplash.com/photos/blue-and-green-peacock-feather-58Z17lnVS4U?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
   */

body{
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #EDEDF4;
}
.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: #EDEDF4;
}
.navbar-brand{
    font-size: 24px;
    font-weight: 500;
}

.navbar ul{
    font-weight: 450;
    font-size: 20px;
}

.nav-item a {
    position: relative;
}

.nav-item a::after {
    content: ''; 
    width: 0; 
    height: 1px; 
    background-color: black;
    position: absolute;
    bottom: -4px;
    left: 10px; 
    transition: width 0.4s ease; /* Smooth transition for the line */
}

/* final width the line should be at */
.nav-item a:hover::after,
.nav-item a.active::after {
    width: 90%; 
}

.nav-item:hover {
    transform: scale(1.05); 
    transition: transform 0.3s ease;
}

h1{
    font-size: 75px;
}

.header {
    color: white;
    margin-top: 70px;
    position: relative;
    padding: 35px;
    text-align: center;
    height: 300px; /* Set a fixed height for the banner */
    overflow: hidden; /* Ensure content is clipped */
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    display: flex; /* Use flexbox for better alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
}

.background {
    position: absolute; /* Position it absolutely within .header */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(images/Banner.png);
    background-size: cover; /* Maintain cover size */
    filter: blur(2px); /* Apply blur effect */
    z-index: 0; /* Send it to the back */
    overflow: hidden;

}

.header h1, h5 {
    position: relative; /* Ensure text is above the blurred background */
    z-index: 1; /* Bring text above the background */
}


.main-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.filedrop{
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #000;
    border-radius: 6px;
    width: 75%; 
    padding: 10px;
}




.filedrop label{
    font-size: 20px;
    padding: 10px;
    gap: 50px;
    color: black;
}

/* Styles for the file path button */
.file-path-button {
    border: 1px dashed black;
    border-radius: 5px;
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
}

.file-path-button:hover {
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    transform: translateY(-2px); /* Lift effect on hover */
}
.file-path-button:active {
    transform: translateY(0); /* Reset on click */
}

/* Hide the default file input */
input[type="file"] {
    display: none; /* Hides the file input */
}



#uploadbutton{
    font-size: 20px;
    background-color: transparent;
    border: 1px dashed black;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
}

#uploadbutton:hover {
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    transform: translateY(-2px); /* Lift effect on hover */
}
#uploadbutton:active {
    transform: translateY(0); /* Reset on click */
}


/* Image formatting for main page*/
.upload-container {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #000;
    border-radius: 6px;
    width: 75%;
    padding: 10px;
    flex-wrap: wrap;
    display: none; /* Adjust based on visibility logic */
    overflow: hidden; /* Prevent overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.grid-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
}
.container{
    grid-column: span 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding-bottom: 40px;
    padding-top: 40px;
    text-wrap: nowrap;
}
p{
    font-size: 25px;
}

#imagePreview img {
    width: 100%; /* Image will scale to the container's width */
    height: auto; /* Maintain aspect ratio */
    max-width: 1000px; /* Maximum width to prevent the image from becoming too large */
    min-width: 350px; /* Minimum width to prevent shrinking below 128px */
    display: block;
    margin: 0 auto; /* Center the image */
}

.sample{
    max-width: 1000px;
    min-width: 350px;
    margin-top: 40px;
    margin: 0 auto;
    width: 100%;
}

.sample-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5px;
    justify-content: center;
    padding: 20px;
}

.sample-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sample-image-container img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sample-image-container p {
    margin: 0;
    font-size: 16px;
}


/* For large screens */
@media (max-width: 2000px) {
    .navbar-nav {
        width: 70%;
        display: flex;
        justify-content: center;
    }
}

/* For medium-sized screens */
@media (max-width: 1590px) {
    .navbar .navbar-link{
        text-wrap: nowrap;
    }
}

/* For tablet-sized screens */
@media (max-width: 1024px) {
    .header {
        height: auto; /* Allow height to adjust for smaller screens */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .header h1 {
        font-size: 40px; /* Adjust font size for smaller screens */
    }

    .header p {
        font-size: 16px; /* Adjust font size for smaller screens */
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium-sized screens */
    }
    #imagePreview img {
        max-width: 800px; /* Resize for smaller screens */
    }
    .container p {
        font-size: 20px; /* Adjust font size for mobile */
        word-wrap: break-word; /* Ensure text wraps properly */
        white-space: normal; /* Allow text to wrap */
        overflow-wrap: break-word; /* Ensure long words break onto the next line */
    }
    
}


/* For mobile screens */
@media (max-width: 750px) {
    .grid-container {
        grid-template-columns: 1fr; /* 1 column for mobile screens */
    }

    .container {
        display: flex; /* Make the container a flexbox */
        flex-direction: column; /* Stack the items vertically */
        width: 100%; /* Ensure the container takes up the full width */
    }

    /* Ensure images fit within the container */
    #imagePreview img {
        max-width: 800px; /* Resize for smaller screens */
    }

    /* Prevent text overflow and ensure wrapping */
    .container p {
        font-size: 20px; /* Adjust font size for mobile */
        word-wrap: break-word; /* Ensure text wraps properly */
        white-space: normal; /* Allow text to wrap */
        overflow-wrap: break-word; /* Ensure long words break onto the next line */
    }

    /* Optional: Make sure the container doesn't exceed screen width */
    .upload-container {
        width: 100%; /* Ensure the container fits within the screen */
        padding: 10px;
    }
    .sample-images {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* For very small screens (like small smartphones) */
@media (max-width: 480px) {
    .header {
        height: auto; /* Allow height to adjust for smaller screens */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .header h1 {
        font-size: 35px; /* Adjust font size for smaller screens */
    }

    .header p {
        font-size: 12px; /* Adjust font size for smaller screens */
    }
    #imagePreview img {
        max-width: 800px; /* Resize for smaller screens */
    }
    .sample-images {
        grid-template-columns: 1fr;
    }
}