/* CUSTOM BACKGROUND FOR THE HOMEPAGE */

body {
    background-color: #8ebee6;
    background-image: var(--background-blue);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 120px;
}

.center-page {
    align-items: center;
    padding: 0;
    margin: 0;
}

/* ================ */

/* THE HOME PAGE LAYOUT */

.layout {
    width: 1000px;
    height: 865px;
    display: grid;
    grid-gap: 10px;
    min-width: 0;
    grid-template-columns: 1fr 2.5fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "nav header"
        "guestbook main"
        "image-aside main"
        "aside main"
        "footer footer";
    gap: var(--margin);
}

/* ================ */

/* Header image */

header {
    grid-area: header;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--padding);
    border: var(--border);
    border-radius: var(--round-borders);
}

header img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 70%;
    width: 100%;
}

.navpet2box {
    position: relative;
    overflow: visible;
}

.navpet2box .navpet2 {
    position: absolute;
    top: 55px;
    left: -55px;
    transform: translateX(-50%);
    width: 115px;
    height: 80px;
    z-index: 2;
}

/* ================ */

/* The vertical navigation */

nav {
    grid-area: nav;
    position: relative;
    padding: var(--padding);
    padding-top: 60px;
    overflow: visible;
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
}

nav .navpet {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 2;
    height: 30%;
}

.navbar {
    padding: 5px;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 0;
    padding: 5px;
    color: white;
    font-family: "ComicRelief", monospace;
    font-weight: 700;
    font-size: 20px;
}

.navbar a:hover {
    background-color: #8ec0e9;
    border-radius: 5px;
}

.navbar a:active {
    background-color: #85b1d4;
}

/* ================ */

/* The main content */

main {
    grid-area: main;
    overflow-y: auto;
    min-height: 0;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
}

main h1 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 5px 0;
    margin-bottom: 10px;
}

main h3 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 10px 0;
    margin-bottom: 10px;    
}

main h4 {
    font-family: "ComicRelief";
    font-weight: 700;
    color: white;
    margin: 10px 0;
    margin-bottom: 10px;    
}

main p {
    font-family: "PlaypenSans";
    font-weight: 500;
}


/* ================ */

/* The image that is displayed above the aside */

.guestbook {
    grid-area: guestbook;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
    overflow: hidden;
}

.guestbook p {
    font-family: "PlaypenSans";
    font-weight: 500;
    margin: 0px;
}

.guestbook ul {
    list-style-type: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
}

.guestbook a {
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 0;
    padding: 5px;
    color: white;
    font-family: "ComicRelief", monospace;
    font-weight: 700;
    font-size: 20px;
}

.guestbook a:hover {
    background-color: #8ec0e9;
    border-radius: 5px;
}

.guestbook a:active {
    background-color: #85b1d4;
}

/* ================ */


/* The image that is displayed above the aside */

.image-aside {
    grid-area: image-aside;
    padding: 0;
    background: white;
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
    overflow: hidden;
}

.image-aside img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* ================ */

/* The aside panel */

aside {
    grid-area: aside;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
}

aside p {
    font-family: "PlaypenSans";
    font-weight: 500;
    margin: 0px;
}

/* ================ */

/* the footer panel */

footer {
    grid-area: footer;
    padding: var(--padding);
    background: var(--content-background-color);
    border: var(--border) solid;
    border-color: var(--border-color);
    border-radius: var(--round-borders);
    max-width: 100%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.footer-marquee {
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 5px;
    animation: marquee-loop 15s linear infinite;
}

.marquee-content {
    width: 50%;
    gap: 5px;
    display: flex;
    justify-content: space-around;
}

.marquee-content img {
    display: block;
    margin: auto;
    align-items: center;
    gap: 10px;
}

@keyframes marquee-loop {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ================ */

/* WEBRING WIDGETS */

#oc-webring-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  width: fit-content;
  gap: 1em;
  border: 4px solid #e56b6f;
  padding: 1em;
  border-radius: 12px;
}
#oc-webring-title {
  font-weight: bold;
}
#oc-webring-controls {
  display: flex;
  gap: 1em;
}

/* ============== */