@import '../Styles/styles.scss';

TabMenu {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;

  flex-direction: column;
  padding: 32px 128px;
  gap: 32px;

  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(4px);
  transition: all 0.2s ease-in-out;

  font-family: $font-secondary;

  &.show {
    opacity: 1;
    pointer-events: all;
  }

.header {
  font-size: 64px;
  font-weight: bold;
  color: linear-gradient(to right, $selected, $selected-dark);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.container {
  flex-direction: column;

  width: 600px;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 4px;

  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);

  .container-header {
    width: 100%;
    font-size: 32px;
    color: $text-primary-color;
    gap: 2px;

    > i {
      align-items: center;
      justify-content: center;
      font-size: 30px;
      margin-top: 2px;
    }
}
}

.players {
  .players-list {
    flex-direction: column;
    gap: 3px;
    padding: 0 32px;

    .player-entry {
      font-size: 24px;
      font-family: $font-primary;
      text-overflow: ellipsis;

      color: darken($text-primary-color, 20%);

      align-items: center;
      justify-content: space-between;
      gap: 12px;

      .player-controls {
        gap: 12px;

        > button {
          align-items: center;
          gap: 2px;

          &:hover {
            color: darken($text-primary-color, 40%);
          }
      }
  }

i {
  font-size: 32px;
  align-items: center;
  justify-content: center;
}
}
}

}

.map-votes {
  .map-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;

    .map-entry {
      width: 182px;
      height: 182px;
      transition: all 0.2s ease-in-out;
      position: relative;
      border-radius: 4px;

      .map-title {
        position: absolute;
        bottom: 0;
        z-index: 4;
        padding: 4px 6px;
        font-size: 16px;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        color: darken($text-primary-color, 20%);
        width: 100%;
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
      }

    .votes {
      position: absolute;
      z-index: 4;

      top: 0;
      padding: 4px;

      width: 100%;
      align-items: center;
      justify-content: space-between;

      > i {
        font-size: 24px;
        font-weight: bold;
        color: deepskyblue;
        text-stroke: 4px deepskyblue;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
      }

    > label {
      margin-left: auto;
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 18px;
      color: $text-primary-color;
      background-color: rgba(0, 0, 0, 0.75);
      text-stroke: 3px black;
    }
}

> img {
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 4px;
}

&:hover {
  transform: scale(1.02);
}

&.selected {
  border: 3px solid deepskyblue;
}
}
}
}
}
