@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  background-color: rgb(175, 0, 0);
}

nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-evenly; 
  outline: #000000;
  Background-color: rgb(255, 0, 0);
  Padding: 20px 20px;
  Position: sticky;
  margin-bottom: 10px;
  height: 50px;
}

nav a:hover {
  background-color: rgb(151, 0, 0);
}

nav button:hover {
  background-color: rgb(151, 0, 0);
}

.home {
  display: flex;
  background-color: rgba(151, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  color: rgb(255, 145, 0);
  transition: all 0.3s ease;
  align-items: center;
  text-decoration: none;
}

.news {
  background-color: rgba(151, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  color: rgb(255, 238, 0);
  box-shadow: rgb(151, 0, 0);
  transition: all 0.3s ease;
}

.chat {
  background-color: rgba(151, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  color: rgb(9, 255, 0);
  box-shadow: rgb(151, 0, 0);
  transition: all 0.3s ease;
}

.staffs {
  background-color: rgba(151, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  color: rgb(0, 238, 255);
  box-shadow: rgb(151, 0, 0);
  transition: all 0.3s ease;
}

#accountBtn {
  background-color: rgba(165, 0, 0, 0.466);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
}

#accountBtn:hover {
  background-color: rgb(165, 0, 0);
  transform: translateY(-5px);
}

#Profileofuser {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid #fe0c0c;
  object-fit: cover;
}

#Profileofuseraccountinfo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fe0c0c;
  object-fit: cover;
}

.more-wrapper{
  position: relative;
}

.more-btn{
  background-color: rgba(151, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  color: rgb(0, 0, 0);
  box-shadow: rgb(151, 0, 0);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.more-menu{
  position: absolute;
  top: 110%;
  left: 0;
  background: #222;
  border: 3px solid #840000;
  border-radius: 6px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.more-menu a{
  background: rgb(151, 0, 0);
  text-align: left;
  border: none;
  padding: 10px;
  color: white;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.more-menu a:hover{
  background: #c40000;
  padding-left: 20px;
}

.more-btn span{
  display:inline-block;
  margin-left:4px;
  transition: transform 0.3s ease;
}

.arrow{
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s ease;
}

#header-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.521)),
     url(MINECRAFT.png) no-repeat center / cover;
  height: 364px;
  position: relative;
  border-bottom: 3px solid rgb(255, 0, 0);
  box-shadow: inset 0px 0px 50px rgb(255, 0, 0);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 300px;
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
  gap: 2rem;
}

.header-content h1 {
  color: rgb(255, 0, 0);
  text-shadow: 0 0 20px rgb(155, 0, 0);
}

.server-status {
  background: darkred;
  padding: 6rem;
  border-radius: 20px;
  border: 2px solid red;
  backdrop-filter: blur(10px);
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease;
}

#server-online {
  cursor: pointer;
  padding: 20px;
  background-color: red;
  border-radius: 500px;
  color: white;
  border-width: 2px;
  border: none;
  transition: all 0.3s ease;
}

#server-online:hover {
  transform: scale(1.1);
}

#server-players {
  color: white;
  padding: 20px;
  border-radius: 500px;
  width: 500px; 
  text-align: center;
}

#player-list {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(0deg, #610000, #970000);
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#player-list-open {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(0deg, #610000, #970000);
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 30px;
  max-width: 540px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

#close-playerlist {
  cursor: pointer;
  background-color: red;
  border: none;
  border-radius: 5px;
  width: 540px;
  height: 40px;
}

.Owner {
  background-color: red;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Co-Owner {
  background-color: rgb(255, 81, 0);
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Manager {
  background-color: rgb(0, 195, 255);
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Developer {
  background-color: rgb(255, 196, 0);
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Admin {
  background-color: rgb(0, 0, 255);
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Sr-Mod {
  background-color: #ff0055;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Mod {
  background-color: #c70056;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Jr-Mod {
  background-color: #990042;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Youtube {
  background-color: #992d22;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Staff {
  background-color: #e67e22;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.VIP {
  background-color: #ffee00;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Friend {
  background-color: #09ff00;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.Guest {
  background-color: #a7a7a7;
  font-size: 0.75rem;
  padding: 0.25rem;
  color: white;
  font-weight: 800;
  display: inline-block;
  text-transform: uppercase;
  width: 50px;
  border-radius: 5px;
}

.hl-red {
  color: #ff0000;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.1em;
}

.hl-blue {
  color: #4d8fff;
  font-weight: 600;
}

.hl-purple {
  color: #c084fc;
  font-weight: 600;
}

.account-info {
  padding: 20px;
  background: rgba(254, 12, 12, 0.1);
  border-bottom: 2px solid rgba(254, 12, 12, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  height: 35px;
}

.account-info-name-rank {
  padding: 0;
  margin: 0;
  flex: 1;
}

.account-wrapper{
  position: relative;
  display: inline-block;
}

#accountBtn {
  background: rgba(151, 0, 0, 0);
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

#accountBtn:hover {
  background: rgb(151, 0, 0);
  color: #fff;
}

.account-menu{
  position: absolute;
  right: 0;
  top: 110%;
  background: #b60000;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 3px solid #840000;
  border-radius: 6px;
}

.account-menu button{
  background: rgb(151, 0, 0);
  border: none;
  color: white;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-menu button:hover{
  background: #c40000;
  padding-left: 20px;
}

.account-menu h1 {
  color: white;
  text-align: center;
  margin: 0;
  padding: 0px;
  margin-bottom: 2px;
}

#AccountRank {
  text-align: center;
}

.news-image-wrapper{
  position:relative;
}

.delete-btn{
  position:absolute;
  top:10px;
  right:10px;
  background:#ff0000;
  border:none;
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  font-size:16px;
  opacity:0;
  transition:.3s;
}

.news-card:hover .delete-btn{
  opacity:1;
}

.delete-btn:hover{
  background:#cc0000;
  transform:scale(1.1);
}

#staffWrapper{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
}

.rank-section{
  background: linear-gradient(135deg, #920000, #4b0000);
  border: 2px solid rgba(254, 12, 12, 0.3);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(254, 12, 12, 0.2);
  margin: 0;
  width: 1270px;
}

.rank-title{
  color:#ffd600;
  font-size:28px;
}

.staff-info h2{
  color: white;
}

.rank-count{
  background:#990404;
  padding:6px 14px;
  border-radius:20px;
  font-size:14px;
  color:#fff;
}

.rank-container{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(254, 12, 12, 0.2);
}

/* STAFF CARD */
.staff-card{
  display: flex;
  align-items: center;
  background: rgba(255, 0, 0, 0.096);
  padding: 15px;
  gap: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.staff-card:hover{
  transform: translateY(-5px);
}

/* AVATAR */
.staff-avatar{
  width:70px;
  height:70px;
  border-radius:50%;
  border:3px solid #ff0000;
  object-fit:cover;
}

/* INFO */
.staff-info h2{
  margin:0;
  font-size:18px;
}

.rank-badge{
  display:inline-block;
  color:black;
  font-size:12px;
  font-weight:bold;
  padding:4px 8px;
  border-radius:6px;
}

.modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  justify-content:center;
  align-items:center;
  z-index:999;
}

.modal-box{
  background:#720000;
  padding:25px;
  border-radius:12px;
  width:420px;
  color:white;
  box-shadow:0 0 25px rgba(255, 0, 0, 0.2);
}

.modal-box h2{
  margin-bottom:15px;
}

.modal-box label{
  display:block;
  margin-top:10px;
  margin-bottom:5px;
  font-size:14px;
}

.modal-box input,
.modal-box textarea{
  width:95%;
  padding:10px;
  border-radius:8px;
  border:3px solid #9e0000;
  background:#210707;
  color:white;
  outline:none;
  transition: all 300ms ease;
}

.modal-box input:focus ,
.modal-box textarea:focus {
  border:3px solid #ff0000;
}

textarea{
  resize:none;
  height:120px;
}

#charCount{
  font-size:12px;
  color:#aaa;
}

.checkbox{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.image-box{
  margin-top:15px;
  background:#210707;
  padding:15px;
  border-radius:10px;
}

.upload-switch{
  display:flex;
  gap:10px;
  margin-bottom:10px;
}

.upload-switch button{
  flex:1;
  padding:8px;
  border:none;
  border-radius:6px;
  background:#ff0000;
  cursor:pointer;
}

.modal-actions{
  margin-top:20px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.cancel{
  background:#ff0000;
  color:black;
  border: 3px solid #8a0000;
  border-radius: 5px;
  width: 70px;
  height: 30px;
}

.publish{
  background:#2bff00;
  color:black;
  border: 3px solid #178a00;
  border-radius: 5px;
  width: 70px;
  height: 30px;
}

@keyframes pulse {
  50%, 100% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  0% {
    box-shadow: 0 0 0 0 rgb(255, 0, 0);
  }
}

@keyframes pulse2 {
  50%, 100% {
    box-shadow: 0 0 0 10px rgba(30, 0, 255, 0);
  }
  0% {
    box-shadow: 0 0 0 0 rgb(0, 255, 0);
  }
}

.main-chat {
  display: grid;
  width: 80%;
  min-height: 400px;
  border: 3px solid #ff0000;
  align-self: center;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
}

#chatBox {
  display: flex;
  flex: 1;
  padding: 5px;
  overflow-y: auto;
  flex-direction: column;
  height: 230px;
}

.chat-header {
  background: linear-gradient(135deg, #e30000, #730000);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #ff0000;
  height: 50px;
}

.chat-indicator {
  width: 12px;
  height: 12px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-indicator2 {
  width: 12px;
  height: 12px;
  background: #48ff00;
  border-radius: 50%;
  animation: pulse2 2s infinite;
}

.chat-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #171717;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-controls {
  display: flex;
  gap: 10px;
}