body {
    background-color: #999;
    color: #e5e7eb;
    margin: 0;
    padding: 1.5rem;
}
input:not([type="checkbox"]):not(#urlInput), button {
    background-color: #2d2d2d;
    color: #e5e7eb;
    border: 2px solid #4b4b4b;
    padding: 0.5rem;
    border-radius: 0.375rem;
    height: 2.5rem;
    box-sizing: border-box;
}
input:focus, select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: none;
}
button:hover {
    background-color: #3b3b3b;
}
#uploadBtn:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    text-shadow: none;
}
#preview {
    border: 1px solid #555;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    cursor: pointer;
}
#imageInfo {
    color: #F23 !important;
    text-align: center !important;
    font-family: Verdana !important;
    font-size: 13px !important;
    margin-top: 0.5rem !important;
    visibility: visible !important;
    display: block !important;
}
#dropHint {
    color: #FF2F33 !important;
    text-align: center !important;
    font-family: Verdana !important;
    font-size: 13px !important;
    margin-top: 0.5rem !important;
    display: none !important;
}
#preview[src="idle.png"] ~ #dropHint {
    display: block !important;
}
#fileInput {
    border: none;
    padding: 0;
    height: 2.5rem;
    box-sizing: border-box;
    width: 100%;
    display: none;
}
#statusBar a {
    text-decoration: none;
    color: #000000;
}
#statusBar a:visited {
    color: #000000;
}
#statusBar a:hover {
    color: #000000;
}
#statusBar.input {
    color: #000000 !important;
}
#statusBar.input[data-url] {
    color: #000000 !important;
}
#statusBar.input[data-url]:hover {
    color: #ffffff !important;
}

.custom_input {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    flex-grow: 1;
}
.input {
    font-size: 15px;
    font-family: Verdana;
    padding: 0.5rem 10px;
    width: 100%;
    height: 2.5rem;
    outline: none;
    background: #CCC2A6;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 0px #000000;
    transition: .3s ease;
    box-sizing: border-box;
}
#urlInput.input {
    padding-left: 30px;
}
#formatSelect.input {
    width: 100px;
}
#fileName.input {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
#fileName.long-file-name {
    text-align: right;
    direction: rtl;
}
#statusBar.input, #fileName.input {
    padding: 0 10px !important;
    background: #CCC2A6 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: 0px 1px 3px 0px #000000 !important;
    font-family: Verdana !important;
    font-size: 15px !important;
    height: 2.5rem !important;
    border-radius: 4px !important;
}
.input:focus {
    background: #EAE0C2;
    border: 1px solid #000000;
    border-radius: 4px;
}
.input::placeholder {
    color: #9B9B9B;
}
.svg_icon {
    position: absolute;
    left: 10px;
    fill: #000000;
    width: 15px;
    height: 15px;
}
.title {
    text-align: center;
    font-family: "blox2", sans-serif;
    font-size: 4.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #a18102;
    cursor: default;
    animation: flicker 9s infinite;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    animation-timing-function: step-end;
    background-color: #1b102b;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}
.title:hover {
    color: #d4a803;
    text-shadow: 0 0 40px #d4a803;
    animation: none;
}
@keyframes flicker {
    0%, 5%, 10%, 15%, 18%, 22%, 25%, 28%,
    30%, 33%, 35%, 38%, 40%, 43%, 45%, 48%,
    50%, 53%, 55%, 57%, 60%, 63%, 65%, 68%,
    70%, 73%, 75%, 78%, 80%, 83%, 85%, 88%,
    90%, 93%, 95%, 97%, 100% {
        color: #a18102;
        text-shadow: none;
    }
    12%, 42%, 47%, 47%, 55%, 82%, 86%, 47%, 89%, 92%, 96% {
        color: #d4a803;
        text-shadow: 0 0 8px #d4a803;
    }
}
@font-face {
    font-family: "blox2";
    src: url("fonts/blox2.ttf") format("truetype");
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cr-wrapper {
    position: relative;
    padding-left: 31px;
    cursor: pointer;
    font-size: 13px;
    font-family: Verdana;
    color: #e5e7eb;
    user-select: none;
}
.cr-wrapper input {
    position: absolute;
    opacity: 0;
}
.cr-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: #CCC2A6;
    border: 1px solid #000;
    border-radius: 3px;
    transform: translateY(-50%);
}
.cr-wrapper input:checked ~ .cr-input::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 2px;
    width: 11px;
    height: 11px;
    background: #000;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.container {
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.flex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
}
#dropZone {
    border: 2px dashed #4b4b4b;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}
#dropZone.dragover {
    border-color: #60a5fa;
    background-color: #2d3748;
}
/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.lightbox.show {
    display: flex;
    opacity: 1;
}
/* Default Button styles */
.def_Button {
    -moz-box-shadow: 0px 2px 3px 0px #000000;
    -webkit-box-shadow: 0px 2px 3px 0px #000000;
    box-shadow: 0px 2px 3px 0px #000000;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #eae0c2), color-stop(1, #ccc2a6));
    background: -moz-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
    background: -webkit-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
    background: -o-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
    background: -ms-linear-gradient(top, #eae0c2 5%, #ccc2a6 100%);
    background: linear-gradient(to bottom, #eae0c2 5%, #ccc2a6 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eae0c2', endColorstr='#ccc2a6', GradientType=0);
    background-color: #eae0c2;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid #333029;
    display: inline-block;
    cursor: pointer;
    color: #616161;
    font-family: Verdana;
    font-size: 15px;
    font-weight: bold;
    padding: 0.5rem 0;
    text-decoration: none;
    text-shadow: 1px 2px 5px #ffffff;
    width: 100px;
    min-width: 100px;
    text-align: center;
    box-sizing: border-box;
    user-select: none;
}
.def_Button:hover {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ccc2a6), color-stop(1, #eae0c2));
    background: -moz-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
    background: -webkit-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
    background: -o-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
    background: -ms-linear-gradient(top, #ccc2a6 5%, #eae0c2 100%);
    background: linear-gradient(to bottom, #ccc2a6 5%, #eae0c2 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccc2a6', endColorstr='#eae0c2', GradientType=0);
    background-color: #ccc2a6;
}
.def_Button:active {
    position: relative;
    top: 1px;
}