html {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    background-color: beige;
    width: fit-content(0);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
}

div {
    width: 100%;
    margin: 0;
    padding: 0 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
}

div.footer {
    margin: 1.6em 0;
}

#canvasContainer {
    width: min-content;
    padding: 0;
}

canvas {
    background-color: black;
}

div.radio-group, div.slider, div.checkbox-group {
    width: 100%;
    padding: 0;
    margin: 0.4em 0;
    gap: 0.4em;
    font-size: small;
}

input[type=range] {
    width: 75%;
    margin: 0;
}

div.slider>label {
    width: 8%;
    font-size: small;
    text-align: right;
}

div.gifSaveContainer {
    width: 100%;
    padding: 1em;
}

div.overlay {
    position: fixed;
    bottom: 0;
    width: max-content;
    height: 2em;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5em;
    pointer-events: none;
    transform: translateY(0);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease, background-color 0.5s ease;
    z-index: 100;
}

div.overlay.active {
    /* せり出すアニメーション */
    transform: translateY(-50%);
    opacity: 1;
}

div.overlay.active.copied {
    background-color: rgba(0, 216, 255, 0.5);
}

div.overlay.active.pasted {
    background-color: rgba(64, 255, 0, 0.5);
}

div.overlay.active.error {
    background-color: rgba(255, 16, 16, 0.5);
}