.typewriter-text::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.article-card {
  position: relative;
  background-size: cover;
  background-position: center;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 1rem;
  z-index: 0;
}

.article-card-content {
  position: relative;
  z-index: 1;
}

.circle-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.circle-card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.circle-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 20;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline::after {
  content: '';
  position: absolute;
  height: 4px;
  background: linear-gradient(to right, #ffffff, #cccccc, #999999);
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -2px;
  border-radius: 10px;
}

.event {
  position: relative;
  width: 20%;
  text-align: center;
}

.event-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 3px solid #000000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.event-dot:hover {
  background-color: #cccccc;
}

.event-content {
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  z-index: 2;
  width: 300px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  color: #ffffff;
  pointer-events: none;
}

.event-dot:hover + .event-content {
  opacity: 1;
}

.event-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  filter: grayscale(100%);
}

.tradition-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.tradition-card a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.tradition-card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.tradition-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  padding: 10px;
}

.tradition-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.traditions-section {
  min-height: 600px;
}

body {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    padding: 20px 0;
  }

  .timeline::after {
    width: 4px;
    height: auto;
    left: 31px;
    top: 0;
    bottom: 0;
  }

  .event {
    width: 100%;
    padding-left: 70px;
    text-align: left;
    margin-bottom: 40px;
  }

  .event-dot {
    left: 19px;
    top: 15px;
    transform: none;
  }

  .event-content {
    left: 70px;
    width: calc(100% - 95px);
    top: 30px;
    bottom: auto;
    transform: none;
  }

  .traditions-section {
    min-height: 800px;
  }

  .tradition-card {
    width: 120px;
    height: 120px;
  }

  .tradition-card h4 {
    font-size: 0.85rem;
  }
}

.article-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.article-container {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
}

.gallery img {
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

article {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

footer {
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}

button.delete-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 10px;
}

input {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  background: #2ecc71;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #27ae60;
}

p.error {
  color: red;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  background: #2ecc71;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #27ae60;
}

@media (max-width: 640px) {
  nav {
    padding: 0.5rem 1rem;
  }

  nav img {
    height: 3rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .flex-row.gap-6 {
    gap: 0.5rem;
  }
}