* {
  font-family: 'Arima Madurai', cursive;
}

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

#head-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  height: fill-available;
  /* border: 1px solid red; */

  /* background-image: url("paper1.jpg");
  background-repeat: repeat; */
  /* background-color: #fbfcf9; */
}

#pictogram-svg {
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  height: fill-available;
  /* border: 1px solid green; */
}

#pictogram-svg * {
  fill-opacity: 0;
}

#pictogram-svg.static * {
  fill-opacity: 1;
  transition: fill-opacity 1s;
}

#pictogram-svg .static-only {
  opacity: 0%;
}

#pictogram-svg.static .static-only {
  opacity: 100%;
  transition: opacity 1s;
}

#pictogram-svg .border path,
#pictogram-svg .pictogram path {
  fill: none;
  fill-rule: nonzero;
  stroke: #073b6a;
}

#pictogram-svg .border path {
  stroke-width: 6px;
}

#pictogram-svg .pictogram path {
  stroke-width: 2px;
}

#pictogram-svg .text path {
  fill: #073b6a;
  fill-rule: nonzero;
  stroke: #073b6a;
  stroke-width: 0.11px;
  stroke-linejoin: round;
  stroke-miterlimit: 2;
}

.animation-bounce {
  animation-name: bounce;
  animation-duration: 6s;
  animation-delay: 3s;
  animation-iteration-count: infinite;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-70px);
  }
  8% {
    transform: translateY(5px);
  }
  12% {
    transform: translateY(-25px);
  }
  13% {
    transform: translateY(2px);
  }
  15% {
    transform: translateY(-15px);
  }
  17%, 100% {
    transform: translateY(0);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', sans-serif;
  font-variant: small-caps;
  font-weight: normal;

  /* text-align: center; */

  /* color: #073b6a; */
}

a,
a:link,
a:visited {
  color: #073b6a;
}

a:hover,
a:active {
  color: #0b64b4;
  position: relative;
}

h1 a, h1 a:link, h1 a:visited, h1 a:hover, h1 a:active,
h2 a, h2 a:link, h2 a:visited, h2 a:hover, h2 a:active,
h3 a, h3 a:link, h3 a:visited, h3 a:hover, h3 a:active,
h4 a, h4 a:link, h4 a:visited, h4 a:hover, h4 a:active,
h5 a, h5 a:link, h5 a:visited, h5 a:hover, h5 a:active,
h6 a, h6 a:link, h6 a:visited, h6 a:hover, h6 a:active {
  color: inherit;
  text-decoration: none;
}
h1 a:hover:after,
h2 a:hover:after,
h3 a:hover:after,
h4 a:hover:after,
h5 a:hover:after,
h6 a:hover:after {
  position: absolute;
  left: -1.2ch;
  content: "#";
  overflow: visible;
  color: lightgray;
}

#main-content {
  padding: 0 20px;

  max-width: 700px;
  margin: 0 auto;
  /* overflow: hidden; */

  background-color: #ffffff;
}

.stars {
  width: 100%;
  min-height: 100vh;
  
  background-image: url("stars2.png");
  background-image: -webkit-linear-gradient(left,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.9) 20%,
  rgba(255, 255, 255, 0.9) 80%,
  rgba(255, 255, 255, 0) 100%
  ), url("stars2.png");
  background-repeat: repeat;
}

#main-content #map {
  width: 100%;
  height: 300px;
  /* background-image: url("map-placeholder.png");
  background-size: cover; */
}

footer {
  text-align: center;
  max-width: 700px;
  height: 80px;
  padding: 20px 20px 30px;
  margin: 0 auto;
}

footer img {
  height: 80px;
  width: auto;
}

form input[type=text] {
  width: 100%;
  display: block;
  font-size: 1em;

  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

form .inline {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}
form .inline span {
  font-weight: bold;
  display: block;
  width: 25px;
}
form .inline input[type=text] {
  width: auto;
  display: block;
  flex-grow: 1;
  margin: 5px auto;
}

form input[type=submit] {
  margin: 10px;
  font-size: 1.2em;
}

form .honeypot {
  position: absolute;
  top: -1000px;
}

form .secondary {
  font-size: 0.9em;
  color: rgb(94, 94, 94);
}

#entry-form {
  text-align: center;
  max-width: 250px;
  padding: 60px 10px;
  margin: 0 auto;
}

#rsvp-form {
  visibility: hidden;
  /* border-left: 2px solid lightgray; */
  padding: 8px 16px;
  margin-bottom: 32px;
  border-radius: 8px;
  border: 1px solid lightgray;
  background-color: #f1f1f1;
}

#rsvp-form .field-group {
  margin: 16px 0;
  padding: 16px;
  border: none;
  border-radius: 8px;
  border: 1px solid lightgray;
  background-color: #ffffff;
}

#rsvp-form .field-group.success span:first-child {
  font-size: 1.2em;
}

#rsvp-form h2 {
  margin: 0 0 4px;
}

#rsvp-form input[type=submit] {
  margin: 0 10px 8px 10px;
}

#rsvp-form ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#rsvp-form ul li {
  padding: 4px 8px;
}

.draw-pad {
  border-style: groove;
  width: 100%;
  height: 100%;
  display: block;
}

#video img {
  box-sizing: border-box;
  width: 100%;
  padding: 0 8px;
}
#gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 0 4px;
}
#gallery > a {
  box-sizing: border-box;
  flex: 33.33%;
  flex: calc(100% / 3);
  max-width: 33.33%;
  max-width: calc(100% / 3);
  padding: 0 4px;
  margin-top: 8px;
}
#gallery img {
  display: block;
  height: 256px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.glightbox-open {
  height: auto;
}

.wide-only {
  display: none;
}

.float-group {
  display: contents;
}
.float-group::after {
  content: "";
  clear: both;
  display: table;
}

.loading {
  display: inline-block;
  width: 10px; /* 1em - 3px border * 2 */
  height: 10px; /* 1em - 3px border * 2 */
  border: 3px solid rgb(166, 190, 209);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}

@media screen and (min-width: 700px) {
  .wide-only {
    display: initial;
  }

  #main-content #map {
    width: 50%;
    float: right;
    margin-left: 10px;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  #main-content {
    background-color: #021425; /* 35% of #073b6a */
    color: #dddddd; /* 87% of white */
  }

  .stars {
    background-image: -webkit-linear-gradient(left,
      rgba(2, 20, 37, 0) 0%, /* #021425 */
      rgba(2, 20, 37, 0.9) 10%, /* #021425 */
      rgba(2, 20, 37, 0.9) 90%, /* #021425 */
      rgba(2, 20, 37, 0) 100% /* #021425 */
    ), url("stars2.png");
  }

  a,
  a:link,
  a:visited {
    color: #0b64b4;
  }

  a:hover,
  a:active {
    color: #073b6a;
  }

  img, .map {
    filter: brightness(.8) contrast(1.2);
  }

  #pictogram-svg .border path,
  #pictogram-svg .pictogram path {
    stroke: #dddddd; /* 87% of white */
  }

  #pictogram-svg .text path {
    fill: #dddddd; /* 87% of white */
    stroke: #dddddd; /* 87% of white */
  }

  form .secondary {
    color: inherit;
  }

  #rsvp-form {
    background-color: #073b6a;
    color: #fff;
  }

  #rsvp-form .field-group {
    background-color: #031f3a;
  }
}
