@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');


html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    transition: all .25s ease-in;
}

body {
    background:#ffffff;
    margin: auto;
    font-family: 'Red Hat Display', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: 2px;
}

h1 {
    color: #000000;
}

h2 {
  font-size: 1rem;
  color: #007489;
}

.demo-wrapper {
    max-width: 1024px;
    width: 96%;
    margin: auto;
    max-height: 90vh;
    background: #ffffff;
}

.demo-header {
    font-family: 'Patua One', serif;
    letter-spacing: 2px;
    text-align: center;
    padding: 10px;
    background: #ffffff;
}

/* START - .nav-main */
.nav-main {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    line-height: 0;
    margin-left: 8px;
    background: rgba(166, 206, 252, 0.65);
}

.nav-main-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

/* SET SVG TRANSFORMS - based on individual elements not SVG box */
.nav-main-menu-toggle svg * {
    transform-box: fill-box;
}

/* HAMBURGER MENU ICON */
.nav-main-menu-toggle rect:nth-child(1) {
    transition: all .5s cubic-bezier(0, 1.68, 0.2, -2.04);
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(2) {
    transition: all .5s linear;
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(3) {
    transition: all .5s cubic-bezier(0.14, -1.03, 0.86, -0.29);
    transform-origin: center;
}

/* JAVASCRIPT WILL ADD - aria-expanded="true" - to .nav-main-menu-toggle */
.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
    rotate: 1.125turn;
    translate: 0 10px;
    fill:rgb(0, 0, 0)
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
    scale: 0;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
    rotate: -1.125turn;
    translate: 0 -10px;
    fill:rgb(0, 0, 0)
}

/* END - .nav-main-menu-toggle */

#nav-main-menu {
    transform: translateX(-100%);
    transition: all 1s ;
    position: absolute;
    width: 40vw;
    background: #ffffff;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    visibility: hidden;
    flex-direction: column;
}

#nav-main-menu:not([hidden]) {
    visibility: visible;
    transform: translateX(0);
    transition: all 1.8s ease-out;
}

#nav-main-menu li a {
    color: inherit;
    display: flex;
    line-height: 3;
    padding: 0 2em;
    transition: all .25s ease;
}

#nav-main-menu li a:hover,
#nav-main-menu li a:focus {
    background: whitesmoke;
}

/* END - .nav-main */

/* Front page Images

.hero-img {
  display: block;
  margin-top: 3rem;
}
*/
/* Front page grid for mobile */

.front-page-grid {
  display: grid;
  grid-template-columns: 100%;
  margin: auto;
  align-items: stretch;
}

#hero-text-side {
  margin-top: 3rem;
}

/* Hero Image */
#hero-img-side img {
  display: block;
  object-fit: contain;
  width: auto;
  margin: 3vh;
}

/* BEGIN - Gallery formatting for photo galleries */

.mySlides {
    display: none
}
.img-slide {
    vertical-align: middle;
    max-height: 70vh;
    object-fit: contain;
}
/* Slideshow container */
.slideshow-container {
  max-width: 90%;
  position: relative;
  margin: auto;
}
/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: black;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: #d9d9d980;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
/* Caption text */
.text {
  color: #ffffff;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
/* The dots/bullets/indicators */
.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;
}
/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* End - Gallery formatting for photo galleries */

.page-content {
  margin: 20px;
}

.sample-img {
    vertical-align: middle;
    object-fit: contain;
    max-width: 100%;
    max-height: 80vh;
}
/* Display image container */
.image-container {
  display: flex;
  justify-content: center;
  max-width: 90%;
  align-items: center;
  margin: auto;
  padding: 20px;
}

.demo-footer {
    display: flex;
    background: #ffffff;
}

.demo-footer a:first-child {
    margin: 0 auto 0 0;
}

.demo-footer a {
    line-height: 2;
    padding: 0 .5em;
    color: #000000;
}


@media (min-width: 768px) {

     .nav-main {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
        max-width: 1024px;
        margin-left: 0px;
    }

    .nav-main-menu-toggle {
        display: none;
    }

    #nav-main-menu {
        position: relative;
        visibility: visible;
        transform: translateX(0);
        transition: none;
        background: transparent;
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .front-page-grid {
      display: grid;
      grid-template-columns: repeat( auto-fit, minmax(33.33%, 1fr) );
      align-items: stretch;
      justify-content: center;
      margin-left: 40px;
      max-height: 90vh;
    }

    .front-page-grid h1 {
      font-size: 2rem;
    }

    .front-page-grid p {
      font-size: 1rem;
      color: hsl(0, 0%, 41%);
      line-height: 0.9rem;
    }

    #hero-text-side {
      margin-top: 2rem;
    }
    /* Hero Image */
    #hero-img-side img {
      margin-top: 2rem;
      max-width: 85%;
      padding: 5%;
    }


    /* Images
    .hero-img {
      display: block;
      justify-self: center;
    }*/

}
