* {
    box-sizing: border-box;
}

body {
    padding: 30px;
    background-color: #f2f2f2;
    max-width: 1200px;
    margin: auto;
}

#bmp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
}

#bmp-container * {
    transition: all 0.5s ease-in-out;
}

.bmp-editor {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 604px;
    border-radius: 5px;
    border: 2px solid #bbb;
    overflow: hidden;
    background-color: #eee;
    height: fit-content;
}

.loading .bmp-editor {
    animation: loading-animation 2s infinite;
    height: 600px;
    cursor: wait;
}

.loading .bmp-preview > .image-wrapper {
    animation: loading-animation 2s infinite;
    aspect-ratio: 1;
    border-radius: 5px;
    margin: auto;
    cursor: wait;
    border: 2px solid #bbb;
}

.loading .bmp-preview > div > * {
    display: none;
}

@keyframes loading-animation {
    0% {
        background-color: #ccc;
    }
    50% {
        background-color: #eee;
    }
    100% {
        background-color: #ccc;
    }
}

.bmp-editor input {
    width: 50px;
    height: 30px;
    border: none;
    background-color: white;
    text-align: center;
    font-size: 20px;
    font-family: monospace;
    text-transform: uppercase;
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
}

.bmp-editor input:focus {
    outline: none;
}

.bmp-editor input:disabled {
    background-color: #eee;
}

.bmp-preview a {
    display: block;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
    color: #777;
    margin: auto;
    margin-top: 10px;
    cursor: pointer;
    font-variant: all-small-caps;
    width: fit-content;
}

.bmp-preview a:hover {
    color: #333;
}

.bmp-preview img {
    display: block;
    margin: auto;
    height: auto;
    image-rendering: pixelated;
    border: 2px solid #bbb;
    width: 100%;
}

.color-picker {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.color-picker input {
    height: 50px;
    width: 50px;
    cursor: pointer;
}

.color-picker > .color {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 60px;
}

.color-picker > .color > .color-label {
    font-variant: all-small-caps;
    color: #777;
    font-size: 20px;
    text-shadow: white -1px 1px;
}

.color-picker > .color > .color-value {
    font-family: monospace;
    font-size: 30px;
    color: #333;
}

footer {
    text-align: center;
    text-shadow: white -1px 1px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #777;
    margin-top: 50px;
}