/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d0d0d;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card Styling */
.container {
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

.card {
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
  padding: 40px 30px;
  text-align: center;
}

.card h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #d8b4fe;
}

.subtext {
  font-size: 16px;
  color: #999;
  margin-bottom: 30px;
}

/* Table Styling */
.rate-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  background-color: #2c2c2c;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.rate-row:hover {
  background-color: #383838;
}

.rate-row.header {
  background-color: #3b0075;
  font-weight: bold;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  margin: 5px 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn.discord {
  background-color: #5865f2;
  color: white;
}

.btn.discord:hover {
  background-color: #4752c4;
}

.btn.back {
  background-color: #333;
  color: #ccc;
}

.btn.back:hover {
  background-color: #444;
}

/* Apply a dark background to the whole page */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container that centers content */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Card-like box */
.card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
  max-width: 600px;
  width: 100%;
  text-align: center;
  border: 1px solid #333;
}

/* Title styling */
.card h1 {
  font-size: 2.5rem;
  color: #9a70f9;
  margin-bottom: 10px;
}

/* Subtext */
.subtext {
  font-size: 1rem;
  color: #bbbbbb;
  margin-bottom: 30px;
}

/* Rate table container */
.rate-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

/* Header row */
.rate-row.header {
  font-weight: bold;
  color: #ffffff;
  border-bottom: 2px solid #444;
  padding-bottom: 8px;
}

/* Each rate row */
.rate-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #e0e0e0;
  border-bottom: 1px solid #2a2a2a;
}

.rate-row span {
  flex: 1;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  margin: 10px 10px 0 10px;
  padding: 12px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #7f5eff, #a86efb);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

.btn:hover {
  background: linear-gradient(135deg, #a86efb, #7f5eff);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
}

/* Back button style */
.btn.back {
  background: transparent;
  border: 2px solid #7f5eff;
  color: #7f5eff;
}

.btn.back:hover {
  background: #7f5eff;
  color: #000;
}

/* Logo */
.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid #ba00ff;
  box-shadow: 0 0 10px rgba(186, 0, 255, 0.4);
}

/* Fade In From Bottom Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to Card */
.card {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Animate Rate Rows */
.rate-row {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.rate-row:nth-child(2) { animation-delay: 0.2s; }
.rate-row:nth-child(3) { animation-delay: 0.3s; }
.rate-row:nth-child(4) { animation-delay: 0.4s; }
/* Add more as needed */

/* Animate Buttons */
.btn {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

/* Animate Logo */
.logo {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

/* Smooth hover scaling (optional) */
.btn:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Reminder Box Styling */
.reminder-box {
  position: fixed;
  top: 80px;
  right: 40px;
  width: 250px;
  background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
  border: 1px solid #7f5eff;
  border-radius: 16px;
  padding: 20px;
  color: #f5f5f5;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
  z-index: 999;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.reminder-box h2 {
  font-size: 1.2rem;
  color: #ba85ff;
  margin-bottom: 10px;
}

.reminder-box p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.4;
}

.reminder-link {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #7f5eff, #a86efb);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.reminder-link:hover {
  background: linear-gradient(135deg, #a86efb, #7f5eff);
  transform: translateY(-2px);
}
