:root {
    --accent: rgb(104, 0, 190);
    --accent-light: rgb(134, 0, 230);
    --accent-bg: rgb(237, 218, 255);
    --accent-bg-light: rgb(243, 230, 255);
    --purple: rgb(197, 126, 255);
    --purple-light: rgb(209, 153, 255);
}

.tweak {
    width: 2rem;
    height: 2rem;
}

.onstitched {
    border-width: 3px;
    border-color: var(--purple);
    background-color: var(--accent-bg);
}

button:enabled {
    border-color: var(--purple);
    background-color: var(--accent-bg);
    border-width: 3px;
    color: black;
}

button:hover:enabled {
    border-color: var(--purple-light);
    background-color: var(--accent-bg-light);
}

.stitched {
    background-image: url("stitch-bg.png");
    background-repeat: repeat;
}

.stitch,
.littlestitch {
    border-radius: 0px;
    height: 3rem;
    image-rendering: pixelated;
    margin: 0px;
    padding: 0px;
}

.littlestitch {
    height: 1rem;
}

#pokemon-button {
    background-color: rgb(255, 100, 100);
    border-color: rgb(200, 0, 0);
    border-width: 3px;
}

#pokemon-button:hover {
    background-color: rgb(255, 150, 150);
    border-color: rgb(255, 0, 0);
    border-width: 3px;
}

#stardew-button {
    background-color: rgb(255, 212, 135);
    border-color: rgb(226, 123, 63);
    border-width: 3px;
    color: black;
}

#stardew-button:hover {
    background-color: rgb(255, 229, 180);
    border-color: rgb(233, 149, 101);
    border-width: 3px;
}

.box {
    border: 3px solid var(--purple);
    padding: 5px;
    border-radius: 10px;
}

span.tweak {
    background-color: white;
}

.row {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.col {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.palette-color-container {
    display: inline-flex;
    background-color: white;
    border-radius: 10px;
    justify-content: center;
    margin-right: 5px;
    margin-bottom: 5px;
}

.color-tile {
    width: 1.5em;
    height: 1.5em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.setting {
    /* border-left: 1px solid black; */
    /* border-radius: 10px; */
    /* padding-left: 5px; */
    line-height: 1rem;
    margin: 10px;
}

input[type="range"] {
    margin-left: 10px;
    margin-right: 10px;
}

.color-key-container {
    text-align: center;
    display: inline-flex;
    align-items: center;
    vertical-align: center;
    padding: 5px;
}

.pattern-key-portrait,
.pattern-key-landscape {
    text-align: center;
    font-size: 30px;
}

.pattern-key-portrait {
    width: 1200px;
    height: 400px;
}

.pattern-key-landscape {
    width: 400px;
    height: 1200px;
}

.pattern-container-portrait,
.pattern-container-landscape {
    display: inline-flex;
}

.pattern-container-portrait {
    width: 1200px;
    height: 1600px;
    flex-direction: column;
}

.pattern-container-landscape {
    width: 1600px;
    height: 1200px;
    flex-direction: row;
}

.loading-pattern-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: white;
    border-radius: 5px;
}

.main-preview {
    width: 90%;
    height: auto;
    border: 1px dashed black;
    border-radius: 10px;
}

.warning {
    padding: 10px;
    border: 1px solid red;
    border-radius: 5px;
    background-color: white;
    color: red;
    width: 60%;
    text-align: left;
}

.spinner-container {
    width: 100%;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner::before {
    content: "";
    display: inline-flex;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border-radius: 50%;
    border: 2px solid var(--accent-bg);
    border-top-color: var(--accent);
    animation: spinner 600ms linear infinite;
}



/* .image-preview {
    width: 100%;
} */

aside {
    max-width: 30vw;
}

.center {
    text-align: center;
}