:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --dark: #292f36;
  --light: #f7fff7;
  --accent: #ff9f1c;
  --orange: #ff9f1c;
  --blue: #1e90ff;
  --green: #2ecc71;
  --red: #e74c3c;
  --yellow: #f1c40f;
  --pink: #fd79a8;
}
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
[data-theme="dark"] {
  --primary: #ff7675;
  --secondary: #74b9ff;
  --dark: #f7fff7;
  --light: #292f36;
  --accent: #ffe66d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
  url('Cartoons.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.arrow {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* Cartoon Cards */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: start;
}

.cartoon-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.cartoon-card:nth-child(even) {
  transform: rotate(1deg);
}

.cartoon-card:hover {
  transform: rotate(0deg) translateY(-10px);
}

.cartoon-card {
  height: 750px; /* همه کارت‌ها یک اندازه می‌شوند */
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-bottom: 3rem; /* فاصله مشخص از پایین کارت */
  overflow-y: auto;  /* متن طولانی اسکرول شود */
}

[data-theme="dark"] .cartoon-card {
  background: #333;
  color: white;
}

[data-theme="dark"] .card-body {
  color: white;
}
.cartoon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card-header {
  padding: 1.5rem;
  background-color: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year {
  background: white;
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: bold;
}
.image-slider {
  height: 250px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f0f0f0;
}
.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
}
.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.fun-facts {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.fun-facts li {
  margin-bottom: 0.5rem;
  position: relative;
}

.fun-facts li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: -1.2rem;
  top: -0.3rem;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;    /* باعث می‌شود دکمه‌ها پایین کارت باشند */
  padding-top: 1rem;
  z-index: 2;
}

.card-actions button {
  flex: 1;
  min-width: 0;
  padding: 0.8rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 50px;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  flex: 1;
  position: relative;
  z-index: 2;
}
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.theme-toggle .moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Theme Colors */
[data-theme="orange"] .card-header,
[data-theme="orange"] button {
  background-color: var(--orange);
}

[data-theme="blue"] .card-header,
[data-theme="blue"] button {
  background-color: var(--blue);
}

[data-theme="green"] .card-header,
[data-theme="green"] button {
  background-color: var(--green);
}

[data-theme="red"] .card-header,
[data-theme="red"] button {
  background-color: var(--red);
}

[data-theme="yellow"] .card-header,
[data-theme="yellow"] button {
  background-color: var(--yellow);
  color: var(--dark);
}

[data-theme="pink"] .card-header,
[data-theme="pink"] button {
  background-color: var(--pink);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
      font-size: 2.5rem;
  }
  
  .hero-subtitle {
      font-size: 1.2rem;
  }
  
  .container {
      grid-template-columns: 1fr;
      padding: 1rem;
  }
}



