body {
  background: url(wallpaper.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  overflow-y: scroll;
  color: white;
}

table {
  overflow: hidden;
  border-radius: 1rem;
  border: 0px solid transparent;
  box-shadow: 0 1rem 1rem #000000dd;
}

table td {
  background: #333;
}

h1 {
  color: #f3114e;
  text-shadow: 0 4px 0px #000;
}

h2 {
  color: #f3114e;
  font-size: 300%;
  text-shadow: 0 4px 0px #000;
}

span {
  background: transparent !important;
}

span font {
  color: #DDD;
}

span font a:link,
span font a:visited {
  color: #f3114e;
}

/* Tab styling */
.tab {
  background: #333;
  border: none; /* Tar bort ljusgrå ram */
  border-bottom: 2px solid #222; /* Mörkgrå "skena" under flikarna */
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;


}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 12px; /* Mindre padding */
  margin: 0;
  font-size: 0.9rem; /* Mindre text */
  color: #FFF;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  white-space: nowrap; /* Förhindra radbrytning */
  transition: background-color 0.3s, color 0.3s;
  flex-shrink: 0; /* Förhindra att knapparna krymper */
}

.tab button:hover {
  background-color: #555;
  color: #fff;
}

.tab button.active {
  background-color: #f3114e;
  color: #fff;
}
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-top: none;
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tabcontent b,
p b {
  color: #f3114e;
  text-shadow: 0px 2px 0px #00000088;
}

.tabcontent img {
  display: block;
  box-shadow: 0 .5rem 1rem #00000088;
  border-radius: .5rem;
}

/* Countdown container */
#countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
  max-width: 900px;
  margin: 1.5rem auto;
}

/* Countdown sections */
.countdown-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  margin: 1.2rem 0;
}

/* Text label (Dagar, Timmar, osv.) */
.label {
  font-size: 1.1rem;
  margin-bottom: 0.15rem; /* Mindre mellanrum till siffran */
  margin-top: 0;
  color: #fff;
  font-weight: bold;
}

/* Räknevärde (siffran) */
.count-value {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stapel (fyrkanter) */
.bar {
  display: grid;
  grid-template-columns: repeat(10, 10px);
  gap: 3px;
  justify-content: center;
  margin-top: 0.3rem;
}

.square {
  width: 10px;
  height: 10px;
  background: #f3114e;
  border-radius: 2px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1);
}

.square.inactive {
  opacity: 0.2;
  transform: scale(0.6);
  filter: blur(0.3px);
}

/* Countdown textfärg (säkerställ vit) */
#countdown .label,
#countdown .label span {
  color: white;
}

.countdown > .part > .text,
.countdown > .part > .number {
  color: white !important;
}

/* Mobilanpassning */
@media (max-width: 600px) {
  #countdown {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .countdown-section {
    width: 80%;
  }

  .count-value {
    font-size: 2.5rem;
  }
}