body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
}

.title {
    margin: 0;
}

.menu {
    position: relative;
    display: inline-block;
}

.menu-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.menu-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.menu-content a:hover {
    background-color: #f1f1f1;
}

.menu-content .menu-item {
    display: flex;
    align-items: center;
}

.menu-content .menu-item img {
    margin-right: 10px;
}

.menu-content .menu-footer {
    padding: 12px 16px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    color: black;
}

.container {
    display: flex;
    flex-direction: row;
    height: calc(100% - 50px); /* Adjusted to leave space for the disclaimer toggle button */
    overflow: hidden;
}

.thumbnails {
    flex: 1;
    overflow-y: auto;
    background-color: #f1f1f1;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.details {
    flex: 2;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumbnail {
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    max-width: 150px;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail-label {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9em;
    color: #333;
}

.chart-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.chart-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chart-company {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

.chart-date {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.chart-comments {
    font-style: italic;
    margin-top: 10px;
}

.default-message {
    text-align: center;
    color: #999;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 80%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

#disclaimer {
    display: none;
    padding: 10px;
    background-color: #f1f1f1;
    color: black;
    text-align: center;
    font-size: 0.9em;
}

.disclaimer-toggle {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .thumbnails {
        order: 2;
        height: 50%;
    }
    .details {
        order: 1;
        height: 50%;
    }
}

@media (max-width: 480px) {
    .thumbnail-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .thumbnail-wrapper {
        width: 45%;
        margin-bottom: 10px;
    }
}
