/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #00b9e4;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: min(90vw, 2400px);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: #1abc9c; /* teal */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background-color: rgba(31, 31, 31, 0.8);
  text-align: center;
}
header img {
  width: 120px;
  height: auto;
}
header h1 {
  font-weight: 600;
  font-size: 2rem;
  color: #1abc9c; /* main teal for the site title */
}

/* Main content */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

/* Card styling */
.card {
  background-color: rgba(31, 31, 31, 0.8); /* semi-transparent */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #16a085; /* slightly different teal for section headers */
}
.card ul {
  list-style: none; /* remove bullets */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Strong highlights */
strong {
  color: #3498db; /* blue accent */
}

/* Schedule */
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.matches h3 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #3498db; /* blue for match headers */
}
.matches ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Map Gallery */
.map-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.map-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
  cursor: pointer;
  background-color: #1a1a1a;
  /*background-color: rgba(26, 26, 26, 0.8);*/
  transition: transform 0.3s, box-shadow 0.3s;
}
.map-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.map-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3); /* teal shadow */
}
.map-gallery figure figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

/* Prizes */
.card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Additional section header colors for variety */
header h2 {
  color: #1abc9c; /* teal */
}
main h2 {
  color: #16a085; /* slightly darker teal */
}
.button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
footer {
  background-color: rgba(31, 31, 31, 0.8);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

footer h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #16a085; /* same teal as section headers */
}

footer .sponsors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

footer .sponsors img {
  max-height: 60px;
  transition: transform 0.3s, box-shadow 0.3s;
}

footer .sponsors img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(26, 188, 156, 0.3); /* teal glow */
}

footer .footer-note {
  font-size: 0.85rem;
  color: #aaa;
}

::selection,
::-moz-selection {
  background: #000;
}

/* Game-specific backgrounds */
body.bg-cs2 {
  background-color: #29377e;
  background-image: url('../img/bg_cs2.png');
}

body.bg-lol {
  background-image: url('../img/bg_lol.png');
}

body.bg-mtg {
  background-color: #234e52;
  background-image: url('../img/bg_mtg.svg');
}

body.bg-ql {
  background-color: #00b9e4;
  background-image: url('../img/bg_ql.png');
}
