/*  All screen sizes */

:root {
  --tt-font-1: 'Great Vibes';
  --tt-font-2: 'Oxygen';

  --tt-color-1: #b8cea0; /* Sage green */
  /* --tt-color-2: #f2e2d2; Champagne */
  --tt-color-2: #fbf0db; /* Champagne */
  --tt-color-3: #eff2e1; /* off white */
  --tt-color-4: #a1a392; /* light gray */
  --tt-color-5: #f2e2d2; /* Mint color */

  --tt-color-error: #dd0000;
  --tt-color-success: #00dd61;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevents horizontal scrolling */
}

/****************************************
* Bootstrap override
****************************************/

.container {
  max-width: 1140px; /*  originally 1320px */
}

.container + input {
  margin-top: 1.5rem;
}

/****************************************
* Typography
****************************************/

h1 {
  font: normal bold 36px/1em var(--tt-font-1);
}

h2 {
  font: normal bold 22px/1.2em var(--tt-font-2);
  color: #454545;
}

h2.decor::before {
  content: url('/dylan-and-kathy/photos/rightScroll.png');
  margin-right: .5rem;
}

h2.decor::after {
  content: url('/dylan-and-kathy/photos/rightScroll.png');
  margin-left: .5rem;
  width: 10px;
  height: 5px
}

h3 {
  font: normal bold 16px/1.5em var(--tt-font-2);
}

p,
a,
li,
input,
label,
legend,
select,
textarea {
  font: normal normal 14px/1.7em var(--tt-font-2);
}

a,
a.active,
a:hover {
  color: var(--tt-color-2);
  text-decoration: none;
}

h2 + p,
h2 + .d-grid {
  margin-top: 2rem;
}

h2 + form,
p + p,
p + a,
p + form,
input + input,
input + button,
.d-flex + .d-flex,
.d-flex + fieldset,
.styled-select + p {
  margin-top: 1rem;
}

p + button {
  margin-top: .5rem;
}

legend + .d-flex {
  margin-top: 4px;
}

.errorMessage {
  color: #ff0000;
}

.color-white {
  color: #ffffff;
}

/****************************************
* Header
****************************************/

header {
  position: absolute;
  top: 0;
  z-index: 999;
  border-top: 5px solid var(--tt-color-1);
  width: 100%;
  padding: 1rem;
}

/****************************************
* Navigation
****************************************/

nav {
  display: flex;
  list-style: none;
  flex-direction: row;
  justify-content: center;
  gap: .25rem;
  margin: 0;
  padding: 1px;
}

nav a {
  display: block;
  padding: .5rem 1rem;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  color: var(--tt-color-2);
}

nav a:focus,
nav a:hover,
nav a.active {
  border-radius: 20px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  background-color: rgba(251, 240, 219, .6);
  color: var(--tt-color-2);
  text-decoration: none;
  color: #454545;
}

/****************************************
* Banner
****************************************/

.banner {
  position: relative;
  background: #efefef url('/tyler-and-meghan/photos/homeBanner.jpg');
  background-position: center;
  background-size: cover;
  height: calc(300px + (600 - 300) * (100vw - 320px) / (1140 - 320));
  max-height: 500px;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(28, 28, 28, 0.5);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
}

.banner h1 {
  font-size: calc(36px + (70 - 36) * (100vw - 320px) / (768 - 320));
  line-height: 1em;
}

.banner h1 span {
  font-size: calc(26px + (40 - 26) * (100vw - 320px) / (768 - 320));
}

.banner h2 {
  margin-left: 1rem;
  font-size: calc(13px + (20 - 13) * (100vw - 320px) / (768 - 320));
  font-weight: 300;
}

.banner h1,
.banner h2 {
  text-shadow: 3px 4px 10px rgba(0, 0, 0, .5);
  color: #ffffff
}

.banner h1 + h2 {
  margin-top: .5rem;
}

/****************************************
* Accents
****************************************/

.accent-1 {
  background-color: var(--tt-color-1);
}

.accent-2 {
  background-image: url('/tyler-and-meghan/photos/arches.png');
  background-repeat: repeat; 
  background-size: 80px;
  background-color: var(--tt-color-2);
}

.accent-3 {
  background-color: var(--tt-color-2);
}

.accent-4 {
  position: relative;
  padding-bottom: 200px;
}

.accent-4::before {
  content: '';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  background-image: url('/tyler-and-meghan/photos/greenery-mobile.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: calc(100% - 4rem);
  height: 250px;
}

/****************************************
* Button
****************************************/

.button {
  display: inline-block;
  border: none;
  border-radius: 20px;
  background-color: var(--tt-color-2);
  width: auto;
  padding: .75rem 1.5rem;
  color: #585858;
  transition: all .4s ease;
}

.button:focus,
.button:hover {
  background-color: #e6e6e6;
  color: #606060;
}

.button i {
  font-size: 16px;
}

legend {
  font-size: 16px;
  font-weight: bold;
}

input[type="number"] {
  margin-left: 1rem;
  max-width: 80px;
  height: 30px;
}

/****************************************
* Countdown
****************************************/

.count-down-box {
  padding: 2rem 1rem;
  text-align: center;
  color: #ffffff;
}

.count-down-box .timer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 1rem auto 0 auto;
  max-width: 280px;
}

.count-down-box .days,
.count-down-box .hours,
.count-down-box .minutes,
.count-down-box .seconds {
  font-size: 20px;
  line-height: 1em;
}

.count-down-box h2 {
  color: #ffffff;
}

.count-down-box p {
  font-weight: 100;
}

/****************************************
* Our Story
****************************************/

#our-story img:first-of-type {
  box-shadow: 4px 4px 10px rgba(0, 0, 0, .3);
  outline: 4px solid var(--tt-color-1);
  border-radius: 20px;
  border: 4px solid #ffffff;
  transform: rotate(6deg);
}

/****************************************
* When & Where
****************************************/

.whenWhere .container {
  margin: 0 auto;
  max-width: 500px;
}

.whenWhere img {
  width: 100px;
}

/****************************************
* Bridal party
****************************************/

.bridalParty {
  margin: 0 auto;
  max-width: 500px;
}

.bridalParty .bride > div:nth-of-type(odd) .imageWrapper {
  background-color: var(--tt-color-1);
}

.bridalParty .bride > div:nth-of-type(even) .imageWrapper {
  background-color: var(--tt-color-5);
}

.bridalParty .groom > div:nth-of-type(odd) .imageWrapper {
  background-color: var(--tt-color-5);
}

.bridalParty .groom > div:nth-of-type(even) .imageWrapper {
  background-color: var(--tt-color-1);
}

.bridalParty .imageWrapper {
  display: inline-grid;
  margin-bottom: 1.25rem;
  max-width: 200px;
  padding: 5px;
  overflow: hidden;
}

.bridalParty .imageWrapper,
.bridalParty .imageWrapper img {
  border-radius: 50%;
  width: 100%;
}

.bridalParty .small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 300;
}

/****************************************
* RSVP section
****************************************/

#rsvp .max-width {
  margin: auto;
  width: 100%;
  max-width: 600px;
}

/****************************************
* Form
****************************************/

fieldset {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label .small {
  font-size: 13px;
  font-style: italic;
}

input {
  display: block;
  border: 1px solid #efefef;
  border-radius: 5px;
  width: 100%;
  padding: .5rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--tt-color-2);
}

input[type="radio"],
input[type="checkbox"] {
  position: absolute;
  top: -9999;
  left: -9999;
  visibility: hidden;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
  position: relative;
  padding-left: calc(20px + .25rem);
}

input[type="radio"] + label:before,
input[type="checkbox"] + label:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: 1px solid #dfdcdc;
  border-radius: 50%;
  background-color: transparent;
  width: 20px;
  height: 20px;
}

input[type="radio"] + label + input[type="radio"] + label {
  margin-left: 1rem;
}

input[type="radio"]:checked + label:before,
input[type="checkbox"]:checked + label:before {
  border: 1px solid var(--tt-color-2);
}

input[type="radio"]:checked + label:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: var(--tt-color-2);
  width: 12px;
  height: 12px;
}

input[type="radio"] + label + input[type="radio"] {
  margin-left: 1rem;
}

[type="submit"] {
  display: inline-block;
  margin: 1rem 0 0 0;
  border: none;
  border-radius: 20px;
  background-color: var(--tt-color-2);
  width: auto;
  padding: .75rem 1.5rem;
  color: #585858;
  transition: all .4s ease;
}

[type="submit"]:hover {
  background-color: #e6e6e6;
  color: #606060;
}

/****************************************
* Skip to content
****************************************/

.skip {
  position: absolute;
  top: -1000px;
  left: -1000px;
  height: 1px;
  width: 1px;
  text-align: left;
  overflow: hidden;
}
  
a.skip:active,
a.skip:focus,
a.skip:hover {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/****************************************
* Our Story Page
****************************************/

.story h2 {
  margin-bottom: 1rem;
}

/****************************************
* Photos Page
****************************************/

.photos h2 {
  margin-top: 2rem;
  text-align: center;
}

.photos p {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--tt-color-2);
}

/****************************************
* Registry
****************************************/

.registry img {
  max-width: 250px;
  transition: all .4s ease;
}

.registry a:hover img {
  transform: scale(1.1);
}

.registry-flex {
  display: grid;
  gap: 1rem;
  margin: 1rem auto 0 auto;
  max-width: 300px;
}

/****************************************
* Overlay
****************************************/

html.overlay-effect,
html.overlay-effect body {
  position: relative;
  height: inherit;
  overflow: hidden;
}

.overlay {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  background-color: rgba(0, 0, 0, .8);
  width: 100%;
  height: 100%;
  padding: 1rem;
  overflow: auto;
}

.overlay > .wrapper {
  position: relative;
  margin: auto;
  background-color: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  height: 100%;
  padding: 2rem;
}

.overlay .close-overlay {
  position: absolute;
  top: .75rem;
  right: 1rem;
  margin: 0;
  background-color: transparent;
  padding: 0;
  font-size: 25px;
  line-height: 1em;
  color: #4c4c4c;
  z-index: 3;
}

.overlay .close-overlay:hover {
  color: #b82424;
}

.overlay iframe {
  width: 100%;
  height: 100%;
}

/****************************************
* Share form
****************************************/

#share .container {
  max-width: 900px;
}

body.waiting * {
  cursor: wait !important;
}

.color-red {
  color: var(--tt-color-error);
}

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  gap: 1rem;
  margin-top: 1rem;
}

.preview:not(:empty) {
  margin: 1rem 0;
  /* background-color: #efefef;
  padding: 1rem; */
}

.preview .wrapper {
  position: relative;
  aspect-ratio: 1;
}

.preview .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5px;
  left: 5px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .5);
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.preview .remove i {
  pointer-events: none;
}

.preview .wrapper img,
.preview .wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  /* position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 201; */
  margin-top: 1rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, .05);
  border: 1px solid #efefef;
  border-radius: 5px;
  background-color: #ffffff;
  width: 100%;
  max-width: 500px;
  padding: .5rem 1rem;
}

.progress-bar .message,
.progress-bar .details {
  grid-column: span 2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: normal normal 14px/1.5em Arial;
  color: #3b3b3b;
}

.progress-bar .bar-wrapper {
  border: 1px solid #efefef;
  border-radius: 10px;
  width: 100%;
}

.progress-bar .bar {
  background-color: #5a5a5a;
  width: 0%;
  height: 6px;
  clip-path: inset(0% 0% 0% 0% round 10px);
  transition: all .4s ease;
}

.progress-bar .bar.error {
  background-color: var(--tt-color-error);
}

.progress-bar .bar.success {
  background-color: var(--tt-color-success);
}

.progress-bar .status {
  margin: 0 0 0 .5rem;
  font-size: 14px;
  color: #3b3b3b;
}

form.disabled label,
form.disabled input,
form.disabled select,
form.disabled button,
form.disabled iframe,
form.disabled textarea {
  pointer-events: none;
  opacity: .5;
}

/****************************************
* Footer
****************************************/

footer {
  margin-top: auto;
  background-color: #4b5052;
  border-top: 5px solid var(--tt-color-1);
  padding: 2.5rem 1rem 2rem 1rem;
}

footer p,
footer a {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

footer a:hover {
  color: #efefef;
}

footer .signature {
  margin: 0 auto 2rem auto;
  width: 150px;
  text-align: center;
  color: #ffffff;
  letter-spacing: 2px;
}

footer .signature hr {
  margin: .5rem;
}

footer .signature p {
  font-size: 14px;
}
