/* General body and html setup */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
  background-color: #2B1B1B;
  color: #A02020;
  font-family: garamond, serif;
  text-align: center;
}

/* Link styles */
a:link {
  color: #cc2222;
  text-decoration: underline wavy;
}

a:visited {
  color: #990000;
  text-decoration: underline wavy;
}

a:hover {
  color: #ff4444;
  background-color: #222;
  text-decoration: underline wavy;
}

/* Fixed images */
.top-right-image {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 200px;
  height: auto;
  border: 3px double #aa4444;
  background-color: #111;
  padding: 5px;
  z-index: 1;
}

.bottom-left-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.bottom-left-image {
  width: 180px;
  height: auto;
  border: 3px double #aa4444;
  background-color: #111;
  padding: 5px;
}

.bottom-left-gif {
  position: fixed;
  bottom: 0;
  left: 210px;
  width: 80px;
  height: auto;
  padding: 5px;
  background-color: transparent;
}

/* Particles container */
#particles-js {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

/* Text and content */
h1, h2, p, .under-construction, iframe, button, marquee {
  position: relative;
  z-index: 10;
}

/* Flickering animation for button */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px #ff4d6d,
      0 0 10px #ff4d6d,
      0 0 20px #ff4d6d,
      0 0 40px #ff4d6d;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.7;
    text-shadow: none;
  }
}

.forbidden-library-btn {
  background-color: #641414;
  color: #fff;
  border: 2px double indianred;
  padding: 10px 20px;
  font-family: garamond, serif;
  cursor: pointer;
  animation: flicker 3s infinite;
  transition: background-color 0.3s ease;
}

.forbidden-library-btn:hover {
  background-color: #8b1c1c;
}

/* Basic mobile responsiveness
@media (max-width: 768px) {
  h1, h2, p, button {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  iframe {
    height: 300px;
  }
}
