* {
    font-size: 12px;
}

a {
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
}

table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

table th a {
    text-decoration: none; /* Remove underline from links */
    color: #000; /* Set link color */
    font-weight: bold; /* Make header text bold */
}

table th a:hover {
    color: #007bff; /* Change color on hover */
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-item > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ccc;
}

.menu-item:hover > .submenu {
    display: block;
}

.menu.horizontal {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #333; /* Background color */
    position: absolute; /* Attach to the absolute position */
    top: 0; /* Align to the top of the page */
    left: 0; /* Align to the left of the page */
    width: 100%; /* Ensure it spans the full width */
    z-index: 1000; /* Ensure it stays above other elements */
}

.menu.horizontal > .menu-item {
    position: relative;
    margin: 0;
}

.menu.horizontal > .menu-item > a {
    display: block;
    padding: 10px 20px;
    color: #fff; /* Text color */
    text-decoration: none;
}

.menu.horizontal > .menu-item > a:hover {
    background-color: #555; /* Hover background color */
}

.menu.horizontal > .menu-item > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #444; /* Submenu background color */
    border: 1px solid #ccc;
    white-space: nowrap; /* Prevent wrapping of submenu items */
    width: auto; /* Adjust width to fit content */
    min-width: unset; /* Remove fixed minimum width */
}

.menu.horizontal > .menu-item:hover > .submenu {
    display: block;
}

.menu.horizontal > .menu-item > .submenu > .menu-item > a {
    display: block; /* Ensure block layout for proper height */
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    line-height: 1.5; /* Adjust line height for consistent spacing */
}

.menu.horizontal > .menu-item > .submenu > .menu-item > a:hover {
    background-color: #666; /* Submenu hover background color */
    height: auto; /* Ensure height matches text */
}

.menu-spacer {
    height: 50px; /* Adjust to match the height of the menu */
    width: 100%;
}

.stock-quote {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 600px;
}

.stock-quote h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

.stock-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.info-row .label {
    font-weight: bold;
    color: #555;
}

.info-row .value {
    color: #000;
}

.stock-info-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stock-info-left,
.stock-info-right {
    width: 48%; /* Adjust width for side-by-side tables */
}

.stock-info-bottom {
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.data-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.change-rate-negative {
    color: red;
}

.change-rate-neutral {
    color: grey;
}

.change-rate-positive {
    color: green;
}
