/* Fonts & Colors */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

:root {
  --red: #B30000;
  --gold: #FFD700;
  --nav-bg: #B30000;
  --bg-dark: #001f3f;
  --bg-blue: #003366;
  --text-light: #fff;
  --shadow-black: rgba(0, 0, 0, 0.7);
}

body {
  margin: 0;
  background-color:  #001f3f;
  color: #fff;
  font-family: monospace, monospace;
}

/* Full width red background for the entire top bar */
.header-bg {
  background-color: #B30000; /* Full width Spidey red */
  width: 100vw; /* Full viewport width */
  padding: 0.5em 0; /* vertical padding if you want */
  box-shadow: 0 0 20px black;
}

/* Center and constrain header content */
header {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  min-height: 300px;
  border-radius: 1em;
  border: 6px solid #B30000;
  overflow: hidden;
  background-color: transparent; /* transparent so red shows through */
  box-shadow: none;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('h3.png') no-repeat center;
  background-size: contain;
  opacity: 0.7;
  z-index: 0;
}

header h1 {
  position: relative;
  color: white;
  text-align: left;
  padding: 1em 1em 1em 0.2em; /* less left padding */
  font-size: 4em;
  text-shadow: 2px 2px 5px black;
  margin-left: 0;
  z-index: 1;
}

} 

nav {
  background-color:  #B30000;
  position: sticky;
  top: 70px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  background-color: #B30000;
  box-shadow: 0 0 10px #B30000;
  transition: all 0.3s ease;
  font-weight: bold;
}

nav a:hover {
  background-color:  #FFD700;
  color: #001f3f;
  box-shadow: 0 0 15px  #FFD700;
}

#content {
  display: flex;
  max-width: 960px;
  margin: 1.5rem auto;
  gap: 1rem;
}

aside#sidebar-left,
aside#sidebar-right {
  width: 20%;
  background-color: #003366;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

main {
  width: 60%;
  background-color: #003366;
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.avatar-frame {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px #B30000;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Spiderweb border with CSS */
.avatar-frame .spiderweb {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px  #FFD700,
    0 0 10px  #FFD700;
}

/* Hero spotlight */
.hero-spotlight img {
  width: 100%;
  border-radius: 1rem;
  margin: 0.5rem 0 1rem;
  box-shadow: 0 0 15px #B30000;
}

/* Blog posts */
.latest-posts article {
  background-color:  #001f3f;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.latest-posts h2, .hero-spotlight h2 {
  font-family: 'Bangers', cursive;
  color: #FFD700;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Fan Art Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 15px  #FFD700;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 1rem;
}

.slideshow img.active {
  opacity: 1;
}

/* Footer */
footer {
  text-align: center;
  color: #FFD700;
  font-family: 'Bangers', cursive;
  padding: 1rem;
  background-color:  #001f3f;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  position: relative;
}

.spider-icon {
  margin-left: 0.5rem;
}

/* Responsive */

@media (max-width: 800px) {
  #content {
    flex-direction: column;
  }
  aside#sidebar-left,
  aside#sidebar-right,
  main {
    width: 100%;
  }
  nav ul {
    flex-wrap: wrap;
  }
}
