html,body {
  height:100%;
  margin:0;
  overflow:hidden;
  padding:0;
  width:100%;
}

#main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-image: url("img/bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-sizing: border-box;
  padding: 30px 20px;

  opacity: 0;
  opacity: 1 \9;
  -webkit-animation: fadeIn;
  animation: fadeIn;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}



#layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  text-align: center;
}



#logo {
  max-width: 100%;
  height: auto;
}

#buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


.button {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 22vw;
  width: 22vw;
  max-width: 200px;
  max-height: 220px;
  transition: background-size 0.2s ease;
}


.button:hover {
  transform: scale(1.05);
}
.button:active {
  transform: scale(0.95);
}


#forum {
	background-image:url("img/forums.png");
}

#vote {
	background-image:url("img/vote.png");
}

#store {
	background-image:url("img/store.png");
}

#bans {
	background-image:url("img/bans.png");
}

/*Fade*/
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }


#status-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#server-status {
  background: #2b2b2b url("img/bg-stone-texture.png"); /* Optional texture */
  border: 8px solid #444;
  border-radius: 20px;
  padding: 20px 30px;
  max-width: 400px;
  text-align: center;
  font-family: 'Luckiest Guy', cursive;
  color: white;
  text-shadow: 2px 2px 0 #000;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  margin-top: 40px;
  background-color: rgba(30, 30, 30, 0.85);
  border-radius: 12px;
  box-shadow:
    0 0 8px rgba(0, 255, 170, 0.6),
    0 0 20px rgba(0, 255, 170, 0.4),
    0 0 30px rgba(0, 255, 170, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
}


#status-text {
  font-size: 18px;
  margin-bottom: 10px;
  color: #c9f2c1; /* fantasy green */
}

#copy-ip {
  background: #2d2d2d;
  border: 2px solid #666;
  color: #fff;
  padding: 8px 18px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  font-family: 'Luckiest Guy', cursive;
}

#copy-ip:hover {
  background: #3f3f3f;
  border-color: #999;
  box-shadow: 0 0 10px #72ff8a66;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(0, 255, 170, 0.6),
      0 0 20px rgba(0, 255, 170, 0.4),
      0 0 30px rgba(0, 255, 170, 0.3);
  }
  50% {
    box-shadow:
      0 0 12px rgba(0, 255, 170, 0.8),
      0 0 25px rgba(0, 255, 170, 0.5),
      0 0 40px rgba(0, 255, 170, 0.4);
  }
}

@media (max-width: 600px) {
  #buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
  }

  .button {
    width: 40vw;
    height: auto;
    background-size: contain;
  }
}

@media (max-width: 600px) {
  #main {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 30px 0;
  overflow-y: auto;
}

  #layout {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 600px) {
  #logo {
    max-width: 80%;
    height: auto;
  }
}