html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}






.placeholderCat {
    transition: filter 0.2s, transform 0.2s;
}

.placeholderCat.spinning {
    animation: spin 1s linear infinite;
    filter: none;
}

.placeholderCat.redflash {
    animation: redflash 1s steps(2, end) infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes redflash {
    0%, 100% {
        filter: drop-shadow(0 0 0 red) brightness(1) saturate(2) sepia(1) hue-rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 0 darkred) brightness(0.7) saturate(2) sepia(1) hue-rotate(0deg);
    }
}
h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: darkslategrey;
    text-align: center;
    font-size: 50pt;
    font-weight: 500;
    padding-top: 20px;
    padding-bottom: 20px;
}
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    padding: 10px;
    background-color: blue;
}
/* Tablet */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: auto auto auto;
    }
    img {
        width: 180px;
        height: 180px;
    }
    h1 {
        font-size: 36pt;
    }
}
/* Mobile */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: auto;
    }
    img {
        width: 100px;
        height: 100px;
    }
    h1 {
        font-size: 24pt;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    #themeToggleArea {
        margin-top: 10px;
    }
}
.grid-container > div {
    background-color: lightblue;
    border: 1px solid black;
    padding: 10px;
}
img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
    border: 3px solid blue;
    transition: border-color 0.2s;
}

img.red-outline {
    border-color: red !important;
}
body.dark-mode {
    background-color: #181818;
    color: #f0f0f0;
}

body.dark-mode .grid-container {
    background-color: #222;
}

body.dark-mode .grid-container > div {
    background-color: #333;
    border-color: #555;
}

body.dark-mode h1 {
    color: #e0e0e0;
}