body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
}

/* Header */
header {
  background: url('https://s3.eu-west-1.amazonaws.com/storage.quickbutik.com/stores/59880t/files/559-IMG8569.jpeg') center/cover;
  padding: 20px;
  color: white;
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo {
  height: 120px;
}

/* Bildrad på startsidan */
.bildrad {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
}

.bildrad a {
  flex: 1 1 calc(25% - 20px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.bildrad figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  width: 100%;
  height: 100%;
}

.bildrad img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 5 / 3;
  display: block;
  border-radius: 6px;
}

.bildrad figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

/* Tvåkolumnlayout */
.twocolumn {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
}

.leaderboard {
  flex: 1 1 35%;
  background: linear-gradient(to bottom right, #1a3e1f, #216d29);
  color: white;
  box-sizing: border-box;
  padding: 40px 20px;
}

.news {
  flex: 1 1 65%;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  padding: 0px 20px;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
}

.card-left {
  display: flex;
  flex-direction: column;
}

.rank-name {
  font-weight: normal;
  margin-bottom: 4px;
}

.rounds {
  font-size: 14px;
  opacity: 0.9;
}

.card-right {
  font-weight: bold;
  font-size: 16px;
}

.leader-item {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
}

/* Textblock i nyheter */
.text-block {
  background-color: #336699;
  color: white;
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
}
 
.text-block h3 {
  margin-top: 0;
  font-size: 24px;
}

.text-block p {
  font-size: 16px;
}

/* Sponsors */
.sponsors {
  background: #eee;
  padding: 40px 20px;
  text-align: center;
}

.sponsors img {
  max-width: 300px;
  margin: 30px;
  vertical-align: middle;
  border-radius: 6px;
}


/* Footer */
footer {
  background-color: #216d29;
  padding: 30px 20px;
  color: white;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* lite mellanrum mellan bollar och text */
}

.footer-ball {
  height: 80px; /* justera storleken på bollen */
  width: auto;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 10px; /* mindre mellanrum på mobil */
  }
}



/* Mobil */
@media (max-width: 768px) {
  .bildrad a {
    flex: 1 1 calc(50% - 20px);
  }

  .twocolumn {
    flex-direction: column-reverse;
  }

  .twocolumn > * {
    margin-bottom: 10px;
  }
}
