:root {
  --color-light-pink: rgb(247, 230, 252);
  --color-dark-purple: rgb(66, 20, 39);
  --color-gray: rgb(132, 145, 133);
}

html {
  scroll-padding-top: 6vw;
}

.main {
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--color-light-pink);
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700; 
  font-style: normal;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  margin: 0px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  z-index: -1;
  left: 20px;
  width: 8px;
  height: calc(100% - 20px);
  background-color: var(--color-dark-purple);
}

h1 {
  font-size: 3vw;
  margin-bottom: 3vw;
}

h2 {
  font-size: 2vw;
}

p {
  font-size: 1.25vw;
}

a {
  text-decoration: none;
  color: black;
 font-size: 1.2em;
}

.mobile {
  display: none;
}

/* used for background images */
.background {
  position: absolute;
  z-index: 1;
}

.mobilebackground {
  display: none;
}

.container {
  position: relative;
  z-index: inherit;
}

/* All decorative twig images */
.twig {
  position: absolute;
  width: 12vw;
}

/* White background box */
.container.white::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1;
}


/* The navbar container */
header {
  position: sticky;
  top: 0;
  background-color: var(--color-gray);
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 8px solid var(--color-dark-purple);
}

header .logo {
  display: flex;
  align-items: flex-end;
}

header .logo img {
  width: 4vw;
  padding-top: .5vw;
  padding-left: .5vw;
  padding-right: 0.5vw;
}

header .logo h1 {
  margin: 0px;
}

/* Navbar links */
nav {
  display: flex;
  align-items: flex-end;
}

nav a {
    font-size: 1.25vw;
    color: var(--color-dark-purple);
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 0.75vw;
}

nav a.rsvp {
  display: flex;
  box-sizing: border-box;
  background-color: var(--color-light-pink);
  padding: 1vw;
  margin: 0;
  margin-left: 10px;
  border: 0.75vw solid var(--color-light-pink);
}

nav a.rsvp:hover {
  background-color: var(--color-dark-purple);
  border-color: var(--color-dark-purple);
}
  
/* Links - change color on hover */
nav a:hover, nav a.active {
  color: var(--color-light-pink);
}

.when-where-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 2;
}

.when-where-wrapper .twig {
  position: absolute;
}

.when-where-wrapper .twig.top{
  top: -18vw;
  left: 20vw;
  z-index: 4;
  transform: scale(-1, 1) rotate(65deg);
}

.when-where-wrapper .twig.bottom{
  bottom: -12vw;
  left: 1vw;
  z-index: 4;
  transform: rotate(76deg);
}

.when-where-wrapper .container {
  flex-grow: 1;
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.when-where-wrapper .container .content {
  position: inherit;
  z-index: inherit;
  margin: 5vw 0px;
}

.when-where-wrapper .container .content h1 {
  margin-top: 0px;
}

.when-where-wrapper .container.where {
  text-align: end;
}

.when-where-wrapper em {
  color: var(--color-dark-purple);
  font-style: normal;
  font-size: 2vw;
}

.tick {
  width: 40vw;
}

.map-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/1;
  width: 40vw;
}

.map-wrapper .map {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}


.hero {
  position: relative;
  width: 100%;
  z-index: 2;
}

#amandafilipe {
  position: relative;
  width: 100%;
}

.herooverlay {
  position:absolute;
  bottom:52%;
  left: 71%;
  text-align: center;
  padding: 2vh;
  color: white;
}

.herooverlay .rsvp {
  font-size: 1.5vw;
  background-color: var(--color-dark-purple);
  color: var(--color-light-pink);
  padding: 1.5vw;
  border-radius: 3vw;
}

.herooverlay .rsvp:hover {
  background-color: var(--color-light-pink);
  color: var(--color-dark-purple);
}

.EventDetails {
  position: relative;
}

.EventDetails .background {
  top: -55vw;
  left: 7vw;
  transform: rotate(70deg);
  width: 145vw;
}

.EventDetails .twig {
  position: absolute;
  bottom: -30vw;
  right: 0vw;
  transform: scale(-1, 1) rotate(20deg);
  z-index: 4;
}

.eventbox {
  position: relative;
  display: flex;
  justify-content: flex-start;
  flex-flow: column nowrap;
  width: 40vw;
  z-index: 8;
  color: var(--color-light-pink);
  margin-left: 29vw;
  margin-top: 3vw;
}

.eventtext {
  display: flex;
  gap: 9vw;
}

.eventtext col {
  flex-basis: fit-content;
}

.eventtext h1 {
  margin-bottom: 5vw;
}

.eventtext h2 {
  margin-top: 0vw;
  color: var(--color-dark-purple);
}

/* Detailed Schedule */

.DetailedSchedule {
  margin-left: calc(20px + 5vw);
  position: relative;
  top: 5vw;
}

ul.schedule {
  list-style: none;
  padding-left: 0;
}

ul.schedule li {
  position: relative;
  width: fit-content;
}

ul.schedule li::before {
  content: "";
  position: absolute;
  height: 8px;
  width: 4vw;
  background-color: var(--color-dark-purple);
  left: -5vw;
  top: .5vw;
}

ul.schedule li:first-child::after {
  content: "";
  position: absolute;
  top: -1vw;
  right: -8vw;
  width: 7vw;
  background-image: url(welcome.svg);
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 100 / 87;
}

ul.schedule li:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8vw;
  width: 7vw;
  background-image: url(bye.svg);
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 100 / 87;
}

.DetailedSchedule .kissing {
  width: 18vw;
  position: absolute;
  top: 6vw;
  left: 27vw;
  z-index: 4;
}

.DetailedSchedule .dancing {
  width: 24vw;
  position: absolute;
  top: 23vw;
  right: 10vw;
  z-index: 4;
}

#bye {
  position: relative;
  z-index: 2;
}

#welcome {
  position: relative;
}

/* Logistics - getting there */

.gettingthere {
  position: relative;
  display: flex;
  scroll-margin-top: 4vw;
}

.gettingthere .twig.desktop {
  position: absolute;
  width: 40vw;
  transform: scale(-1, 1) rotate(-65deg);
  left: -19vw;
  bottom: -20vw;
}

.getting-info {
  position: relative;
  margin-top: 5vw;
  margin-left: 20vw;
  text-align: end;
  width: 70vw;
}

.getting-info .background {
  width: 70vw;
  transform: scale(-1, 1) rotate(330deg);
  right: -10.5vw;
  top: -9vw;
}

.getting-info h1 {
  color: var(--color-light-pink);
  margin-bottom: 4vw;
}

.getting-info .text {
  position: relative;
  z-index: 5;
  right: -6vw;
  margin-top: 6.5vw;
  margin-right: 5vw;  
}

.getting-info .text h2 {
  color: var(--color-dark-purple);
}

.getting-info .text p {
  color: var(--color-light-pink);
}

.getting-info .text .columns {
  display: flex;
  gap: 3vw;
}

.getting-info .text .columns .col {
  flex-basis: fit-content;
}

/* Logistics - Staying there */

.stayingthere {
  position: relative;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 6vw;
}

.stayingthere .background {
  top: -23vw;
  left: -44vw;
  width: 210vw;
  transform: rotate(330deg);
}

.stayingthere .text {
  position: relative;
  z-index: 2;
  text-align: right;
  width: 90vw;
  padding-top: 15vw;
  margin-right: 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.stayingthere .text h1 {
  grid-column: 2 / 4;
  color: var(--color-light-pink);
  margin: 0 0 3vw 0;
}

.stayingthere .text h2 {
  margin-top: 0;
  margin-bottom: 1vw;
  color: var(--color-dark-purple);
}

.stayingthere .text dl:first-of-type {
  grid-column: 2;
  margin-bottom: 9vw;
}

.stayingthere dl {
  margin: 0px;
}

.stayingthere .text dd::before {
  content: "• ";
  color: var(--color-light-pink);
}

.stayingthere .text dd a {
  color: var(--color-light-pink);
  font-size: 1.25vw;
}

/* Contact */
#contact.container {
  padding: 2.5vw 5vw;
  margin-top: -2.7vw;
}

#contact.container h1 {
  position: inherit;
  z-index: 1;
  margin: 0px;
}

#contact.container .text {
  position: inherit;
  z-index: 1;
}

#contact.container .text p {
  margin: 0px;
}

#contact.container .text a {
  color: var(--color-dark-purple);
}

#contact.container .twig {
  transform: rotate(60deg);
  right: 27vw;
  bottom: -5vw;
  z-index: 4;
}

/* RSVP footer */
.footer::before {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: -1;
  width: 10px;
  height: calc(100% - 20px);
  background-color: var(--color-dark-purple);
}

.footer::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: -1;
  height: 10px;
  width: calc(100% - 40px);
  background-color: var(--color-dark-purple);
}

.footer {
  position: relative;
  height: 40vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer .text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .text h1 {
  color: var(--color-gray);
  margin: 0px;
}

.footer .text p {
  font-size: 2vw;
  text-align: center;
}

.footer .text .rsvp {
  display: flex;
  justify-self: center;
  box-sizing: border-box;
  font-size: 1.5vw;
  background-color: var(--color-dark-purple);
  color: var(--color-light-pink);
  padding: 1.3vw 2vw 1vw 2vw;
  border-radius: 3vw;
}

.footer .text .rsvp:hover {
  background-color: var(--color-gray);
  color: var(--color-light-pink);
}

.footer img {
  position: absolute;
}

.footer .eyes {
  transform: scale(-1, 1) rotate(7deg);
  height: 22vw;
  right: -1.75vw;
  bottom: 26vw;
  z-index: 4;
}

.footer .yes {
  height: 14vw;
  transform-origin: left top;
  transform: rotate(90deg);
  left: calc(20px + 14vw);
  bottom: 27vw;
}

.footer .no {
  height: 10vw;
  transform-origin: bottom right;
  transform: rotate(270deg);
  right: calc(20px);
  bottom: 36vw;
}

/* Default: Large devices such as laptops, computers (greater than 1024px) *

/* Medium devices such as tablets (1024px or lesser) */
/*@media only screen and (max-width: 1024px) {...}

/* Small devices such as phones (768px or lesser) */
/*@media only screen and (max-width: 768px) {...} */


/* Flip countdown stuff */
.tick {
  font-size:1rem; white-space:nowrap;
  font-family: "Josefin Sans", sans-serif;
}

.tick-flip,.tick-text-inline {
  font-size:2.5em;
}

.tick-label {
  margin-top:1em;font-size:1em;
}

.tick-char {
  width:1.5em;
}

.tick-text-inline {
  display:inline-block;text-align:center;min-width:1em;
}

.tick-text-inline+.tick-text-inline {
  margin-left:-.325em;
}

.tick-group + .tick-group {
  margin-left: .5em;
}

.tick-group {
  text-align:center;
}

.tick-text-inline {
   color: #595d63 !important; 
}

.tick-flip-panel {
   color: #fff !important; 
}

.tick-flip-panel-text-wrapper {
   line-height: 1.45 !important; 
}

.tick-flip-panel {
   background-color: #3c3e3c !important; 
}

.tick-flip {
   border-radius:0.12em !important; 
}

.tick-credits {
  display: none;
}

/* Tablet overrides */
@media (max-width: 1154px) {
  .stayingthere .background {
    top: -23vw;
    width: 220vw;
    transform: rotate(333deg);
  }

  .stayingthere .text {
    padding-top: 16vw;
    margin-right: 5vw;
  }
}  

/* Mobile overrides */
@media (max-width: 768px) {
  body::before {
    width: 5px;
    left: 10px;
    height: calc(100% - 10px);
  }

  header {
    border-bottom: 5px solid var(--color-dark-purple);
  }

  header .logo h1 {
    margin-top: 5px;
    font-size: 3.5vw;
  }
  
  nav a {
    display: none;
  }

  nav a.rsvp {
    display: unset;
    padding: 1.1vw;
  }

  h1 {
    font-size: 5vw;
  }

  h2 {
    font-size: 4vw;
  }

  p {
    font-size: 3vw;
  }

  .mobile {
    display: initial;
  }

  .desktop {
    display: none;
  }

  .twig {
    width: 18vw;
  }
  
  .herooverlay {
    bottom: 35%;
    left: 60%;
  }

  .herooverlay .rsvp {
    font-size: 3.5vw;
  }

  .when-where-wrapper .container {
    margin-top: 24px;
  }
  
  .when-where-wrapper .container .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5vw;
    width: 100%;
    text-align: right;
    color: var(--color-dark-purple);
  }

  .when-where-wrapper .container .content .text {
    line-height: 1.1em;
  }

  .when-where-wrapper .container .content .text p {
    color: black;
    font-size: 4vw;
  }

  .tick, .map-wrapper {
    width: 90vw;
    margin-top: 2vw;
  }

  .when-where-wrapper .twig.top {
    top: -28vw;
    left: 22vw;
    transform: scale(-1, 1) rotate(75deg);
  }

  .when-where-wrapper .twig.bottom {
    left: 7vw;
    top: 42vw;
    transform: scale(1, -1) rotate(140deg);
  }

  .EventDetails {
    text-align: right;
    padding-top: 7vw;
  }

  .EventDetails .background {
    top: -15vw;
    left: 0vw;
    width: 170vw;
  }

  .EventDetails .background.mobile {
    top: 79vw;
    left: 8vw;
    transform: scale(-1, 1) rotate(70deg);
  }

  .EventDetails .eventbox {
    width: 50vw;
    margin-left: 31vw;
    margin-top: 0;
  }

  .EventDetails .eventbox .Eventtext {
    gap: unset;
    flex-direction: column;
    margin-top: unset;
  }

  .EventDetails .eventbox .Eventtext .col{
    margin-top: 3vw;
  }

  .EventDetails .eventbox .Eventtext .col+.col{
    margin-top: 12vw;
  }

  .EventDetails .twig {
    bottom: 58vw;
    right: unset;
    left: -22vw;
    transform: rotate(90deg);
  }

  .DetailedSchedule {
    margin-left: calc(10px + 5vw);
    top: 20vw;
    z-index: 2;
  }

  .DetailedSchedule .kissing {
    width: 30vw;
    top: 7vw;
    left: 43vw;
  }

  .DetailedSchedule .dancing {
    width: 45vw;
    top: 68vw;
    right: 1vw;
  }

  ul.schedule li:last-child::after, ul.schedule li:first-child::after {
    background-image: none;
  }

  ul.schedule li::before {
    height: 5px;
  }

  .getting-info {
    margin: unset;
    text-align: start;
    width: 100%;
    margin-bottom: 45vw;
  }

  .gettingthere .twig.desktop {
   display: none;
  }

  .gettingthere .twig.mobile {
    z-index: 4;
    top: 25vw;
    right: 6vw;
    transform: scale(-1,1) rotate(35deg);
  }

  .gettingthere .background {
    position: absolute;
    width: 110vw;
    transform: scale(-1,1) rotate(-39deg);
    top: 25vw;
    right: -2vw;
    z-index: 0;
  }

  .gettingthere .background.mobile {
    z-index: 1;
    right: 3vw;
    transform: scale(-1,1) rotate(-110deg);
    width: 180vw;
    top: -12vw;
  }

  .getting-info .text {
    width: 55vw;
    margin: 0 5vw;
    left: 14vw;
    right: unset;
    top: 39vw;
  }

  .getting-info .text h2 {
    margin-top: 4vw
  }

  .getting-info .text .columns {
    flex-direction: column;
  }

  .getting-info .text .columns span {
    display: block;
  }

  .getting-info .text .columns span+span {
    margin-top: 4vw;
  }

  .getting-info .text .columns span:last-child {
    margin-top: 4vw;
  }

  .stayingthere .mobile {
    width: 190vw;
    top: 10vw;
    left: 3vw;
    transform: scale(-1,1) rotate(70deg);
  }

  .stayingthere .mobile+.mobile {
    width: 200vw;
    top: 34vw;
    left: 0vw;
    transform: scale(1,-1) rotate(250deg);
  }

  .stayingthere .text {
    top: 13vw;
    left: -10vw;
    margin-bottom: 20vw;
    width: 87vw;
    display: flex;
    flex-direction: column;
    gap: 12vw;
  }

  .stayingthere .text h1 {
    margin: 0;
  }

  .stayingthere .text dl:first-of-type {
    margin-bottom: unset;
  }

  .stayingthere .text dd a {
    font-size: 3vw;
  }

  #contact.container {
    padding-top: 5vw;
    padding-bottom: 5vw;
    z-index: 1;
  }

  #contact.container .twig {
    transform: scale(-1,1) rotate(335deg);
    right: 85vw;
    bottom: 160vw;
    z-index: 0;
  }

  #contact.container .twig.mobile {
    transform: scale(-1,-1) rotate(205deg);
    right: 80vw;
    bottom: 10vw;
    z-index: 1;
  }

  .footer::before {
    right: 10px;
    bottom: 10px;
    width: 5px;
    height: calc(100% - 10px);
  }

  .footer::after {
    bottom: 10px;
    left: 10px;
    height: 5px;
    width: calc(100% - 20px);
  }

  .footer .text .rsvp {
    font-size: 3vw;
    padding: 2.6vw 4vw 2vw 4vw;
    border-radius: 4vw;
  }

  .footer .eyes {
    height: 40vw;
    right: -2.3vw;
    bottom: 16vw;
  }

  .footer .text p {
    font-size: 3vw;
  }

  .footer .yes {
    height: 14vw;
    left: calc(10px + 14vw);
    bottom: 27vw;
  }
  
  .footer .no {
    right: calc(10px);
    bottom: 33vw;
  }
}