html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior: none; /* Prevents overscroll/pull-to-refresh effect */
}

body {
    background-color: LightGray;
    /* Background image is now configured via config.json and loaded from /css/dynamic.css */

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}
.navbar {
    margin-bottom: 2%;
}
.table__wrapper {
  overflow-x: auto;
}
.navbar-item img {
    max-height: 4.75rem;
}
table {
    table-layout: fixed;
    width: 100%;
}

/* Ensure table cells handle overflow properly */
table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 60%;
}

table th {
    width: 40%;
}

/* Volume container and warning styles */
.volume-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.volume-max {
    font-size: 0.85em;
    color: #666;
    margin-left: 4px;
}

.volume-warning {
    display: inline-block;
    margin-top: 4px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
    align-self: flex-start;
}

/* Style for other warning tags in table cells */
table td .tag:not(.volume-warning) {
    display: inline-block;
    margin-top: 4px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    padding: 0.25em 0.5em;
    font-size: 0.85em;
}

.media-shadow {
    box-shadow: 1px 1px 10px 1px grey;
    border-radius: 5px;
    padding: 10px;
}

/* Chart container styling */
#chart-container {
    background-color: white;
}

/* Dark mode styles */
[data-theme="dark"] #chart-container {
    background-color: #1a1a1a;
}
