/* Reset defaults and apply Apple-like typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .life-stats, .work-life-stats, .wealth-comparison-stats, .life-summary-stats, .extra-stats {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    background-color: #F5F5F7; /* Soft white background */
    color: #1D1D1F; /* Dark gray text */
    line-height: 1.5;
}

/* Container styling */
.life-stats, .work-life-stats, .wealth-comparison-stats, .life-summary-stats, .life-detailed-stats {
    padding: 24px;
    border-radius: 18px;
    background: #FFFFFF; /* White card background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    margin: 20px auto;
    max-width: 800px; /* Constrain width for readability */
}

/* Headings */
h2, h3 {
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 16px;
}

h2 {
    font-size: 24px;
    line-height: 28px;
}

h3 {
    font-size: 18px;
    line-height: 22px;
}

/* Paragraphs and text */
p, .stat-text, .gratitude-message, .common-message, .intro-text_one p, .summary-message p {
    font-size: 16px;
    color: #1D1D1F !important; /* Override any prior color vars */
    margin-bottom: 12px;
}

/* Form styling */
form#dob_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
}

form#dob_form label {
    font-size: 16px;
    font-weight: 500;
    color: #1D1D1F;
    margin-bottom: 8px;
}

form#dob_form input[type="number"] {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 16px;
    color: #1D1D1F;
    background-color: #F5F5F7;
    border: 1px solid #D2D2D7; /* Light gray border */
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

form#dob_form input[type="number"]:focus {
    border-color: #007AFF; /* Blue focus ring */
}

form#dob_form input[type="submit"] {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #007AFF; /* Apple blue */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s ease;
}

form#dob_form input[type="submit"]:hover {
    background-color: #005BCB; /* Darker blue on hover */
}

/* Progress bars */
.progress-container {
    width: 100%;
    background-color: #EDEDF0; /* Light gray */
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar {
    height: 24px;
    background-color: #007AFF; /* Blue progress */
    border-radius: 12px;
    text-align: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    min-width: 24px; /* Ensure visibility for small percentages */
    transition: width 0.3s ease;
}

/* Icons */
.stat-icon, .extra-stats li i {
    font-size: 20px;
    color: #007AFF; /* Blue icons */
    margin-right: 12px;
    vertical-align: middle;
}

/* Stats lists */
.extra-stats, .stats-list {
    list-style: none;
    padding: 0;
}

.extra-stats li, .stats-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #EDEDF0;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.extra-stats li:hover, .stats-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-text {
    flex: 1;
    font-size: 16px;
    color: #1D1D1F;
}

/* Chart container */
.life-summary-chart {
    margin: 24px 0;
    text-align: center;
}

.life-summary-chart h3 {
    margin-bottom: 16px;
}

canvas#lifetimeChart {
    max-width: 100%;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 12px;
}

/* Intro text */
#intro-text {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 12px;
}

/* Summary message */
.summary-message {
    text-align: center;
}

.summary-message img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 16px;
}

/* Tables (for life expectancy stats) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

td {
    padding: 16px;
    vertical-align: top;
    border: 1px solid #EDEDF0;
    border-radius: 12px;
}

td ul {
    list-style: none;
    padding: 0;
}

td ul li {
    font-size: 16px;
    margin-bottom: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .life-stats, .work-life-stats, .wealth-comparison-stats, .life-summary-stats, .life-detailed-stats {
        padding: 16px;
        margin: 12px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p, .stat-text {
        font-size: 14px;
    }

    form#dob_form input[type="number"] {
        max-width: 100%;
    }

    .stat-icon, .extra-stats li i {
        font-size: 18px;
    }
}

.wealth-comparison-intro {
    background-color: #f8f9fa; /* Light gray background for a soft contrast */
    padding: 20px 30px; /* Generous padding for breathing room */
    border-left: 4px solid #007bff; /* Blue left border for a pop of color */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: 1.1em; /* Slightly larger text for emphasis */
    font-style: italic; /* Italicized for a thoughtful tone */
    color: #333; /* Dark gray text for readability */
    line-height: 1.6; /* Improved line spacing */
    margin-bottom: 30px; /* Space below to separate from other content */
    max-width: 800px; /* Restrict width for better readability */
    margin-left: auto; /* Center the block */
    margin-right: auto;
}

/* Optional: Style the paragraph inside for extra finesse */
.wealth-comparison-intro p {
    margin: 0; /* Remove default paragraph margin */
}


#tabContent-tcbTabbedContent-7 .wp-block-tcb-tab{
	    padding: 5px!important;
}
.summary-message {
    background-color: #f8f9fa; /* Light gray background for a soft contrast */
    padding: 20px 30px; /* Generous padding for breathing room */
    border-left: 4px solid #007bff; /* Blue left border for a pop of color */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: 1.1em; /* Slightly larger text for emphasis */
    font-style: italic; /* Italicized for a thoughtful tone */
    color: #333; /* Dark gray text for readability */
    line-height: 1.6; /* Improved line spacing */
    margin-bottom: 30px; /* Space below to separate from other content */
    max-width: 800px; /* Restrict width for better readability */
    margin-left: auto; /* Center the block */
    margin-right: auto;
}

/* Style the paragraphs and heading inside for consistency */
.summary-message p {
    margin: 0 0 10px 0; /* Small bottom margin between paragraphs */
}

.summary-message h3 {
    font-family: 'Georgia', serif; /* Match the font */
    font-style: normal; /* Non-italic heading for contrast */
    color: #007bff; /* Blue to match the border */
    margin-bottom: 15px; /* Space below the heading */
}

/* Container for the entire module */
.cosmic-scale-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Cosmic background effect */
.cosmic-scale-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"%3E%3Ccircle cx="100" cy="100" r="2" fill="white" opacity="0.5"/%3E%3Ccircle cx="200" cy="300" r="3" fill="white" opacity="0.3"/%3E%3Ccircle cx="400" cy="200" r="1" fill="white" opacity="0.7"/%3E%3Ccircle cx="600" cy="500" r="2" fill="white" opacity="0.4"/%3E%3C/svg%3E') repeat;
    opacity: 0.1;
    z-index: 0;
}

/* Intro Styling */
.cosmic-scale-intro {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1.1em;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: height 0.5s ease, opacity 0.5s ease;
}

.cosmic-scale-intro p {
    margin: 0;
}

/* Display Area */
.cosmic-scale-display {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Cosmic Gradient Bar on Left */
.cosmic-gradient-bar {
    position: absolute;
    left: 10px;
    top: 0; /* Start from top */
    width: 1px;
    height: 0%;
    background: linear-gradient(to bottom, #00d4ff, #ff6f61); /* Reversed gradient */
    border-radius: 4px;
    opacity: 0;
    transform-origin: top; /* Grow downward */
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Scale Line Container */
.scale-line-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Scale Line */
.scale-line {
    width: 4px;
    height: 0%;
    background: linear-gradient(to top, #ff6f61, #00d4ff);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

/* Scale Markers */
.scale-markers {
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

.marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marker:nth-child(1) i { font-size: 4px; }  /* Human */
.marker:nth-child(2) i { font-size: 6px; }  /* Village */
.marker:nth-child(3) i { font-size: 8px; }  /* Romania */
.marker:nth-child(4) i { font-size: 12px; } /* Earth */
.marker:nth-child(5) i { font-size: 20px; } /* Solar System */
.marker:nth-child(6) i { font-size: 36px; } /* Milky Way */
.marker:nth-child(7) i { font-size: 60px; } /* Universe */

.marker i {
    color: #00d4ff;
    margin-right: 5px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.7);
}

.marker span {
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Slider Styling */
.cosmic-slider {
    width: 100%;
    margin: 20px 0 10px 0;
    -webkit-appearance: none;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

.cosmic-slider:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cosmic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00d4ff;
}

.cosmic-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00d4ff;
}

/* Icons Below Slider */
.scale-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 10px;
    color: #00d4ff;
    margin-bottom: 5px;
}

.universe-icon {
    text-shadow: 0 0 5px #00d4ff;
}

.human-icon {
    text-shadow: 0 0 5px #ff6f61;
}

/* Caption Styling */
.scale-caption {
    color: #00d4ff;
    font-weight: bold;
    margin-top: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.7);
}

















/* Container for the Earth timeline module */
.earth-timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(180deg, #1a2a1e 0%, #162e13 100%); /* Earthy gradient */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Earthy background effect */
.earth-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"%3E%3Ccircle cx="150" cy="150" r="2" fill="white" opacity="0.3"/%3E%3Ccircle cx="300" cy="400" r="3" fill="white" opacity="0.2"/%3E%3Ccircle cx="500" cy="200" r="1" fill="white" opacity="0.4"/%3E%3C/svg%3E') repeat;
    opacity: 0.05;
    z-index: 0;
}

/* Intro Styling */
.earth-timeline-intro {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-left: 4px solid #8bc34a; /* Earthy green */
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1.1em;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: height 0.5s ease, opacity 0.5s ease;
}

.earth-timeline-intro p {
    margin: 0;
}

/* Display Area */
.earth-timeline-display {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Time Gradient Bar on Left */
.time-gradient-bar {
    position: absolute;
    left: 10px;
    top: 0;
    width: 8px;
    height: 0%;
    background: linear-gradient(to bottom, #8bc34a, #ff9800); /* Green to orange */
    border-radius: 4px;
    opacity: 0;
    transform-origin: top;
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
}

/* Time Line Container */
.time-line-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Time Line */
.time-line {
    width: 4px;
    height: 0%;
    background: linear-gradient(to top, #ff9800, #8bc34a);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    box-shadow: 0 0 15px rgba(139, 195, 74, 0.7);
}

/* Time Markers */
.time-markers {
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

.marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marker:nth-child(1) i { font-size: 4px; }  /* Modern Human */
.marker:nth-child(2) i { font-size: 6px; }  /* Cenozoic */
.marker:nth-child(3) i { font-size: 8px; }  /* Mesozoic */
.marker:nth-child(4) i { font-size: 12px; } /* Paleozoic */
.marker:nth-child(5) i { font-size: 20px; } /* Proterozoic */
.marker:nth-child(6) i { font-size: 28px; } /* Archean */
.marker:nth-child(7) i { font-size: 36px; } /* Hadean */
.marker:nth-child(8) i { font-size: 60px; } /* Earth Formation */

.marker i {
    color: #8bc34a;
    margin-right: 5px;
    text-shadow: 0 0 5px rgba(139, 195, 74, 0.7);
}

.marker span {
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 0 5px rgba(139, 195, 74, 0.5);
}

/* Slider Styling */
.time-slider {
    width: 100%;
    margin: 20px 0 10px 0;
    -webkit-appearance: none;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

.time-slider:hover {
    background: rgba(255, 255, 255, 0.4);
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #8bc34a;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #8bc34a;
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #8bc34a;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #8bc34a;
}

/* Icons Below Slider */
.time-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 10px;
    color: #8bc34a;
    margin-bottom: 5px;
}

.formation-icon {
    text-shadow: 0 0 5px #8bc34a;
}

.modern-icon {
    text-shadow: 0 0 5px #ff9800;
}

/* Caption Styling */
.time-caption {
    color: #8bc34a;
    font-weight: bold;
    margin-top: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(139, 195, 74, 0.7);
}