/* Page background and base font */
.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.left-sidebar,
.right-sidebar {
  flex: 1 1 250px;
}

.main-content {
  flex: 2 1 500px;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .left-sidebar,
  .main-content,
  .right-sidebar {
    flex: 1 1 100%;
  }

  .guestbook iframe {
    height: 400px;
  }

  .photos-scroll {
    max-height: 400px;
  }
}

body {
  background-image: url('https://files.catbox.moe/bsx2bx.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  padding: 2em;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #000;
}

/* Fixes any overflow container */
.fixed {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 300px;
  border: 3px solid #73AD21;
}

/* Table styling */
table {
  width: 85%;
  margin: 40px auto;
  border-spacing: 20px;
}

td,
th {
  background-color: #ffffff;
  color: #000000;
  padding: 10px;
  vertical-align: top;
}

th {
  text-align: center;
}

/* Paragraphs inside tables */
table p {
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* Guestbook section */
.guestbook {
  height: 420px;
}

.guestbook iframe {
  height: 130%;
  width: 100%;
  border: 2px solid #245770;
  border-radius: 6px;
}

/* Decorative divider */
.divider {
  background-image: url('https://files.catbox.moe/6b4ee3.png');
  background-repeat: repeat-x;
  height: 50px;
  background-size: auto 100%;
  width: 100%;
}

/* Styled button */
a.button-link {
  display: inline-block;
  background-color: #f83798;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

a.button-link:hover {
  background-color: #365a74;
}

/* Make images responsive in table columns */
td img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  body {
    padding: 1em;
    background-size: contain;
    font-family: 'Comic Sans MS', cursive, sans-serif;
  }

  .layout,
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  td, th {
    padding: 10px 8px;
  }

  .divider {
    height: 30px;
    background-size: auto 30px;
  }

  .guestbook {
    height: auto;
    margin-bottom: 20px;
  }

  .guestbook iframe {
    height: 300px !important;
  }

  .photos-scroll {
    max-height: 280px;
    padding: 8px;
    font-size: 15px;
  }

  .photos-scroll img {
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .update-log {
    padding: 10px;
    font-size: 15px;
    margin-bottom: 15px;
  }

  .update-log h2 {
    font-size: 18px;
    text-align: center;
  }

  .button-link {
    display: block;
    width: 85%;
    margin: 20px auto;
    font-size: 16px;
    text-align: center;
    padding: 10px 20px;
  }

  footer {
    width: 95%;
    margin: 30px auto;
    font-size: 14px;
  }
}
