body {
    font-family: "Gill Sans", sans-serif;
    background: #fff;
    color: #000;
    max-width: 500px;
    margin: auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.button,
button,
.nav-button {
    display: inline-block;
    width: 100%;
    padding: .5em;
    font-family: "Gill Sans", sans-serif;
    font-size: 1rem;
    align-content: center;
    border: 1.5px solid #000;
    border-radius: 8px;
    background-color: black;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover,
button:hover,
.nav-button:hover {
    background-color: white;
    color: black;
}

/* === Nav === */
.nav-bar {
    display: flex;
    width: 95%;
    margin-left: 2.5%;
    padding: 0;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.nav-button {
    flex: 1;
}

/* === Headings and Layout === */
h1 {
    text-align: center;
}

.intro {
    text-align: center;
    font-size: .9rem;
    margin-bottom: 1.5em;
}

p, h3 {
    display: flex;
    width: 95%;
    margin-left: 2.5%;
}

/* === Search === */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}

#search {
    width: 100%;
    padding: 0.5em 2.5em 0.5em 0.5em;
    font-size: 1em;
    font-family: inherit;
}

#clear-search {
    position: absolute;
    left: 45%;
    align-self: center;
    /* transform: translateY(50%); */
    border: none;
    background: none;
    font-size: 1em;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
}

#clear-search:focus {
    outline: none;
}

/* === Item List === */
#item-list {
    display: block;
    max-height: 250px;
    min-height: 250px;
    overflow-y: scroll;
    margin-bottom: 0.25em;
    padding: 0.5em;
}

#item-list label {
    display: block;
    margin-bottom: 0.25em;
    transition: transform 300ms ease, opacity 300ms ease;
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 0.25em;
    border: 1.5px solid #000;
}

/* === Shared Container Styles === */
#search,
#result,
#item-list {
    width: 95%;
    margin-left: 2.5%;
    box-sizing: border-box;
    border: 1.5px solid #000;
    border-radius: 8px;
}

/* === Result Display === */
#result {
    margin-top: 1em;
    text-align: center;
    font-size: 1.2em;
    padding: 1em;
    min-height: 3.2em;
    background: #f9f9f9;
    overflow: hidden;
}

/* === Lever Controls === */
.controls {
    display: flex;
    width: 95%;
    margin-left: 2.5%;
    gap: .5rem;
    margin-top: 1rem;
}

.controls button {
    width: 100%;
}

#lever {
    flex: 4;
}

#clear-selection {
    flex: 1;
}

/* === Utility === */
.blur {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

/* === Archive === */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
}

th, td {
    border: 1px solid #000;
    padding: 0.5em;
    text-align: center;
    font-size: medium;
}

th {
    background-color: #f0f0f0;
}