:root {
  --primary-color: #784822;
  --secondary-color: #95b386;
  --accent-color: #fad5bf;
  --background-color: #fffbf5;
  --primary-font: "Glacial Indifference", Helvetica, serif;
  --handwritten-font: "Molle", Cochin, sans-serif;
  --typewritten-font: "Courier New", Courier, monospace;
}

@font-face {
  /* Handwritten feel */
  font-family:"Molle";
  src: url("fonts/Molle-Italic.ttf") format("truetype");
}
@font-face {
  font-family:"Glacial Indifference";
  src: url("fonts/GlacialIndifference-Regular.otf") format("opentype");
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}


/* === SHARED ACROSS PAGES === */

/* 1rem = 10px */
html {
  font-size: 62.5%;
  overscroll-behavior: none;
  /* Sets all text color by default to be the primary color.
     Override when necessary. */
  color: var(--primary-color);
  background-color: var(--background-color);
}
body {
  margin: 0;
  padding: 0;
  min-height: auto;
  background: transparent !important;
  font-family: sans-serif;
  /* Temporary solution until we can figure out 
     how to size the navbar correctly */
  overflow-x: hidden;
}
h1 {
  text-align: center;
  font-family: var(--handwritten-font);
  font-size: clamp(2rem, 40vw, 4rem);
  font-weight: bold;
  white-space: nowrap;
  /* So it doesn't block clicks */
  pointer-events: none;
}
p {
  font-family: var(--primary-font);
  /* Smaller font, responsive */
  font-size: clamp(1rem, 40vw, 2rem);
  margin: 0;
  /* Good readability for body text */
  line-height: 1.5;
  word-wrap: break-word;
  text-align: justify;
}
a {
  text-transform: uppercase;
  font-weight: 800;
  font-family: var(--typewritten-font);
  font-size: 1.9rem;
  color: #F2D235;
  text-decoration: none;
}
a:hover {
  text-shadow: 0 0 4px #d77e93;
}
ul {
  list-style-type: none;
}

.navbar {
  padding: 1rem;
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  /* TODO: add shadow or fade to bottom of bar */
  align-items: center;
  z-index: 1000;
  background-color: var(--secondary-color);
}
.navbar > * {
  padding: 1em;
}
.logo-container {
  width: 50px;
  height: 50px;
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 15px;
  position: relative;
}
.logo-container img {
  transform: scale(2.3);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-paragraph {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 60%;
  text-align: center;
  margin: auto;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .title-paragraph {
    width: 80%
  }
  h1 {
    font-size: clamp(2rem, 80vw, 4rem);
    line-height: 1.2;
  }
  p {
    font-size: clamp(1rem, 40vw, 1.5rem);
  }
}


/* === INDEX PAGE === */

.envelope {
  height: 100vh;
}
.envelope-top {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.4));
  z-index: 100;
}
.envelope-flap {
  width: 100%;
  height: 350px;
  background: var(--accent-color); 
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 2;
}
.flap-heading {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
  font-size: clamp(2rem, 40vw, 4rem);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
  z-index: 5;
  /* So it doesn't block clicks */
  pointer-events: none;
  text-shadow: 2px 2px 5px #ccb397;
}

.envelope-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0%;
  filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.1));
}
.envelope-under-flap {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0%;
  clip-path: polygon(0 100%, 50% 40%, 100% 100%);
  background-color: #fffbf8;
}

.stamp {
  position: absolute;
  /* Adjust to place stamp below tip */
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.note {
  color: var(--primary-color);
  font-family: var(--handwritten-font);
  font-size: 3em;
  position: absolute; 
}
.note-1 {
  top: 51%;
  left: 7%
}
.note-2 {
  top: 53%;
  right: 8%
}
.note-3 {
  top: 90%;
  left: 7%
}
.rsvp-btn {
  display: inline-block;
  margin-top: 90px;
  padding: 14px 40px;
  font-family: var(--typewritten-font);
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-align: center;
  
  /* Oval shape */
  border-radius: 50px;
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Border matching text color */
  border: 2px solid #7e502c;
  
  /* Shadow */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  
  /* Smooth transition */
  transition: all 0.3s ease;
  cursor: pointer;
  
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.deco {
  position: absolute;
  width: 230px;
  height: auto;
  /* Don't block clicks */
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}

/* === FLAP DECORATIONS === */
.deco-flap-1 {
  top: 12%;
  left: 2%;
  animation-delay: 0s;
}
.deco-flap-2 {
  top: 12%;
  right: 2%;
  transform: rotate(15deg);
}

/* === BODY DECORATIONS === */
.deco-body-1 {
  top: 58%;
  left: 12%;
  animation-delay: 1s;
}
.deco-body-2 {
  bottom: 4%;
  right: 12%;
  animation-delay: 3s;
  transform: rotate(-20deg);
}

/* Hover effect */
/* .rsvp-btn:hover {
background: rgba(255, 255, 255, 0.4);
transform: translateY(-3px);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
color: #a22;
} */

/* .falling-objects {
  position: relative;
  top: 10px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 999;
}
.object {
  position: absolute;
  top: 0%;
  font-size: 1.5em;
  animation: fall linear infinite;
  opacity: 0.8;
}
.object:nth-child(1) { left: 0%; animation-duration: 8s; animation-delay: 0s; }
.object:nth-child(2) { left: 9%; animation-duration: 10s; animation-delay: 1s; }
.object:nth-child(3) { left: 16%; animation-duration: 7s; animation-delay: 2s; }
.object:nth-child(4) { left: 82%; animation-duration: 7s; animation-delay: 2s; }
.object:nth-child(5) { left: 89%; animation-duration: 9s; animation-delay: 1.5s; }
.object:nth-child(6) { left: 95%; animation-duration: 11s; animation-delay: 0.5s; }
.object img {
  width: 30px;
  height: auto;
} */

.slideshow-container {
  position: relative;
  width: fit-content;
  width: 60rem;
  height: 40rem;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.slides.active {
  opacity: 1;
  z-index: 1;
}

.footer {
  text-align: center;
  padding: 10px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* === ABOUT PAGE === */

.about-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8%;
}

.framed-image {
  position: relative;
  width: 30%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.framed-image-insetter {
  position: absolute;
  padding: 10px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.framed-image-clipper {
  max-height: 100%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.image-within-frame {
  width: 100%;
  height: auto;
}
.frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.my-image {
  width: 400px;
  height: auto;
}


/* === EVENTS PAGE === */

.events-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
}
.events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 16px;
  column-gap: 80px;
}
.events > :nth-child(odd) {
  justify-self: end;
}
.events > :nth-child(even) {
  justify-self: start;
}
.events > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}
.event {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 60%;
}
.event-img {
  width: 50vh;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
}
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-title {
  font-family: var(--primary-font);
  font-size: 2.5rem;
}

.mailing-btn {
  display: inline-block;
  width: 30%;
  margin-top: 30px;
  padding: 14px 40px;
  font-family: var(--typewritten-font);
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-align: center;
  
  /* Oval shape */
  border-radius: 50px;
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Border matching text color */
  border: 2px solid #7e502c;
  
  /* Shadow */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  
  /* Smooth transition */
  transition: all 0.3s ease;
  cursor: pointer;
  
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}


/* === CALENDAR PAGE === */

.month {
  width: 100%;
  text-align: center;
}

.month .prev {
  float:left
}

.month .next {
  float:right;
}

.weekdays li {
  display: inline-block;
  width: 13.6%;
  text-align: center;
}

.days li {
  display: inline-block;
  width: 13.6%;
  text-align: center;
  margin-bottom: 5px;
  font-size:12px;
}

.days li .active {
  padding: 5px;
  background: #1abc9c;
  color: white !important
}

/* === NEWSLETTER PAGE === */
/* input:required {
  border: 2px solid;
} */
/* input:invalid {
  border: 2px solid red;
} */

/* all tapping should be 48px min */

form {
  width: 30em;
  max-width: 90%;
  margin: 0 auto;
}

form div {
  margin-top: 1rem;
}

label {
  margin-bottom: 0.4rem;
  display: block;
}

input,
textarea, select {
  padding: 0.4rem;
  margin-bottom: 1.5rem;
  width: 100%;
  border: 1px solid;
}

select {
  font-family: Glacial Indifference;
}

button {
  margin-top: 2rem;
  background: #37a8ff;
  color: #fff;
  border: none;
  padding: 1rem;
}

button:hover,
button:focus {
  background: #37a8ff;
}

label,
input,
button,
select,
legend,
textarea {
  font-size: 2rem;
  line-height: 1.2
}

.select-css {
	display: block;
	font-size: 16px;
	font-family: Glacial Indifference;
	font-weight: 700;
	color: #444;
	line-height: 1.3;
	padding: .6em 1.4em .5em .8em;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	/* margin: 0; */
  /* margin-top: 1rem; */
  /* padding-top: 1rem; */
	border: 1px solid #aaa;
	box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	/* border-radius: .5em; */
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
	  linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}
.select-css::-ms-expand {
	display: none;
}
.select-css:hover {
	border-color: #888;
}
.select-css:focus {
	border-color: #aaa;
	box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: #222;
	outline: none;
}

.select-css option {
	font-weight:normal;
}

input[type="checkbox"] {
  position: absolute;
  width: 1em;
  height: 1em;
  opacity: 0;
}

input[type="checkbox"] + label {
  display: flex;
}

input[type="checkbox"] + label:before {
  content: "";
  width: 1em;
  height: 1em;
  border: 1px solid black;
  display: inline-block;
  margin-inline-end: 0.5em;
}

input[type="checkbox"]:disabled + label:before {
  background: #eee;
  opacity: 0.6;
}

input[type="checkbox"]:checked + label:before {
  background: transparent url("https://assets.codepen.io/5928893/check.png") no-repeat center center;
  background-size: 80% auto;
}

input[type="checkbox"]:disabled + label:before {
  background: #eee;
  opacity: 0.6;
}

input[type="checkbox"]:focus + label:before {
  outline: 2px solid #7AACFE; /* for non-webkit browsers */
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: 3px;
}
