/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom fonts - using traditional Vietnamese/Chinese inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans:wght@300;400;600&display=swap');

body {
  font-family: 'Noto Sans', sans-serif;
  background: linear-gradient(135deg, #f8f6f0 0%, #fff8dc 100%);
  color: #2d3748;
  line-height: 1.8;
  min-height: 100vh;
  background-attachment: fixed;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #713f12;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(113, 63, 18, 0.1);
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, transparent, #713f12, transparent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.content {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
}

/* Traditional scroll decoration */


.content p {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.6;
  position: relative;
}

/* Special styling for the first and last "Nam mô A Di Đà Phật" */
.content p:first-child,
.content p:last-child {
  font-weight: 600;
  color: #713f12;
  font-style: italic;
  margin: 1rem 0 2rem 0;
}

/* Personal information styling */
.content .personal-info {
  background: rgba(113, 63, 18, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid #a4451e;
  font-weight: 500;
}

/* Date styling */
#am-date {
  color: #a4451e;
  font-weight: 600;
  font-style: italic;
  padding: 1rem;
  background: rgba(164, 69, 41, 0.08);
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid rgba(164, 69, 41, 0.15);
}

/* Prayer text styling */
.content .prayer-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #5a4c3d;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .content {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 15px;
  }

  .content p {
    font-size: 1rem;
  }

  #am-date {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  .content {
    padding: 1rem;
    border-radius: 12px;
  }
}

/* Smooth animations */
* {
  transition: all 0.3s ease;
}

.content {
  animation: fadeInUp 1s ease-out;
}

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

/* Print styles */
@media print {
  body {
    background: white !important;
  }

  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .content {
    box-shadow: none;
    border: none;
    background: white !important;
  }
}
