@import url("https://fonts.googleapis.com/css2?family=Cardo&display=swap");
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-bd-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-bd-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-bdit-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-bdit-webfont.woff") format("woff");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-reg-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-reg-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-it-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-it-webfont.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-lt-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-lt-webfont.woff") format("woff");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "the_seasons";
  src: url("font/the_seasons/theseasons-ltit-webfont.woff2") format("woff2"), url("font/the_seasons/theseasons-ltit-webfont.woff") format("woff");
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-family: "adelia";
  src: url("font/adelia/adelia-webfont.woff2") format("woff2"), url("font/adelia/adelia-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "tt_tsars_a";
  src: url("font/tt_tsars_a/tt_tsars_a_regular-webfont.woff2") format("woff2"), url("font/tt_tsars_a/tt_tsars_a_regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "tt_tsars_a";
  src: url("font/tt_tsars_a/tt_tsars_a_bold-webfont.woff2") format("woff2"), url("font/tt_tsars_a/tt_tsars_a_bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "tt_tsars_a";
  src: url("font/tt_tsars_a/tt_tsars_a_light-webfont.woff2") format("woff2"), url("font/tt_tsars_a/tt_tsars_a_light-webfont.woff") format("woff");
  font-weight: 100;
  font-style: normal;
}
:root {
  --color-main: #638263;
  --color-black: #000000;
  --color-dark: #030405;
  --color-accent: #F4F0E2;
  --color-secondary: #c3922e;
  --color-dark-gray: #2E2C2C;
  --color-dark-main: #354935;
  --font-cardo: "Cardo", serif;
  --font-adelia: "adelia";
  --font-seasons: "the_seasons";
  --font-tt_tsars_a: "tt_tsars_a";
  --border-radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.background {
  background-color: var(--color-accent);
  background-image: url("img/login-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  position: fixed;
  inset: 0;
  z-index: -2;
}

body{
    overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/login-background-decoration.png");
  width: 50%;
  height: 60%;
  z-index: -1;
}

body::before {
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  background-size: auto;
}

body::after {
  left: 0;
  bottom: 0;
  background-position: bottom left;
  width: 40%;
  height: 40%;
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

.login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.top-login {
  background-size: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
}

.top-login img {
  width: min(400px, 100%);
  display: block;
  margin: auto;
}

.sphere {
  display: flex;
  background-image: url("img/login-efect.gif");
  background-position: center;
  background-size: 80%;
  background-repeat: no-repeat;
  padding: 4rem;
  text-align: center;
  gap: 2rem;
  position: relative;
}

.sphere span:empty {
  width: 2px;
  background-color: var(--color-black);
}

.sphere span {
  font-size: 8rem;
  font-family: var(--font-seasons);
}

.quote {
  position: relative;
  max-width: 500px;
}

.quote h1 {
  font-family: var(--font-adelia);
  text-shadow: 2px -2px 0px var(--color-secondary);
  font-weight: 100;
  font-size: 2.2rem;
  text-align: center;
  line-height: 1.6;
}

.quote p {
  text-align: right;
  font-family: var(--font-seasons);
  margin-top: 0.7rem;
}

.access {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
}

.access p {
  text-transform: uppercase;
  font-family: var(--font-seasons);
}

.access button {
  border: none;
  background-color: var(--color-main);
  color: var(--color-accent);
  padding: 1rem 1.5rem;
  font-family: var(--font-cardo);
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.modal {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-background {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4392156863);
  z-index: 0;
}

.login-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-accent);
  padding: 2rem;
  border-radius: var(--border-radius);
  z-index: 1;
  width: 90%;
  max-width: 500px;
}

.login-form h2 {
  font-family: var(--font-seasons);
}

.login-form input {
  padding: 0.5rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.7725490196);
  border: none;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-cardo);
}

button {
  border: none;
  background-color: var(--color-main);
  color: var(--color-accent);
  font-family: var(--font-cardo);
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  padding: 1rem 1rem;
}

.access button {
  padding: 1rem 1.5rem;
}

.login-form button {
  padding: 0.5rem 1.5rem;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}

.page button {
  padding: 0.6rem 1.4rem;
  border-radius: 1.8rem;
  font-size: 1rem;
}

.d-none {
  display: none;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.top {
  top: 0;
}

.bottom {
  bottom: 0;
}

.website {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  height: 100vh;
}

.website .decoration {
  position: absolute;
}

.website .decoration img {
  max-width: 140px;
  width: 100%;
}

.website section {
  scroll-snap-align: center;
  min-height: 100vh;
}

.page > div {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  padding-block: 5rem;
  min-height: 100vh;
}

.page img {
  max-width: 80%;
}

.images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.images img {
  max-width: 100px;
  max-height: 140px;
}

.page-1 > div {
  padding-top: 0;
}

.logo {
  display: flex;
  padding: 1rem;
  text-align: center;
  gap: 0.4rem;
  position: relative;
}

.logo span:empty {
  width: 2px;
  background-color: var(--color-black);
}

.logo span {
  font-size: 4rem;
  font-family: var(--font-seasons);
}

.page-1 .quote h2,
.page-1 .quote p {
  font-family: var(--font-tt_tsars_a);
  font-weight: 700;
  font-size: 1rem;
  max-width: 80%;
  margin: auto;
  text-align: center;
  line-height: 1;
}

.pre-info h2 {
  font-weight: 100;
  color: var(--color-dark-main);
  font-family: var(--font-adelia);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.parents-table {
  border-block: solid 2px;
  padding: 0.8rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-tt_tsars_a);
  font-size: 0.8rem;
  max-width: 95%;
}

.parents-table div:empty {
  width: 2px;
  height: 60px;
  background: black;
}

.page-1-5 .name h1 {
    font-family: var(--font-seasons);
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-transform: uppercase;
}

.page-1-5 .name h1 span:nth-child(2) {
    font-family: 'Cardo';
    font-weight: 100;
    font-size: 4rem;
}

.page-1-5 .name h1 span:nth-child(3) {
    transform: translateX(30%);
}

.page-1-5 .name h1 span:nth-child(1) {
    transform: translateX(-30%);
}

.page-1-5 .our-wedding {
    text-transform: uppercase;
    font-family: var(--font-tt_tsars_a);
    font-size: 1.5rem;
}

.page-1-5 .date-wedding {
    display: flex;
    gap: 0.7rem;
    font-size: 1.2rem;
    font-family: var(--font-tt_tsars_a);
    align-items: center;
}

.page-1-5 .date-wedding span:nth-child(2) {
    border: none;
    font-size: 2.4rem;
    padding: 0;
}

.page-1-5 .date-wedding span {
    border-top: solid var(--color-main) 1px;
    border-bottom: solid var(--color-main) 1px;
    text-align: center;
    padding: 0.2rem 1.2rem;
}

.page-1-5 .city {
    font-family: var(--font-tt_tsars_a);
    font-size: 1.1rem;
}

.main-message p {
  font-family: var(--font-tt_tsars_a);
  font-size: 1.2rem;
}

.main-message h2 {
  font-weight: 100;
  color: var(--color-dark-main);
  font-family: var(--font-adelia);
  font-size: 2.5rem;
  margin: 2rem auto;
}

.row {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-tt_tsars_a);
  justify-content: flex-start;
  width: 100%;
}

.grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  position: relative;
}

.grid .row:first-child .separator:before {
  content: "";
  width: 3px;
  background-color: var(--color-dark-gray);
  top: 1.5rem;
  bottom: 1.5rem;
  position: absolute;
  transform: translateX(-50%);
}

.row .image img {
  max-width: 40px;
}

.row:nth-child(odd) .row-title {
  order: 1;
  max-width: 45%;
  width: 100%;
}

.row:nth-child(odd) .separator {
  order: 2;
}

.row:nth-child(odd) .time {
  order: 3;
}

.row:nth-child(even) .time {
  order: 1;
  max-width: 45%;
  width: 100%;
  text-align: right;
}

.row:nth-child(even) .separator {
  order: 2;
}

.row:nth-child(even) .row-title {
  order: 4;
}

.row .row-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 10%;
}

.row:nth-child(odd) .row-title .name {
  order: 1;
  text-align: right;
}

.row:nth-child(odd) .row-title .image {
  order: 2;
}

.row:nth-child(even) .row-title .image {
  order: 1;
}

.row:nth-child(even) .row-title .name {
  order: 2;
}

.row .time {
  font-weight: 700;
  font-size: 1.2rem;
}

.separator {
  width: 10px;
  height: 10px;
  background: var(--color-dark-gray);
  border-radius: 50%;
}

.title h2 {
  font-family: --font-tt_tsars_a;
  text-transform: uppercase;
  font-weight: 100;
  font-size: 1.2rem;
}

.image img {
  max-height: 240px;
  max-width: 100%;
}

.main h2 {
  font-weight: 100;
  color: var(--color-dark-main);
  font-family: var(--font-adelia);
  font-size: 1.8rem;
  margin: 0.5rem;
}

.main {
  padding: 1rem;
}

.time {
  font-family: var(--font-tt_tsars_a);
  font-weight: 700;
}

.address {
  font-family: var(--font-tt_tsars_a);
  font-size: 1.2rem;
}

.page-6 .image img {
  max-width: 150px;
  margin: 2rem;
}

.page-6 .address {
  font-size: 1.7rem;
  font-weight: 100;
}

.page-6 .time {
  font-size: 3rem;
  margin: 2rem;
}

.gift {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.gift-row {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  align-items: center;
}

.gift-row .image {
  max-width: 24%;
  width: 100%;
}

.gift-row .address {
  text-align: left;
  font-size: 1rem;
  font-weight: 100;
}

.gift-title {
  font-family: var(--font-tt_tsars_a);
  font-weight: 799;
  font-size: 1.5rem;
}

.gift-instructions {
  font-family: var(--font-tt_tsars_a);
  text-align: justify;
  font-size: 0.9rem;
  line-height: 1.2;
}

.page-7 .main h2 {
  font-size: 2.4rem;
}

.nesa-de-regalo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.page .gift .gift-button {
  position: absolute;
  bottom: 0;
  transform: translateY(calc(100% + 0.5rem));
  background-color: #A9C28D;
  color: var(--color-dark);
}

.page-8 h2 {
  font-size: 2.4rem;
}

.page-8 h2:last-child {
  font-size: 2.2rem;
  margin: 3rem 0;
  letter-spacing: 0.1rem;
}

.sphere span {
  font-size: min(6rem, 24vw);
}

.quote h1 {
  font-size: min(2.2rem, 12vw);
}

.main-message h2 {
  font-size: min(2.5rem, 9vw);
}

.pre-info h2 {
  font-size: min(1.8rem, 8vw);
}

.main h2 {
  font-size: min(1.8rem, 7vw);
}

.page-8 h2:last-child {
  font-size: min(2.2rem, 8vw);
}

section > div {
  opacity: 0;
  filter: blur(5px);
  transition: all 1s;
}

.load > div {
  opacity: 1;
  filter: blur(0);
}


.decorations {
    overflow: hidden;
}

@media (min-width: 1000px) {
  .login::before,
  .login::after {
    width: 50%;
    height: 100% !important;
    background-size: auto;
  }
}
@media (max-width: 384px) {
  .grid:before {
    left: 50%;
  }
}
@media (min-width: 1100px) {
  .top-login img {
    width: 400px;
  }
  .sphere span {
    font-size: 6rem;
  }
  .address {
    max-width: 80%;
    margin: auto;
  }
  .grid {
    gap: 0.2rem;
  }
  .page-6 .time {
    margin: 1rem;
  }
  .gift-instructions {
    max-width: 400px;
    margin: auto;
  }
  .gift-row .address {
    margin: 0;
  }
  .nesa-de-regalo {
    display: flex;
    align-items: flex-start;
  }
  .gift {
    max-width: 400px;
  }
  .page-7 .main h2 {
    margin-bottom: 0rem;
  }
      
    .page-1-5 .name h1 {
        font-size: 4rem;
    }
    
    .page-1-5 .name h1 span:nth-child(2) {
        font-size: 5rem;
    }
    
    .page-1-5 .our-wedding {
        font-size: 1.8rem;
    }
    
    .page-1-5 .date-wedding {
        font-size: 1.5rem;
    }
    
    .page-1-5 .date-wedding span:nth-child(2) {
        font-size: 3.4rem;
    }
    
    .page-1-5 .date-wedding span {
        padding: 0.2rem 2rem;
    }
    
    .page-1-5 .city {
        font-size: 1.6rem;
    }
}