:root {
    --navbar-height-phone: calc(1vh * 2 + 5vw + 0.5vh * 2 + 1vh);
    --navbar-height: calc(2vh * 2 + 1.25vw + 0.5vh * 2 + 1vh);
    --primary-color: #fafafc;
    --primary-color-dark: #E2E2E2;
    --secondary-color-dark: rgb(29, 29, 31);
}

.navbar button {
    margin: 0.5vh 2vh;
}


body {
    font-family: 'Helvetica Neue', sans-serif;
    color: rgb(29, 29, 31);
    line-height: 1.8;
    background-color: var(--primary-color);
}

/* Main Container */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--primary-color);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.075);
}

header {
    margin-bottom: 40px;
}

header img {
    width: 100%;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

header h1 {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    opacity: 0;
    transform: translateY(15px);  /* Start slightly lower */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-bottom: 40px;
}

#article-date {
    font-size: 80%; /* Same as default <small> */
    margin-bottom: 0px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Scroll Animations for Text */
.scroll-text {
    opacity: 0;  /* Initially hidden */
    /* visibility: hidden;  Ensures it's not interactive while hidden */
    transform: translateY(15px);  /* Start slightly lower */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-bottom: 60px;
}

.mb0 {
    margin-bottom: 0px;
}

/* Fade-in and Slide-up Animation */
.scroll-text.visible, header h1.visible, header img.visible, #article-date.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling for Sections */
h2 {
    font-size: 30px;
    color: #444;
    font-weight: 600;
    margin-bottom: 20px;
}
h3 {
    font-size: 24px;
    color: #444;
    font-weight: 600;
    margin-bottom: 10px;
}
p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    white-space: pre-wrap;
}

li {
    font-size: 18px;
    color: #555;
}


/* Table Styling */
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: var(--primary-color-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Table Headers */
.article-container th {
    background-color: var(--secondary-color-dark);
    color: var(--primary-color);
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
}

/* Table Rows */
.article-container td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--primary-color);
    color: #444;
}

/* Alternate Row Colors */
.article-container tr:nth-child(even) {
    background-color: var(--primary-color);
}

/* Hover Effect */
.article-container tr:hover {
    background-color: #e6e6e6;
}

/* Responsive Table */
.article-container table {
    /*
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    */
    border-radius: 8px;
}


/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    h2, h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }

    .article-container table {
        font-size: 14px;
    }

    .article-container th,
    .article-container td {
        padding: 10px;
    }
}


/* Style for the CTA button */
.cta-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #555; /* Match the dark tone from your palette */
  color: #fff; /* Text color */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
.cta-button:hover {
  background-color: #333; /* Slightly darker shade */
  transform: scale(1.1); /* Subtle enlargement */
}

/* Gift icon animation on hover (runs only once) */
.cta-button:hover::after {
  content: '🎁';
  margin-left: 10px;
  animation: shake 0.5s ease forwards;
}

/* Animation for the gift icon */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* Draw attention with pulse to CTA*/
:root {
    --pulse_animation_color_position_1: rgba(85, 85, 85, 0.5);
    --pulse_animation_color_position_2: rgba(85, 85, 85, 0.0);
}