
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.w-18 {
  width: 4.5rem;
}

.h-12 {
  height: 3rem;
}

.h-52 {
  height: 13rem;
}

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }

.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-red-600 { color: #dc2626; }
.text-gray-700 { color: #374151; }
.text-white { color: #fff; }

/* Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Background and borders */
.bg-white { background-color: #fff; }
.bg-orange-500 { background-color: #f97316; }

.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.custom-shadow { box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.8); }

/* Interactive elements */
.hover-bg-orange-600:hover { background-color: #ea580c; }

/* Form elements */
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

input[type="submit"] {
  width: 100%;
  background-color: #f97316;
  color: white;
  padding: 0.5rem 0;
  margin-top: 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 600;
}

input[type="submit"]:hover {
  background-color: #ea580c;
}

/* Form Container Styles */
.form-container {
  background-color: #fff;
  font-size: 1rem;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.8);
}

.form-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.form-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Mobile-first responsive card layout */
.responsive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.card-box {
  width: calc(50% - 0.5rem); /* Two cards per row with gap */
  height: 145px;
  background-color: #F2F2F2;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
}

.custom-card-header {
  background-color: #dc2626;
  color: white;
  padding: 0.75rem 0.5rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-content {
  padding: 1rem 0;
}

.card-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626;
}

/* Moon sign image */
.sign-image {
  width: 60px;
  height: 50px;
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
}

/* Moon result section */
.moon-result {
  display: flex;
  margin-top: 1.25rem;
  text-align: left;
  align-items: center;
  gap: 0.5rem;
}

.moon-label {
  font-size: 1.25rem;
  font-weight: 600;
}

.moon-sign {
  color: #dc2626;
  font-weight: 600;
  font-size: 1.25rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-description {
  color: #374151;
  text-align: left;
  margin-top: 0.5rem;
}

/* Headings */
.main-heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Error message */
.error-message {
  font-weight: bold;
  font-size: 0.875rem;
  color: #dc2626;
  padding: 0 1rem;
  border-radius: 0.25rem;
  position: relative;
  text-align: center;
  margin-top: 0.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive design */
@media (min-width: 768px) {
  .card-box {
    width: 192px;
  }
  
  .responsive-container {
    justify-content: space-around;
  }
  
  .custom-card-header {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .card-box {
    height: 130px;
  }
  
  .custom-card-header {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .form-container {
    padding: 1rem;
  }
  
  .form-image {
    height: 10rem;
  }
  
  .moon-result {
    gap: 0.25rem;
  }
}

@media (max-width: 360px) {
  .card-box {
    height: 120px;
  }
  
  .custom-card-header {
    font-size: 0.75rem;
  }
  
  .card-number {
    font-size: 1rem;
  }
  
  .sign-image {
    width: 80px;
    height: 64px;
  }
  
  .moon-label {
    font-size: 1.125rem;
  }
  
  .moon-sign {
    font-size: 1.125rem;
    width: auto;
    height: auto;
  }
}

/* Additional utilities */
.object-cover { object-fit: cover; }
.relative { position: relative; }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: ease-in-out; }

/* Reset and Base Styles */

/* Section Headers */
.section-header {
    background-color: #d1d5db;
    padding: 12px;
    font-weight: bold;
    margin-top: 56px;
    border-radius: 8px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Content Text */
.content-text {
    margin-top: 16px;
    color: #374151;
    font-size: 1.25rem;
    text-align: left;
    line-height: 1.7;
}

/* Ad Container */
.ad-container {
    margin: 16px 0;
}

/* Rashi Section */
.rashi-section {
    padding: 16px;
    /* background-color: white; */
    margin-top: 32px;
}

.rashi-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
    color: #374151;
}

/* Table Container */
.table-container {
    margin: 0 auto;
    overflow-x: auto;
    max-width: 48rem;
}

/* Rashi Table */
.rashi-table {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    font-size: 0.875rem;
    border-collapse: collapse;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.rashi-table thead {
    background-color: #dc2626;
}

.rashi-table th {
    padding: 12px 16px;
    border: 1px solid #374151;
    color: white;
    text-align: center;
    font-weight: 600;
}

.rashi-table td {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    color: #374151;
}

.rashi-table tbody tr {
    transition: background-color 0.2s ease;
}

.rashi-table tbody tr:hover {
    background-color: #fef2f2;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .rashi-table {
        font-size: 1rem;
    }
    
    .rashi-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .content-text {
        font-size: 1.125rem;
    }
    
    .rashi-title {
        font-size: 1.375rem;
    }
    
    .rashi-table {
        font-size: 0.75rem;
    }
    
    .rashi-table th,
    .rashi-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .rashi-table {
        font-size: 0.7rem;
    }
    
    .rashi-table th,
    .rashi-table td {
        padding: 6px 8px;
    }
    
    .section-header h2 {
        font-size: 1.125rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
}

/* Additional spacing for better readability */
.rashi-section {
    margin-bottom: 40px;
}

/* Ensure table is properly scrollable on small screens */
.table-container {
    -webkit-overflow-scrolling: touch;
}