body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  font-style: italic;
}

.servers-container {
  margin: 24px;
}

.server-card {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;

  &:not(:first-child) {
    margin-top: 24px;
  }
}

.server-left-frame {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 4px;

  .server-image {
    align-items: center;
    display: flex;
    flex-shrink: 0;

    img {
      border-radius: 4px;
      height: auto;
    }
  }

  .join-button {
    background: #2196f3;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    margin-top: 8px;
    padding: 8px 16px;

    &:hover {
      background-color: #1976d2;
    }
  }
}

.status {
  border-radius: 20px;
  color: white;
  font-size: 0.9em;
  margin-top: 8px;
  padding: 5px 12px;

  &.offline {
    background-color: #ff0000;
  }

  &.online {
    background-color: #4caf50;
  }
}

.server-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 10px;
}

.server-name {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.server-main {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px;
  gap: 40px;
}

.server-details {
  width: 50%;
}

.info-label {
  font-weight: 700;
}

.player-list-header,
.player {
  display: flex;
  flex-direction: row;

  .info-label,
  .value-label {
    text-align: center;
    width: 20%;

    &:first-child {
      text-align: left;
      width: 60%;
    }
  }
}

.player-list {
  flex: 1;
  border-left: 1px solid #ddd;
  padding-left: 20px;
}

.player {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 4px 6px;
  border-radius: 6px;

  &:nth-child(even) {
    background: #eee;
  }

  img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
  }
}

.no-players {
  align-items: center;
  display: flex;
  height: 80%;
  justify-content: center;
}
