/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

:root {
  --background-color: #eeeeee;
  --content-background-color: #ffffff;

  --text-color: #3026e8;
  --link-color: #3026e8;
  --link-color-hover: #7780ec;

  --font: Arial, sans-serif;
  --heading-font: Georgia, serif;
  --font-size: 14px;

  --margin: 0px;
  --padding: 0px;
  --border: 2px solid #000000;
  --round-borders: 20px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
}

/* LINKS */

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

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 100%;
  max-width: 1000px;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

/* -------------------------------------------------------- */
/* MAIN CONTENT */
/* -------------------------------------------------------- */

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: transparent;
  border-width: 7px;
  border-style: solid;
  border-image: url("https://foollovers.com/mat/baf/food/fo32-008-a.gif") 7 fill round;
  border-radius: var(--round-borders);
  line-height: 1.5;
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 1.2em;
}

.header-content {
  padding: var(--padding);
  text-align: center;
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
}

.image-container {
  position: relative;
  display: table;
  max-width: 100%;
  margin: -2rem auto 0 auto;
}

.bottom-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.top-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* -------------------------------------------------------- */
/* FOOTER & CORNER WRAPPER */
/* -------------------------------------------------------- */

footer {
  grid-area: footer;
  font-size: 0.75em;
  width: 100%;
  position: relative;
}

.corner-wrapper {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none; 
}

.corner-image {
  display: block;
  width: auto;
  max-width: 60vw;
  height: auto;
  object-fit: contain;
}

.corner-textbox {
  position: absolute;
  top: 45%;
  left: 25%;
  z-index: 11; /* Sits above base notebook */
  
  /* Tilts to the right (clockwise) */
  transform: rotate(15deg);
  transform-origin: center center;

  color: green;
  font-family: ms-sans-serif, var(--font);
  font-size: 14px;
  font-weight: bold;
  padding: 4px 8px;
}


.corner-plush {
  position: absolute;
  top: 27%; /* Adjust vertical placement */
  left: 20%; /* Adjust horizontal placement */
  z-index: 14; /* Sits over notebook & textbox */
  
  width: 100px; /* Base size */
  height: auto;
  object-fit: contain;


  transform: rotate(-12deg);
  transform-origin: center center;
}

/* -------------------------------------------------------- */
/* NAVIGATION (HEADER ONLY) */
/* -------------------------------------------------------- */

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  list-style: none;
  margin-top: -0.75rem;
  margin-bottom: 10px;
}

nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  border: var(--border);
  border-radius: var(--round-borders);
  text-decoration: none;
  background: var(--content-background-color);
}

/* -------------------------------------------------------- */
/* CONTENT TYPOGRAPHY */
/* -------------------------------------------------------- */

main p,
main .image,
main .full-width-image {
  margin: 0.75em 0;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
}

/* -------------------------------------------------------- */
/* IMAGES */
/* -------------------------------------------------------- */

.image {
  max-width: 100%;
  height: auto;
  display: block;
}

.full-width-image {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.375rem 0.75rem;
  background: var(--content-background-color);
  transform: translateY(-3rem);
  z-index: 999999;
}

#skip-to-content-link:focus {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE */
/* -------------------------------------------------------- */

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  main {
    padding: 0px;
  }
  
  nav ul {
    margin-top: 0;
  }

  .image-container {
    margin-top: -0.5rem;
    max-width: 70%;
  }

  .corner-image {
    max-width: 180vw;
  }

  .corner-textbox {
    font-size: 14px;
    padding: 2px 6px;
    top: 45%;
    left: 25%;
  }

  .corner-plush {
    width: 100px; 
    top: 27%;
    left: 20%;
    transform: rotate(-14deg);
  }
}