body {
    width: 80%;
    margin: 0 auto;
    padding: 0 auto;
    font-family: Arial, sans-serif;
}

/* Header styles */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

#table-container {
    height: 400px;
    /* Adjust the height as needed */
    overflow: scroll;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

label {
    font-size: 20px;
    font-weight: bold;
}

input[type="text"] {
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

button[type="submit"] {
    background-color: #4CAF50;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 200px;
}

button[type="submit"]:hover {
    background-color: #3e8e41;
}

/* Tab styling */
.tab {
    display: flex;
}

.tab button {
    background-color: #f2f2f2;
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: black;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 40px;
    transition: background-color 0.3s ease;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 20px;
    background-color: #ccc;
    border: 2px solid #ccc;
    border-top: none;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Additional styling */
#stock-search:focus {
    outline: none;
    border-color: #4CAF50;
}

.container {
    width: 100%;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 1rem;
}

.tabcontent {
    display: none;
}

.tabcontent img {
    width: 100%;
    height: auto;
}

.statistics {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.statistic-item {
    background-color: #f2f2f2;
    border: none;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    margin: auto 5px;
    justify-content: space-between;
    padding: 1rem 30px;
    text-align: center;
    width: 200px;
}

.statistic-item:hover {
    background-color: #eee;
}

.active {
    background-color: #3e8e41;
    color: #fff;
}