body {
    margin: 0;
    background-color: #eae6e2;
    font-size: 1.15rem;
    font-family: serif;
    color: #171616;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

main .container {
    max-width: 1500px;
}

h1, h2 {
    max-width: fit-content;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    border-bottom: solid 2px;
    font-family: "Cinzel", serif;
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #eae6e2;
    text-shadow: 0 0 1rem black;
}

h2 {
    font-size: 2rem;
}

a {
    color: #bc1319;
}

a:visited {
    color: #7e0e17;
}

a:hover, a:focus {
    color: #d6261a;
}

a:active {
    color: #7e0e17;
}

hr {
    height: 2px;
    border: none;
    background-color: #171616;
}

header {
    background-image: url("images/header-background.jpg");
    background-position: center;
    background-size: cover;
}

#search-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: #ebe9e7;
    border-bottom: solid 3px #bc1319;
    border-radius: 4px;
}

#search-box>div {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

button, input, select {
    display: block;
    box-sizing: border-box;
    height: 2.5rem;
    padding: 2px;
    border: none;
    border-top: solid 3px #937f75;
    border-left: solid 3px #937f75;
    border-radius: 4px;
    background-color: #d7c2b1;
    font-size: 1rem;
    font-family: serif;
}

::placeholder {
    color: #937f75;
}

label {
    color: #453b36;
}

label>* {
    margin-top: 1rem;
}

#search-term {
    flex-grow: 1;
}

button, #search {
    border: none;
    border-bottom: solid 3px #7e0e17;
    padding: 0 1rem;
    background-color: #bc1319;
    color: #eae6e2;
    cursor: pointer;
}

button:hover, button:focus, #search:hover, #search:focus {
    background-color: #d6261a;
}

button:active, #search:active {
    border: none;
    border-top: solid 3px #640a12;
    background-color: #7e0e17;
}

#search, #cr, #type, #size {
    width: 10rem;
}

#min-hit-points-label {
    display: inline-block;
}

#min-hit-points, #max-hit-points {
    width: 8rem;
}

#max-hit-points {
    display: inline;
}

#spinner {
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.pagination {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.status {
    flex-grow: 1;
    margin: 0;
    text-align: center;
}

.page-left, .page-right {
    width: 8rem;
}

#results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 15vh;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

@media screen and (max-width:1500px) {
    #results-container {
        grid-template-columns: 1fr;
    }
}

.result {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: #d7c2b1;
    border-bottom: solid 3px #640a12;
    border-radius: 4px;
}

@media screen and (max-width:900px) {
    .result {
        flex-wrap: wrap;
    }

    .result>div {
        width: 100%;
    }
}

.result img {
    display: block;
    width: 20rem;
    height: 12.4rem;
}

.result>div {
    flex-grow: 1;
}

.result h3 {
    margin: 0;
    font-size: 1.5rem;
}

.document-title {
    margin: 0;
    color: #453b36;
}

.stats-block {
    display: flex;
    gap: 1rem;
    padding-left: 0;
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.stats-block li {
    list-style: none;
    text-align: center;
}

.result-info {
    color: #453b36;
}

footer {
    background-color: #d7c2b1;
    border-top: solid 3px #937f75;
    text-align: center;
    color: #453b36;
}
