html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  background: #000;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Layout */
.main-flex-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
}

.nav-column {
  flex: 0 0 5vw;
  min-width: 50px;
  max-width: 100px;
  background: transparent;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.center-column {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  z-index: 1;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}
.center-content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  margin: 0 5vw;
  color: #fff;
  text-align: center;
}
h1 {
  color: #484848;
  font-size: 3vw;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 7px;
  margin: 2vw 0 1vw 0;
  position: relative;
  padding-top: 10vw;
  cursor: pointer;
  transition: color 0.5s, text-shadow 0.5s;
}
h1 span {
  transition: .5s linear;
}
h1:hover span:nth-child(1){
  margin-right: 5px;
}
h1:hover span:nth-child(2){
  margin-left: 30px;
}
h1:hover span{
  color: #fff;
  text-shadow: 0 0 10px #967bb6,
               0 0 20px #967bb6, 
               0 0 40px #967bb6;
}
h2 {
  color: white;
  font-size: 2vw;
  margin: 1vw 0 1vw 0;
}
.auto-type { color: yellowgreen; }
.btn-shine {
  font-size: 1.2vw;
  color: #fff;
  background: linear-gradient(to right, #4d4d4d 0%, #fff 10%, #4d4d4d 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  text-decoration: none;
}
@keyframes shine {
  0% { background-position: 0; }
  60% { background-position: 180px; }
  100% { background-position: 180px; }
}

/* Right column: flex vertical, then row for canvas */
.right-column {
  flex: 0 0 25vw;
  min-width: 240px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  background: transparent;
  gap: 0;
}
.slideshow-responsive {
  width: 100%;
  flex: 1 0 auto;
  margin-top: 30px;
  display: block;
}
.slideshow-container {
  max-width: 100%;
  margin: auto;
  position: relative;
}
.mySlides { display: none; }
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: #717171; }
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade { from {opacity: .4} to {opacity: 1} }
.slide {
  overflow: hidden;
  object-fit: cover;
  width:90%; 
  margin:3%; 
  height:200px;
}

/* Block for canvas, centered below slideshow */
.right-canvas-row {
  width: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

/* Canvas: 16:9 and responsive, not fixed, just a block element, interactive */
.canvas-wrapper {
  width: 60%;
  max-width: 300px;
  min-width: 120px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.canvas-wrapper canvas#test {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  margin: 0 auto;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(255,255,255,0.2);
  transition: box-shadow 0.2s;
  outline: none;
}
.canvas-wrapper canvas#test:focus,
.canvas-wrapper canvas#test:hover {
  outline: 2px solid #aaa;
  box-shadow: 0 0 8px 4px rgba(255,255,255,0.15);
}

/* Animated Waves */
.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100vw;
  background-color: transparent;
  color: white;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}
.waves-container {
  width: 100vw;
  min-width: 100vw;
  height: 15vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 15vh;
  min-height: 30px;
  max-height: 100px;
  z-index: 11;
  display: block;
  pointer-events: none;
}
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
    transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* Navigation bar: vertical by default, horizontal on small screens */
.icon-bar {
  width: 100%;
  min-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 5;
  position: static;
  left: unset;
  top: unset;
  background: transparent;
}
.icon-bar a {
  display: block;
  text-align: center;
  padding: 1vw;
  color: white;
  font-size: 2vw;
}
.icon-bar i { color: whitesmoke; }
.icon-bar a:hover > i { opacity: 0.7; }
.icon-bar i:hover { transform: scale(0.9); }

/* Make nav bar horizontal on small screens via JS toggle */
.icon-bar-horizontal {
  flex-direction: row !important;
  width: 100vw !important;
  min-width: 0 !important;
  height: auto !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 20px !important;
  position: static !important;
  left: unset !important;
  top: unset !important;
  background: transparent !important;
}
.icon-bar-horizontal a {
  padding: 10px 12px !important;
  font-size: 28px !important;
  display: inline-block !important;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.Highlight{ color: yellowgreen; font-style: italic; }
#spark { display: none; }

/* Responsive styles */
@media only screen and (max-width: 1200px) {
  .right-column {
    min-width: 150px;
    max-width: 240px;
  }
  .canvas-wrapper {
    max-width: 180px;
    min-width: 80px;
  }
}
@media only screen and (max-width: 768px) {
  .main-flex-container {
    flex-direction: column;
  }
  .nav-column {
    flex-direction: row;
    width: 100vw;
    min-width: 0;
    max-width: unset;
    justify-content: center;
    align-items: flex-start;
    height: 60px;
    border-bottom: 1px solid #333;
  }
  .center-column {
    min-width: 0;
    width: 100vw;
    height: auto;
  }
  .right-column {
    position: static;
    min-width: 0;
    max-width: 100vw;
    width: 100vw;
    height: auto;
  }
  .canvas-wrapper {
    width: 40vw;
    min-width: 100px;
    max-width: 200px;
  }
}
@media only screen and (max-width: 768px) {
  .right-column,
  .slideshow-responsive,
  .canvas-wrapper,
  .right-canvas-row {
    display: none !important;
  }
  .center-content {
    font-size: 16px;
    padding: 10px 0;
    margin: 0 10vw;
  }
  .nav-column {
    min-width: 40px;
    max-width: 60px;
  }
}
@media only screen and (max-width: 480px) {
  /* Do not override .icon-bar, only .icon-bar-horizontal will apply for horizontal nav */
  .main-flex-container {
    flex-direction: column;
  }
  .nav-column {
    flex-direction: row;
    width: 100vw;
    min-width: 0;
    max-width: unset;
    height: 40px;
    border-bottom: 1px solid #333;
  }
  .center-content {
    margin: 0 2vw;
    font-size: 13px;
    padding: 4vw 0;
  }
  .right-column,
  .slideshow-responsive,
  .canvas-wrapper,
  .right-canvas-row {
    display: none !important;
  }
}
