:root {
  --bg-page: #121418;
  --bg-content: rgba(30, 34, 41, 0.75);
  --bg-card: rgba(39, 44, 53, 0.25);
  --bg-card-header: rgba(0, 0, 0, 0.5);
  --text-main: #d1d5db;
  --text-heading: #fff;
  --text-muted: #8a919e;
  --color-link: #6cf;
  --color-link-hover: #9df;
  --border-color: #3a414e;
  --border-radius: 6px;
  --max-page-width: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Roboto, sans-serif;
  background: var(--bg-page) url("https://thelazycatscorner.xyz/wp-content/uploads/bg.webp") 0px -300px/cover fixed;
  color: var(--text-main);
}

a {color: var(--color-link); text-decoration: none; transition: color 0.15s;}
a:hover {color: var(--color-link-hover);}

ul {list-style: none;}

hr {
    width: 80% !important;
    margin: 2rem auto !important;
}

main.wp-block-group {
  max-width: var(--max-page-width);
  margin: 25px auto;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  min-height: 100vh;
}

.post {
    color: var(--text-main);
}
.post section {
	background: var(--bg-card);
    padding: 25px 25px 5px 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.post ul,
.post ol {
    list-style: auto;
    padding-inline-start: 1rem;
    margin-top: 0;
	margin-bottom: 5px;
}
.post h2 {
	color: white;
}
.post h3 {
	margin-top: 2rem !important;
}
.post p {
margin-top: 0;
margin-bottom: 5px;
}
.post figure {
    place-self: center;
    text-align: center;
    margin: 1rem auto;
}
.post img {
    width: 100% !important;
    height: auto;
    max-height: 90vh;
    border-radius: 3px;
}
img[alt~="emote"] {
    width: 2.5rem !important;
    vertical-align: middle !important;
    margin: 0 3px;
}

#welcome {
  text-align: center;
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

section.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  align-items: flex-start;
}

section.is-layout-flex > .group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 15px);
}

#news, #social { flex-basis: calc(35% - 15px); }
#about, #events { flex-basis: calc(63% - 15px); }

section.is-layout-flex > .group .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

section.is-layout-flex > .group .wp-block-heading {
  background: var(--bg-card-header);
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-weight: bold;
  color: var(--text-heading);
  margin: 0 !important;
}

section.is-layout-flex > .group .wp-block-group__inner-container > *:not(.wp-block-heading) {
  padding: 0 15px;
}

section.is-layout-flex > .group .wp-block-group__inner-container > *:nth-child(2) {
  margin-top: 15px;
}

section.is-layout-flex > .group .wp-block-group__inner-container > *:last-child {
  margin-bottom: 15px;
}

.wp-block-post-title {
    text-align: center;
}
.wp-block-post-date {
    font-size: 0.8rem;
    margin: 0;
}

.wp-block-latest-posts li, .wp-block-latest-posts a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.wp-block-latest-posts li {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  justify-content: center;
}

.list li {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 5px;
  font-size: 0.8rem;
}

.list a { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.list img { 
  image-rendering: pixelated; 
  width: 105px; 
  height: auto; 
}

.list-about li { 
  width: 140px; 
  display: flex; 
  padding: 0;
  background: none;
}

.list-about a { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 10px;
  border-radius: var(--border-radius);
  color: var(--text-main);
  transition: all 0.2s ease-in-out;
}

.list-about a:hover { 
  background: rgba(102, 204, 255, 0.15); 
  border-color: var(--color-link); 
  color: var(--color-link-hover);
  transform: translateY(-2px); 
}

.icon-stack {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 8px;
  overflow: hidden; 
}

.icon-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: filter 0.2s ease-in-out;
}

.list-about a .tint-on-hover {
  filter: brightness(0.6) sepia(1) hue-rotate(180deg) saturate(400%) brightness(1.3);
}

.list-about a:hover .tint-on-hover {
  filter: brightness(0.7) sepia(1) hue-rotate(180deg) saturate(400%) brightness(1.4);
}

.base-frame {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease-in-out;
}

.list a:hover .base-frame { 
  opacity: 1; 
  visibility: visible; 
}

@media (max-width: 950px) {
  main.wp-block-group {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 768px) {
  section.is-layout-flex > .group { 
    flex: 1 1 100%; 
  }
  
  #news, #social, #about, #events { 
    flex-basis: 100%; 
  }
}