@font-face {
    font-family: 'RuneScape UF';
    src: url('../fonts/RuneScape-UF.woff2') format('woff2'),
        url('../fonts/RuneScape-UF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    font-family: 'RuneScape UF';
    font-weight: normal;
    cursor: url(../pictures/dscursor.cur), auto;
}

h2 {
  margin: 2px auto;
  max-width: 400px;
  color: yellow;
  text-align: center;
      text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    letter-spacing: 0.05em;
}

.infoClass {
  font-size: 3rem;
  margin: 15px auto;
  max-width: 400px;
  color: yellow;
  text-align: center;
      text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    letter-spacing: 0.05em;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

#sumDiv {
  color: yellow;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
  font-size: 1.4rem;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  position: relative;
  max-width: fit-content;
}

#countdown {
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position:relative;
  align-items: center;
  color: yellow;
  font-size: 5rem;
  font-weight: normal;
  z-index: 10;
      text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
  height: 100px;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px); /* Apply blur */
  transform: scale(1.05); /* Prevent edges from showing due to blur */
}

.video-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0px); /* Optional: Extra blur on overlay */
  z-index: 1;
}

a {
    text-decoration: none;
}

html, body {
    cursor: url(../pictures/dscursor.cur), auto;
}

a, button, input, select, textarea {
    cursor: url(../pictures/dscursor.cur), auto;
}

body {
  background: linear-gradient(135deg, #c28b2c, #ac250f, #432220, #373232);
  background-size: 1000% 1000%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
}

.container {
  display: flex;
  flex-wrap: wrap;       /* Allow players to wrap to next line if needed */
  justify-content: center; /* Center the players horizontally */
  gap: 50px;             /* Space between player boxes */
}

.playerInfo {
  background: rgba(251, 255, 0, 0.178);
}

.skill-container {
  display: grid;
  grid-template-columns: repeat(3, 120px); /* always 3 per row */
  gap: 10px;
  justify-content: center; /* center grid */
}


.skill-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
  width: 100%;
}

.skill-box {
  width: 80px;       /* fixed width */
  height: 80px;      /* fixed height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  color: yellow;
  font-weight: bold;
  text-shadow: -1px -1px 0 black,
               1px -1px 0 black,
               -1px 1px 0 black,
               1px 1px 0 black;
  word-wrap: break-word; /* wrap long skill names */
}

.skill-name, 
.skill-level {
  color: yellow;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px 1px 0 black,
     1px 1px 0 black;
  margin: 0;
  padding: 0;
}

.copyright {
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-size: 14px;
  color: yellow;
  opacity: 0.7;
}

@keyframes waveGradient {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 60%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 40%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fall-down {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fall-in {
  animation: fall-down 0.8s ease-out forwards;
  opacity: 1 !important;
}


.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: yellow;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid yellow;
    border-radius: 8px;
    padding: 5px 12px;
    text-decoration: none;
    z-index: 1000;
    transition: 0.3s, transform 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 0, 0.2);
    transform: scale(1.1);
}

.teamNames {
    text-align: center;
    font-size: 35px;
    padding: 0;
    margin: auto;
    padding-top: 25px;
    color: rgb(255, 251, 0);
    text-shadow:
        -1px -1px 0 rgb(0, 0, 0),
        1px -1px 0 rgb(0, 0, 0),
        -1px 1px 0 black,
        1px 1px 0 black;
    text-decoration: none;
}

.teamsText {
    text-align: center;
    font-size: 2rem;
    padding-top: 25px; 
    height: 100px;
    color: yellow;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    letter-spacing: 0.05em;
}

#top-players {
  margin: 40px auto 20px auto;
  max-width: 400px;
  color: yellow;
  font-family: Arial, sans-serif;
  text-align: center;
      text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    letter-spacing: 0.05em;
}

#top-players h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: gold;
}

#players-list {
  list-style: none;
  padding: 0;
}

#players-list li {
  font-size: 18px;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.badge {
  color: yellow;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
      text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    letter-spacing: 0.05em;
}

.pixel-corners,
.pixel-corners--wrapper {
  clip-path: polygon(0px calc(100% - 15px),
    3px calc(100% - 15px),
    3px calc(100% - 9px),
    6px calc(100% - 9px),
    6px calc(100% - 6px),
    9px calc(100% - 6px),
    9px calc(100% - 3px),
    15px calc(100% - 3px),
    15px 100%,
    calc(100% - 15px) 100%,
    calc(100% - 15px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 15px),
    100% calc(100% - 15px),
    100% 15px,
    calc(100% - 3px) 15px,
    calc(100% - 3px) 9px,
    calc(100% - 6px) 9px,
    calc(100% - 6px) 6px,
    calc(100% - 9px) 6px,
    calc(100% - 9px) 3px,
    calc(100% - 15px) 3px,
    calc(100% - 15px) 0px,
    15px 0px,
    15px 3px,
    9px 3px,
    9px 6px,
    6px 6px,
    6px 9px,
    3px 9px,
    3px 15px,
    0px 15px);
  position: relative;
}

#pixel-corners2,
#pixel-corners--wrapper2 {
  clip-path: polygon(0px calc(100% - 15px),
    3px calc(100% - 15px),
    3px calc(100% - 9px),
    6px calc(100% - 9px),
    6px calc(100% - 6px),
    9px calc(100% - 6px),
    9px calc(100% - 3px),
    15px calc(100% - 3px),
    15px 100%,
    calc(100% - 15px) 100%,
    calc(100% - 15px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 15px),
    100% calc(100% - 15px),
    100% 15px,
    calc(100% - 3px) 15px,
    calc(100% - 3px) 9px,
    calc(100% - 6px) 9px,
    calc(100% - 6px) 6px,
    calc(100% - 9px) 6px,
    calc(100% - 9px) 3px,
    calc(100% - 15px) 3px,
    calc(100% - 15px) 0px,
    15px 0px,
    15px 3px,
    9px 3px,
    9px 6px,
    6px 6px,
    6px 9px,
    3px 9px,
    3px 15px,
    0px 15px);
  position: relative;
}
#pixel-corners2 {
  border: 12px solid transparent;
}
#pixel-corners--wrapper2 {
  width: fit-content;
  height: fit-content;
}
#pixel-corners--wrapper2 .pixel-corners2 {
  display: block;
  clip-path: polygon(12px 21px,
    15px 21px,
    15px 15px,
    21px 15px,
    21px 12px,
    calc(100% - 21px) 12px,
    calc(100% - 21px) 15px,
    calc(100% - 15px) 15px,
    calc(100% - 15px) 21px,
    calc(100% - 12px) 21px,
    calc(100% - 12px) calc(100% - 21px),
    calc(100% - 15px) calc(100% - 21px),
    calc(100% - 15px) calc(100% - 15px),
    calc(100% - 21px) calc(100% - 15px),
    calc(100% - 21px) calc(100% - 12px),
    21px calc(100% - 12px),
    21px calc(100% - 15px),
    15px calc(100% - 15px),
    15px calc(100% - 21px),
    12px calc(100% - 21px));
}
#pixel-corners2::after,
#pixel-corners--wrapper2::after {
  content: "";
  position: absolute;
  clip-path: polygon(0px calc(100% - 15px),
    3px calc(100% - 15px),
    3px calc(100% - 9px),
    6px calc(100% - 9px),
    6px calc(100% - 6px),
    9px calc(100% - 6px),
    9px calc(100% - 3px),
    15px calc(100% - 3px),
    15px 100%,
    calc(100% - 15px) 100%,
    calc(100% - 15px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 3px),
    calc(100% - 9px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 9px),
    calc(100% - 3px) calc(100% - 15px),
    100% calc(100% - 15px),
    100% 15px,
    calc(100% - 3px) 15px,
    calc(100% - 3px) 9px,
    calc(100% - 6px) 9px,
    calc(100% - 6px) 6px,
    calc(100% - 9px) 6px,
    calc(100% - 9px) 3px,
    calc(100% - 15px) 3px,
    calc(100% - 15px) 0px,
    15px 0px,
    15px 3px,
    9px 3px,
    9px 6px,
    6px 6px,
    6px 9px,
    3px 9px,
    3px 15px,
    0px 15px,
    0px 50%,
    12px 50%,
    12px 21px,
    15px 21px,
    15px 15px,
    21px 15px,
    21px 12px,
    calc(100% - 21px) 12px,
    calc(100% - 21px) 15px,
    calc(100% - 15px) 15px,
    calc(100% - 15px) 21px,
    calc(100% - 12px) 21px,
    calc(100% - 12px) calc(100% - 21px),
    calc(100% - 15px) calc(100% - 21px),
    calc(100% - 15px) calc(100% - 15px),
    calc(100% - 21px) calc(100% - 15px),
    calc(100% - 21px) calc(100% - 12px),
    21px calc(100% - 12px),
    21px calc(100% - 15px),
    15px calc(100% - 15px),
    15px calc(100% - 21px),
    12px calc(100% - 21px),
    12px 50%,
    0px 50%);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(12, 12, 12);
  display: block;
  pointer-events: none;
  z-index: -999;
}
#pixel-corners2::after {
  margin: -12px;
}

@media (max-width: 1000px) {
  #countdown {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  #countdown {
    font-size: 2rem;
  }

  .infoClass {
    font-size: 2rem;
  }
}