@font-face {
  font-family: "smm";
  src: url("font.ttf") format("truetype");
}

body{

  background:#000;
  color:#00f;
  font-family:"smm";

  margin:40px;

}

.category{
  margin-bottom:50px;
}

.category h2{
  margin-bottom:15px;
  border-bottom:1px solid #00f;
  padding-bottom:6px;
}

.services{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

.card{
  width:260px;
  height:150px;
  border:4px solid #00f;
  border-radius:0px;
  background:#000;
  padding:14px;
  position:relative;
  transition:all 0.2s ease;
}

.card.clickable:hover{
  transform:scale(1.04);
  box-shadow:0 0 12px rgba(0,0,0,0.6);
}

.card.online{border-color:#0f0;}
.card.offline{border-color:#f00;}
.card.disabled{border-color:#9d2bad;}

.icon{
  position:absolute;
  top:10px;
  left:12px;
  width:32px;
  height:32px;
  border: 2px solod #00f;
  border-radius:0px;
}

.label{
  position:absolute;
  top:8px;
  right:10px;
  font-size:12px;
  opacity:0.8;
}

.title{
  text-align:center;
  font-size:21px;
  margin-top:8px;
}

.description{
  margin-top:6px;
  font-size:13px;
  color:#bfbfbf;
  text-align:center;
}

.players{
  position:absolute;
  bottom:12px;
  left:0;
  right:0;
  text-align:center;
  font-size:14px;
  color:#00f;
}

.clickable{
  cursor:pointer;
}

.popup{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
}

.popup.hidden{
  display:none;
}

.popupContent{
  background:#000;
  padding:25px;
  border: 2px solid #00f
  border-radius:0px;
  width:350px;
  text-align:center;
}

.popupTitle{
  font-size:20px;
  margin-bottom:15px;
}

#playerList{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:15px;

}

.player{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:12px;
}

.player img{
  width:40px;
  height:40px;
  border-radius:0px;
}

.card.warning{
  border-color:#f1c40f;
}

.popup{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999; /* ensure it's above cards */
}

.popupContent{
  background:#000;
  padding:25px;
  border: 2px solid #00f;
  border-radius:0px;
  width:350px;
  text-align:center;
  max-height:80%;
  overflow-y:auto;
}

.popup button{
  margin-top:15px;
  padding:6px 14px;
  background: #000;
  border: 1px solid #00f;
  border-radius:0px;
  font-family:"smm";
  cursor:pointer;
  color: #00f;
  font-size:14px;
}

#playerList{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:15px;
  z-index:10000;
}

.card.hoverable:hover {
  transform:scale(1.04);
  box-shadow:0 0 12px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {

  body{
    margin:10px;
  }

  .services{
    gap:12px;
  }

}

@media (max-width: 768px) and (orientation: portrait) {

  .services{
    flex-direction:column;
    flex-wrap:nowrap;
  }

  .card{
    width:100%;
    max-width:100%;
  }

}
@media (max-height: 500px) and (orientation: landscape){

  body{
    margin:0;
    overflow:hidden;
  }

  #dashboard{
    display:flex;
    flex-direction:row;
    overflow-x:auto;
    overflow-y:hidden;
    height:calc(100vh - 40px);
    align-items:center;
    scroll-snap-type:x mandatory;
  }

  .category h2{
    display:none;
  }

  .category{
    display:contents;
  }

  .services{
    display:contents;
  }

  .card{
    flex:0 0 auto;
    width:260px;
    height:150px;
    margin:10px;
    scroll-snap-align:start;
  }

}
