html, body {
    margin: 0;
    padding: 0;
    background: #404040;
    /* text-align: center; */
    color: white;
    font-family: sans-serif;
}

#container {
    width: 80%;
    margin-left: 10%;
}

.section {
    margin-top: 10px;
}

.line {
    /*width: 100%;*/
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 5px;
}

.line.resize {
    display: grid;
    grid-template-columns: 60px 70px auto auto;
    align-items: center;
    gap: 5px;
}


.line>* {
    margin-right: 5px;
}

.header {
    font-size: 24px;
    font-weight: bold;
}

.half {
    width: 50%;
}

.folderChoose {
    cursor: pointer;
}

.outputImg {
    border: 1px solid gray;
    padding: 10px;
    background: white;
    image-rendering: pixelated;
    cursor: zoom-in;
}

.outputImg.zoomed {
    cursor: zoom-out;
}

.hidden {
    display: none !important;
}

.opaque {
    opacity: 0;
}

.output {
    text-align: -webkit-auto;
    align-items: start;
}

a, a:visited {
    color: white;
    text-decoration: underline;
}

#palette {
    width: 100%;
    display: flex;
}

.paletteCol {
    height: 5px;
    flex-grow: 1;
}


input[type=text],
input[type=number] {
    padding-left: 3px;
}

button:active,
button:focus,
input:active,
input:focus,
input[type=range]:focus {
    outline: 0
}

input[type='range'] {
    cursor: pointer;
    background: none;
}

input[type='range'],
input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type='range']::-webkit-slider-runnable-track {
    width: 8%;
    height: 8.4px;
    background: white;
    line-height: 30px;
    border-radius: 50px;
}

input[type='range']::-webkit-slider-thumb {
    position: relative;
    border: 2px solid #bbbbbb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #bbbbbb;
    margin-top: -7px;
    line-height: 30px;
    box-shadow: 0 0 3px -1px;
}

input[type='range']::-webkit-slider-thumb::before {
    position: absolute;
    content: '';
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    background: white;
    line-height: 36px;
    border-radius: 50px;
}

input[type=range] {
    height: 8.4px;
}

input[type=range]::-moz-range-thumb {
    position: relative;
    border: 2px solid #bbbbbb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: inherit;
    margin-top: -7px;
    line-height: 36px;
}

.inputLabel {
    border: 1px solid white;
    border-radius: 4px;

    padding-top: 2px;
    text-align: center;

    background-color: white;
    color: black;
}

.loadingBar {
    height: 20px;
    border: 1px solid rgb(194 194 194);
    width: 100%;
    background-color: #3c3c3c;
}

.barProgress {
    height: inherit;
    background-color: rgb(194 194 194);
    transition: width .1s ease;
}

/* goroxels upload */
.upload-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.upload-prompt img {
    max-width: 100px;
    max-height: 100px;
    filter: brightness(0.8) contrast(1.2);
}

.template-names{
    width: 20px;
}

select {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 4px;
  border-radius: 4px;
}

select option {
  background-color: #333;
  color: #fff;
}

select:focus {
  outline: none;
  border-color: #007bff;
}

.template-name {
    width: 200px;
    padding: 8px 12px;
    background: #3d3d3d;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
}

.template-name:focus {
    outline: none;
    border-color: #4CAF50;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.pattern-checkbox {
    margin: 0;
}

.checkbox-container label {
    font-size: 14px;
    color: #e0e0e0;
    cursor: pointer;
}

.confirm-upload {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.confirm-upload:hover {
    background: #45a049;
}

.uploadedUrl {
    color: rgb(0, 190, 0);
    cursor: pointer;
}

.aspectButton {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    transition: all 0.2s ease;
}

.aspectButton.active {
    background-color: #9c9c9c;
    border-color: #9c9c9c;
    box-shadow: 0 0 5px rgb(255 255 255 / 50%);
}
