
@font-face {
  font-family: Barlow;
  src: url(https://fonts.googleapis.com/css2?family=Barlow);
}
.discord-widget {
  display: flex;
  flex-direction: column;
  justify-items: center;
  font-family: "Barlow", sans-serif;
  margin: auto;
}
.widget-header {
  background: #5865F2;
  color: #d9e1e4;
  padding: 1rem;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}
.discord-logo {
  background-image: url("assets/Discord-Logo-White.svg");
  width: 15rem;
  height: 2.5rem;
  display: inline-block;
  transition: opacity 0.3s ease-in;
  background-repeat: no-repeat;
}
.discord-logo:hover {
  opacity: 0.7;
}
.server-info {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
}
.server-name {
  display: none;
  text-transform: uppercase;
}
.server-online {
  align-self: flex-end;
  justify-self: flex-end;
  font-size: 1rem;
}
.users {
  display: flex;
  flex-flow: row wrap;
  align-self: center;
  padding:0.5rem;
}
.user {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  padding: 0.3rem;
  position: relative;
}

.user-image {
  width: 100%;
  border-radius: 100%;
  user-select: none;
  border: 0.125rem solid #e74848;
}
.user:hover {
  z-index: 1;
}
.user:hover .image-wrap {
  z-index: 2;
}
.user .username {
  margin: 0.3rem 0;
  border-radius: 1.25rem;
  display: none;
  max-width: 20rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 2.5rem;
  padding: 0 0.5rem 0 3rem;
  pointer-events: none;
  position: absolute;
  top: 0;
  user-select: none;
  background: #e74848;
  height: 2.5rem;
  color: #d9e1e4;
  font-weight: 600;
}
.user:nth-child(10n) .username,.user:nth-child(10n-1) .username, .user:nth-child(10n-2) .username, .user:nth-child(10n-3) .username{
  padding: 0 3rem 0 0.5rem;
  right:0.3rem;

}
.user:hover > .username{
  display:flex;

}
.user-status {
  height: 0.8rem;
  width: 0.8rem;
  border-radius: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 0.1rem solid #ddd;
}
.status-online {
  background: #43b581;
}
.status-idle {
  background: #faa61a;
}
.status-dnd {
  background: #f04747;
}
.image-wrap {
  background: pink;
  position: relative;
  border-radius: 100%;
  height: 2.5rem;
  width: 2.5rem;
  z-index: 0;
}
.user-game {
  order: 5;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  font-size: 75%;
  color: rgba(255, 255, 255, 0.5);
  display: none;
}

.widget-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding:0.5rem;
  border-top: 0.1rem solid lightgrey;
}
.widget-footer a.widget-button {
  padding:0.5rem 2rem;
  background-color: inherit;
  border: 0.1rem solid darkgrey;
  border-radius: 0.5rem;
  color: darkgray;
  transition: opacity 0.3s ease-in;
  text-decoration: none;
}
.widget-footer a.widget-button:hover {
  opacity: 0.7;
}
.widget-footer span {
  text-align: center;
  color: darkgray;
  font-size:1rem;
}