* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f1117;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center; /* Horizontally center the container */
  align-items: center; /* Vertically center the container */
  min-height: 100vh; /* Ensure the body fills the viewport height */
  padding: 40px 20px;
  overflow-x: hidden;
  background-image: url('temp_background.png'); /* Set background image directly on body */
  background-size: cover;
  background-position: center;
}

.container {
  background-color: rgba(28, 31, 38, 0.9); /* Slight transparency for the background */
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 900px; /* Max width for the container */
  height: 100vh; /* Fill the full height of the viewport */
  display: flex;
  flex-direction: column; /* Allow the content to stack vertically */
  justify-content: flex-start; /* Align content from top to bottom */
  padding-top: 40px; /* Add padding at the top of the container to prevent cards being stuck to the roof */
}

h1 {
  font-family: 'Quicksand', sans-serif;
  text-shadow: 1px 1px 1px rgb(24, 245, 79);
  font-size: 2.2rem;
  color: #5cd376;
  text-align: center;
  margin-bottom: 30px;
}

#servers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  flex-grow: 1; /* Allow this section to take up available space */
  overflow-y: auto; /* Add vertical scroll if needed */
}

.server {
  background-color: #2c2f36;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 12px;
  width: 265px;
  height: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Default shadow */
  transition: box-shadow 0.3s ease-in-out; /* Transition for box-shadow only */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible; /* Ensure the shadow is visible */
  z-index: 1;
  margin-top: 30px; /* Add margin between cards and top */
}

.server:hover {
  transform: translateY(-4px);
}

.server h2 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.server p {
  font-size: 0.9rem;
  margin: 4px 0;
}

.server-icon {
  width: 100%;
  height: 120px;
  object-fit: fill;
  border-radius: 8px;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 6px;
  animation: fadeIn 0.3s ease-in;
}

.online {
  background-color: #4caf50;
  color: #fff;
}

.offline {
  background-color: #e53935;
  color: #fff;
}

.outdated {
  background-color: #ffcb6b;
  color: #000;
}

.loading,
.error {
  color: #ff5370;
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.server.copied {
  box-shadow: 0 0 25px rgba(58, 199, 77, 0.8); /* Larger, more prominent glow */
  z-index: 10; /* Ensure it's above other content */
}

.server::after {
  content: "Copied!";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.75rem;
  color: #a5ff82;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.server.copied::after {
  opacity: 1;
}

/* Flexbox adjustments for responsive grid */
@media (min-width: 768px) {
  #servers-container {
    justify-content: space-evenly; /* Evenly space the cards in a row */
  }
}

@media (max-width: 767px) {
  #servers-container {
    flex-direction: column;
    gap: 10px;
  }

  .server {
    width: 100%;
  }
}
.refresh-time {
  font-size: 1rem;
  color: #b0b0b0;
  text-align: center; /* Center the text */
  margin-top: -20px;
}