/* Layout  */
.body {
  margin: 160px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

/* Summary Cards  */
.summary-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.summary-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.summary-card h3 {
  font-size: 22px;
  font-weight: bold;
}

/* Colors */
.summary-card.income h3 {
  color: #00f5c4;
}

.summary-card.expense h3 {
  color: #ff3e6c;
}

.summary-card.balance h3 {
  color: #5b8cff;
}

.summary-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Chart */
#chart {
  max-width: 600px;
  max-height: 600px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 1285px) {
  .summary-card {
    max-width: 300px;
  }
  #chart {
    max-width: 400px;
    max-height: 400px;
  }
}

@media (max-width: 900px) {
  .body {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .summary-card {
    max-width: 300px;
  }
  .summary {
    width: 300px;
    flex-direction: column;
  }
}
