/* Reset and basic styles */
html, body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Header styles */
header {
    width: 100%;
    background: green;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .content {
    width: 40%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    background: green;
    border-radius: 8px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: center;
}

header form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Narrow the gap between top and bottom */
}

header form div {
    display: flex;
    align-items: center;
    gap: 10px;
}

header input[type="text"] {
    width: calc(100% / 1.1); /* Adjustable */
    padding: 0.4rem;
    border: none;
    border-radius: 4px;
    vertical-align: top;
}

header input[type="number"] {
    width: 2.5rem;
    padding: 0.4rem;
    border: none;
    border-radius: 4px;
    vertical-align: top;
    text-align: right;
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-box {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-button {
    padding: 10px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button img {
    width: 1.3rem; /* Adjust icon size */
    height: 1.3rem;
}

.search-button:hover {
    background-color: #ccc;
}

#result {
    width: 2.5rem;
    text-align: right;
}

/* Page content styles */
#page {
    width: 90%;
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Table styles */
table {
    width: 100%;
    font-size: 0.9rem;
    border-spacing: 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th {
    background: LightGreen;
    color: black;
    font-weight: normal;
    padding: 0.4rem;
    text-align: center;
}

td {
    line-height: 1.2em;
    padding: 0.4rem;
    border-bottom: solid 1px #ccc;
    text-align: left;
}

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

tr *:nth-child(1) { width: 4%; }
tr *:nth-child(2) { width: 2%; text-align: right; }
tr *:nth-child(3) { width: 4%; text-align: right; }
tr *:nth-child(4) { width: 10%; }
tr *:nth-child(5) { width: 10%; }
tr *:nth-child(6) { width: 6rem; }
tr *:nth-child(7) { width: 4%; text-align: right; }
tr *:nth-child(8) { width: 6rem; }

/* For smartphones */
@media (max-width: 600px) {
    header .content {
        width: 80%;
    }

    th, td {
        padding: 0.2rem;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.8rem;
    }
}

main #download {
    font-size: 0.9rem;
    text-align: center;
    background: LightGreen;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    padding: 0rem 1rem;
}

main #download:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    text-align: center;
    margin: 1rem 0 2rem 0;
    background: green;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}
