/* Reset */

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

:root{
    font-family: "Crimson Text", serif;
  color-scheme: light dark;
}

body {

  color: light-dark(#000000, #F0F0C9);
  background-color: light-dark(#F0F0C9, #000000);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  min-width: 700px;
  height: 100%;

  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #E85D75;
  box-shadow: 2px 2px 12px #CD9FCC;
  text-align: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 20px;  
}

/* Nav */
nav {
  background-color: #E85D75;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

nav a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding: 12px;

  min-width: 700px;
  width: 100%;
}

/* Headlines */
h1 { font-size: 2rem;   margin-bottom: 0.5em; }
h2 { font-size: 1.5rem; margin-bottom: 0.45em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
h4 { font-size: 1rem;   margin-bottom: 0.35em; }

h1, h2, h3, h4 {
  color: #000000;
  line-height: 1.2;
}

/* Paragraphs & links */
p {
  margin-bottom: 1.2em;
}

a {
  color: #000000;
  text-decoration: none;
}


/* Footer */
footer {
  background-color: #CD9FCC;
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  color: #4a2a49;
  margin-top: auto;
}

.game-container {
  width: 100%;
  max-width: 100vw;

  min-height: 300px;
  min-width: 700px;
  background-color: #5F5980;
  box-shadow: 2px 2px 12px #CD9FCC;

  padding: 12px;


  border-radius: 18px;

  text-align: center;

  box-sizing: border-box;
}

/* Two-column layout */ 
.game-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4px;
  align-items: stretch;

  /* Add this — gives the grid a concrete height to resolve children against */
  align-content: stretch;
}

.game-sidebar {
  border-radius: 12px;
  padding: 4px;

  display: flex;
  flex-direction: row;
  align-items: center;
  object-fit: contain;
  /* Remove height: 100% — the grid stretch already handles this */
}

/* Right column */
.game-main {
  min-width: 646px;
  border-radius: 12px;
  padding: 4px;
  height: 100%;
  display:block;

}
.game-sidebar img {
  max-height: 300px;
  width: 100%;
  border-radius: 8px;

  min-height: 0;        /* overrides the implicit min-height: auto on flex children */
  object-fit: contain;
  box-shadow: 2px 2px 10px black;
}

.steam-widget-container {
  max-height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;

}

/* Responsive iframe */
.steam-widget {
  width: 100%;
  aspect-ratio: 646 / 190;
  border: none;
  display: block;
  background: transparent;
  color-scheme: light;  

}
.mySlides {
  display:none;
}


/*#Fonts*/
.crimson-text-regular {
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: normal;
}

.crimson-text-semibold {
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-style: normal;
}

.crimson-text-bold {
  font-family: "Crimson Text", serif;
  font-weight: 700;
  font-style: normal;
}

.crimson-text-regular-italic {
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: italic;
}

.crimson-text-semibold-italic {
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-style: italic;
}

.crimson-text-bold-italic {
  font-family: "Crimson Text", serif;
  font-weight: 700;
  font-style: italic;
}

@media (max-width: 992px) {
    .game-layout {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }
  .game-sidebar {
  border-radius: 12px;
  padding: 4px;

  display: flex;
  flex-direction: column;
  align-items: center;
  object-fit: fill;
  /* Remove height: 100% — the grid stretch already handles this */
}
  .game-sidebar img {
  max-height: 300px;
  width: auto;
  border-radius: 8px;

  min-height: 0;        /* overrides the implicit min-height: auto on flex children */
  object-fit: contain;
  box-shadow: 2px 2px 10px black;
}
}



@media (min-width: 1025px) {
    .game-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 12px;
    align-items: stretch;
  }
  .game-container {
  width: 100%;
  max-width: 100vw;

  min-height: 300px;
  min-width: 700px;
  background-color: #5F5980;
  box-shadow: 2px 2px 12px #CD9FCC;

  padding: 12px;

  border-radius: 18px;

  text-align: center;

  box-sizing: border-box;
}
}