body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0f7fa, #0377a6);
    color: #333;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between; /* Default spacing for content */
    align-items: center; /* Aligns items vertically */
    padding: 0 20px; /* Adds horizontal spacing inside the header */
    background-color: #2c3e50;
    color: white;
    height: 76px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative; /* Required for centering the title */
}
.progress-bar-container {
    width: 80%;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin: 20px auto;
    position: relative;
    height: 20px;
  }
  
  .progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 25px;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.3s ease;
  }
  .help-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px; /* Adjust spacing from the right */
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
  }
  
  .help-icon:hover {
    color: #007bff;
  }
  

.logo {
    height: 70px; /* Adjust logo height as needed */
    cursor: pointer;
}

.navbar h3 {
    margin: 0;
    position: absolute; /* Centers the title */
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.upload-section {
    padding: 20px;
    margin: 20px;
    background: #9aadb5;;
    border-color: #9aadb5;
    border-style: solid;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.title{    
        color: red;  
        display: inline;
        font-weight: bold;  
}

.drop-zone {
    border: 3px dashed #007bff;
    border-radius: 5px;
    width: 196px;
    height: 395px;
    margin-top: 21px !important;
    padding: 30px;
    cursor: pointer;
    background-color: #f1f8ff;
    transition: background-color 0.3s;
    align-content: center;
}

.drop-zone.dragover {
    background-color: #d0e7ff;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.htext{
    color: #2c3e50;
}
.logo {
    height: 50px; /* Adjust height as needed */
    cursor: pointer;
}
.thumbnail {
    width: 250px;
    height: 435px;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail img,
.thumbnail iframe {
    max-width: 100%;
    height: 100%;
    border-radius: 5px;
}


.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer {
    margin-top: 40px;
    padding: 10px;
    background-color: #2c3e50;;
    color: white;
    font-size: 14px;
    text-align: center;
}
.upload-section {
    display: flex;
    flex-direction: column; /* Allows content to flow vertically */
    align-items: center;
}

.upload-section form {
    display: flex; /* Aligns thumbnails and drop-zone horizontally */
    justify-content: center;
    gap: 20px; /* Adds space between thumbnails and drop zone */
    flex-wrap: wrap; /* Ensures responsiveness for smaller screens */
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

main {
    flex: 1; /* Ensures the main content expands to fill the remaining space */
}

.footer {
    margin-top: auto;
}
.upload-section1 form {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    position: relative; /* Enables absolute positioning of the button */
}



#merge-btn {
    position: absolute;
    bottom: 90px; /* Adjust to place the button below the form */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#merge-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
  }
  
  .modal-content h2 {
    margin-bottom: 15px;
  }
  
  .modal-content label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
  }
  
  .modal-content input {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
  
  .modal-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .modal-content button:hover {
    background-color: #0056b3;
  }
  .modal-header{
    background-color: #161f28;
    height: 43px;
    width: 335px;
    margin-top: -17px;
    margin-left: -17px;
    border-top-right-radius: 7px;
    border-top-left-radius: 7px;
    color: white;
    align-content: space-evenly;
  }
#user-form{
    padding-top: inherit;
}
/* Scoped Alert Modal styling */
.custom-alert-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Ensure it's above other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .custom-alert-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .custom-alert-modal-content h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .custom-alert-modal-content p {
    margin-bottom: 20px;
  }
  
  .custom-alert-modal-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .custom-alert-modal-content button:hover {
    background-color: #0056b3;
  }
  