/* Font family definition - matches FONT_FAMILY in defaults.py */
@font-face {
    font-family: 'MuseoSansRounded';
    src: url('MuseoSansRounded-500.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

body {
    font-family: 'MuseoSansRounded', sans-serif; /* FONT_FAMILY from defaults.py */
    color: #2F2D2A;
    padding-top: 20px;
}

h1, h2 {
    color: #2F2D2A;
    text-align: center;
}

h3, h4 {
    color: #979694;
    text-align: center;
}

h3 {
    margin-bottom: 0px;
}

h3 + h1 + h2 {
    margin-top: 0px;
}

/* Background image with fade-out effect */
.bg-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: -2;
}

.bg-container::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: -1;
}

.bg-container {
    position: relative;
}

/* Mobile background styling */
@media (max-width: 768px) {
    .bg-container::before {
        background-size: 300% auto;
        background-repeat: repeat-y;
        background-position: top center;
    }

    /* Logo sizing on mobile */
    img[src*="MC Logo"] {
        max-width: 90% !important;
        width: 90% !important;
        height: auto !important;
    }
}

/* Audio player styling */
audio {
    width: 100%;
    max-width: 600px;
    height: 54px;
    border-radius: 8px;
    outline: none;
}

audio::-webkit-media-controls-panel {
    background-color: #46A03E;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: invert(1);
}

audio::-webkit-media-controls-timeline {
    filter: invert(1);
}

audio::-webkit-media-controls-volume-slider {
    filter: invert(1);
}

/* Donate button styling */
.red-btn {
    background-color: #E53B2E;
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'MuseoSansRounded', sans-serif; /* FONT_FAMILY from defaults.py */
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.red-btn:hover {
    background-color: #46A03E;
}

.red-btn .btn_text {
    font-size: 16px;
    font-weight: 700;
}

.red-btn .arrow-btn {
    display: inline-flex;
    align-items: center;
}

.cart-btn {
    border: none;
    outline: none;
}

a:has(.red-btn) {
    display: inline-block;
    text-decoration: none;
}

/* Make charts responsive */
.js-plotly-plot {
    width: 100% !important;
}

.plotly {
    width: 100%;
}

