html,
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Times New Roman', Times, serif;
}

.page-wrapper {
    display: flex;
    width: 100%;
    flex-grow: 1;
    /* Allow this wrapper to grow and fill available space */
}

.sidebar {
    flex: 0 0 280px;
    padding: 15px;
    background-color: #ffffff;
    /* border-right: 1px solid #dee2e6; */
    /* Removed as left sidebar is gone */
}

.right-sidebar {
    border-left: 1px solid #dee2e6;
    /* flex: 0 0 280px; */
    /* Already defined in .sidebar */
}

.main-content {
    flex: 1;
    padding: 15px 25px;
    overflow-y: auto;
    /* Keep scrolling within main content if needed */
}

.header-section h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.box {
    border: 1px solid #00000051;
    padding: 15px;
    margin-bottom: 15px;
    /* border-radius: 5px; */
    background-color: #ffffff;
}

/* --- Upgrade System Styles --- */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.upgrade-item {
    border: 1px solid #000;
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.upgrade-item:hover {
    background-color: #e9ecef;
}

.upgrade-item.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.upgrade-item h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.upgrade-item .cost {
    font-weight: bold;
    margin-bottom: 8px;
}

.upgrade-item .description {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.upgrade-category {
    margin-bottom: 20px;
}

.upgrade-category h3 {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.unlocked-upgrades {
    margin-top: 20px;
}

.unlocked-upgrades h3 {
    margin-bottom: 10px;
}

.upgrade-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: #007bff;
    color: white;
}

.upgrade-stats {
    font-size: 0.85em;
    margin-top: 5px;
    color: #495057;
}

.no-upgrades-message {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

.shop-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.shop-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.shop-section h5 {
    margin: 0 0 10px;
    color: #495057;
}

.shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.shop-grid button {
    flex: 1 1 180px;
    font-size: 0.85em;
    background-color: #fff;
    border: 1px solid #000000;
    text-align: left;
    line-height: 1.3;
    cursor: pointer;
    margin: 3px;
}

.shop-grid button:hover {
    background-color: #e9ecef;
}

footer {
    border-top: 1px solid #dee2e6;
    background-color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #000000;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Marquee effect for quotes */
.quote-marquee {
    overflow: hidden;
    position: relative;
    height: 500px;
    /* Adjust height as needed */
}

.quote-content {
    padding: 10px 5px;
    animation: scrollQuotes 250s linear infinite;
}

.quote-content p {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.5;
    padding-left: 15px;
    border-left: 3px solid #2c3e50;
}

@keyframes scrollQuotes {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-100% + 500px));
    }
}

/* --- ADDED RULES FOR COLLAPSIBLE MENU --- */
/* Rule to hide the content when collapsed */
.collapsible-content.collapsed {
    display: none;
}

/* Optional: Make the toggle header look clickable */
#shop-toggle {
    cursor: pointer;
    user-select: none;
    /* Prevent text selection on click */
}

/* --- END OF ADDED RULES --- */

.notification-box {
    height: 500px;
    /* Match the height of the quote-marquee */
    overflow: hidden;
    /* Prevent scrolling */
    border: 1px solid #00000051;
    padding: 15px;
    background-color: #ffffff;
}

.notification-box p {
    margin: 0 0 10px;
    color: #424242;
    font-size: 0.9em;
    line-height: 1.4;
}

.notification-box p.notification-info {
    color: #181818;
}

.notification-box p.notification-loss {
    color: #533a3d;
}

.notification-box p.notification-win {
    color: #0a035d;
}

.notification-box p.notification-mom,
.notification-box p.notification-mom-rant {
    color: #7da300;
    font-style: italic;
}

.notification-box p.notification-finish-success {
    color: #006d81;
}

.notification-box p.notification-finish-fail {
    color: #483603;
}

/* --- START: CSS for Tabs --- */
.tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.tab-button {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1em;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 3px solid transparent;
    /* For active indicator */
    margin-right: 5px;
    /* Spacing between tab buttons */
}

.tab-button:hover {
    background-color: #f0f0f0;
}

.tab-button.active {
    border-bottom-color: #2c3e50;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Upgrade counter styling */
.upgrade-counter {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 0.8em;
    margin-left: 5px;
    font-style: italic;
}

.upgrade-counter:empty {
    display: none;
}

/* --- END: CSS for Tabs --- */

/* --- START: CSS for Audio Player --- */
/* .audio-player {
        border: 2px solid black;
        padding: 10px;
        background-color: #aaaaaa;
        width: 300px;
        margin: 0 auto;
    } */

.audio-player .title {
    font-family: 'Times New Roman', Times, serif;

    text-align: center;
    /* margin-bottom: 10px; */
}

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-controls button {
    /* background-color: #cccccc; */
    /* border: 2px solid; */
    /* border-color: #ffffff #000000 #000000 #ffffff; */
    /* padding: 5px 10px; */
    margin: 0 1px;
    font-family: 'Times New Roman', Times, serif;

    cursor: pointer;
}

/* .audio-controls button:active {
        border-color: #000000 #ffffff #ffffff #000000;
    } */

.audio-controls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #cccccc;
    height: 10px;
    border: 1px solid rgb(240, 240, 240);
    width: 100px;
    margin-left: 10px;
}

.audio-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 2px solid rgb(255, 255, 255);
}

.audio-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #000000; /* Changed from #ffffff for consistency */
    border: 2px solid rgb(255, 255, 255);
    cursor: pointer;
}

/* Elegant button styling for save button */
.elegant-btn {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    padding: 5px 15px;
    margin: 0 10px;
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #2c3e50; /* Changed from 0.1px for better visibility */
    cursor: pointer;
    transition: all 0.3s ease;
}

.elegant-btn:hover {
    background-color: #f5f5f5;
    border-color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}