/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: #333;
    color: white;
}

.logo-left, .logo-right {
    width: 175px;
    padding: 10px;
}

.logo-left img, .logo-right img {
    width: 100%;
    display: block;
}

.header-content {
    text-align: center;
    flex: 1;
    padding: 20px 0;
}

.header-content h1 {
    margin: 10px 0;
    font-size: 36px;
    color: #ffcc00;
    text-shadow: 2px 2px 4px #000;
}

.header-content h2 {
    margin: 5px 0 20px;
    font-size: 18px;
    color: #ffcc00;
    text-shadow: 1px 1px 2px #000;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul.main-nav li {
    margin: 5px 10px;
}

nav ul.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul.main-nav li a:hover {
    background-color: #ffcc00;
    color: #333;
}

nav ul.social-nav {
    margin-top: 10px;
}

nav ul.social-nav li {
    margin: 5px 10px;
}

nav ul.social-nav li a img {
    width: 48px;
    vertical-align: middle;
}

/* Banner Styles */
.banner {
    text-align: center;
    background-color: #ffcc00;
    padding: 10px;
    border: 1px solid #ff9900;
    margin: 0;
}

.banner a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.banner h2 {
    margin: 0;
}

.banner p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Main Styles */
main {
    padding: 20px;
}

/* Tree Section Styles */
#tree-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#tree-container {
    width: 33%;
}

#tree-content {
    width: 67%;
    padding: 20px;
    border-left: 1px solid #ccc;
}

#tree-content h3 {
    font-size: 24px;
    margin-top: 0;
}

#tree-content button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#tree-content button:hover {
    background-color: #555;
}

/* Email Capture Styles */
#email-capture {
    text-align: center;
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#email-capture h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

#email-capture form {
    display: inline-block;
    text-align: left;
    max-width: 400px;
    width: 100%;
}

#email-capture form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}

#email-capture form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#email-capture form p {
    font-size: 14px;
    color: #777;
    margin-top: -10px;
    margin-bottom: 20px;
}

#email-capture form button {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#email-capture form button:hover {
    background-color: #555;
}

/* Social Follow Styles */
#social-follow {
    text-align: center;
    background-color: #333;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#social-follow h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 2px 2px 4px #000;
}

#social-follow .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#social-follow .social-icons a {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#social-follow .social-icons a img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#social-follow .social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#social-follow .social-icons a:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Section Styles */
#about {
    background-color: #f0f0f0;
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#about .about-container {
    max-width: 800px;
    margin: 0 auto;
}

#about h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

#about .button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#about .button-container button {
    background-color: #333;
    color: #ffcc00;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#about .button-container button:hover {
    background-color: #555;
}

#about .button-container button:active {
    background-color: #777;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Tree Diagram Styles */
.node circle {
    fill: #fff;
    stroke: steelblue;
    stroke-width: 3px;
}

.node.stocks circle {
    fill: #ff9999;
    stroke: #cc6666;
}

.node.real-estate circle {
    fill: #99ff99;
    stroke: #66cc66;
}

.node.crypto circle {
    fill: #9999ff;
    stroke: #6666cc;
}

.node.personal-finance circle {
    fill: #ffff99;
    stroke: #cccc66;
}

.node.business circle {
    fill: #ffcc99;
    stroke: #cc9966;
}

.node.passive-income circle {
    fill: #ff99ff;
    stroke: #cc66cc;
}

.node.taxes circle {
    fill: #99ffff;
    stroke: #66cccc;
}

.node text {
    font-size: 16px;
    font-weight: bold;
}

.link {
    fill: none;
    stroke: #ccc;
    stroke-width: 2px;
}

/* Calculator Section Styles */
#calculator-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#calculator-section .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

#calculator-section .left-section, 
#calculator-section .right-section {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#calculator-section h1, 
#calculator-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#calculator-section form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#calculator-section form input[type="text"],
#calculator-section form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#calculator-section form input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
}

#calculator-section form button {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#calculator-section form button:hover {
    background-color: #555;
}

#calculator-section .radio-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

#calculator-section .radio-group label {
    margin-right: 10px;
    font-weight: normal;
}

#calculator-section .hidden {
    display: none;
}

#calculator-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#calculator-section table th,
#calculator-section table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#calculator-section table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.toggle-details-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.toggle-details-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-details-button:active {
    background-color: #777;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* How-to Calculator Section Styles */
#how-to-calculator {
    width: 60%;
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#how-to-calculator h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#how-to-calculator ol {
    list-style: decimal inside;
    padding-left: 20px;
    color: #555;
}

#how-to-calculator li {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.6;
}

#how-to-calculator li strong {
    color: #333;
}

#how-to-calculator .disclaimer {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
    font-style: italic;
}

/* Dividend FAQ Section Styles */
#dividend-faq {
    width: 60%;
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#dividend-faq h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #555;
}

.faq-question.active {
    background-color: #555;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
    padding: 0 15px;
    border-radius: 0 0 5px 5px;
}

.faq-answer p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* What is FIRE Section Styles */
#what-is-fire {
    width: 80%;
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#what-is-fire .container {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

#what-is-fire h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#what-is-fire h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

#what-is-fire p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

#what-is-fire ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

#what-is-fire li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.6;
}

#what-is-fire li strong {
    color: #333;
}

/* Future Calculator Section Styles */
#futureCalculatorSection {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

#futureCalculatorSection .current-data {
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    font-size: 1.2em;
    margin: 0 auto;
}

.future-calculator {
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.future-calculator h2 {
    text-align: center;
}

.future-calculator form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.future-calculator .radio-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.future-calculator input[type="radio"] {
    margin-right: 5px;
}

.future-calculator input[type="number"] {
    width: 25%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.future-calculator button {
    width: 20%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.future-calculator button:hover {
    background-color: #555;
}

#futureDividendsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#futureDividendsTable th,
#futureDividendsTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#futureDividendsTable th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.future-calculator label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    #tree-section {
        flex-direction: column;
        width: 100%;
    }

    #tree-container, #tree-content {
        width: 100%;
    }

    #email-capture form, #about .about-container {
        width: 100%;
    }

    #calculator-section .container {
        flex-direction: column;
    }

    #how-to-calculator, #dividend-faq, #what-is-fire {
        width: 100%;
    }

    #futureCalculatorSection {
        width: 100%;
    }

    .future-calculator button {
        width: 100%;
    }

    .future-calculator input[type="number"] {
        width: 100%;
    }
}

/* Yearly Stats and Future Dividends Calculator - Mobile Optimization */
@media (max-width: 768px) {
    .right-section,
    .future-calculator {
        overflow-x: auto; /* Enable horizontal scrolling */
    }

    .yearly-dividends-table-wrapper table,
    #futureDividendsTable {
        min-width: 600px; /* Ensure the table is wide enough to scroll */
    }
}