@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;
}

.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;
}

#indexBgBoxes1 {
  background: linear-gradient(14deg, #0b00a7, #1700e9, #260046, #7659c7);
  background-size: 400% 400%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
}

#indexBgBoxes2 {
  background: linear-gradient(59deg, #065319, #068326, #07b132, #07e93f);
  background-size: 400% 400%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
}

#indexBgBoxes3 {
  background: linear-gradient(207deg, #d0ff00, #9ec004, #849203, #5e5803);
  background-size: 300% 300%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
}

#indexBgBoxes4 {
  background: linear-gradient(122deg, #ff0000, #ca0000, #8b0000, #5f0000);
  background-size: 300% 300%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
}

#indexBgBoxes5 {
  background: linear-gradient(212deg, #ff00d4, #b40096, #96007d, #46003a);
  background-size: 300% 300%;
  animation: waveGradient 15s ease infinite;
  margin: 0;
  height: 100vh;
  margin-left: 50%;
}

.copyright {
  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;
}


.griddy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 500px;
    height: 700px;
    margin: auto;
}

.griddy a div {
    transition: 0.2s ease;
    width: 250px;
    height: 250px;
}

.griddy > a > div {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.griddy a:hover div {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 50px;
    width: 1000px;
    height: 1000px;
    margin: auto;
}


.cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backdrop-filter: blur(6px);       /* blur effect */
    -webkit-backdrop-filter: blur(6px);
}

.cell .content {
    height: 200px;
    width: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: filter 0.3s ease;
    z-index: 1;
}

.cell p {
    font-size: 1.3em;
    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;
    margin: 20px 0 5px 0;
}

.cell img {
    height: 90px;
    pointer-events: none;
    user-select: none;
}

.cell .tooltip {
    width: 200px;
    height: 200px;
    position: absolute;
    inset: 0; /* full size */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: yellow;
    font-size: 1.1em;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cell:hover .content {
    filter: blur(4px);
}

.cell:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
}

.cell img {
    height: 90px;
    max-width: 80%;
    max-height: 80%;
    pointer-events: none;
    user-select: none;
    margin-top: 25px;
}

.cell .cross-icon {
  position: absolute;
  top: 57%;
  left: 54%;
  transform: translate(-50%, -50%);
  font-size: 15rem; /* Adjust size as needed */
  color: red;
  display: none; /* Initially hidden */
  pointer-events: none; /* So it doesn't block interactions */
}

.cell > *:not(img){
    position: relative;
    z-index: 1;
}

.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-corners {
  border: 12px solid transparent;
}
.pixel-corners--wrapper {
  width: fit-content;
  height: fit-content;
}
.pixel-corners--wrapper .pixel-corners {
  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-corners::after,
.pixel-corners--wrapper::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: #000000;
  display: block;
  pointer-events: none;
}
.pixel-corners::after {
  margin: -12px;
}

#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: #d4ff00;
  display: block;
  pointer-events: none;
}
#pixel-corners2::after {
  margin: -12px;
}