.tabs {
    display: flex;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 16px;
}

.tab-link {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    margin-right: 5px;
    font-size: 16px;
}

.tab-link:hover {
    background-color: #ddd;
}

.tab-link.active {
    background-color: #ccc;
}

.tab-content {
    display: none;
    padding: 0 8px;
}

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

.oils-chart-price {
    background: #fff;
    padding: 16px;
    margin: 32px;
}

.statistics-container {
    display: flex;
    background: #f9f9f9;
    padding: 8px;
    margin-top: 8px;
}

.statistics-container .details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
    gap: 16px;
}

.statistics-container .details .indicator-item {
    display: flex;
}

.statistics-container .highlighted {
    flex: 0.5;
}

.statistics-container .highlighted .latest-price {
    font-size: 40px;
}

.statistics-container .details .indicator-item span {
    padding-left: 8px;
}

.statistics-container .up {
    color: red;
}

.statistics-container .down {
    color: green;
}

.statistics-time {
    text-align: right;
    font-size: 14px;
}

.statistics-header {
    background-color: #f9f9f9;
    padding: 12px;
}

.chart-time-container {
    font-size: 14px;
    margin: 12px 0;
}

.chart-buttons-container {
    background: #f9f9f9;
    border-top: 1px solid #e8e8e8;
    margin-bottom: 12px;
}

.chart-buttons-container button {
    padding: 16px 32px;
    transition: background 0.2s ease-in-out;
}

.chart-buttons-container button.active {
    background: #fff;   
}

@media screen and (max-width: 1199px) {
    #index-page .bottom .grey-box {
        padding: 8px;
    }
    
    .oils-chart-price {
        margin: 0;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .tabs {
        margin-bottom: 8px;
    }
    
    .tab-content {
        padding: 0;
    }
    
    .statistics-container .details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        column-gap: 2px;
    }
    
    .statistics-header {
        padding: 8px;
    }
    
    .statistics-container {
        font-size: 12px;
        padding: 0;
    }
    
    .statistics-container .highlighted .latest-price {
        font-size: 24px;
    }
    
    .statistics-container .details .indicator-item span {
        padding-left: 4px;
    }
    
    .statistics-time, .chart-time-container {
        font-size: 11px;
    }
    
    .chart-buttons-container button {
        padding: 12px 24px;
    }
}