* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    --accent-color: #ffda54;
    --border-color: #ffbc2a;
    --nav-footer-background-color: rgb(24 4 7 / 81%);
    --padding: 1rem;

    padding: 0;
    margin: 0;
    font-family: 'Time New Roman Normal', serif;
    background:
        linear-gradient(rgb(22, 114, 116), #574736),
        url(../images/map.webp),
        linear-gradient(#333, #888),
        url(../images/paper.webp);
    background-size: cover, cover, cover, cover;
    background-blend-mode: overlay;
    background-attachment: fixed;
    background-position: 0, 0 0rem, 0, 0;
    font-size: 1rem;
}



footer {
    border-top: var(--border-color) ridge 4px;
    background-color: var(--nav-footer-background-color);
    text-align: center;
    color: white;
    padding: var(--padding);
}

h1,
h2,
h3,
h4 {
    color: var(--accent-color);
}

h2 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: normal;
    color: var(--accent-color);
}

/* title styling */
#title {
    max-width: 100%;
    width: 32rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

main>*:first-child {
    margin-top: 8rem;
}

/* profile styling */
.profile {
    border-radius: 10px 10px 50% 50%;
    border: var(--border-color) ridge 4px;
    overflow: hidden;
    box-shadow: black 0 0 15px 2px;
    width: 18rem;
    max-width: 100%;
    float: right;
    position: relative;
}

.profile span {
    position: absolute;
    z-index: 10;
    text-align: center;
    width: 100%;
    box-shadow: rgba(32, 32, 32, 0.729) 0 0 15px 12px;
    font-size: 1.5rem;
    background: rgba(32, 32, 32, 0.729);
    padding-top: 0.3rem;
}

.profile img {
    width: 100%;
    filter: sepia(1);
}

/* button styling */
a.button,
.button {
    display: inline-block;
    padding: 0.8rem;
    margin: 4px 2px;
    border: #666 ridge 4px;
    background: #00000077;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

a {
    text-decoration: underline;
    color: var(--accent-color);
}

a:hover {
    color: var(--border-color);
}

.button.primary {
    border-color: var(--accent-color);
    color: var (--accent-color);
    font-weight: bolder;
}

.button:not(.disabled):hover {
    background-color: rgba(0, 0, 0, 0.656);
    color: white;
    border-color: var(--border-color);
}

.button.disabled {
    border: none;
    cursor: default;
}

/* layout */
main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#seal {
    margin-top: -3rem;
    margin-left: auto;
    margin-right: auto;
    width: 24rem;
    max-width: 70%;
}

section {
    width: 48rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--nav-footer-background-color);
    border: var(--border-color) ridge 4px;
    color: white;
    padding: var(--padding) calc(var(--padding) * 2);
    font-size: 1.3rem;
    margin-bottom: var(--padding);
    box-sizing: border-box;
    box-shadow: black 0 0 15px 2px;
    transition: 0.5s box-shadow;
}

section:target {
    box-shadow: var(--accent-color) 0 0 30px 10px;
}

footer {
    margin-top: auto;
    box-shadow: black 0 0 15px 2px;
}

footer>div {
    width: 48rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

pre.isbn {
    display: inline-block;
    margin: 0;
}

.spacer {
    width: 32rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6rem;
    margin-bottom: 6rem;
    display: flex;
    justify-content: space-around;
}

.spacer>img {
    width: 4rem;
    height: 4rem;
}

hr {
    border: var(--nav-footer-background-color) solid 1px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-footer-background-color);
    color: var(--accent-color);
    border-bottom: var(--border-color) ridge 4px;
    box-shadow: black 0 0 15px 2px;
    overflow: hidden;
    /* padding: var(--padding); */
}

nav {
    width: 100%;
    height: 100%;
    /* position: fixed; */
    overflow: hidden;
    max-height: 0;
    /* transition: max-height .5s ease-out; */
}

.hamburger {
    cursor: pointer;
    float: right;
    padding: 27px 40px;
    position: absolute;
    top: 0;
    right: 0;
}

.hamburger-line {
    background: var(--accent-color);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamburger-line::before,
.hamburger-line::after {
    background: var(--accent-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamburger-line::before {
    top: 5px;
}

.hamburger-line::after {
    top: -5px;
}

#side-menu-toggle {
    display: none;
}

#side-menu-toggle:checked~nav {
    max-height: 100%;
}

#side-menu-toggle:checked~.hamburger .hamburger-line {
    background: transparent;
}

#side-menu-toggle:checked~.hamburger .hamburger-line::before {
    transform: rotate(-45deg);
    top: 0;
}

#side-menu-toggle:checked~.hamburger .hamburger-line::after {
    transform: rotate(45deg);
    top: 0;
}

.container {
    width: 48rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

header .main {
    display: block;
    padding: var(--padding);
    margin-right: 100px;
    font-size: 1.2rem;
}

header .main a {
    text-decoration: none;
}

p {
    padding: .4rem 0;
}
