﻿@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

.pixelartFont {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.main-container {
    position: absolute;
    top: 18vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 100%;
}

.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block {
    background-color: transparent;
    border-radius: 20px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Upload Section */
.file-upload {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.dither-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #222222;
    border: 2px dashed #8075e6 !important;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    height: 250px;
    padding: 20px;
    color: white;
}

.uploadIcon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: white;
}

.upload-main-text {
    margin: 5px 0;
    font-size: 16px;
    font-weight: normal;
    text-transform: none;
}

.upload-sub-text, 
.file-label small {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

.highlight-browse {
    color: #8075e6;
    font-weight: bold;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Controls */
.controls {
    background-color: transparent;
    border: 1px solid #454545;
    border-radius: 20px;
    padding: 20px;
    text-align: left;
}

/* Canvas */
#canvasContainer {
    margin-top: 20px;
    text-align: center;
}

#ditherCanvas {
    max-width: 80%;
    border-radius: 20px;
    background-color: #303030;
    border: 1px solid #454545;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.25);
}

/* File Info */
.file-info {
    border: 1px solid #454545;
    border-radius: 20px;
    padding: 1rem;
    font-size: 14px;
    color: white;
}

/* Buttons */
#buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: normal;
    background-color: #8075e6;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 150px;
}

#buttons button:hover:not(:disabled) {
    background-color: #6c5ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        position: static;
        transform: none;
        margin: 20px auto;
        width: 95%;
    }

    .file-label {
        height: 200px;
    }

    #buttons.ditherButtons button {
        width: 100%;
    }

    #buttons.ditherButtons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch;
    }
}

/* Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #444;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8075e6;
    cursor: pointer;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8075e6;
    cursor: pointer;
    border: none;
}