body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.market-insight {
    text-align: left;
    margin: 20px auto;
    width: 80%;
    margin-top: 30px;
}

.market-insight h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.market-insight p {
    font-size: 1rem;
    margin: 5px 0;
}

.insights-container {
    display: flex;
    gap: 20px;
    max-width: 80%;
    margin: 30px auto 50px;
}

.side-menu {
    width: 20%;
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
}

.side-menu li {
    background-color: #f2f2f2;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
}

.side-menu li:hover,
.side-menu li.active {
    background-color: #b7b7b7;
    color: white;
    font-weight: bold;
}

.stock-table {
    width: 75%;
}

.stock-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.stock-table th,
.stock-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.stock-table th {
    background-color: #b7b7b7;
    color: white;
}

.stock-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

th {
    cursor: pointer;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.category-filter button {
    background-color: white;
    color: #d9534f;
    border: 2px solid #d9534f;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    /* transition: background-color 0.3s ease; */
}

.category-filter button:hover,
.category-filter button.active {
    background-color: white;
    color: #d9534f;
    font-weight: bold;
}

#dynamic-paragraph {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

#noDataMessage {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #d9534f;
}

.stock-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-left: 8rem;
}

.container-info {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.info {
    margin-bottom: 50px;
}

.info h2 {
    margin-bottom: 15px;
}

.stock-info h2 {
    margin-bottom: 30px;
    margin-left: 8rem;
}

.info h3 {
    /* font-weight: bold; */
    /* font-size: x-large; */
    margin-bottom: 15px;
}

.metric-detail {
    color: rgb(107, 107, 238);
    font-weight: 900;
    font-family: 'Manrope';
}

.inner-list {
    list-style: none;
}

.category-filter button.active {
    background-color: #c0083e;
    color: white;
    font-weight: bold;
}

.stock-info h2 {
    width: 80%;
    margin: 30px auto;
    display: flex;
    gap: 5px;
}


/* #lastUpdated {
    font-style: italic;
    font-size: x-small;
} */


@media (max-width: 1024px) and (min-width: 768px) {
    .insights-container {
        flex-direction: column;
        width: 90%;
    }

    .side-menu {
        width: 100%;
        margin-bottom: 20px;
    }

    .stock-table {
        width: 100%;
    }

    .market-insight h1 {
        font-size: 1.8rem;
    }

    .market-insight p {
        font-size: 0.9rem;
    }
}

/* @media (min-width:1280px) {
    .stock-info h2 {
        margin-bottom: 30px;
        margin-left: 8rem;
    }
} */

@media (max-width: 767px) {
    .insights-container {
        flex-direction: column;
        width: 95%;
    }

    .side-menu {
        width: 100%;
        margin-bottom: 20px;
    }

    .stock-table {
        width: 100%;
        overflow: scroll;
    }

    .market-insight h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .market-insight p {
        font-size: 0.9rem;
        text-align: center;
    }

    .stock-table table {
        font-size: 0.9rem;
    }

    .category-filter {
        flex-wrap: wrap;
        gap: 5px;
    }

    .category-filter button {
        font-size: 0.8rem;
        padding: 8px;
    }

    .info h5 {
        font-size: 1rem;
    }

    .stock-info h2 {
        margin-left: 2rem;
        display: block;
    }
}
