/* ====================
GLOBAL RESET
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================
PAGE CONTAINER
==================== */
.page-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* ====================
SITE HEADER
==================== */
.site-header {
max-width: 1000px;
width: 100%;
margin: 0 auto;
justify-content: center;
text-align: center;
padding-top: 20px;
}

.site-header img {
max-width: 1000px;
width: 100%;
height: auto;
display: block;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

/* ====================
MAIN NAVIGATION BAR
==================== */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.main-nav a img {
  max-width: 181px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes jello {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.15, 0.85); }
  50% { transform: scale(0.9, 1.1); }
  70% { transform: scale(1.05, 0.95); }
}

@media (prefers-reduced-motion: no-preference) {
  .main-nav a:hover img {
    animation: jello 0.6s ease;
  }
}

/* ====================
ARCHIVE BUTTON (image swap on hover/tap)
==================== */
.archive-btn {
  position: relative;
  display: block;
}

.archive-btn .img-default {
  position: relative;
  transition: opacity 0.22s ease;
}

.archive-btn .img-archive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.archive-btn:hover .img-default,
.archive-btn:focus-visible .img-default,
.archive-btn.tap-active .img-default {
  opacity: 0;
}

.archive-btn:hover .img-archive,
.archive-btn:focus-visible .img-archive,
.archive-btn.tap-active .img-archive {
  opacity: 1;
}

.rounded-image {
display: block;
max-width: 100%;
height: auto;
border: 3.25px solid #000;
border-radius: 20px;
overflow: hidden;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

/* ====================
FOOTER NAVIGATION BAR
==================== */
.footer-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.footer-container {
  display: flex;
  width: 1000px;
  height: 147px;
}

.footer-container a:nth-child(1) { width: 526px; }
.footer-container a:nth-child(2) { width: 53px; }
.footer-container a:nth-child(3) { width: 526px; }

.footer-container img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.footer-container img:hover {
  transform: scale(1.02);
}

/* ====================
COPYRIGHT FOOTER
==================== */
.site-footer {
  width: 100%;
  text-align: center;
  margin-top: 5px;
  padding-bottom: 20px;
}

.site-footer img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border: 3px solid #828281;
  border-radius: 20px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  display: block;
}

/* ====================
MOBILE RESPONSIVE
==================== */
@media (max-width: 768px) {

.page-container {
width: 100%;
padding-left: 2px; 
padding-right: 2px; 
margin: 0 auto;
box-sizing: border-box;
}

.site-header {
width: 99%;
margin-top: 3px;
padding: 1px 0;
}

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2px;
  }

  .main-nav a {
    width: 100%;
    margin: 0;
  }

  .main-nav a img {
    width: 100%;
    height: auto;
    display: block;
  }

.rounded-image {
border-width: 2.5px;
}

  .footer-nav {
    max-width: 99%;
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 3px;
  }

  .footer-container {
    width: 99%;
    height: auto;
    margin: 0 auto;
    gap: 2px;
  }

  .footer-container a {
    flex: 1 1 auto;
  }

  .footer-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .site-footer {
    margin: 0 auto;
    display: block;
    padding-bottom: 7px;
  }

  .site-footer img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-width: 1.5px;
  }
}