:root {
  --main-color: #00d9ff; /* Default Apex Blue = #00d9ff(change back later) */
}

/* === GENERAL === */
body {
  font-family: 'Minecraft', monospace;
  background: linear-gradient(270deg, #0c0f14, #121620, #0f111a, #121620);
  background-size: 600% 600%;
  animation: subtleGradientShift 40s ease infinite;
  color: white;
  margin: 0;
  text-align: center;
}

/* === BACKGROUND GRADIENT ANIMATION === */
@keyframes subtleGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes wobble {
  0%   { transform: rotate(-20deg) scale(1); }
  50%  { transform: rotate(-18deg) scale(1.05); }
  100% { transform: rotate(-20deg) scale(1); }
}


#splash {
  position: absolute;
  left: 100%;
  margin-left: 10px;
  color: #ffe600;
  top: 0.2em;         
  white-space: nowrap;
  animation: wobble 1.5s infinite ease-in-out;
  font-size: 0.4em;
  transform: rotate(-20deg);
}
@font-face {
  font-family: 'Minecraft';
  src: url('./fonts/Minecraftia1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Minecrafttitle';
  src: url('./fonts/Minecrafter.REG.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* === MAIN TITLE === */
h1 {
  margin: 20px 0;
  font-size: 2.5em;
  color: var(--main-color);

  font-family: 'Minecrafttitle', monospace;
  font-weight: 100;
  position: relative;
  display: inline-block;
}
q1 {
  margin: 20px 0;
  font-size: 2.5em;
  color: white;

  font-family: 'Minecraft', monospace;
  font-weight: 100;
  position: relative;
  display: inline-block;
}


/* === TAB MENU === */
.tab-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #181a1f;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tab-menu button {
  background: #222;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.tab-menu button:hover {
  background: var(--main-color);
  transform: scale(1.05);
}

.tab-menu button.active {
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
  transform: scale(1.05);
}

/* Press animation for tab buttons */
.tab-menu button:active {
  transform: scale(0.92);
  transition-duration: 0.1s;
}

/* === TAB CONTENT + ANIMATIONS === */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* === CLIENT GRID === */
#client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* === CLIENT CARDS === */
.client-card {
  background: #1a1a1f;
  border-radius: 12px;
  padding: 15px;
  width: 200px;
  box-shadow: 0 0 12px var(--main-color);
  border: 2px solid var(--main-color);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px var(--main-color), 0 0 16px var(--main-color);
}

.client-card h2 {
  font-size: 1.2em;
  color: var(--main-color);
  margin: 0.5rem 0;
  text-shadow: 0 0 6px var(--main-color);
}

.client-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 12px var(--main-color);
}

/* === BUTTONS === */
button {
  background: linear-gradient(to right, var(--main-color), var(--main-color));
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 4px 12px var(--main-color);
}

button:hover {
  background: linear-gradient(to right, var(--main-color), var(--main-color));
  transform: scale(1.05);
}

/* Press animation for all buttons */
button:active {
  transform: scale(0.92);
  transition-duration: 0.1s;
}

/* === SERVER LIST === */
.server-list {
  list-style: none;
  padding: 0;
  font-size: 1.1em;
}

.server-list li {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  margin: 10px auto;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 0 6px var(--main-color);
}

/* === FOOTER === */
footer {
  margin: 40px 0;
  font-size: 0.9em;
  color: #888;
}

footer a {
  color: var(--main-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 600px) {
  #client-list {
    flex-direction: column;
    align-items: center;
  }

  .client-card {
    width: 90%;
  }

  .tab-menu {
    flex-direction: column;
    align-items: center;
  }

  .tab-menu button {
    margin: 5px 0;
    width: 90%;
  }

  .server-list li {
    max-width: 90%;
    font-size: 1em;
  }
}
