html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-optical-sizing: none;
  font-weight: normal;
  font-style: normal;
  font-feature-settings: "locl" 0;
  background-color: #f2f3f5;
  color: #4a4a4a;
}

body {
  background-color: #f2f3f5 !important;
  font-family: "Sofia Sans Extra Condensed", sans-serif !important;
  font-optical-sizing: none;
  font-weight: normal;
  font-style: normal;
  font-feature-settings: "locl" 0;
  margin: 0;
  touch-action: pan-y;
  overflow-x: hidden;
}

body.preload {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#nav {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  justify-content: space-between;
  padding: 10px;
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  cursor: pointer;
}

nav {
  font-size: 33px;
  padding: 70px 10px 10px 10px;
  background-color: #f1f1f1;
  border-radius: 0 0 15px 15px;
  box-shadow: inset 3px 3px 5px rgba(255, 255, 255, 0.8),
    inset -3px -3px 5px rgba(0, 0, 0, 0.25), 15px 15px 20px rgba(0, 0, 0, 0.2);
  top: 0;
  width: 100%;
  box-sizing: border-box;
}

.navbar-toggler {
  border: none !important;
  padding: 0 !important;
}

.navpoint {
  cursor: pointer;
}

nav span{
  font-size: 12vw;
}

.nav-link {
  font-family: "Sofia Sans Extra Condensed", sans-serif;;
  padding: 0 !important;
}

.maintitle {
  width: 65%;
  margin-bottom: 5vw;
  padding-top: 2em;
  padding-bottom: 2em;
  text-align: center;
  line-height: 1.5em;
}

.maintitle-main {
  text-align: left;
  font-family: "AlayaRoza Demo";
  font-size: 14vw; 
  color: #ff0403;
  padding-top: 1%;
}

.maintitle-alt {
  text-align: right;
  font-family: "Sofia Sans Extra Condensed";
  font-size: 10vw;
  top: -83px;
  padding-left: 18%;
}

.main {
  position: relative;
  width: 100%; 
  min-height: 20em;
}

.main-img {
  width: 100%;
}

.main-img1 {
  position: absolute;
  top: 0; 
  display: flex;
  justify-content: space-between;
  z-index: 1;
  height: auto;
}

.main-img2 {
  position: absolute;
  display: flex;
  justify-content: center;
  z-index: 0;
}

.kirill, .vera {
  opacity: 0;
  width: 40vw;
  height: auto;
  display: block;
}

.maintext {
  display: flex;
  font-family: "AlayaRoza Demo";
  font-size: 80px;
  justify-content: center;
  padding-top: 1%;
}

.heart {
  width: 70%;
  height: auto;
  object-fit: cover;
}

.heart._animtitle {
  scale: 1 !important;
  opacity: 1 !important;
  transition: all 1.5s ease-in-out 0.4s;
}

.separator {
  text-align: center;
  padding-top: 54px;
}

.separator2 {
  text-align: center;
  padding-top: 10px;
}

.left {
  font-size: 7vw;
  text-align: left;
  color: #4a4a4a;
}

.wishes {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 6vw;
  line-height: 1.4;
  width: 95%;
}

.title {
  display: block;
  line-height: 1.5em;
  height: 3em;
  margin: auto;
}

.title-main {
  font-size: 70px;
  text-align: center;
}

.title-alt {
  font-family: "AlayaRoza Demo";
  font-size: 60px;
  text-align: center;
}

.base {
  font-family: "Sofia Sans Extra Condensed";
  margin: 0 2% 0 2%;
  font-size: 40px;
  text-align: center;
}

.altfonf {
  color: #4a4a4a;
}

iframe {
  width: 98%;
  height: 600px;
  border: none;
  border-radius: 5px;
}

.history::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/yellowbg.webp") center/cover no-repeat;
  z-index: -1;
}
.history {
  font-family: Sofia Sans Extra Condensed;
  position: relative;
  z-index: 0;
  text-align: center;
  padding-bottom: 5vw;
}

.history2 {
  font-family: Sofia Sans Extra Condensed;
  position: relative;
  z-index: 0;
  text-align: center;
}

#myCarousel {
  max-width: 800px;
}

.invite-none {
  font-size: 36px;
}

.section {
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.date {
  text-align: center;
}

.cal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cal2 {
  width: 344px !important;
  height: 305px !important;
  position: relative;
}

.calendar {
  width: 344px !important;
  height: 305px !important;
  text-align: center;
}

.calendarbox {
  position: absolute;
}

.calendarpoint {
  position: absolute;
  left: 105px;
  top: 108px;
  width: 42px;
  height: 42px;
  animation: scale 1s infinite ease-in-out;
}

@keyframes scale {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
  100% {
    scale: 1;
  }
}

.calendarcontainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.place-title {
  width: 70%;
}

.planimg {
  text-align: left;
  padding-left: 30%;
}

.description {
  font-size: 30px;
  padding: 1% 0 3% 0;
}

.base img {
position: relative;
  transform: translateY(-0.05em);
  width: 10%;
  padding-right: 3.5%;
}

.alt {
  padding-bottom: 2%;
}


.dress-code-img {
  width: 80%;
}

.dress-title {
  width: 45%;
}

.gifts {
  font-size: 50px;
  text-align: center;
  transform: translate(-300%, 0%);
  opacity: 0;
  transition: all 1.5s ease-in-out 0s;
}

.gifts._anim {
  transform: translate(0%, 0%);
  opacity: 1;
}

.chat {
  text-align: center;
  font-size: 50px;
  transform: translate(-300%, 0%);
  opacity: 0;
  transition: all 1.5s ease-in-out 0s;
}

.chat._anim {
  transform: translate(0%, 0%);
  opacity: 1;
}

.chatlink {
  text-align: center;
  transform: translate(-300%, 0%);
  opacity: 0;
  transition: all 1.5s ease-in-out 0s;
}

.chatlink._anim {
  transform: translate(0%, 0%);
  opacity: 1;
}

.chatimg {
  width: 150px;
  height: 150px;
}

.form {
  text-align: center;
  transform: translate(-300%, 0%);
  opacity: 0;
  transition: all 1.5s ease-in-out 0s;
}

#guestForm #mx-auto {
  padding: 0 3%;
}

.form._anim {
  transform: translate(0%, 0%);
  opacity: 1;
}


input {
  width: 50%;
  height: 15px;
  border-radius: 30px;
  padding: 10px;
  outline: none;
  border: 1px solid #f1f1f1;
}

input[type="text"] {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  padding-left: 30px;
  height: 35px;
  font-size: 18px;
  background-color: #ffffff;
}

::placeholder {
  color: #9c9c9c;
}

#phone {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  padding-left: 30px;
  height: 35px;
  font-size: 18px;
  background-color: #ffffff;
}

.formlabel {
  position: relative;
  top: 5px;
  left: 26%;
  background-color: transparent;
  border-radius: 100px;
  height: 20px;
  width: fit-content;
  pointer-events: none;
  left: 6%;
}

.formlabeltext {
  width: fit-content;
  font-size: 15px;
  text-align: left;
  color: transparent;
  padding: 1px 10px;
}

input[type="submit"] {
  height: 40px;
  width: 260px;
  background: #91d571;
  box-shadow: inset 3px 3px 5px rgba(255, 255, 255, 0.8),
    inset -3px -3px 5px rgba(0, 0, 0, 0.25), 15px 15px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 30px;
  cursor: pointer;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-optical-sizing: none;
  font-weight: normal;
  font-feature-settings: "locl" 0;
  font-style: italic;
  font-size: 18px;
  text-shadow: #235325 1px 1px 5px;
  line-height: 1px;
}

.bye {
  padding: 0 5% 5% 5%;
  display: block;
  text-align: center;
}

.bye img {
  position: absolute;
  width: 5em;
  height: 5em;
  padding: 0.5em;
  z-index: -1;
}

.timer {
  display: block;
  text-align: center;
}

.timer img {
  opacity: 0.7;
  width: 85px;
  height: 85px;
  padding: 0 0.5em 0 0.5em;
}

.timercontanier {
  height: 120px;
  display: flex;
  justify-content: center;
}

.daysvalues,
.hoursvalues,
.minutesvalues {
  position: relative;
  top: -85px;
}

.days,
.hours,
.minutes {
  color: #f1f1f1;
  font-size: 70px;
}

.daystext,
.hourstext,
.minutestext {
  font-size: 20px;
}

.contacts {
  text-align: center;
  font-size: 50px;
  transform: translate(-300%, 0%);
  opacity: 0;
  transition: all 1.5s ease-in-out 0s;
}

.contacts._anim {
  transform: translate(0%, 0%);
  opacity: 1;
}

.sya{
  padding-top: 40px;
  line-height: 60px;
}

.sya img{
  position: relative;
  width: 35px;
  height: 45px;
  top: -10px;
  right: 5px;
}

#up {
  opacity: 0;
  background-color: transparent;
  border: none;
  outline: none;
  float: right;
  position: fixed;
  right: 6%;
  top: 80%;
  cursor: pointer;
  transition: opacity 0.25s ease-out 0.125s;
  width: 100px;
  height: 100px;
}

#up img {
  width: 100px;
  height: 100px;
}

/* Карусель */

.carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.5 !important;
  margin: 0 4px !important;
  border: none !important;
}

.carousel-indicators button.active {
  opacity: 1 !important;
  background-color: #FFF !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #000;
  border-radius: 15%;
  padding: 1.5rem!important;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.indicator.active {
  background: white;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center !important;
  padding-top: 80%;
}

.modal-content {
  height: 10.5em;
  width: 15em;
  background: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  height: fit-content;
}

.modal-close {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-optical-sizing: none;
  font-weight: normal;
  font-feature-settings: "locl" 0;
  font-style: italic;
  font-size: 20px;
  background: #91d571;
  box-shadow: inset 3px 3px 5px rgba(255, 255, 255, 0.8),
    inset -3px -3px 5px rgba(0, 0, 0, 0.25), 15px 15px 20px rgba(0, 0, 0, 0.2);
  color: rgb(200, 253, 226);
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 100px;
  cursor: pointer;
  text-shadow: #235325 1px 1px 5px;
}


.bg2 img {
  display: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#up {
  right: 8%;
  top: 90%;
  width: 50px;
  height: 50px;
}

#up img {
  width: 50px;
  height: 50px;
}

.title-main {
  font-family:"Sofia Sans Extra Condensed";
  font-size: 40px;
}

.base {
  font-size: 5vw;
}

.altfont {
  color: #f2f3f5;
  font-size: 9vw;
}

.alt {
  padding-bottom: 8%;
}

.box {
  position: absolute;
}

.bg {
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
}

.bg2 {
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
}

.bg3 {
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
}

.bgwish {
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
}

.bg img {
  width: 100%;
  height: 75vw;
  display: block;
}

.bg2 img {
  width: 100%;
  height: auto;
  display: block;
}

.bg3 img {
  width: 100%;
  height: 85vw;
  display: block;
  z-index: -1;
}

.bgwish img {
  width: 100%;
  height: 80vw;
  display: block;
  z-index: -1;
}

.main-img {
  top: 0;
}

.maintext {
  font-size: 50px;
  text-align: center;
  padding-top: 10%;
}

.maintitle {
  display: block;
  text-align: center;
  height: 80px;
}

.maintitle-main {
  padding-top: 2%;
  padding-right: 9%;
}

.maintitle-alt {
  /* font-size: 35px; */
  top: -43px;
  padding-left: 30%;
}

.kirill {
  padding-top: 9%;
}

.vera {
  padding-top: 5%;
}

/* .heart {
  width: 360px;
} */

iframe {
  height: 300px;
}

.main p {
  font-size: 25px;
  text-align: center;
}

.history {
  text-align: center;
  width: 100%;
  min-height: 40vh;
}

.plan {
  text-align: left;
  width: 100%;
}

.planimg {
  font-size: 5.5vw;
  padding-left: 5%;
}

.plan-title {
  width: 75%;
}

.left {
  font-size: 6vw;
  text-align: left;
}

.hello {
  padding-bottom: 30px;
}

.carousel {
  margin: 0 1% 0 1%;
}

.carousel-control {
  transform: translateY(-500%);
}

/* .carousel-indicators {
  transform: translateY(-700%);
} */

.dress-code-img {
  width: 95%;
}

.gifts {
  font-size: 20px;
  width: 100%;
}

.chat {
  font-size: 20px;
}

.contacts {
  font-size: 20px;
}

.small {
  font-size: 43px;
}

.checkbox {
  padding-left: 5%;
}

.checkboxtext {
  padding-top: 2%;
}

input {
  width: 89%;
  height: 35px;
  border-radius: 55px;
}

.chatfont {
  color: #f2f3f5;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 5vw;
}


@media (min-width: 340px) {
  .plan-title, .place-title {
    width: 60%;
  }

  .dress-title {
    width: 40%;
  }

}

@media (min-width: 400px) {
  .plan-title, .place-title {
    width: 50%;
  }

  .dress-title {
    width: 35%;
  }

  .bg img {
    height: 67vw;
  }

  .bg3 img {
    height: 78vw;
  }

}

@media (min-width: 480px) {
  nav span {
    font-size: 44px;
  }

  .main {
    margin-top: 5vw;
  }

  .maintitle-main {
    margin-bottom: 2vw;
  }

  .dress-title {
    width: 30%;
  }

  .plan-title {
    width: 45%;
  }

  .bg img {
    height: 65vw;
  }

  .bg3 img {
    height: 70vw;
  }


}

@media (min-width: 550px) {
  .maintitle-main {
    font-size: 150px;
  }

  .maintitle-alt .under {
    font-size: 150px;
  }

  .maintitle-main {
    margin-bottom: 4vw;
  }

  .base, .history {
    max-width: 1000px;
  }

  .history2 {
    max-width: 1000px;
  }

  .history::before {
    background: none;
  }

  .dress-title {
    width: 150px;
  }

  .place-title, .plan-title {
    width: 250px;
  }

  .bg img, .bg2 img {
    display: none;
  }

  .bg3 img, .bgwish img {
    display: none;
  }

  .heart {
    width: 70%;
    padding-top: 5vw;
    object-fit: cover;
  }

  .base {
    font-size: 40px;
    color: #4a4a4a;
  }

  .planimg {
    font-size: 40px;
    max-width: 400px;
  }

  .title-alt, .title-main {
    font-size: 70px;
  }

  .wishes {
    font-size: 40px;
    max-width: 1000px;
  }
  
  #dress-code{
    max-width: 1000px;
  }

  .dress-title{
    width: 200px;
  }

  .place-title, .plan-title{
    width: 300px;
  }

  .gifts, .place {
    max-width: 1000px;
  }

  #anket, #guestForm #mx-auto {
    max-width: 1000px;
  } 

  #chat, .bye, #mirazmap {
    max-width: 1000px;
  }

  #mirazmap {
    height: 500px;
  }

  .contacts {
    color: #4a4a4a;
    font-size: 40px;
  }

  .chatimg{
    width: 250px;
    height: 250px;
  }
  
  .modal{
    padding-top: 20%;
  }

}



@font-face {
  font-family: "AlayaRoza Demo";
  src: url("/fonts/AlayaRozaDemo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/SofiaSansExtraCondensed-Regular.woff2") format("woff2"),
    url("/fonts/SofiaSansExtraCondensed-Regular.woff") format("woff"),
    url("/fonts/SofiaSansExtraCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


