/* --------------------------------------------- */
/* ---------Common decoration section.---------- */
/* --------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 40px;

  margin: 0 auto;
  color: white;

  background: url('img/starb.gif');
}

h1, h2, h3, h4, h5, h6 {
  color: lime;
}

ul {
  list-style: none;
  padding-left: 20px;
}

li {
  margin-bottom: 0.5em;
}

a:link,
a:visited {
  color: aqua;
  text-shadow: 0px 1px 6px aqua;
}

a:hover {
  color: pink;
}

header, footer, main {
  grid-column: 1 / 3;
}

/* --------------------------------------------- */
/* ---------Separate bits decoration.----------- */
/* --------------------------------------------- */
.bonus_soda {
  color: lime;
  /* Give the text a little bit of 3D feel. */
  text-shadow: 0px 0px 0 rgb(-83,172,172),
               -1px 0px  0 rgb(-166,89,89),
               -2px 0px 1px rgba(0,0,0,1),
               -2px 0px 1px rgba(0,0,0,0.5),
               0px 0px 1px rgba(0,0,0,.2),
               0px 0px 20px blue;


  /* Additional shadow for neon feel. */
  text-shadow: 1px 1px 3px aqua;
}

#special_thanks li::before {
  content: "⭐";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0;
  margin-right: 0.25em;
  text-shadow: 0px 1px 6px aqua;
}

#my_email {
  display: block;
  text-align: center;
  margin: 15px 0;
  text-decoration: none;
  font-size: 1.2em;
}
.articles_list {
  padding-left: 0;
}

.articles_list li {
  margin-bottom: 30px;
  text-align: justify;
  text-indent: 0;
}

/* --------------------------------------------- */
/* ---------Header decoration section.---------- */
/* --------------------------------------------- */
header {
  width: 100%;
  height: 50px;

  position: sticky;
  top: 0px;

  /* Sparkles and texture for the whole header. */
  background: url('img/shining-pink-sparkles.gif'), url('img/bwash.gif');
  background-repeat: repeat, repeat;
  background-size: 30px, auto;

  border-bottom: 2px solid white;
  box-shadow: 0 0px 6px 2px lime;
}

/* Left corner image (spinning disc) decoration. */
header img {
  height: 100%;
  object-fit: contain;
  display: inline-block;
}

/* Duke GNUkem's domain label decoration. */
header h1 {
  /* Put it in condensed block, so that "domain" word wrap to the next line. */
  display: inline-block;
  width: 180px;

  font-family: "Arial Black", Gadget, sans-serif;
  font-size: 1.1rem;
  color: aqua;

  /* Move it to a nice position. */
  vertical-align: top;
  margin-top: 0;
  margin-left: 2px;

  /* Give the label a little bit of 3D feel. */
  text-shadow: 0px 0px 0 rgb(-83,172,172),
               -1px 0px  0 rgb(-166,89,89),
               -2px 0px 1px rgba(0,0,0,1),
               -2px 0px 1px rgba(0,0,0,0.5),
               0px 0px 1px rgba(0,0,0,.2),
               0px 0px 20px blue;


  /* Additional shadow for neon feel. */
  text-shadow: 1px 1px 3px aqua;
}

/* ------------------------------------------------------- */
/* ---------Navigation panel decoration section.---------- */
/* ------------------------------------------------------- */
#main_nav {
  display: none;
  font-weight: bold;
  position: fixed;
  top: 50px;
  right: 0px;
  left: 0px;
  height: 40px;
  background: url('img/bwash.gif') repeat;

  border-radius: 0 0 5px 5px;
  border-bottom: 2px solid white;
  box-shadow: 0 0px 6px 2px lime;
}

#main_nav:target {
  display: block;
}

#main_nav ul {
  display: flex;
  padding-left: 0;
  width: 100%;
  margin-top: 5px;
  text-align: center;
}

#main_nav ul li {
  flex: 1;
}

#main_nav ul li a {
  /* No underline for links in navigation menu .*/
  text-decoration: none;
}

#main_nav #access_top {
  position: fixed;
  top: 0;
  right: 0;
}

/* Navigation button background layer */
#nav_btn_bgr {
  width: 40px;
  height: 100%;

  display: inline-block;
  float: right;

  background:  rgba(0,0,0,.4);
  box-shadow: inset 0 0 5px 3px lime;
}

#access_nav {
  background-image: -webkit-repeating-linear-gradient(transparent, transparent 2px, aqua 2px, aqua 4px);
  background-image: repeating-linear-gradient(transparent, transparent 2px, aqua 2px, aqua 4px);
}

.article_img {
  width: 25%;
  display: block;
  margin: 0 auto;
}

.article_body_separator {
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid aqua;
  border-radius: 5px;
  box-shadow: 0 0px 6px 2px pink;
}


.access_aid {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 0;
  width: 40px;
  padding-top: 10%;
  overflow: hidden;
  background: transparent 10px 12px / 20px 20px no-repeat;
}

/* ---------------------------------------- */
/* ---------Main body decoration.---------- */
/* ---------------------------------------- */
main {
  margin-left: 30px;
  margin-right: 30px;
  text-align: justify;
}

main article h1 {
  margin-bottom: 5px;
  text-align: center;
}

main article figure {
  margin: 40px auto;
  text-align: center;
}

main article figure img {
  max-width: 300px;
}

main article figure figcaption {
  font-weight: bold;
  /* Give the text a little bit of 3D feel. */
  text-shadow: 0px 0px 0 rgb(-83,172,172),
               -1px 0px  0 rgb(-166,89,89),
               -2px 0px 1px rgba(0,0,0,1),
               -2px 0px 1px rgba(0,0,0,0.5),
               0px 0px 1px rgba(0,0,0,.2),
               0px 0px 20px blue;


  /* Additional shadow for neon feel. */
  text-shadow: 1px 1px 3px yellow;
  margin-top: 10px;
}

/* --------------------------------------*/
/* ---------Footer decoration.---------- */
/* ------------------------------------- */
footer {
  font-weight: bold;
  justify-self: center;
}

footer > * {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
}

footer img {
  max-height: 7em;
  float: left;
  margin-right: 5px;
}

/* --------------------------------------*/
/* -----General content decoration.----- */
/* ------------------------------------- */
.before_decoration {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0;
  margin-right: 0.25em;

  background-size: 100%;
  background-repeat: no-repeat;
}
.question_list li::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0;
  margin-right: 0.25em;

  background-size: contain;
  background-image: url("img/question-mark-question.gif");
  background-repeat: no-repeat;
}

.news::before {
  content: "";
  display: inline-block;
  width: 2em;
  height: 2em;
  margin-left: 0;
  margin-right: 0.25em;
  margin-bottom: 0em;

  background-size: 100%;
  background-image: url("img/news_scaled.png");
  background-repeat: no-repeat;
}

/* ----------------------------------------- */
/* ---------About page decoration.---------- */
/* ----------------------------------------- */
#about img {
  float: left;
  margin-right: 20px;
  width: 160px;
}
#about ul {
  line-height: 1.7rem;

}

#about li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0;
  margin-right: 0.25em;

  background-size: 100%;
  background-image: url("img/Earth-05.gif");
}

/* Widescreen adjustments. */
@media (orientation: landscape) {
/* --------------------------------------------- */
/* ---------Header decoration section.---------- */
/* --------------------------------------------- */
  header {
    background-size: 0%, auto;
    height: 50px;
  }

  #nav_btn_bgr {
    display: none;
  }

  #main_nav {
    all: unset;
    position: fixed;
    top: 0;
    right: 20px;
  }

  #main_nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 0;
  }

  #main_nav ul li {
    text-align: center;
    border: 2px solid lime;
    border-radius: 5px;
    width: 100px;
    font-size: 1.2rem;
    margin-top: 7px;
  }

  #main_nav ul li:hover {
    box-shadow: 0 0px 6px 2px lime;
  }

  #main_nav #active {
    border: 2px solid pink;
    box-shadow: 0 0px 6px 2px pink;
  }

  #main_nav #active a {
    color: pink;
  }

  #main_nav ul li a {
    display: inline-block;
    width: 100%;
    text-shadow: 1px 1px 3px aqua;
  }

/* ---------------------------------------- */
/* ---------Main body decoration.---------- */
/* ---------------------------------------- */
  main {
    max-width: 800px;
    justify-self: center;
    margin: 0 15%;
  }

  main article p {
    text-align: justify;
  }

  .article_body_separator {
    width: 100%;
  }

  .access_aid {
    display: none;
  }
}
