/*------------------------------------------------
  1) Your site’s color variables & banners
------------------------------------------------*/
:root {
  --text:      darkslategrey;
  --border:    lightgrey;
  --accent:    teal;
  --gradientTop:   white;           /* only used for borders/text */
  --gradientBottom: rgb(240, 248, 255, .8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:         white;
    --border:       #5a7678;
    --accent:       #74C365;
    --gradientBottom: rgb(0, 50, 60);
    --gradientTop:    darkslategrey;
  }
}

header {
  /* your existing banner image URLs */
  background: url('***light mode banner image***') center/cover no-repeat;
}

@media (prefers-color-scheme: dark) {
  header {
    background: url('***dark mode banner image***') center/cover no-repeat;
  }
}


/*------------------------------------------------
  2) Global reset & page background
------------------------------------------------*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 10px;
  font-family: 'MS PGothic', sans-serif;
  color: var(--text);

  /* full-screen animated GIF */
  background: url('endlessocean.gif') no-repeat center center fixed;
  background-size: cover;
}


/*------------------------------------------------
  3) The “card” container: translucent + blur
------------------------------------------------*/
.container {
  max-width: 55rem;
  margin: 5vw auto 12px;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  border: 6px ridge var(--border);
  outline: 3px solid var(--gradientTop);
  outline-offset: 4px;
  border-radius: 10px;

  /* key new bits: */
  background-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/*------------------------------------------------
  4) Column flex widths
------------------------------------------------*/
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full  { flex: 1 1 100%; }
.half  { flex: 1 1 49%; }


/*------------------------------------------------
  5) Header inside the card
------------------------------------------------*/
header {
  width: 100%;
  height: 120px;       /* adjust as you like */
  position: relative;

  border: 2px ridge var(--border);
  border-radius: 5px;
  /* no background-color here → lets the translucent container show */
}

header span {
  position: absolute;
  bottom: 0; right: 10px;
  margin: 10px;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gradientTop);
  text-shadow:
    1px 1px var(--text),
   -1px 1px var(--text),
    1px -1px var(--accent),
   -1px -1px var(--accent);
}


/*------------------------------------------------
  6) Make all inner panels transparent
------------------------------------------------*/
nav,
section {
  background: transparent !important;
}

nav a {
  /* if you still want link blocks to highlight, you can use
     background: rgba(255,255,255,0.2); */
  background: transparent !important;
}


/* navigation styling */
nav {
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
}

nav div {
  text-align: center;
  font-size: 1.25rem;
  margin: 5px 5px 10px;
}

nav a {
  display: block;
  margin: 5px 0;
  padding: 2px 7px;
  border-radius: 5px;
  text-decoration: none;
}

nav a:link, nav a:visited {
  color: var(--text);
}

nav a:hover, nav a:focus {
  font-style: italic;
}


/* small images in sidebar */
div.small > img {
  display: block;
  margin: 5px auto;
  border:2px ridge var(--border);
  border-radius: 5px;
}


/* generic section boxes */
section {
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
  /* no background → see-through */
}


/*------------------------------------------------
  7) Footer, headings & text resets
------------------------------------------------*/
footer {
  text-align: center;
  margin-bottom: 5vw;
  font-size: 0.8rem;
}

footer a {
  text-decoration: none;
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 5px;
  line-height: 1.2;
}

h1 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-align: center;
  border-bottom: 2px ridge var(--border);
  padding-bottom: 5px;
}

h2 {
  font-size: 1.25rem;
  text-align: center;
}

h3 { font-size: 1.1rem; }
h4 {
  font-size: 1rem;
  color: var(--accent);
  padding-left: 12px;
}

img { max-width: 100%; }
pre { overflow-x: auto; }

a:hover, a:focus {
  /* keep your hover color if you like */
}
a:visited { color: var(--accent); }
