:root {
  --footer-height: 60px; /* Footer height */
}

/* BODY & BACKGROUND */
body {
  background-image: url('/images/asn1.jfif');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: black;
  font-family: Verdana;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

body > img {
  align-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* GLASS WINDOWS / BOXES */
.glass-window,
.glass-box,
.below-box,
.glass-box-blog {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px) brightness(1.2);
  backdrop-filter: blur(10px) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  color: black;
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
}

/* BLOG CONTENT SCROLL CONTAINER */
.full-glass {
  position: fixed;               /* Fix to viewport */
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--footer-height) + 32px);  /* Reserve space for footer */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;              /* Scroll content */
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px) brightness(1.2);
  backdrop-filter: blur(12px) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.blog-content {
  max-width: 600px;
  width: 90%;
  margin-top: 2rem;
  padding: 2rem 2rem calc(var(--footer-height) + 2rem) 2rem; /* Extra bottom padding so content never underlaps footer */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: black;
}

.blog-content h1 {
  margin-top: 0;
  text-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.blog-content a {
  display: inline-block;
  margin-top: 1rem;
  color: #000;
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  color: #e6f7ff;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) brightness(1.1);
  -webkit-backdrop-filter: blur(8px) brightness(1.1);
  border-top: 1px solid rgba(135, 206, 250, 0.4);
  box-shadow: 0 -4px 20px rgba(135, 206, 250, 0.15);
  z-index: 2;
}

.site-footer img {
  vertical-align: middle;
  height: 20px;
}

/* LAYOUT & COLUMNS */
.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-top: 4rem;
}

.column {
  width: 200px;
  height: 300px;
  padding: 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px) brightness(1.1);
  backdrop-filter: blur(8px) brightness(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.left-column {
  background: rgba(173, 216, 230, 0.15);
}

.right-column {
  background: rgba(255, 182, 193, 0.15);
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }

  .column,
  .glass-box {
    width: 80%;
    max-width: 1000px;
    margin-bottom: 1rem;
  }
}

/* TABLE STYLES */
.smap-table {
  width: 90%;
  margin: 2rem auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px) brightness(1.2);
  backdrop-filter: blur(10px) brightness(1.2);
  border: 1px solid rgba(135, 206, 250, 0.6);
  box-shadow: 0 0 25px rgba(135, 206, 250, 0.3);
  color: #e6f7ff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.smap-table th {
  background: rgba(173, 216, 230, 0.2);
  color: #ffffff;
  font-weight: bold;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.smap-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smap-table tr:hover {
  background: rgba(173, 216, 230, 0.25);
  transition: background 0.3s ease;
}

.smap-table a {
  color: #ff0;
  text-decoration: underline;
}

.smap-table a:hover {
  color: #0ff;
}
