* {
    margin: 0;
    padding: 0;
    image-rendering: pixelated;
}

body {
    margin: 28px;
    overflow-y: scroll;
    /* background: red; */
    /* always reserve space for the scrollbar */

}

.black {
    background-color: black;
    color: white;
    transition: filter 0.3s ease;
}

#images-container {
    /* margin: 0 auto;
    max-width: 1024px;
    width: 100%; */
}

img {
    margin-right: -1px;
    margin-top: -1px;
    /* mix-blend-mode: multiply; */
    /* filter: blur(3px); */
}

.black img {
    filter: invert();
}

#kilobytes {
    position: fixed;
    top: 28px;
    left: 28px;
    margin-bottom: 16px;
    font-family: monospace;
}

/* inverted mode */
body.black #kilobytes {
    color: white;
}

/* over-limit state */
#kilobytes.over-limit {
    color: red;
}

/* over-limit + inverted (optional custom red) */
body.black #kilobytes.over-limit {
    color: red;
}


/* The switch - the box around the slider */
.switch {
    position: fixed;
    top: 28px;
    right: 28px;
    display: inline-block;
    width: 28px;
    height: 19px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: #ccc; */
    border: 1px solid black;
    /* -webkit-transition: .4s;
    transition: .4s; */
}

.slider:before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border: 1px solid black;
    /* -webkit-transition: .4s;
    transition: .4s; */
}

input:checked+.slider {
    background-color: #000000;
}

input:focus+.slider {
    box-shadow: 0 0 1px #000000;
}

input:checked+.slider:before {
    -webkit-transform: translateX(8px);
    -ms-transform: translateX(8px);
    transform: translateX(8px);
}


.ui {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

#limit-message {
    color: red;
    /* font-size: 1.1rem; */
    font-family: monospace;
    position: fixed;
    top: 40px;
}

.hidden {
    display: none;
}