body {
  background: url("../../images/worlds.png") no-repeat fixed center;
  background-size: cover;
  background-position: center center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-image 1s ease-in-out;
  background-color: #000;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-family: 'Inter', sans-serif;
  color: #ebc334;
  font-size: 2.5rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.page-subtitle {
  font-family: 'Inter', sans-serif;
  color: #ced8db;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.page-subtitleb {
  font-family: 'Inter', sans-serif;
  color: #36add1;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.main-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.main-card {
  background: rgba(51, 58, 64, 0.85);
  border: 3px solid rgba(235, 195, 52, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.main-card:hover {
  transform: translateY(-8px);
  border-color: rgba(235, 195, 52, 0.8);
  box-shadow: 0 12px 24px rgba(235, 195, 52, 0.3);
  background: rgba(51, 58, 64, 0.95);
}

.main-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.main-card .world-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ebc334;
  margin-bottom: 0.5rem;
}

.main-card .world-time {
  font-size: 0.9rem;
  color: #e67e22;
  font-style: italic;
}

.deprecated-btn {
  background: rgba(51, 58, 64, 0.85);
  border: 3px solid rgba(235, 195, 52, 0.3);
  border-radius: 12px;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ebc334;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.deprecated-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 195, 52, 0.8);
  box-shadow: 0 12px 24px rgba(235, 195, 52, 0.3);
  background: rgba(51, 58, 64, 0.95);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: rgba(51, 58, 64, 0.95);
  border: 4px solid rgba(235, 195, 52, 0.5);
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(235, 195, 52, 0.3);
  padding-bottom: 1rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ebc334;
}

.close-btn {
  font-size: 2rem;
  color: #ced8db;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #ff5555;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  background-color: #111212;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  color: #ced8db;
  border: 2px solid transparent;
}

.download-item:hover {
  transform: translateX(5px);
  background-color: #1a1d1f;
  border-color: rgba(235, 195, 52, 0.3);
}

.download-item img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}

.file-details {
  flex-grow: 1;
  margin-left: 1rem;
}

.file-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #ebc334;
}

.file-meta {
  font-size: 0.9rem;
  color: #999;
}

.file-meta span:first-child {
  color: #ced8db;
}

.file-note {
  color: #eb5534;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media screen and (max-width: 768px) {
  .main-downloads {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .main-downloads {
    grid-template-columns: 1fr;
  }
}
