/* color schemes with variables */
:root {
  --text-primary: black;
  --text-secondary: #f2f2f2;
  --bg-primary: #e6ddd9;
  --bg-secondary: white;
  color: black;
  font-family: sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

/* banner and background */
.background-banner {
  width: 100%;
  height: 30vh;
  background-image: url("pics/banner.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.background-banner a {
  display: block;
  width: 100%;
  height: 30vh;
}

/* topnav */
nav {
  font-size: 22px;
  z-index: 10;
  position: sticky;
  top: 0;
  margin-top: 10px;

  display: flex;
  justify-content: center;
}
nav > a {
  color: black;
  padding: 10px 20px;
  text-decoration: none !important;
  margin-bottom: 3px;
}
nav > a:last-of-type {
  margin-left: 150px;
}
nav > a:hover {
  border-bottom: solid 3px black;
  margin-bottom: 0px;
}
@media screen and (max-width: 1400px) {
  nav > a {
    padding: 10px 10px;
    font-size: 20px;
  }
  nav > a:last-of-type {
    margin: 0
  };
}

/* Hamburger enabled navigation on tablet and below */
@media screen and (max-width: 768px) {
  header {
    margin-bottom: 0px;
  }
  nav {
    margin: 0;
    position: fixed;
    height: 100vh;
    width: 100vw;
    line-height: 2;
    background-color: rgba(0,0,0,.8);
    font-size: 20px;
    font-weight: bold;
    overflow: scroll;

    display: none; /* only flex click on hamburger */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  nav > a {
    color: white;
    margin: 0;
    border: 0;
  }
  nav > a:hover {
    border: 0;
    margin: 0;
    font-weight: bold;
  }
}
/* Hamburger Design */
.switch-navigation {
  position: fixed;
  z-index: 11;
  transition: top 0.2s;
  top: 0;
  right: 0;
  margin: 15px;
}
.switch-navigation img {
  width: 50px;
  transition-duration: 1s;
  transform: rotate(0deg);
}
.hamburger-button {
  border: none;
  outline: 0;
  background-color: var(--bg-primary);
  border-radius: 4px;
  position: absolute;
  right: 15px;
  transition: top .2s;
}
.hamburger-button:hover {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 25px 3px, rgba(255, 255, 255, 0.017) 0px 2px 50px 10px;
  cursor: pointer;
}
.rotate-hamburger {
  animation: hamburger 0.5s both;
}
@keyframes hamburger {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(90deg);}
}
@media screen and (min-width: 1200px) {
  .switch-navigation {
    display: none;
  }
}

/* Upload Banner Image  */
.banner-upload-icon {
  position: absolute;
  top: 15px;
  left: 15px;
}
.banner-upload-icon button {
  padding: 0px;
  background: none;
  border: none;
}
.banner-upload-icon button:hover,
.banner-upload-closing:hover {
  cursor: pointer;
}
.banner-upload-icon img {
  width: 35px;
  border-radius: 15%;
  transition: 0.2s;
}
.banner-upload-icon img:hover {
  background-color: rgba(255,255,255,0.01);
  box-shadow: 0px 0px 15px rgba(255,255,255,0.05);
}
/* Upload Window Overlay */
.banner-upload-window {
  z-index: 101;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);

  /* non visible by default, flex by js */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.banner-upload-window form {
  max-width: 90%;
  width: 350px;
  padding: 25px;
  color: black;
  background-color: var(--bg-primary);
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: solid 3px black;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.button-flex-row {
  display: flex;
  justify-content: center;
}
.display-image {
  max-height: 45vh;
  overflow: hidden;
}

.background-image {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  z-index: -1000;
  background: url(pics/bg1.jpg) no-repeat;
  background-size: cover;
  opacity: .6;
}

/* Custom SQL request form for filtering and sorting */
.sortingform select{
  height: 25px;
  width: 200px;
}
.hidden-date-inputs {
  display: none;
}
.hidden-date-inputs input {
  margin-bottom: 25px;
}
.hidden-date-inputs input,
.hidden-date-inputs button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.hidden-btn {
  display: none;
}

/* Upload Banner Image  */
.upload-icon button {
  padding: 0px;
  background: none;
  border: none;
}
.upload-icon button:hover {
  cursor: pointer;
}
.upload-icon img {
  width: 35px;
  border-radius: 15%;
  transition: 0.2s;
  margin: 0px!important;
}
.upload-icon img:hover {
  background-color: rgba(255,255,255,0.01);
  box-shadow: 0px 0px 15px rgba(255,255,255,0.05);
}

/* Upload Window Overlay */
.upload-window {
  display: none;
  z-index: 101;
  color: black;
  background-color: var(--bg-primary);
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: solid 3px white;
  overflow: hidden;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 25px;
  height: 95vh;
  max-height: 90%;
  width: 90vw;
  max-width: 600px;
}
.upload-window > form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.form-input-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-input-container label,
.form-input-container input,
.form-input-container select {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}
.upload-window .full-height-image {
  height: 100% !important;
}
@media screen and (max-width: 768px) {
  .upload-window {
    height: 95vh;
    max-height: 90%;
    width: 90vw;
    max-width: 80%;
  }
}

/* GENERAL */
h1, h2, h3, p {
  text-align: center;
}

h2 {
  font-size: 2rem;
}

p {
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: center;
}

a {
  text-decoration: none;
  color: black;
}
a:hover {
  text-decoration: underline;
}

article {
  max-width: 85%;
  background: rgba(255, 255, 255, 0.4);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin: 15px auto;
}
article > p {
  text-align: justify;
  line-height: 1.7;
  text-shadow: 0 1px 2px white;
}

/* MAIN CONTENT */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.family-page {
  max-width: 1250px;
  padding-bottom: 25px;
  border-bottom: dashed 1px black;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.family-page h1 {
  font-size: 2rem;
}
.family-page p {
  text-align: justify;
  font-size: 1.3rem;
  line-height: 1.7;
  padding: 15px;
}
.family-page a {
  margin: 15px 0;
}







/* IMAGE DISPLAY SETTINGS (flexbox) */
.image-flex-container {
  margin: 25px auto;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.image-flex-item {
  margin: 15px 10px;
  width: calc(25% - 20px);
  max-height: 90vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.image-flex-item > h1 {
  margin-bottom: 5px;
}
.image-flex-item > p {
  margin: 5px auto;
}
.full-height-image {
  max-height: 100vh;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.01);
}
.content-container {
  width: 90%;
  height: 90%;
  margin-top: 10px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.01);
  border: solid 3px rgba(255,255,255,.7);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.content-container > img,
.content-container > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0ms !important;
}
/* Image/Video edit icon */
.display-edit-icon {
  position: absolute;
  top: 15px;
  right: 20px;
}
.display-edit-icon img {
  width: 40px;
}
.display-edit-icon img:hover {
  cursor: pointer;
}
/* increase images on click */ 
.increase-me {
  position: fixed;
  z-index: 100;
  background: url("pics/bg1.jpg") no-repeat;
  background-size: cover;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  height: 95vh;
  width: 95vw;
  box-shadow: 0 0 1000px rgba(0,0,0,0.9);

  display: flex;
  justify-content: center;
}
.increase-me > img {
  box-shadow: 0 0 2000px rgba(0,0,0,0.5);
  height: 100vh !important;
  max-width: 100vw !important;
  object-fit: contain;
}
.increase-me-slider {
  position: fixed !important;
  z-index: 100;
  background: rgba(0,0,0,0.3);
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 99vw !important;
  height: 99vh !important;
  max-width: 99vw !important;
  -webkit-box-shadow: 0 0 1000px rgba(0, 0, 0, 0.3);
          box-shadow: 0 0 1000px rgba(0, 0, 0, 0.3);
  outline: solid 3px rgba(255,255,255,0.3);
}
.increase-me-slider img {
  box-shadow: 0 0 2000px rgba(0,0,0,0.5);
  height: 100% !important;
  width: auto;
  max-width: 95%;
  object-fit: contain;
}

/* Lazyfade / Lazyload */
.fade {
  opacity: 1;
  transition: 0s;
}

/* IMAGE DISPLAY MEDIA QUERIES */
/* bigger desktop */
@media screen and (max-width: 1350px) {
  .image-flex-container {
      width: 100%;
  }
  .image-flex-item {
      width: calc(33.33% - 20px);
  }
}
/* tablet or smol desktop */
@media screen and (max-width: 950px) {
  .image-flex-item {
      width: calc(50% - 20px);
  }
  .display-edit-icon img {
    width: 30px;
  }
  .content-container > img,
  .content-container > video {
  object-fit: contain;
}
}
/* phone */
@media screen and (max-width: 750px) {
  .image-flex-item {
      width: 100%;
      margin: 5px 10px;
      border-bottom: dashed 1px black;
  }
  .content-container {
      width: 100%;
      margin-bottom: 20px;
  }
  h1 {
    font-size: 22px !important;
  }
  p {
    font-size: 14px !important;
  }
}


/* Flexbox centered vertically and horizontally (login page) */
.center-flex-container {
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login Form */
.login-form  {
  width: 350px;
  max-width: 80%;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0px 0px 250px rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 15px;
  border: solid 3px black;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form > form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: 0px;
  margin-bottom: 30px;
  width: 100%;
  height: 25px;
  background: none;
  outline: none;
  border: none;
  border-bottom: solid 1px black;
}

.login-footer {
  display: flex;
  align-self: center;
  align-items: center;
}
.login-footer > * {
  font-size: .8rem;
  padding: 0px 5px;
  text-decoration: none;
  color: var(--text-primary);
}

/* General Button Design */
.btn {
  color: var(--text-primary);
  padding: 10px 20px;
  margin: 10px;
  font-size: 1rem;
  background: none;
  outline: none;
  border: none;
  border: solid 1px var(--text-primary);
  border-radius: 5px;
  transition: box-shadow .1s;
}
.btn:hover {
  cursor: pointer;
  box-shadow: 0px 0px 15px rgba(255,255,255, 0.2);
}

/* Admin Form Controls (fixed & centered) */
.admin-form  {
  z-index: 100;
  width: 500px;
  max-width: 90%;
  padding: 15px;
  color: black;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-primary);
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: solid 3px white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.admin-form-nonfixed {
  display: block;
  width: 350px;
  max-width: 80%;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 25px;
  color: black;
  background-color: var(--bg-primary);;
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: solid 3px white;
}

.admin-form input,
.admin-form-nonfixed input,
.admin-form select,
.admin-form-nonfixed select {
  display: block;
  font-size: 16px;
  width: 350px;
  max-width: 95%;
  height: 25px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
}

.admin-form label,
.admin-form-nonfixed label {
  display: block;
  width: 350px;
  max-width: 95%;
  margin-bottom: 5px;
  margin-left:auto;
  margin-right: auto;
}

.admin-form-buttons {
  width: 250px;
  margin: 25px auto;
}

.admin-form img,
.admin-form video {
  max-width: 95%;
  max-height: 30vh!important;
}

/* Loading Icon */
.loading-icon-overlay {
  z-index: 130;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}
.loading-icon-overlay h1 {
  color: white;
  font-size: 60px;
  position: absolute;
  margin: 0;
  padding: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* control toprow */
.control-toprow {
  border-bottom: dashed 1px black;
  width: 1500px;
  max-width: 95%;
  margin: 15px auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* GUESTBOOK Entry */
.guestbook form {
  width: 1500px;
  max-width: 90%;
  margin: 50px auto;
  padding: 10px 20px;
  color: black;
  font-weight: bold;
  background-color: var(--bg-primary);
  border-radius: 15px;
  border: solid 3px black;
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
}
.guestbook label {
  display: block;
  margin-bottom: 8px;
}
.guestbook input[type="text"] {
  border: none;
  font-size: 16px;
  height: auto;
  padding: 10px;
  max-width: 350px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  border: solid 1px black;
  border-radius: 5px;
  margin-bottom: 15px;
}
.guestbook textarea {
  width: 100%;
  border: none;
  font-size: 16px;
  height: auto;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  border: solid 1px black;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 30px;
  resize: vertical;
}
.guestbook input[type="text"]:focus,
.guestbook input[type="number"]:focus,
.guestbook input[type="email"]:focus,
.guestbook textarea:focus {
  outline: none;
}

/* GUESTBOOK Display */
.guestbook-container,
.guestbook-container-header {
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 5px;
  width: 1500px;
  max-width: 95%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  border-bottom: solid 1px black;
}
.flexbox-display-date ,
.flexbox-display-relationship,
.flexbox-display-uid,
.flexbox-display-entry {
  text-align: justify;
  font-size: 18px;
  line-height: 1.5;
  color: black;
  margin-top: 15px;
  margin-bottom: 15px;
}
.flexbox-display-date {
  width: 10%;
}
.flexbox-display-relationship {
  width: 10%;
}
.flexbox-display-uid {
  width: 10%;
}
.flexbox-display-entry {
  width: 60%;
}


/* MEDIA QUERIES */
@media screen and (max-width: 1100px) {
  .guestbook-container-header {
    display: none;
  }
  .guestbook form {
    border: none;
  }
  .flexbox-display-date ,
  .flexbox-display-relationship,
  .flexbox-display-uid {
    width: 33.33%;
  }
  .flexbox-display-entry {
    display: block;
    width: 100%;
  }
}

/* when resoultion is smaller than 800px */
@media screen and (max-width: 800px) {
  h1 {
    font-size: 24px;
  }
  h3 {
    font-size: 65px;
  }
  h4 {
    font-size: 14px;
  }
}

/* DRY classes */
.box-shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.01);
}

.dark-fullscreen-overlay {
  z-index: 100;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

.close-overlay-button {
  display: flex !important;
  justify-content: flex-end;
}
.close-overlay-button img {
  height: 35px;
  width: 35px;
}
.close-overlay-button img:hover {
  cursor: pointer;
}

.overlay-form {
  z-index: 102;
  width: 500px;
  max-width: 90%;
  margin: 0px;
  padding: 0px;
  color: white;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-primary);;
  box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: solid 3px white;
}

/* SLIDESHOW */
.slideshow-container {
  width: 90vw;
  height: 500px;
  max-width: 1250px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.8);
}
.slideshow-container img {
  max-width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0s;
}
.slide {
  max-height: 100vh;
  max-width: 100vw;
  display: none;
}
.slide--active {
  display: block;
}
.text {
  color: #f2f2f2;
  background-color: rgba(0, 0, 0, 0.9);
  font-size: 1rem;
  padding: 8px 0px;
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
}
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 0s;
  animation-name: fade;
  animation-duration: 0s;
}
@-webkit-keyframes fade {
  from {
    -webkit-transform: scale(1.02);
            transform: scale(1.02);
    opacity: .9;
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes fade {
  from {
    -webkit-transform: scale(1.02);
            transform: scale(1.02);
    opacity: .9;
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
.prevButton,
.nextButton {
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
}
.prevButton:hover,
.nextButton:hover {
  background-color: #f1f1f1;
  color: black;
}
.prevButton, .nextButton {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  -webkit-transition: 0.6s ease;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.nextButton {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* FOOTER */
.footer-div {
  text-align: center;
  margin-bottom: 50px;
}
.footer-div p {
  font-size: 14px;
}
.footer-div a {
  text-decoration: none;
  font-size: 12px;
  color: black;
}
.footer-div a:hover {
  border-bottom: 3px solid black;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
