/* ===== GENERAL PAGE STYLES ===== */
body {
  background-color: #666666;
  color: #33CCFF;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

/* Center the header image inside pagewrap */
#Layer1 {
  position: relative  !important; /* instead of absolute */
  width: 800px  !important;       /* keep the fixed width */
  margin: 0 auto  !important;     /* centers the div horizontally */
  height: 153px  !important;      /* same as before */
  z-index: 1  !important;         /* keep stacking order */

/* Nudge left/right if needed */
  transform: translateX(-60px);  /* adjust -10px, -5px, 0, +5px as needed */

}

#Layer1 img {
  display: block !important;
  margin: 0 auto !important;       /* centers the image inside Layer1 */
}


/* Center entire layout horizontally */
#pagewrap {
  position: relative;
  width: 1000px;     /* adjust to fit your layout */
  left: 50%;
  transform: translateX(-50%);
}

/* Optional cleanup */
body {
  margin: 0;
  padding: 0;
  background-color: #666666;
  color: #33CCFF;
}





/* ================== */

/* Unvisited links */
a:link {
  color: cyan;
  text-decoration: none;
}

/* Visited links */
a:visited {
  color: white;
  text-decoration: none;
}

/* Hover state */
a:hover {
  color: hotpink;
  text-decoration: underline;
}

/* Active state */
a:active {
  color: hotpink;
  text-decoration: underline;
}



a {
  transition: color 0.3s ease; /* smooth color change over 0.3 seconds */
}





/* ===== HEADER & NAVIGATION ===== */
header {
  position: relative;
  width: 800px;
  margin: 0 auto;
}

.top-banner {
  width: 800px;
  height: 153px;
  display: block;
}

#main-nav {
  position: absolute;
  bottom: 10px;
  left: 100px;
  display: flex;
  gap: 15px;
}

#main-nav a {
  color: cyan;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}

#main-nav a:hover {
  color: hotpink;
  text-decoration: underline;
}

/* ===== SIDEBAR ===== */
#sidebar-left {
  position: absolute;
  left: 50px;
  top: 205px;
  width: 144px;
}

#sidebar-left img {
  width: 144px;
  height: auto;
}

#sidebar-left h3 {
  font-size: 0.9rem;
  color: #33CCFF;
  margin-bottom: 5px;
  border-bottom: 1px solid #33CCFF;
  padding-bottom: 3px;
}

#sidebar-left ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px; /* space between MAIN and MORE sections */
}

#sidebar-left li {
  margin-bottom: 5px;
}

#sidebar-left a {
  color: #33CCFF;
  text-decoration: none;
  font-size: 0.8rem;
}

#sidebar-left a:hover {
  color: hotpink;
  text-decoration: underline;
}

/* ===== MAIN CONTENT ===== */
main {
  position: absolute;
  left: 240px;
  top: 260px;
  width: 530px;
  height: auto;
}

main h1 {
  font-size: 1.4rem;
  text-align: center;
  color: #33CCFF;
  margin-bottom: 15px;
}

main p {
  font-size: 0.9rem;
  margin: 5px 0;
}

main a {
  color: #33CCFF;
}

main a:hover {
  color: hotpink;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  position: absolute;
  left: 214px;
  top: 750px;
  width: 530px;
  text-align: center;
  font-size: 0.7rem;
  color: #33CCFF;
}

footer a {
  color: #33CCFF;
  text-decoration: none;
}

footer a:hover {
  color: hotpink;
  text-decoration: underline;
}





/* ===== RESPONSIVE LAYOUT ===== */
@media screen and (max-width: 1024px) {
  /* Center header and nav */
  header {
    width: 100%;
    text-align: center;
  }

  .top-banner {
    width: 100%;
    height: auto;
  }

  #main-nav {
    position: static;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
  }

  /* Sidebar moves below header */
  #sidebar-left {
    position: static;
    width: 80%;
    margin: 20px auto;
  }

  #sidebar-left h3 {
    text-align: center;
  }

  #sidebar-left ul {
    text-align: center;
  }

  #sidebar-left li {
    display: inline-block;
    margin: 0 8px 5px 8px;
  }

  /* Main content below sidebar */
  main {
    position: static;
    width: 90%;
    margin: 20px auto;
  }

  footer {
    position: static;
    width: 90%;
    margin: 20px auto;
  }
}

@media screen and (max-width: 600px) {
  #sidebar-left li {
    display: block;
    margin: 5px 0;
  }

  #main-nav a {
    font-size: 0.75rem;
    margin: 3px;
  }

  main h1 {
    font-size: 1.2rem;
  }
}


/* ================== */

/* ===== GLOBAL LINK STYLES ===== */
a {
  position: relative;             
  color: cyan;                    
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Hover effect: color + slight scale */
a:hover {
  color: hotpink;
  transform: scale(1.05);
}

/* Visited links */
a:visited {
  color: white;
}

/* Base sliding underline */
a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  background-color: hotpink;
  transition: width 0.3s ease;
}

/* Expand underline on hover */
a:hover::after {
  width: 100%;
}

/* ===== SPECIFIC AREAS ===== */

/* Main navigation links */
#main-nav a {
  font-size: 0.85rem;
}
#main-nav a::after {
  bottom: -2px;   /* slight distance from text */
  height: 2px;
}

/* Sidebar links */
#sidebar-left a {
  font-size: 0.8rem;
}
#sidebar-left a::after {
  bottom: -1.5px; /* slightly closer for smaller font */
  height: 1.5px;
}

/* Footer links */
footer a {
  font-size: 0.7rem;
}
footer a::after {
  bottom: -1px;   /* smaller distance for smaller footer font */
  height: 1px;
}

/* Main content links */
main a {
  font-size: 0.9rem;
}
main a::after {
  bottom: -2px;   /* similar to nav for consistency */
  height: 2px;
}

