/* Base styles for all charts */
.chart {
    width: 100%;
    height: auto;
    position: relative; /* Ensure the chart div can contain absolutely positioned elements */
}

/* Overlay message for charts */
.chart::before {
    content: "Rotate your device to view the dashboard";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 10px;
    background-color: #4A4A4A;
    border-radius: 5px;
    display: none;
    font-family: halyard, sans-serif;
}

/* Map Chart */
.map-chart {
    width: 100%;
    height: auto;
    max-width: 915px;
    max-height: 675px;
    position: relative;
}

@media (max-width: 768px) {
    .map-chart {
        width: 375px;
        height: 590px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    .map-chart {
        background-color: rgba(0, 0, 0, 0.5); /* Greyed out effect */
    }
    .map-chart::before {
        display: block; /* Show the overlay message */
    }
}

/* Detailed Table Chart */
.detailed-table-chart {
    width: 100%;
    height: auto;
    max-width: 850px;
    max-height: 450px;
}

@media (max-width: 768px) {
    .detailed-table-chart {
        width: 375px;
        height: 501px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    .detailed-table-chart {
        background-color: rgba(0, 0, 0, 0.5); /* Greyed out effect */
    }
    .detailed-table-chart::before {
        display: block; /* Show the overlay message */
    }
}

/* Over Time Chart */
.over-time-chart {
    width: 100%;
    height: auto;
    max-width: 915px;
    max-height: 675px;
}

@media (max-width: 768px) {
    .over-time-chart {
        width: 375px;
        height: 510px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    .over-time-chart {
        background-color: rgba(0, 0, 0, 0.5); /* Greyed out effect */
    }
    .over-time-chart::before {
        display: block; /* Show the overlay message */
    }
}
