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

body {
  background-color: rgb(23, 23, 23);
  font-family: "Space Grotesk", sans-serif;
  animation: pageEnter 0.45s ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

body.page-exit {
  animation: pageExit 0.35s ease forwards;
  pointer-events: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 30px 30px 0;
  padding: 8px 18px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.back-btn:hover {
  border-color: #4ee1a0;
  color: #4ee1a0;
  background: rgba(78, 225, 160, 0.07);
}

#activities {
  color: rgb(245, 247, 249);
  font-size: 4rem;
  padding: 30px;
}

.fliped-cards-activies {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1500px;
  margin: auto;
}

.flip-card {
  perspective: 1000px;
  background-color: transparent;
  width: 400px;
  height: 500px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.front-card,
.back-card {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.front-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.back-card {
  background: #4ee1a0;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transform: rotateY(180deg);
}

.act-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 30px 0;
}

.act-nav .back-btn {
  margin: 0;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.theme-toggle:hover {
  border-color: #4ee1a0;
  color: #4ee1a0;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-moon {
  display: none;
}

body {
  transition:
    background 0.3s,
    color 0.3s;
}

[data-theme="light"] body {
  background: #f0f2f5;
}

[data-theme="light"] #activities {
  color: #171717;
}

[data-theme="light"] .back-btn {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .back-btn:hover {
  border-color: #1a8a5a;
  color: #1a8a5a;
  background: rgba(26, 138, 90, 0.07);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .theme-toggle:hover {
  border-color: #1a8a5a;
  color: #1a8a5a;
}

[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

@media (max-width: 1024px) {
  .flip-card {
    width: 340px;
    height: 440px;
  }

  #activities {
    font-size: 3.2rem;
  }
}

@media (max-width: 900px) {
  .flip-card {
    width: 300px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .act-nav {
    padding: 20px 24px 0;
  }

  #activities {
    font-size: 2.8rem;
    padding: 20px 24px;
  }

  .flip-card {
    width: calc(50% - 10px);
    min-width: 260px;
    height: 360px;
  }

  .fliped-cards-activies {
    padding: 0 16px 40px;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .flip-card {
    width: 100%;
    max-width: 400px;
    height: 380px;
  }

  .act-nav {
    padding: 16px 16px 0;
  }
}
