body {
    font-family: 'MedievalSharp', Georgia, serif;

    background-image: linear-gradient(rgba(131, 105, 61, 0.4), rgba(80, 60, 30, 0.6)), url('images/orb-ponderer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #4a3d2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    min-height: 100vh;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

body>* {
    background: rgba(241, 229, 199, 0.85);
    border: 2px solid #8c6f3e;
    border-radius: 3px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    color: #6b211a;
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 2px solid #bca37c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#search {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #a3855a;
    background: rgba(210, 190, 150, 0.7);
    color: #4a3d2b;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

#search:focus {
    outline: none;
    border-color: #c5a66a;
    box-shadow: 0 0 8px #c5a66a;
}

select {
    appearance: none;
    background-color: rgba(210, 190, 150, 0.7);
    color: #4a3d2b;
    border: 2px solid #a3855a;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 2rem 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

button[type="submit"] {
    background: #5a452a;
    color: #f1e5c7;
    border: 2px solid #9c7a3c;
    font-family: inherit;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
}

button[type="submit"]:hover {
    background: #795d3a;
    box-shadow: 0 0 15px #c5a66a;
    color: #fff;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

#results {
    margin-top: 1.5rem !important;
    flex-grow: 1;
    padding: 1.5rem;
    background: rgba(241, 229, 199, 0.7);
    border: 1px solid #bca37c;
    min-height: 40px;
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #4a3d2b;
    text-shadow: none;
}

@media (max-width: 480px) {
    form {
        flex-direction: column;
        gap: 0.5rem;
    }

    button[type="submit"] {
        width: 100%;
    }

    body>* {
        padding: 1.5rem;
    }
}

footer {
    background: rgba(241, 229, 199, 0.85);
    border: 2px solid #8c6f3e;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-size: 9;

    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 2rem;
    text-align: center;
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

footer h3 {
    color: #6b211a;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid #bca37c;
    padding-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

footer a {
    color: #4a3d2b;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.5rem;
    margin-bottom: 0.5rem;

    background: rgba(210, 190, 150, 0.7);
    border: 1px solid #a3855a;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-shadow: none;
}

footer a:hover {
    background: #c5a66a;
    color: #fff;
    border-color: #5a452a;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

footer a .icon {
    margin-right: 0.5rem;
    color: #6b211a;
}