/* Reset & Base */
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
  background:
    linear-gradient(to bottom, #a8e6cf, #56ab2f),
    url('https://www.transparenttextures.com/patterns/white-wall-3.png');
  background-blend-mode: overlay;
  background-attachment: fixed;
  background-size: cover;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1em;
  flex: 1;
}

/* Header */
.title {
  font-family: 'Bungee', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-top: 0.5em;
  color: black;
}
.subtitle {
  font-family: 'Black Ops One', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  color: #226600;
  margin-bottom: 1em;
  letter-spacing: 1px;
}

/* Top Section (Legend / Today / Countdown) */
#top {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1em;
}
.legend {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 0.5em 1em;
  margin-bottom: 1em;
  font-size: 0.95em;
}
.legend ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0 0;
}
.legend li {
  margin: 0.2em 0;
}

/* Event Day Cards (Glassmorphism) */
.event-day {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1em;
  margin: 1em 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.event-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.event-day h3 {
  font-family: 'Black Ops One', sans-serif;
  font-size: 1.2rem;
  margin-top: 0;
  color: #004400;
}

/* Event Buttons */
.event-button {
  display: block;
  width: 100%;
  margin: 0.4em 0;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  font-size: 1em;
  cursor: pointer;
  padding: 0.6em;
  border-radius: 8px;
  color: black;
  text-align: left;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
}
.event-button:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow: auto;
}
.modal-box {
  background: white;
  margin: 10% auto;
  padding: 2em;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}

/* Footer (Sponsors) */
.footer {
  text-align: center;
  padding: 1em;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.9em;
  border-radius: 0 0 12px 12px;
}
.sponsor-title {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #004400;
}
.sponsor-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}
.sponsor-logos img {
  max-height: 40px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.sponsor-logos img:hover {
  opacity: 1;
}

/* Placeholder time (manual text override) */
.placeholder-time {
  color: red;
  font-weight: bold;
}

/* Sponsor backgrounds for event-day */
.event-day[class*="sponsor-"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  background-blend-mode: soft-light;
  background-color: rgba(255, 255, 255, 0.5);
  background-attachment: local;
  background-opacity: 0.4;
}

/* Example sponsor classes */
.sponsor-tekna {
  background-image: url('sponsors/tekna.png');
}
.sponsor-naturviterne {
  background-image: url('sponsors/naturviterne.png');
}
.sponsor-nmbu {
  background-image: url('sponsors/nmbu.png');
}
.sponsor-pb {
  background-image: url('sponsors/pb.png');
}
.sponsor-havardo {
  background-image: url('sponsors/havardo.png');
}
