@import url('https://api.fonts.coollabs.io/css2?family=Geo&display=swap');

:root {
  --tooltip-background: #444850;
  --gap: 50px;
  --cubic: cubic-bezier(0.91, 0.08, 0.16, 0.76);
  --margin-block--sz: 2rem;
}

* {
  margin: 0;
  padding: 0;
}

*, 
::before, 
::after {
  box-sizing: border-box;
}
/* general page styling */
body {  
/*    background: #000 url(https://ik.imagekit.io/ghow2otb3rc/Projects/SoM/cdn/2_animated_background__R7TIo60UM.webp);*/
    background: #000 url(https://ik.imagekit.io/ghow2otb3rc/Projects/SoM/cdn/96337246-f14d4580-1085-11eb-8793-a86d929e034d_xLVdBIAQK.jpg);
    font-family:  Comic Sans MS, cursive, sans-serif; 
    font-size: 1.125em; 
    line-height: 0.3em; 
    background-repeat: repeat;
    animation: slidein 180s forwards infinite alternate;    
}

.header { 
    width:100%; 
    border-bottom: 1px solid #ccc; 
    background-color: #ccc; 
    margin-bottom: 2em; 
}
.footer {
    font-size: 1.1em;
    padding: 0;
}
/*
@media (min-width:900px){
    #header{
        width:1140px !important;
        margin-left:-100px !important;
    }
}
*/
#content { 
    width: auto; 
    max-width: 960px; 
    margin: auto; 
    padding: 20px; 
}

#topnav {
  position: relative;
  --mgap: 2rem;  
  width: min(100% - var(--mgap), 700px);  
  margin: 0 auto;
  padding-block: .675rem;  
}

/* Menu styles for non-mobile version */
#topnav nav {
  position: relative;
}

#topnav nav ul {
    display: none;
    list-style: none;
    justify-content: center;
    gap: .5rem;
    /* background-color: hsla(43.8, 0%, 28.9%, 0.8); */
    background-color: #efeeec0f;
    background-color: hsl(43.8, 0%, 9.3%);
    border: 1px solid  hsla(43.8, 0%, 75.3%, 0.3);
    border-radius: .5em;
    padding-block: 4px;
}

#topnav nav ul li {
  position: relative;
/*  background-color: #0000;
  border: 1px solid #efeeec00;
  border: 1px solid #c0c0c0;*/
}

#topnav nav ul li.active {
  background-color: #0000;
  background-color: hsl(43.8  , 0%, 16.7%);
  border: 1px solid #efeeec00;
/*  border: 1px solid #c0c0c0;  */
  border-radius: .25rem;  
}


#topnav nav ul li:nth-of-type(1) {
/*  outline: 1px solid #fff;*/
  border-radius: 4px;
}

#topnav nav ul li a {
  display: inline-block;
  font-family: 'Geo';
  font-weight: 700;
  color: #fff;
/*  color: currentColor;*/
  padding: 12px 6px;
  text-transform: uppercase;
  text-decoration:none;
  letter-spacing: .045rem;
    transition: color .3s ease-in-out;
}
#topnav .nav ul li a:hover {
    /*background-color: blue;*/
    /*font-family: "Comic Sans MS", cursive;*/
    color: cyan; 
    /*font-size: 24px;*/
}

                 
#nav2{
  position: relative;
  width: 100%;
/*          padding-left: 40px;
  margin-left: 7.0em; */          
  display: flex;
  justify-content: center;
  margin-block-start: var(--margin-block--sz);
  margin-block-end: var(--margin-block--sz);
}

#nav2 ul li {
  display: inline-block;
}

#nav2 ul li a {
   color: #fff;
   text-decoration: none;
}

#main {
  position: relative;
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  padding-block-start: 0;
}

#main #frame {
/*  max-width: 100%;*/
  width: 100%;
}
/* Styles for menu in footer */
#mobile-nav { 
    /*display: block; */
  display: grid;
  place-items: center;
  /*
  position: fixed;
  inset: 10% 0 0 ;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, .8);
  transform: translate3d(-10%, 0, 0);
  */
  position: fixed;
  inset: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, .85);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.6s ease-in-out;
  z-index: 2;            
}
#mobile-nav ul {
    list-style: none;
    width: 80%;
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}
#mobile-nav ul li { 
    list-style: none;
    text-align: center;         
    font-family: 'Geo';
    text-transform: uppercase;
}
#mobile-nav ul li a {
    display: block;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #fff; 
    transition: color 0.6s ease-in-out;
}
#mobile-nav ul li a:hover { 
    /* background-color: blue; */
    color: cyan; 
}

.copyright {
  position: fixed;
  bottom: 10px;
  display: inline-flex;
  font-family: 'Geo';
  color: #fff;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  line-height: .9;
}

.copyright img {
  order: -1;
}

@media (width >= 380px) {
  .copyright {
    position: relative;
    line-height: .9;
  }
}

/* The media query for larger devices */
@media all and (min-width: 768px) {
  /* for display of non-mobile menu */
  #topnav .nav ul { 
    display: flex; 
  }
  /* hides menu button at top of screen */
  .anchor-link { 
    display: none; 
  }
  /* hides menu in footer */
  #mobile-nav { 
    display: none; 
  }

/*  #main {
    position: relative;
    max-width: 40%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    padding-block-start: 4rem;
  } */ 
}
/*

main:has(p) {
  align-items: center;
  justify-content: center;      
}
*/
/*

main p {
    font-family: 'Geo';
    font-size: clamp(0.975rem, -0.675rem + 5.333333vw, 1.5rem);
    line-height: 1.2;
    width: 70%;
    color: #c0c0c0;
    align-self: center;
}
*/

.main--img-wrap {
  width: 100%;
  max-width: 640px;
  /*margin: 0 auto;*/
  margin-block-start: 3rem;
  overflow: hidden;
  /*outline: 1px solid firebrick;*/
  text-align: center;
}

.main--img-wrap img {
  max-width: 100%;
  height: auto;
  box-shadow: 1px 6px 12px rgba(250, 250, 250, .55);
}


@media (min-width: 768px) {
  main--img-wrap {
    max-width: 800px;
  }
}

frame {
  clear: left;
}

a.middle
{
    position: relative;
    font-family: 'Geo';
    font-size: 1.5rem;
}

a.middle:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #FFF;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.8s ease-in-out;
}

a.middle:hover:before {
  visibility: visible;
  transform: scaleX(1);
}

#mobile-nav.showing {
    transform: translate3d(0, 0, 0);
}

.hamburger {
  position: absolute;
  right: .25rem;
  top: .6rem;
  flex: 0 0 28px;
  display: none;
  cursor: pointer;
/*   margin-left: auto; */
  z-index: 1;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background-color: #fff;
}

@media (max-width: 768px) {
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 5;
    background-color: #0C0C0C;
  }

  .hamburger {
    display: block;
    float: right;
    margin-right: .25rem;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  #nav2 {
    margin-block-start: calc(var(--margin-block--sz) * 2);
  }  
}

.mbl--book-cover {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 80px;
  overflow: hidden;
}

.mbl--book-cover img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: .8;
}


a.middle
{
    position: relative;
    font-family: 'Geo';
    font-size: 1.5rem;
}

a.middle:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #FFF;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.8s ease-in-out;
}

a.middle:hover:before {
  visibility: visible;
  transform: scaleX(1);
}

#mobile-nav.showing {
    transform: translate3d(0, 0, 0);
}

.pzl--img-cont {
  /*text-align: center;*/
  display: flex;
  justify-content: center;
  width: 70%;
  margin: 0 auto;
  visibility: hidden;
}

.pzl--img-cont img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pzl--img-cont:nth-last-of-type(-n+1) {
  /*visibility: hidden;*/
  margin-top: -30px;
}

.highlighter {
    position: absolute;
    top: 5px;
    left: 0;
    height: 70%;
    border-radius: 4px;
    background: hsl(43.8, 0%, 18.3%);
    outline: 1px solid #c0c0c0;
    outline: 1px solid hsla(43.8, 0%, 75.3%, 0.7);
    transition: 0.3s ease;
    transition-property: width, transform, opacity;
    opacity: 0;
}

.pzl--nav-buttons {
  position: relative;
  display: flex;
  width: 50%;
  justify-content: space-between;
  margin-block: .25rem;
}

.pzl--nav-buttons .pzl-btn--wrap {
  background-color: hsl(43.8, 0%, 19.3%);
  border-radius: 50%;
  transition: background-color .3s ease-in-out;
}

.pzl--nav-buttons .pzl-btn--wrap:hover {
  background-color: hsl(43.8, 0%, 39.3%);
}

.pzl--img-cont:nth-of-type(1) .pzl-btn--wrap:nth-of-type(1) {
  opacity: 0.2;
  pointer-events: none;
}

.pzl--img-cont:nth-last-of-type(-n+1) .pzl-btn--wrap:nth-of-type(2) {
  opacity: 0.2;
  pointer-events: none;
}

@keyframes slidein {
  0%,
  100% {
    background-position: 20% 0%;
    background-size: 3400px;
  }
  50% {
    background-position: 100% 0%;
    background-size: 2400px;
  }
}

.pzl--navigation {
  position: fixed;
  left: 0%;
  top: 10px;
  width: 100%;
  display: none;
  padding-block: 0;
/*  z-index: 1;*/
}

.pzl--navigation ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 50%;
  width: 12.5rem;
  margin: 0 auto;
  padding-block: .25rem;
  background-color: hsl(43.8, 0%, 9.3%);
  border: 1px solid  hsla(43.8, 0%, 75.3%, 0.3);  
  border-radius: .5em;
}

.pzl--navigation ul li {
  display: flex;
  align-items: center;
  font-family: 'Geo';
  font-size: 1.2rem;
  color: #c0c0c0;
}

.pzl--navigation ul li a {
  font-family: 'Geo';
  font-size: 1.2rem;
  color: #c0c0c0;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.pzl--navigation ul li:first-child a svg {
  transform: rotate(90deg);
}

.pzl--navigation ul li:nth-last-of-type(-n+1) a svg {
  transform: rotate(-90deg);
}

.pzl--navigation ul li:nth-child(2) a {
  pointer-events: none;
}

.pzl--navigation ul li a:has(svg):hover {
  color: hsl(180, 100%, 50%);
}

@media (max-width: 768px) {
  .pzl--navigation {
      display: block;
  }
}

@media (min-width: 769px) {
  .pzl--navigation {
    top: 767px;
    display: none;
    z-index: 10;
  }
}
