﻿JoinLobby {
  position: absolute;
  width: 700px;
  opacity: 0;
  background-color: #101021;
  color: white;
  border-radius: 16px;
  border: 1px solid white;
  
  .layout {
    flex-direction: column;
    margin: 12px;
    width: 100%;
    height: 400px;
  }
  
  .loading {
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-top: 12px;
  }
  
  .top-bar {
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    
    .title {
      font-size: 28px;
      margin-top: 4px;
    }
    
    .top-button {
      font-size: 28px;
      border: 1px solid white;
      border-radius: 4px;
      padding: 2px;
      
      &:hover {
        background-color: lighten(#101021, 100%);
      }
      
      > .spin-icon {
        &:hover {
          animation: rotation;
          animation-duration: 4s;
        }
      }
    }
  }
  
  .bar {
    height: 2px;
    background-color: white;
    margin: 4px;
    width: 25%;
  }
  
  .lobby-list {
    margin-top: 12px;
    gap: 6px;
    flex-direction: column;
    overflow: scroll;
    height: 100%;
  }
  
  .lobby {
    flex-shrink: 0;
    gap: 4px;
    font-size: 16px;
    padding: 4px;
    border-radius: 8px;
    align-items: center;
    
    > i {
      margin-bottom: 4px;
    }
    
    &:hover {
      background-color: lighten(#101021, 100%);
    }
  }
  
  &.show {
    opacity: 1;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(359deg);
  }
}