body {
    margin: 0;
    padding: 0;
}

table {
    margin-left: auto;
    margin-right: auto;
    border-spacing: 5px 10px;
}

th,
td {
    width: auto;
    white-space: nowrap;
}

.positive {
    color: green;
}

.negative {
    color: red;
}

body {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 1%;
}

#chart-container {
    position: relative;
    margin: auto;
    height: auto;
    width: 70vw;
    max-width: 1400px;
    /* Prevent stretching on ultra-wide monitors */
}

/* Large desktop (already handled by the base CSS above) */

/* Laptop / Smaller desktop */
@media (max-width: 1200px) {
    #chart-container {
        width: 80vw;
    }
}

/* Tablet */
@media (max-width: 768px) {
    body {
        margin-left: 2%;
        margin-right: 2%;
    }

    #chart-container {
        width: 90vw;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    body {
        margin-left: 1%;
        margin-right: 1%;
    }

    #chart-container {
        width: 95vw;
    }
}

/* Small smartphone */
@media (max-width: 320px) {
    #chart-container {
        width: 100vw;
    }
}