body {
    font-family: Calibri, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-y: auto;
    background: url("../images/yellow-hexes.png") no-repeat center center fixed;
    background-size: cover;
}

/* Banner Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    overflow: visible;
    box-sizing: border-box;
}

/* Responsive banner image */
#header img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

/* Content container */
.content-container {
    display: block;       /* remove vertical centering */
    margin-top: 140px;    /* space for fixed header */
    padding: 10px;
}

/* Paragraphs */
p {
    text-align: justify;
}

/* Button Group Styling */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    background: none; 
    width: 100%;
    height: auto;
}

/* Action Buttons */
.action-button {
    background-color: #f1c40f;
    color: #000;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 60%;
    max-width: 400px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border: 2px solid #000;
}

/* Gradient yellow pulse animation */
@keyframes yellow-gradient-blink {
    0%, 100% {
        background: linear-gradient(90deg, #f1c40f, #f39c12);
    }
    50% {
        background: linear-gradient(90deg, #f39c12, #f1c40f);
    }
}

/* Apply to top banner */
#scroll-up-button.blink {
    animation: yellow-gradient-blink 1s infinite;
    background-size: 200% 200%; /* smoother gradient transition */
}

/* Make Install dropdown buttons match yellow color */
#install-app-content .nested-toggle {
    background-color: #f1c40f;  /* or the exact hex code used elsewhere, e.g., #FFD700 */
    color: #000;                /* optional: black text for contrast */
    border: none;               /* remove any border if needed */
}

/* Keep Become a Member button centered even when dropdown opens */
.become-member-container {
    width: 100%;
    text-align: center;
    position: relative; /* ensures dropdown positions correctly */
}

.attention-blink {
  animation: blinkAnim 0.4s linear infinite;
}

@keyframes blinkAnim {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.2; }
}

.centered-dropdown {
    background-color: black !important;
    color: white; /* ensures text is visible */
}

/* Ensure dropdown child elements also have black background */
.centered-dropdown .video-container {
    background-color: black;
}

/* Center the Become a Member button */
.become-member-container > .action-button {
    display: block;
    width: 60%;
    max-width: 400px;
    margin: 10px auto;
    padding: 10px 20px;
    flex: none;
}

/* Inner Become a Member button */
.inner-become-member,
[data-id='inner-become-member'] {
    background-color: #f1c40f !important; /* yellow */
    color: #000 !important;
    border: none;
    cursor: pointer;
    display: inline-block; /* ensure visibility */
    margin: 10px auto;
}

/* Optional: make it blink like other nested buttons */
.inner-become-member.blink,
[data-id='inner-become-member'].blink {
    animation: yellow-gradient-blink 1s infinite;
}

/* Dropdown content */
#become-member-content {
    display: none; /* initially hidden */
    position: absolute; /* sits below the parent button */
    top: 100%; /* directly below the parent */
    left: 50%;
    transform: translateX(-50%); /* center horizontally */
    width: 80%; /* slightly narrower than parent */
    background-color: #fff; /* visible background */
    z-index: 1000; /* above other content */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 10px;
}

/* Show the dropdown when toggled */
#become-member-content.show {
    display: block;
}

/* Optional hover effect for main action buttons */
.action-button:hover {
    background-color: #f39c12;
}

/* Centered Dropdown */
.centered-dropdown {
    text-align: center;
}

.centered-dropdown * {
    margin-left: auto;
    margin-right: auto;
}

/* Specific toggles */
#install-app-toggle {
    width: 200px;
    max-width: 400px;
    margin: 2em auto;
    display: block;
}

/* blinking animation */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.4; }
}

.attention-blink {
  animation: attentionBlink 0.35s linear infinite;
}

@keyframes attentionBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* dimmed after click */
.dimmed {
    opacity: 0.4;
    animation: none;
}

/* Center Install to Your Device dropdown and all nested content */
#install-app-content,
.nested-content,
.video-container,
.text-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    text-align: center;  /* center text inside elements */
    margin: 0 auto;      /* center block elements */
}

/* Override nested paragraphs to center instead of justify */
.nested-content p {
    text-align: center;
}

/* Ensure nested toggle buttons are centered */
.nested-toggle {
    margin: 1em auto;
}

/* Videos already have width 100% of container, container centered */
.video-container {
    width: 80%;
    max-width: 800px;
    margin: 10px auto;
}

/* Video Container */
.video-container {
    width: 80%;
    max-width: 800px;
    margin: 10px auto;
    background-color: #333;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-player {
    width: 100%;
    border: 2px solid #000;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Earn Now Button */
#earn-now-toggle {
    width: auto;  /* Allow it to adjust to the content width */
    max-width: 100%;  /* Make sure it doesn't exceed the container width */
    margin: 3em auto;  /* Center the button horizontally */
    display: block;
    padding: 10px 15px;  /* Adjust padding as needed */
    background-color: #f1c40f;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

/* Quiz Button */
.quiz-toggle-btn {
    display: inline-block;
    margin-top: 10px;
    background: #f1c40f;
    border: none;
    padding: 4px 6px; /* Half the original padding */
    font-size: 0.6em;  /* Scaled down font */
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px; /* Slightly smaller border radius */
}

/* Quiz Panel */
.quiz-panel {
    display: none;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
}

.quiz-panel p {
    margin: 10px 0 5px;
}

.quiz-panel label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.feedback {
    margin-top: 15px;
    font-weight: bold;
    min-height: 24px;
}

/* Chat Container */
#chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: black;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: lightgray;
}

/* Chat Box */
#chat-box {
    width: 100%;
    height: 150px;
    background-color: black;
    color: lightgray;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Chat Input */
#user-input {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #222;
    color: lightgray;
}

/* Chat Messages */
.chat-message {
  font-family: Arial, sans-serif;
  font-size: 14px; /* matches your existing font size */
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.chat-label {
  font-weight: bold;
  margin-bottom: 4px;
}

.chat-message.user {
  background-color: #333;  /* dark gray to match your theme */
  color: lightgray;
  margin-left: 0;
}

.chat-message.amal {
  background-color: #1a3b5d;  /* darker blue to blend with your black bg */
  color: lightgray;
  margin-left: 20px;  /* slight indent */
}


/* Chat Buttons */
#chat-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

#chat-buttons button {
    padding: 10px 15px;
    background-color: #444;
    color: lightgray;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 150px;
    text-align: center;
}

#chat-buttons button:hover {
    background-color: #555;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #chat-container {
        width: 95%;
    }

    #chat-buttons button {
        width: 100%;
    }
}

/* Get in Touch Button */
#get-in-touch-toggle {
    width: 200px;
    max-width: 400px;
    margin: 1em auto;
    display: block;
}

/* Main dropdown container */
#get-in-touch-content {
    display: flex;
    flex-direction: column;
    align-items: center;       /* horizontal centering */
    justify-content: center;   /* vertical centering */
    text-align: center;
    margin: 0 auto;
}

/* Paragraphs with background only behind text */
#get-in-touch-content p,
#get-in-touch-content .address p {
    display: inline;          /* background only behind letters */
    line-height: 1.6;
    margin: 0.5em 0;
    padding: 0 5px;           /* optional horizontal padding around text */
    background-color: #000;   /* only behind text */
    border-radius: 3px;       /* optional, looks nicer on inline */
}

/* Address paragraph specific */
#get-in-touch-content .address p {
    margin: 0;
}

/* Privacy Policy */
#privacy-policy-toggle {
    width: 200px;
    max-width: 400px;
    margin: 5em auto;
    display: block;
}

#privacy-policy-content p {
    text-align: justify;
    line-height: 1.6;
    margin: 1em 0;
    padding: 10px;
    background-color: #000;
    border-radius: 5px;
}

/* Impact Graphics */
.impact-graphics-wrapper {
    margin-top: 3em;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #000;
    color: #fff;
    margin-top: 20px;
}
