Main Page/styles.css

/* Varela Round */ @font-face { font-family: 'Varela Round'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/varelaround/v18/w8gdH283Tvk__Lua32TysjIfp8uP.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/*================================================== MAIN PAGE

=
=====================================*/

.mainpage { text-align: center; border-radius: 10px; }

.theme-mainpage-text { color: var(--th-main-page-text, #000); }

.theme-mainpage-special { color: var(--th-main-page-special, #000); }

.mainpage-background { background: var(--th-main-page-background); }

.mainpage-block { position: relative; text-align: center; margin: 5px auto; padding: 5px; font-family: Varela Round; border-radius: 10px; }

.mainpage-category { width: 100%; height: 32px; background: #fceca6; border: 2px solid #d59e10; border-radius: 15px; padding: 0 10px 0 10px; margin: 0 auto; }

.mainpage-categoryimage { display: contents; margin: 0 auto; vertical-align: middle; text-align: center; width: 32px; }

.mainpage-categorytext { display: block; margin: 0 auto; text-align: right; width: 100%; padding: 6px 0 0 0; }

.mainpage-container { display: grid; grid-auto-flow: row dense; gap: 5px 5px; align-content: stretch; justify-items: stretch; }

.mainpage-header { position: relative; text-align: center; margin-top: 20px; background: #e8dec5; color: #503b06; font-family: Varela Round; font-weight: bold; font-size: 2em; border: 2px solid #503b06; border-radius: 10px; }

.mainpage-secondaryheader { background: #fbfeee; border-radius: 2px; margin: 0 0 5px; }

.mainpage-update { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, 250px); grid-gap: 1em; grid-row-gap: 1px; margin: auto; justify-content: center; align-items: center; }

.main-flex-container { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; align-items: center; }

.main-flex-item { flex: 1; margin: 0 auto; display: block; padding: 15px 40px 15px 15px; } .main-img { width: 360px; max-height: 275px; } .main-img img { max-width: 100%; width: 360px; max-height: 275px; height: auto; object-fit: contain; }

@media (max-width: 1500px) { .main-flex-container { display: block; }	.main-img { max-height: none; }	.main-img img { width: 360px; max-height: none; height: auto; } }

@media (min-width: 851px) { .mainpage-container { grid-template-columns: 1fr 1fr; }	.nookipedia-logo { padding: 0; width: 375px; height: 91px; margin: 0 auto; }	.mainpage { width: 100%; } } @media (max-width: 850px) { .nookipedia-logo { padding: 0; height: 89px; width: 280px; margin: 0 auto; }	.mainpage { width: 98%; } }