@charset "UTF-8";
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #ccc;
  text-align: center;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a,
a:visited {
  color: #000;
}

.menu-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.menu-toggle i {
  font-size: 24px;
  color: #333;
}

.menu-list {
  position: fixed;
  top: 50px;
  right: -250px;
  width: 200px;
  height: calc(100% - 50px);
  overflow-y: auto;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  padding: 60px 20px 20px;
  transition: right 0.3s ease;
  z-index: 300;
}

.menu-list.open {
  right: 0;
}

.menu-list ul {
  list-style: none;
  padding: 0;
}

.menu-list li {
  margin-bottom: 16px;
}

.menu-list a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

header nav,
.footer-wrap {
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav a,
.footer-wrap nav a {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  background: #f0f0f0;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s ease;
  display: inline-block;
  margin-bottom: 10px;
}

header nav a:hover,
.footer-wrap nav a:hover {
  background: #e0e0e0;
}

.spread {
  display: flex;
  flex-direction: column;
  margin: 40px 0;
}

@media screen and (min-width: 769px) {
  .spread {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .spread img {
    height: 90vh;
    width: auto;
    object-fit: contain;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .spread {
    margin: 0 0 20px;
  }

  .spread img {
    width: 90%;
    height: auto;
    max-width: 500px;
    margin: 20px auto 0;
  }

  .spread img:first-child {
    margin-top: 0;
  }

  .spread img:last-child {
    margin-bottom: 20px;
  }
}

.footer-wrap .post {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-wrap .post a {
  font-size: 22px;
}

.footer-wrap .post input[type="text"] {
  font-size: 18px;
  padding: 10px;
  width: 300px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

.footer-wrap .post input[type="submit"] {
  font-size: 16px;
  padding: 8px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-wrap .post input[type="submit"]:hover {
  background: #555;
}

#backtop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#backtop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backtop:hover {
  transform: translateY(-3px);
  background: #222;
}
