body {
  background-color: white;
  color: black;
  font-family: serif;
  height: 100%;
  background-color: #367336;
  background-image: url('/gifbackground.gif'), url('/images.steamusercontent2.jpg');
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-position: left top, center;
  background-attachment: scroll, fixed;
  color: wheat;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.header,
.subtitle {
  text-align: center;
}

.header {
  padding-top: 24px;
}

.language-switch {
  position: fixed;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.language-switch a {
  color: inherit;
}

.language-switch [aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

.layout {
  display: flex;
  align-items: flex-start;
}

.layout > * {
  min-width: 0;
  box-sizing: border-box;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

main {
  flex: 0 0 65%;
  padding: 0 16px;
  overflow-wrap: anywhere;
}

.left-sidebar,
.right-sidebar {
  flex: 0 0 17.5%;
}

main :is(img, video, iframe) {
  max-width: 100%;
  box-sizing: border-box;
}

main pre {
  overflow-x: auto;
}

main section h2 {
  text-align: center;
}

.tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tabs > label {
  padding: 8px 16px;
  border: 1px solid;
  cursor: pointer;
}

.tabs > input:checked + label {
  background: wheat;
  color: #367336;
  text-shadow: none;
}

.tabs > input:focus-visible + label {
  outline: 2px solid;
  outline-offset: 2px;
}

.tab-panel {
  display: none;
  width: 100%;
}

.tabs:has(#tab-games:checked) + .layout #games,
.tabs:has(#tab-blog:checked) + .layout #blog,
.tabs:has(#tab-photos:checked) + .layout #photos,
.tabs:has(#tab-interesting:checked) + .layout #interesting,
#interesting:has(#tab-interesting-games:checked) #interesting-games,
#interesting:has(#tab-interesting-movies:checked) #interesting-movies,
#interesting:has(#tab-interesting-youtube:checked) #interesting-youtube,
#interesting:has(#tab-interesting-books:checked) #interesting-books {
  display: block;
}

.blog-post {
  position: relative;
  margin: 56px 0 24px;
  padding: 16px;
  border: 5px solid black;
  background: white;
  color: black;
  text-shadow: none;
  line-height: 1.5;
}

.blog-post time {
  position: absolute;
  bottom: 100%;
  left: -5px;
  padding: 6px 12px;
  border: 5px solid black;
  background: white;
  font-weight: 700;
  white-space: nowrap;
}

.blog-post p {
  margin: 0 0 16px;
}

.blog-post p:last-child {
  margin-bottom: 0;
}

.demo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 16px);
  font-size: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  text-transform: uppercase;
}

.demo-title span {
  min-width: 0;
}

.demo-title img {
  flex-shrink: 0;
  max-width: 10%;
  height: auto;
}

.demo-link {
  color: inherit;
  font-weight: 700;
}

.steam-widget {
  display: block;
  margin: 0 auto 24px;
  border: 0;
}

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

.games-list iframe {
  min-width: 0;
  height: 175px;
  border: 0;
}

@media (max-width: 1000px) {
  .games-list iframe {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 600px) {
  .games-list iframe {
    flex-basis: 100%;
  }
}

.channel-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border: 5px solid black;
  background: #367336;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.channel-card img {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.channel-card > div {
  flex: 1;
  min-width: 0;
}

.channel-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.channel-card p {
  margin: 0;
  line-height: 1.4;
}

.channel-card:hover,
.channel-card:focus-visible {
  outline: 2px solid wheat;
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .channel-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 600px) {
  .channel-card {
    flex-basis: 100%;
  }
}

.shelves {
  border: 5px solid black;
  background: #68452c;
}

.movie-shelves {
  background: #354653;
}

.shelf {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px 16px 0;
}

.shelf + .shelf {
  border-top: 5px solid black;
}

.shelf a {
  display: flex;
  justify-content: center;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.shelf img {
  display: block;
  width: auto;
  height: auto;
  max-height: 220px;
  transform-origin: bottom center;
  transition: transform 0.2s;
}

.shelf a:hover img,
.shelf a:focus-visible img {
  transform: scale(1.06);
  animation: shelf-shake 0.4s;
}

@keyframes shelf-shake {
  0%, 100% { transform: scale(1.06) rotate(0); }
  25%, 75% { transform: scale(1.06) rotate(-2deg); }
  50% { transform: scale(1.06) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shelf img {
    transition: none;
  }

  .shelf a:hover img,
  .shelf a:focus-visible img {
    animation: none;
  }
}

.recommendation-title {
  margin: 20px 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.recommendation-title a {
  color: inherit;
}

.game-covers {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

.game-covers a {
  flex: 0 1 calc((100% - 32px) / 3);
  min-width: 0;
  max-width: 320px;
  cursor: pointer;
  transition: transform 0.15s;
}

.game-covers a:hover,
.game-covers a:focus-visible {
  transform: scale(1.04);
}

.game-covers img {
  display: block;
  width: 100%;
  height: auto;
}

aside iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 315 / 560;
  border: 0;
}

.shorts-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.shorts-controls button {
  text-shadow: none;
}

footer {
  padding: 24px 0;
  text-align: center;
}

footer a {
  color: inherit;
}


.fox {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 300px;
  pointer-events: none;
  border: 5px solid black;
  z-index: -1;
}
