body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #03dac6;
}

a:hover {
    color: #bb86fc;
}

h1, h4, p {
    margin: 0 0 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

#site-wrapper {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

#header-logo {
    max-width: 150px;
    margin: 20px auto;
}

#upload-top {
    margin: 30px 0;
}

#uploadTitle {
    font-size: 24px;
    font-weight: 700;
    color: #bb86fc;
}

#dropzone-area {
    border: 2px dashed #03dac6;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 10px;
    margin-top: 20px;
    background-color: #2e2e2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

#dropzone-area.dragover {
    background-color: #3a3a3a;
    border-color: #03dac6;
}

#dropzone-area:hover {
    background-color: #3a3a3a;
    border-color: #03dac6;
}

.customButton {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #121212;
    background-color: #03dac6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.customButton:hover {
    background-color: #028e74;
}

#progressBar {
    background-color: #2e2e2e;
    border: 1px solid #4caf50;
    border-radius: 5px;
    margin-top: 15px;
}

#progress {
    width: 0;
    height: 30px;
    background-color: #03dac6;
    text-align: center;
    line-height: 30px;
    color: #121212;
    font-weight: bold;
    border-radius: 5px;
}

#uploadInfo,
#remainingTime {
    color: #e0e0e0;
    margin-top: 10px;
    font-size: 14px;
    word-wrap: break-word;
}

#message h4 {
    color: #cf6679;
    font-weight: bold;
}

#upload-description {
    margin-top: 30px;
    font-size: 14px;
    color: #9e9e9e;
}

#imgButton img {
    transition: transform 0.3s ease;
    border-radius: 100%;
}

#imgButton img:hover {
    transform: scale(1.1);
}

#loadingSpinner {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.spinner {
    margin: 0 auto 10px auto;
    border: 6px solid #03dac6;
    border-top: 6px solid #2e2e2e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingSpinnerText {
    font-weight: bold;
    color: #e0e0e0;
}

#dropzone-area .upload-text {
    font-size: 20px;
    font-weight: bold;
    color: #03dac6;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

#dropzone-area .upload-text svg {
    width: 62px;
    height: 62px;
    fill: #bb86fc;
}

#dropzone-area .sub-text {
    font-size: 14px;
    color: #9e9e9e;
    margin-top: 5px;
}

#viewModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

#viewModal .modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
}

#viewModal .modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

#viewModal .close {
    color: #e0e0e0;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#viewModal .close:hover {
    color: #bb86fc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#open-file-button {
    background-color: #03dac6;
    border: none;
    color: #121212;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    width: 100%;
    display: block;
    outline: none;
    box-shadow: none;
}

#open-file-button:hover {
    background-color: #028e74;
}

input[type="file"] {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.code-container {
    text-align: left;
    margin: 20px auto;
    padding: 10px;
    background-color: #121212;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.select-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
}

.select-container label {
    font-size: 16px;
    font-weight: 600;
    color: #bb86fc;
    display: block;
    margin-bottom: 10px;
}

.custom-select {
    background-color: #2e2e2e;
    border: 2px solid #03dac6;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-select::after {
    content: "▼";
    font-size: 12px;
    color: #e0e0e0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-select:hover {
    background-color: #424242;
    border-color: #bb86fc;
}

.custom-select:focus {
    background-color: #424242;
    border-color: #bb86fc;
}

.custom-select option {
    background-color: #2e2e2e;
    color: #e0e0e0;
    padding: 10px;
}

.custom-select option:hover {
    background-color: #03dac6;
    color: #121212;
}


/* Media Queries */
@media (max-width: 1200px) {
    #site-wrapper {
        padding: 15px;
        max-width: 90%;
    }
    #header-logo {
        max-width: 120px;
    }
    #uploadTitle {
        font-size: 22px;
    }
    .customButton {
        font-size: 14px;
        padding: 10px 15px;
    }
    #progress {
        height: 25px;
        font-size: 12px;
    }
    #uploadInfo,
    #remainingTime {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    #site-wrapper {
        padding: 15px;
        max-width: 85%;
    }
    #header-logo {
        max-width: 100px;
    }
    #uploadTitle {
        font-size: 20px;
    }
    .customButton {
        font-size: 14px;
        padding: 12px 18px;
    }
    #progress {
        height: 20px;
        font-size: 11px;
    }
    #uploadInfo,
    #remainingTime {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    #site-wrapper {
        padding: 10px;
        max-width: 100%;
    }
    #header-logo {
        max-width: 80px;
    }
    #uploadTitle {
        font-size: 18px;
    }
    .customButton {
        font-size: 12px;
        padding: 10px 14px;
    }
    #progress {
        height: 18px;
        font-size: 10px;
    }
    #uploadInfo,
    #remainingTime {
        font-size: 10px;
    }
}
