* {
    box-sizing: border-box;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
}

.card-body {
    padding: 1rem;
}

.card > *:first-child, .card-body > *:first-child {
    margin-top: 0;
}

.card > *:last-child, .card-body > *:last-child {
    margin-bottom: 0;
}

.card > img {
    width: 100%;
    height: auto;
    display: block;
}

.card > :not(.card-body):first-child {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card > :not(.card-body):last-child {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.spacer {
    flex-grow: 1;
}

html, body {
    margin: 0;
    height: 100%; /* for "sticky footer" */
}

body {
    background-image: url("/roxie1c-bg.webp");
    background-size: cover;
    background-position: right 70%;
    background-attachment: fixed;
    font-family: Tahoma;
}

#container {
    max-width: max(40rem, 96%);
    margin: 0 auto; /* center it horizontally */
    min-height: 100%;
    padding: 1rem 0.5rem;

    display: flex;
    flex-direction: column;
}

#container > .card:not(:first-child) {
    margin-top: 1rem;
}

header nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.2rem;
    column-gap: 0.4rem;
}

section, footer {
    max-width: max(20rem, 56%);
}

footer {
    text-align: center;
}

a {
    font-weight: bold;
}
nav a:link, nav a:visited {
    color: darkslategray;
    background-color: lightgray;
    padding: 2px 6px;
    text-align: center;
    border-radius: 12px;
}
nav a:hover, nav a:active {
    color: white;
    background-color: darkslategray;
    padding: 2px 6px;
    text-align: center;
    border-radius: 12px;
}
a:link, a:visited {
    color: darkslategray;
    text-decoration: none;
    padding: 0pt 1pt;
}
a:hover, a:active {
    color: white;
    background-color: darkslategray;
    text-decoration: underline;
    padding: 0pt 1pt;
}
a.button, a.button:link, a.button:visited, a.button:hover, a.button:active {
    color:transparent;
    text-decoration:none;
    padding:0px 0px;
    font-weight:normal;
    background-color:transparent;
}
.button > img {
    image-rendering:pixelated;
    width:88px;
    height:31px;
}

#back-to-top {
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 2rem;
    line-height: 3rem;
    text-align: center;
}