/*
    Border, button color: #73ab84;
    Background-color: rgba(245, 245, 245, 0.5); 
*/

body {
  font-family: sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;

  &.btn-primary {
    background-color: #9cd7ae;
    color: black;

    &:hover {
      color: #9cd7ae;
      background-color: black;
    }

    &:disabled {
      background-color: #ccc;
      color: #666;
      cursor: not-allowed;
    }
  }
}

input {
  padding: 10px 20px;
  font-size: 16px;
  background-color: white;
  border: 1px solid #73ab84;
  border-radius: 5px;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  height: 100vh;

  .menu {
    border: 1px solid #73ab84;
    background-color: rgba(245, 245, 245, 0.9);
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    h3 {
      margin-top: 0;
    }
  }
}

#lobby,
#game {
  display: none;
}
#rooms {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;

  li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #73ab84;

    span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-right: 1rem; /* space between text and button */
      text-align: left;

      &.room-info {
        flex-grow: 1;
      }
      &.player-count {
        font-weight: bold;
      }
    }
  }
}

#bg-container canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

#exitBtn {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
}
