/* Fonts einbinden */
@import "/assets/fonts/fonts.css";


:root {
  --game-min-width: 260px;
  --min-width: 260px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.imgbox {
  display: grid;
  /* Mindestbreite 300px, füllt Rest mit 1fr auf */
  min-width: var(--min-width);
  grid-template-columns: repeat(auto-fit, minmax(var(--game-min-width), 1fr));
  margin: 0 auto;
  padding: 0px;
  /* Dein gewünschter Mindestrand von 15% links und rechts */
  box-sizing: border-box; /* Wichtig, damit das Padding die Breite nicht sprengt */
}

.gamebox {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.gamebox img {
  width: 100%;       /* Nutzt die volle Breite der gamebox */
  height: auto;      /* WICHTIG: Verhindert das Abschneiden oben/unten */
  display: block;
  object-fit: contain; /* Sorgt dafür, dass das Bild komplett reinpasst */
}

.game {
  border-radius: 8px;
  box-shadow: 8px 8px 10px hsla(0,0%,0%,0.7);
}

.xgamebox {
  margin: 15px;
}

.gametitle {
  margin: 0 auto;
  max-width: 400px;
  font-family: 'Sixtyfour';
  font-size: 2.1rem;
  padding: 20px 0 10px 0;
  text-align: center;
  text-shadow: 8px 8px 10px hsla(0,0%,0%,0.8);
  color: white;
}

.subtitle {
  margin: 0 auto;
  max-width: 400px;
  font-family: 'Inter';
  font-size: 1.2rem;
  padding: 0 0 10px 0;
  text-align: center;
  color: white;
}

/* Allgemeine Formatierungen */
body,html {
  padding: 0;
  font-size: 16px;
  color: black;
  font-family: "Inter";
}

.back {
    background-image: url('/assets/img/background.jpg');
    background-repeat: no-repeat;
    background-position: left top;
    background-attachment: fixed;
    background-size: cover;
  }

.ilinks {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  text-shadow: 8px 8px 10px hsla(0,0%,0%,0.8);
  
  color: white;
  margin: 10px;
  padding: 10px;
  min-width: var(--min-width)
}

/* Formatierung Verlinkungen */
a:link, a:visited {
  text-decoration: none;
  color: white;
}

/* Titel der Seite */

.titlebox {
  width: 70%;
  margin: auto;
}

#title {
  font-family: 'Fredericka the Great';
  text-align: center;
  font-size: 4rem;
  font-size: clamp(4rem, 16rem, 20vw);
  text-shadow: 8px 8px 10px hsla(0,0%,0%,0.8);
}

.info {
  text-align: right;
  padding: 8px;
  border-radius: 10px;
  width: 100%;
}

.info a{
  font-family: 'Arya';
  font-size: 1.3rem;
  color: white;
  text-shadow: 4px 4px 4px black;
}
