/* --- Base container --- */
.timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

/* --- Axis (desktop) --- */
.timeline-axis {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    position: relative;
    span {
        font-size: 0.8em;
        left: calc(50% + 18px);
        position: relative;
        color: #636363;
    }
}


.timeline-axis > div {
  position: relative;
  z-index: 1;
  padding: 0 4px;
}


/* --- Tracks --- */
.tracks {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  border-radius: 8px;
}

.track {
  position: relative;
  height: 70px;
  border-radius: 6px;
}

/* --- Bars --- */
.bar {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 6px;
    color: black;
    font-size: 0.8rem;
    left: calc(var(--start) / 5 * 100%);
    width: calc((var(--end) - var(--start)) / 5 * 100%);
    cursor: pointer;
}

/* ----------- MOBILE (<800px) ----------- */
@media (max-width: 800px) {
  .timeline-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-axis {
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    width: 40px;
    span {
        font-size: 0.8em;
        left: 0;
        position: relative;
        color: #636363;
        display: block;
        top: calc(50% - 12px);
        text-align: right;        
    }
  }

  .tracks {
    flex-direction: row;
    width: 100%;
    height: 300px;
  }

  .track {
    flex: 1;
    height: 100%;
    position: relative;
  }

  .bar {
    left: 0;
    width: 100%;
    top: calc(var(--start) / 5 * 100%);
    height: calc((var(--end) - var(--start)) / 5 * 100%);
    
  }

  @keyframes growVertical {
    0% { height: 0; opacity: 0; }
    100% { opacity: 1; }
  }
}

h3.wordblast-title.smalltitle {
    font-size: 13px;
    text-shadow: 0 1px 0 #000000, 0 2px 0 #645817, 0 3px 3px rgba(0, 0, 0, 0.5);
}
h3.blockchamp-title.smalltitle {
    font-size: 9px;
}
h3.lollipop-title.smalltitle {
    font-size: 19px;
    text-shadow: 2px 3px 1px #00000055, 2px 3px 1px #00000055, 0px 0px 1px #00000055;    
}

h2.wordblast-title.shortinfo {
    font-size: 19px!important;
}
h2.blockchamp-title.shortinfo {
    font-size: 14px!important;
    line-height: 1.8;
}
h2.lollipop-title.shortinfo {
    font-size: 21px!important;
}


.wordblast-card .shortinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    height: 100%;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    /* rotate: -37deg; */
    color: #f2ffa9;
    font-weight: bold;
    text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.8), 0px 2px 3px rgba(0, 0, 0, 0.8);
}

.blockchamp-card .shortinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    height: 100%;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    /* rotate: -37deg; */
    color: #614e07;
    font-weight: bold;
    text-shadow: 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 1px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff;
}

.lollipop-card .shortinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    height: 100%;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
    /* rotate: -37deg; */
    color: #ffd4fe;
    font-weight: bold;
    text-shadow: 2px 3px 2px #00000055, 2px 3px 2px #00000055, 0px 0px 2px #00000055;
}

.bar .users {
    display: flex;
    justify-content: flex-end;
    margin-top: -20px;
    margin-right: 6px;
}



h3.smalltitle {
    margin: 0;
    white-space: nowrap;
    z-index: 2;
    position: relative;    
}

.dialog-content {
    max-width: 740px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: calc(100% - 16px);
    margin: 0px;
    border: 0;
    box-shadow: 2px 2px 18px black;
    padding: 0px;
    border-radius: 10px;

}

#tournament-dialog {
    .close-button {
        position: absolute;
        top: -3px;
        right: 10px;
        background: none;
        border: none;
        font-size: 2.5rem;
        cursor: pointer;
        outline: none;
        color: black;
    }
    .dialog-body {
        padding: 10px;
        margin: 0;
        border-radius: 10px;
    }
    h1{
        text-align: center;
    }
    h2 {
        text-align: center;
        font-size: 1rem;
    }
    table {
      border-spacing: 0;
      line-height: 0.7;
      margin-bottom: -12px;
      small {
        font-size: 0.7em;
      }
    }
    .brighterBackground {
      background: #ffffff66;
      padding: 20px;
      border-radius: 5px;
      margin-top: -12px;
    }
}

.buttonPlacer {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.defaultButton {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    border: none;
    color: white;
    padding: 10px 40px;
    margin: 0 auto;
    background: #00000066;
    box-shadow: 2px 2px 6px #000000, inset 1px 1px 2px white, inset 1px 1px 2px white, inset 1px 1px 1px white;
}