/* Global CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Nav bar */
.container {
    background-color: rgb(35, 140, 140);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10%;
    background: rgba(0, 0, 0, 0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); 
    position: relative;
}

.logo {
    width: 80px;
    height: auto;
    cursor: pointer;
}

nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 6px 24px;
    font-size: 0.9rem;
}

nav ul li:nth-child(1) a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    border: 5px solid #F4F3F8;
    background-color: #F4F3F8;
    border-radius: 100px;
    padding: 10px 40px; /* Styles for "Translate" link */
    transition: all 0.2s ease;
}

nav ul li:nth-child(2) a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    border: 5px solid #F4EDF2;
    background-color: #F4EDF2;
    border-radius: 100px;
    padding: 10px 40px; /* Styles for "Upload" link */
    transition: all 0.2s ease;
}

nav ul li:nth-child(1) a:hover {
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
    color: #F4F3F8;
}

nav ul li:nth-child(2) a:hover {
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
    color: #F4EDF2;
}

body {
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(104, 189, 189);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Upload Container */
.upload-container {
    width: 30%;
    height: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Header Text */
.header-text {
    align-items: top;
    text-align: center;
    padding: 0px 20px;
    font-size: 1.1rem;
    padding-bottom: 10px;
    padding-top: 10px;
}

/* Drag and Drop Area */
.image-import {
    padding-right: 10px;
}

.upload-container.drag-over {
    border-color: #00e1ff;
    border: 2px dashed;
}

/* Upload Button */
.file-upload {
    background-color: rgb(181, 97, 255);
    border-radius: 8px; 
    padding: 8px 16px; 
    cursor: pointer;
    font-size: 0.9rem; 
    border: none;
    margin-top: 10%;
}

.file-submit {
    background-color: rgb(97, 247, 255);
    border-radius: 8px; 
    padding: 8px 16px; 
    font-size: 0.9rem; 
    margin-top: 10%;
    cursor: pointer;
}

.file-names-container {
    max-height: 150px;
    overflow-y: auto;
    display: flex; /* Use flexbox to center content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center; /* Center-align the text within the paragraphs */
}

/* Upload Folder Label */
.upload-folder {
    padding-top: 10px;
}

#folderUpload {
    cursor: pointer;
}

/* Upload Area */
.upload-area {
    padding-top: 30px;
}

/* File Input */
#fileInput,
#folderInput {
    display: none;
}

/* File Names */
.file-name {
    padding: 0;
    text-align: center;
    font-size: 14px;
    color: #333;
    width: 100%;
    max-height: 150px; /* Set a maximum height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
}

.file-names-container {
    max-height: 150px;
    overflow-y: auto;
    text-align: center;
    padding: 0 20px; /* Adjust the padding to create a bit of space */
}

.file-names-container div {
    position: relative;
    display: inline-block;
}

.file-names-container p:hover {
    background-color: #F4F3F8; /* Highlight the name on hover */
    cursor: pointer;
}

/* Remaining Time */
.remaining-time {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: none;
}

.upload-container.uploaded .remaining-time {
    display: block;
}

.upload-container.uploaded {
    height: auto;
    padding: 10px;
}

.upload-container.uploaded .upload-text {
    display: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    display: none;
    padding: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 70%; /* Adjust the width of the progress bar */
    height: 20px;
    background-color: #ddd;
    margin: 0 auto; /* Center the progress bar horizontally */
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    border-radius: inherit;
    transition: width 0.25s;
}

.folder-label {
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
    margin-top: 10%;
}

.folder-label:hover {
    color: #2c7079;
}
