@font-face {
  font-family: 'Brygada';
  src: url('Brygada1918-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brygada';
  src: url('Brygada1918-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ArialNarrow';
  src: url('ArialNarrow-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Great Vibes';
  src: url('GreatVibes-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  /* --main-color: #F6EAD1; */
  /* --main-color: #221c1c; */
  --main-color: transparent;
  /* --main-color-pale: #F5ECD9; */
  --main-color-pale: #dfcfb5;
  /* --main-color-rgba: rgba(246, 234, 209, 1); */
  /* --main-color-rgba: rgba(44, 24, 16, 1); */
  --main-color-rgba: rgba(34, 28, 28, 1);
  --main-red: #8a1d17;
  --form-border-color: #8a1d17;

  /* --font-color: #060606; */
  --font-color: #1f1e1b;
  --font-color-pale: #9e9e9e;
  --font-color-pale-transparent: #9e9e9ead;

  --form-border-radius: 12px;

  --title-font-size: 190px;

  --subtitle-font-size: 1.4rem;
}

h1 {
  text-align: center;
}

html * {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 30px;
  font-family: 'Brygada', serif;
  color: var(--font-color);
  overflow-x: hidden;
  width: 980px;
}

body {
  position: relative;
  padding-bottom: 40px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  height: 100%;
  background-image: url(pictures/background.jpg);
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}

/* OVERLAY */

#mobile-only-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3498db; /* Blue background */
  z-index: 9999;
  color: white;
  font-family: Arial, sans-serif;
}

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  max-width: 80%;
  font-size: 24px;
  font-weight: bold;
}

/* COMMON */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
  z-index: 10;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  margin-bottom: 30px;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  font-family: 'Great Vibes', sans-serif;
}

.section p {
  width: 600px;
  font-size: 40px;
  text-align: center;
}

.title {
  font-size: var(--title-font-size);
  color: var(--main-red);
  font-family: 'Great Vibes', sans-serif;
  font-weight: bold;
  text-align: center;
}

/* CASTLE */

.section-castle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.castle-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* LETTER */

.section-letter {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.paper-piece-1 {
  position: absolute;
  top: -120px;
  left: -30px;
  width: 250px;
  transform: rotate(-35deg);
}

.paper-piece-2 {
  position: absolute;
  top: -120px;
  left: 100px;
  width: 250px;
  transform: rotate(-65deg);
}

.paper-piece-3 {
  position: absolute;
  top: -60px;
  left: 310px;
  width: 200px;
  transform: rotate(-18deg);
}

.letter-image {
  width: 110%;
  margin-left: -5%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.7) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.letter-message {
  position: absolute;
  top: 12%;
  left: 34%;
  transform: rotate(15deg);
  width: 600px;
  font-size: 104px;
  line-height: 1.4;
  font-weight: bold;
  z-index: 10;
  color: var(--main-red);
  font-family: 'Great Vibes', sans-serif;
  text-align: center;
}

/* INTRO */

#intro {
  margin: 0;
}

.repeat-when {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.repeat-when.cz::before {
  content: 'DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY DYŽ KDYŽ KDY';
}

.repeat-when.ru::before {
  content: 'ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ ГДА КОГДА КОГ';
}

.repeat-when.ua::before {
  content: 'ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ ОЛИ КОЛИ КОЛ';
}

.repeat-when.by::before {
  content: 'АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ АЛІ КАЛІ КАЛІ';
}

.repeat-when::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1300px;
  height: 100%;
  color: var(--font-color-pale-transparent);
  font-size: 190px;
  font-weight: bold;
  font-family: 'ArialNarrow', Arial;
  line-height: 178px;
  white-space: pre-wrap;
  overflow: hidden;
  transform: translateX(-100px);
  animation: scroll-text 15s linear infinite;
  z-index: -1;
}

@keyframes scroll-text {
  0% {
    transform: translateX(-100px);
  }
  40% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(-100px);
  }
}

.question-mark {
  position: absolute;
  bottom: -50px;
  right: 60px;
  width: 150px;
  transform: rotate(20deg);
}

.date-container {
  display: flex;
  width: 100%;
  height: 1420px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--main-red);
}

.date-container .date,
.date-container .time {
  font-size: 210px;
  line-height: 180px;
  font-family: 'Great Vibes', sans-serif;
  font-weight: 700;
}

.date-container .caption {
  font-size: 54px;
  font-weight: 700;
}

/* LOCATION */

#location {
  position: relative;
  padding: 24px 0;
}

.images-container {
  position: relative;
  margin-top: 30px;
}

.location-background {
  position: relative;
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 7%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.location-logo {
  position: absolute;
  top: 150px;
  left: 570px;
  width: 350px;
}

.lappi-mark {
  position: absolute;
  bottom: 250px;
  left: 50px;
  width: 300px;
}

#location p {
  margin: 0;
  font-size: 52px;
  /* font-weight: 700; */
}

/* TRANSPORT */

#transport .title {
  font-size: 150px;
}

.map-link {
  display: inline-block;
  transform-origin: center;
  animation: map-spin-and-settle 3s ease-in-out;
  animation-play-state: paused;
}

.map-link.animate {
  animation-play-state: running;
}

@keyframes map-spin-and-settle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(360deg);
  }
  30% {
    transform: rotate(345deg);
  }
  35% {
    transform: rotate(375deg);
  }
  40% {
    transform: rotate(352deg);
  }
  45% {
    transform: rotate(368deg);
  }
  50% {
    transform: rotate(357deg);
  }
  55% {
    transform: rotate(363deg);
  }
  60% {
    transform: rotate(359deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* DRESS CODE */

#dress-code {
  margin-top: 170px;
}

#dress-code .title {
  position: absolute;
  top: 0;
  left: 290px;
  font-size: 150px;
}

.dress-code-image {
  width: 100%;
}

.women-section-header {
  position: relative;
  margin-top: 130px;
}

.women-section-header .dress-code-button {
  position: absolute;
  top: -110px;
  left: -140px;
  width: 200px;
  transform: rotate(45deg);
}

.women-closing-message {
  position: relative;
  margin-top: 100px;
}

.women-closing-message p span {
  color: var(--main-red);
  font-size: 32px;
}

.women-closing-message .dress-code-needle {
  position: absolute;
  top: -70px;
  right: -220px;
  width: 400px;
}

.palette-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0px auto 50px;
  padding: 0 12px;
  width: 90%;
  height: 150px;
}

.color-circle {
  width: 120px;
  height: 120px;
  border: 10px solid white;
  border-radius: 50%;
}

.men .color1 {
  background-color: #937862;
}

.men .color2 {
  background-color: #e0d4c2;
}

.men .color3 {
  background-color: #0c0e13;
}

.men .color4 {
  background-color: #c0b0a0;
}

.men .color5 {
  background-color: #dedede;
}

.men .color6 {
  background-color: #d1c7c2;
}

.women .color1 {
  background-color: #d3ba97;
}

.women .color2 {
  background-color: #936743;
}

.women .color3 {
  background-color: #4e3631;
}

.women .color4 {
  background-color: #eee9e2;
}

.women .color5 {
  background-color: #d4a182;
}

.women .color6 {
  background-color: #d4ccb0;
}

.carousel {
  height: 700px;
  width: 90%;
}

.carousel-cell {
  height: 100%;
  width: auto;
  margin-right: 24px;
  border-radius: 16px;
}

/* QUESTIONS */

#questions .title + p {
  color: var(--font-color);
}

.candle-trio {
  position: absolute;
  top: 29%;
  left: 0;
  width: 300px;
  z-index: -1;
}

.candle-trio.ua {
  top: 28%;
}

.magic-wand {
  position: absolute;
  top: 65%;
  right: -10px;
  width: 250px;
  z-index: -1;
}

.section .question-title {
  font-size: var(--subtitle-font-size);
  color: var(--main-red);
}

.present-list {
  width: 600px;
  font-size: 40px;
  text-align: left;
  margin: 20px auto;
  line-height: 1.2;
}

.present-list li {
  margin-bottom: 15px;
  padding-left: 10px;
}

.present-list a {
  color: var(--main-red);
  text-decoration: underline;
}

.present-list a:hover {
  color: var(--main-red);
  text-decoration: none;
}

/* FORM */

#rsvp .title {
  font-size: 150px;
}

#rsvp form {
  display: flex;
  flex-direction: column;
}

form {
  width: 80%;
  padding: 20px;
  color: var(--font-color);
  z-index: 1;
}

.form-field {
  margin-bottom: 46px;
}

.checkbox-field {
  display: flex;
  align-items: center;
}

.form-buttons {
  display: flex;
  justify-content: center;
}

form label {
  font-size: var(--subtitle-font-size);
}

form input[type='text'],
form textarea,
form select {
  width: 100%;
  padding: 8px;
  margin-top: 20px;
  border: 1px solid var(--form-border-color);
  border-radius: var(--form-border-radius);
  background-color: var(--main-color-pale);
}

form input[type='text'] {
  font-size: var(--subtitle-font-size);
}

form textarea {
  font-size: 1.2rem;
}

form select {
  font-size: var(--subtitle-font-size);
  font-family: 'Brygada', serif;
  color: var(--font-color);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

form input[type='checkbox'] {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 12px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid var(--form-border-color);
  background-color: var(--main-color-pale);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

form input[type='checkbox']:checked {
  background-color: var(--main-red);
  border-color: var(--font-color);
}

form input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  color: var(--main-color-pale);
  font-size: 1rem;
  font-weight: bold;
}

form .form-field label {
  display: inline-block;
  vertical-align: middle;
}

form button {
  width: fit-content;
  margin-top: 20px;
  padding: 24px 40px;
  border: 1px solid var(--form-border-color);
  border-radius: var(--form-border-radius);
  background-color: var(--main-color-pale);
  color: var(--font-color);
  font-size: var(--subtitle-font-size);
  cursor: pointer;
  font-family: inherit;
}

form button:hover {
  background-color: #ead8b2;
}

.scroll {
  position: absolute;
  right: -50px;
  top: 110px;
  width: 360px;
  transform: rotate(-15deg);
  z-index: -1;
}

/* Fancy switch */

.fancy-switch {
  position: relative;
  width: auto;
}

.switch-zone {
  position: absolute;
  top: 0.1rem;
  right: 0;
  width: auto;
  contain: layout;
}

.switch-zone--slider,
#toggle-coming {
  height: 2rem;
}

#toggle-coming {
  position: absolute;
  top: 0px;
  right: 0px;
  margin: 0;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  color: transparent;
  opacity: 0;
  cursor: pointer;
  z-index: 100;
}

.switch-zone--slider {
  cursor: pointer;
}

.switch-zone--slider .slide-zone {
  display: inline-block;
  width: 4rem;
  height: 1.5rem;
  border-radius: calc(1.5rem / 2);
  border: 1px solid var(--form-border-color);
  background-color: var(--main-color-pale);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.1);
}

.fancy-switch .switch-zone--slider:before {
  display: inline;
}

/* Sad */
#toggle-coming ~ .switch-zone--slider:before {
  content: '\1F61E';
}
/* Happy */
#toggle-coming:checked ~ .switch-zone--slider:before {
  content: '\1F60A';
}

.fancy-switch input ~ .switch-zone--slider:before {
  /* content: "\1F61E"; */
  position: absolute;
  top: -0.2rem;
  right: 5.2rem;
  font-size: 2rem;
  line-height: 2rem;
  color: var(--font-color);

  -moz-transition: all 0.25s ease-out;
  -webkit-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;

  z-index: 1;
}

.fancy-switch input:checked ~ .switch-zone--slider:before {
  right: 2.4rem;
}

.fancy-switch .switch-zone--slider .option {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1.5rem;
}

.fancy-switch .switch-zone--slider .option,
.fancy-switch .switch-zone--slider .slide-zone {
  vertical-align: bottom;
}

/* .fancy-switch .switch-zone--slider .slide-zone {
  margin-left: 0;
} */
.fancy-switch .switch-zone--slider .option-one {
  margin-right: 0.8rem;
}
.fancy-switch .switch-zone--slider .option-two {
  margin-left: 0.8rem;
}

.fancy-switch .switch-zone--slider .option-one {
  color: var(--main-red);
}
.fancy-switch .switch-zone--slider .option-two {
  color: var(--font-color-pale);
}

.fancy-switch input:checked ~ .switch-zone--slider .option-one {
  color: var(--font-color-pale);
}
.fancy-switch input:checked ~ .switch-zone--slider .option-two {
  color: var(--main-red);
}

/* CONTACTS */

.names-container p,
.lappi-container p {
  font-size: 52px;
}

.names-container {
  position: relative;
  width: 100%;
  height: 380px;
}

.names-container p {
  position: absolute;
  top: 10px;
  left: calc(50% - 280px);
}

.groom-image {
  position: absolute;
  width: 350px;
  top: 20px;
  left: 0;
  transform: rotate(-15deg);
}

.bride-image {
  position: absolute;
  width: 340px;
  top: -20px;
  right: 0;
  transform: rotate(10deg);
}

.lappi-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 140px;
}

.lappi-container p {
  margin: 20px -240px 0 0;
}

.lappi-image {
  width: 300px;
}

/* FOOTER */

footer {
  position: relative;
  margin-top: 170px;
  height: 150px;
  text-align: center;
  font-size: 40px;
}
