:root {
    /* background colors */
    --page-background-color: #f3fad1;
    --cover-color: #9fcae5;
    --background: url("https://penandpaperwebring.neocities.org/images/pattern_250x250_2026-08-03T02-20-36-066Z-compressed.jpg");

    /* text colors */
    --text-color: #503317;
    --header-color: #3e82ac;
    --header-shadow: 5px 5px #d0f0cc;
    --subheader-color: #492c10;
    --subheader-shadow: 5px 5px #eee7cc;

    /* fonts */
    --font: Georgia, serif;
    --header-font: Georgia;
    --subheader-font: Georgia;
    --font-size: 14.5px;

    --minimum-page-height: 100px;
    --pages-border-radius: 15px;
}

.construction {
    color: var(--header-color);
}

.webring-members {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--header-color);
}

.webring-members tbody, .webring-members thead {
  padding: 0.1rem;
}

.webring-members thead {
  background-color: var(--header-color);
  color: white;
}

.webring-members tbody {
  text-align: center;
}

.webring-members tbody tr:nth-child(even) {
  background-color: #d0f0cc;
}

.webring-members td {
  margin: 0;
  padding: 0.4rem 0.2rem;
  border: 1px solid var(--header-color);
}

h1 {
    text-align: center;
    font-family: var(--header-font) !important;
    font-size: 2.2em;
    color: var(--header-color);
    text-shadow: var(--header-shadow);
    margin-top: 20px;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: var(--subheader-font);
    color: var(--subheader-color);
    margin-bottom: 0;
    line-height: 1.5;
}
/* unvisited link */
a:link {
    color: #0e8c29;
}
-
/* visited link */
a:visited {
    color: #35b335;
}

/* mouse over link */
a:hover {
    color: #2431b5;
}

/* selected link */
a:active {
    color: blue;
}
h2 {
    font-size: 1.7em;
}

h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
}

/* changes the color of bullet points */
main li::marker {
    color: var(--text-color);
}

body {
    background-image: var(--background);
}

#cover {
    /* change the width here */
    max-width: 1000px;

    min-height: var(--minimum-page-height);
    border-radius: var(--pages-border-radius);
    background-color: var(--cover-color);

    /* centers the page */
    margin: 0 auto;

    margin-top: 35px;
    background-image: url('https://file.garden/Z8dMSgHDZg9jLhx5/layout-tuto/bg-texture-paper.png');
    box-shadow: 2px 2px 2px #57443E;
    padding: 10px;
}

#page1 {
    background-color: var(--page-background-color);
    border-radius: var(--pages-border-radius);
    width: auto;
    min-height: var(--minimum-page-height);
    padding: 2px;
    box-shadow: 0px 0px 2px #57443E;
}

#page2 {
    background-color: var(--page-background-color);
    border-radius: var(--pages-border-radius);
    width: auto;
    min-height: var(--minimum-page-height);
    box-shadow: 0px 0px 2px #574539;
    padding: 2px;
}


/* this page is on top */
#page3 {
    background-color: var(--page-background-color);
    border-radius: var(--pages-border-radius);
    width: auto;
    min-height: var(--minimum-page-height) !important;
    box-shadow: 0px 0px 2px #574539;
    background-image: url('https://file.garden/Z8dMSgHDZg9jLhx5/layout-tuto/bg-lined-paper-grey.gif');

    /* keeps the leftpage, line, and rightpage within the container */
    display: grid;
    grid-template-columns: 10fr 0.2fr 10fr;
}

main p,
main ul,
main ol {
    /* main font */
    color: var(--text-color);
    font-family: var(--font);
    line-height: 1.5;
    font-size: var(--font-size);
}

main ul,
main ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

#line {
    width: 1.5px;
    min-height: var(--minimum-page-height);
    margin: 0 auto;
    background-color: #A19386;
    box-shadow: 0px 0px 10px #2e2a27;
}

#leftpage,
#rightpage {
    /* change the height here */
    min-height: 500px;
    max-height: 550px;

    border-radius: var(--pages-border-radius);
    position: relative;
}

#leftpage {
    padding-left: 20px;
    padding-right: 10px;
}

#rightpage {
    padding-left: 20px;
    padding-right: 10px;
}

#leftpage>section,
#rightpage>section {
    /* causes the page to scroll if content goes off the page */
    overflow-y: scroll;

    /* allows the scroll. change this if you change the height too */
    max-height: 500px;
}

.prev-next-buttons {
    height: 15px;
}

#next-page,
#prev-page {
    position: absolute;
    bottom: 15px;
}

#next-page {
    right: 0;
    margin-right: 10px;
}

/* yay for flex box */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

    /* changes how the images will be spaced*/
    justify-content: space-evenly;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* mobile friendly code */
@media only screen and (max-width: 800px) {

    #leftpage,
    #rightpage {
        max-height: auto !important;
    }

    #page3 {
        grid-template-columns: auto !important;
    }

    #cover {
        height: 100% !important;
        margin-top: 0px;
    }

    #line {
        width: 100%;
        min-height: 1.2px !important;
    }
    
