/* General Styling */
body {
    font-family: "Space Mono", monospace;
    background: #121212;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Info Box */
#info-box {
    max-width: 700px;
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Progress Bar */
#progress-bar-container {
    width: 100%;
    background: #333;
    height: 8px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#progress-bar {
    height: 100%;
    width: 0;
    background: #4caf50;
    transition: width 0.3s ease-in-out;
}

/* Drop Zone */
#drop-zone {
    border: 2px dashed #888;
    padding: 100px;
    border-radius: 10px;
    background: #1e1e1e;
    margin: 30px auto;
    max-width: 800px;
    font-size: 1.25rem;
    transition: all 0.3s ease-in-out;
    color: #aaa;
}

#drop-zone:hover {
    background: #2c2c2c;
    cursor: pointer;
}

#drop-zone.dragover {
    border-color: #aaa;
    background: #333;
}

/* Buttons */
button {
    margin: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #121212;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

button:hover {
    background: #121212;
    color: #ffffff;
    border: 2px solid #ffffff;
}

button:active {
    background: #ffffff;
    color: #121212;
}

/* Active Button */
button.active {
    background: #4caf50;
    color: #ffffff;
    border: 2px solid #4caf50;
    cursor: default;
}

button:not(.active):hover {
    background: #121212;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* Buttons Container */
#buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Responsive Layout for Buttons */
@media (max-width: 768px) {
    #buttons-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Custom Input Box */
#custom-dimension-input-wrapper {
    display: none; /* Hidden by default */
    margin-top: 10px;
    text-align: center;
}

#custom-dimension-input {
    width: 100px;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid #aaa;
    background: #1e1e1e;
    color: #ffffff;
    font-family: "Space Mono", monospace;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

#custom-dimension-input:focus {
    border-color: #4caf50;
    outline: none;
}

/* File Previews */
#preview {
    margin-top: 20px;
    max-width: 800px;
    text-align: left;
    font-size: 0.9rem;
}

.file-link {
    color: #4caf50;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* Match Download Buttons to Regular Buttons */
.download-all {
    margin: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #121212;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.download-all:hover {
    background: #121212;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.download-all:active {
    background: #ffffff;
    color: #121212;
}
