/* nunito-sans-300 - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-sans-regular - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-sans-600 - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-sans-700 - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-sans-800 - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-800.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-800.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* nunito-sans-900 - latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 900;
  src: local(''),
       url('../fonts/nunito-sans-v8-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/nunito-sans-v8-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


/* general */

:root {
  --color-primary: #416257;
  --color-primary-lite: #EEF2E9;
  --color-highlight: #C7B184;
  --color-highlight-lite: #e7d7b7;
  --color-link-default: #6D9B8C;
  --color-greyish: #E4E4E3;

  --border-radius: 30px;

  scroll-behavior: unset;
}

* {
  -webkit-font-smoothing: antialiased;
}

html, body {
  scroll-behavior: unset;
  padding: 0;
  margin: 0;
  background: white;
  font-family: 'Nunito Sans', sans-serif;
  /*font-size: 30px;*/
  font-size: 24px;
  font-weight: normal;
  color: var(--color-primary);
  /*line-height: 41px;*/
  line-height: 36px;
}

/* typography */

a {
  color: var(--color-link-default);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-default);
  opacity: .95;
}

section a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

#main-navigation a:not(.btn) {
  color: var(--color-highlight);
}

#main-navigation a:not(.btn):hover {
  color: var(--color-highlight-lite);
}

p {
  font-size: inherit;
  /*line-height: 41px;*/
  line-height: inherit;
  margin: 0 0 20px 0;
}

.lead {
  font-size: 42px;
  line-height: 61px;
}

img {
  max-width: 100%;
}

.illu-sign {
  max-width: 426px;
  width: 100%;
}

b, strong {
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--color-primary);
}

h1, .h1 {
  font-size: 64px;
  line-height: 80px;
  margin-bottom: 32px;
  font-weight: bolder;
}

h2, .h2 {
  /*font-size: 70px;*/
  font-size: 50px;
  /*line-height: 96px;*/
  line-height: 75px;
  margin-bottom: 60px;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 20px;
  text-decoration-color: var(--color-highlight);
  font-weight: 900;
}

h3, .h3 {
  font-size: 50px;
  line-height: 69px;
  margin-bottom: 45px;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 14px;
  text-decoration-color: var(--color-highlight);
  font-weight: 800;
}

h4, .h4 {
  font-size: 30px;
  line-height: 41px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 40px;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-highlight {
  color: var(--color-highlight) !important;
}

.text-link-default {
  color: var(--color-link-default) !important; 
}

/* backgrounds */

.bg-primary {
  background-color: var(--color-primary) !important;
  color: white;
}

.bg-lite {
  background-color: var(--color-primary-lite) !important;
}

.bg-highlight {
  background-color: var(--color-highlight) !important;
  color: white;
}

/* lists */

ul > li {
  margin-bottom: 20px;
}

/* buttons */

.btn {
  /*padding: 20px 30px;*/
  padding: 16px 22px;
  border-radius: 50px;
  line-height: 1;
  font-size: inherit;
  border: 0;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--color-primary);
  opacity: .95;
}

.btn-highlight {
  background: var(--color-highlight);
  color: white;
}

.btn-highlight:hover {
  opacity: .95;
  color: white;
}

.btn-outline-primary {
  background: none;
  border: solid 2px var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:disabled,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:hover {
  background: none;
  border: solid 2px var(--color-primary);
  color: var(--color-primary);
  opacity: .95;
}

.btn-outline-primary:disabled {
  opacity: .9;
}

.btn.back-to-top {
  background: var(--color-highlight);
  color: var(--color-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  top: 0;
}

.btn.back-to-top img {
  text-align: sub;
}

.btn-sm {
  padding: 13px 19px;
  font-size: 22px;
}

/* layout */

.navbar {
  background: var(--color-primary);
  box-shadow: 0px 5px 10px #00000029;
}

.navbar-toggler-icon {
  background: url(../images/icons/nav_toggle.svg) no-repeat center;
  background-size: contain;
  max-height: 40px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar .nav-item,
.navbar .btn {
  margin-bottom: 0;
}

.navbar-brand {
  padding: 0;
}

#wedding-logo {
  max-width: 82px;
  height: auto;
}

section:not(.slider) {
  padding-top: 120px;
  padding-bottom: 120px;
  width: 100%;
}

.carousel .controls {
  position: absolute;
  bottom: 63px;
  right: 72px;
  z-index: 10;
  display: flex;
  cursor: pointer;
}

.carousel-control-next,
.carousel-control-prev {
  display: block;
  position: static;
  width: 76px;
  height: 76px;
  margin-right: 3px;
  cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: none;
  opacity: .1;
}

.carousel-control-prev {
  background: url(../images/icons/arrow-l.svg) no-repeat center;
  background-size: contain;
}

.carousel-control-next {
  background: url(../images/icons/arrow-r.svg) no-repeat center;
  background-size: contain;
}

.bg-illu {
  background: url(../images/illustrations/illu_pattern.svg) no-repeat center var(--color-primary-lite);
  background-size: cover;
}

.auth.bg-illu {
  background: url(../images/illustrations/illu_pattern.svg) no-repeat center var(--color-primary-lite);
  background-repeat: repeat;
}

#bg-carousel .carousel-item {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#footer {
  background: var(--color-primary);
  color: var(--color-highlight);
  font-size: 18px;
  font-weight: 600;
  padding: 20px;
}

#footer a[href^="tel"] {
  color: inherit;
}

.auth-overlay {
  top: 0;
  left: 0;
  z-index: 10;
  /*background: #ffffff4f;
  backdrop-filter: blur(10px);*/
}

/* illus */

.illu-stamp {
  position: absolute;
  z-index: 0;
  /*right: -40px;
  top: -70px;*/
  right: -170px;
  top: -90px;
}

/* flight cards */

.flight-card {
  background: white;
  border-radius: 30px;
  padding: 40px 60px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

.flight-card hr {
  background: url(../images/icons/dashed_line.svg) repeat-x left top;
  opacity: 1;
  height: 2px;
}

.flight-card header {
  justify-content: space-between;
}

.flight-card .airport-id {
  font-size: 30px;
  font-weight: 800;
}

.flight-card footer {
  justify-content: space-between;
}

.flight-card .datetime-details {
  text-align: right;
}

/* tables */

table {
  width: 100%;
  border: 0;
  font-weight: 600;
  border-radius: 30px;
  overflow: hidden;
}

table:not(.submissions) tr {
  display: flex;
  justify-content: space-between;
}

table tbody > tr:nth-child(2n) {
  background: #F8FAF6;
}

table tbody > tr:nth-child(odd) {
  background: var(--color-primary-lite);
}

table:not(.submissions) tbody > tr > td:first-child {
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  align-items: center;
}

table:not(.submissions) tbody > tr > td:nth-child(2) {
  text-align: center;
  display: flex;
  align-items: center;
}

table:not(.submissions) tbody > tr > td:last-child {
  justify-content: flex-end;
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  align-items: center;
  min-width: 140px;
}

td, th {
  padding: 10px 30px;
  min-height: 100px;
}

table.submissions {
  /*box-shadow: 0 0 0 1px var(--color-link-default);*/
  outline: solid 1px var(--color-link-default);
  border-collapse: collapse;
  font-size: 20px;
  line-height: normal;
  border-radius: 0;
}

table.submissions thead th {
  background: var(--color-primary);
  overflow: hidden;
}

/*table.submissions thead th:first-child {
  border-radius: 28px 0 0 0;
}

table.submissions thead th:last-child {
  border-radius: 0 28px 0 0;
}*/

table.submissions th {
  padding-top: 15px;
  padding-bottom: 15px;
  color: white;
}

table.submissions td,
table.submissions th {
  height: auto;
  border: solid 1px #6d9b8c52;
  padding: 5px 10px;
}

table.submissions .person {
  border: solid 1px #6d9b8c52;
  border-radius: 15px;
  padding: 10px;
  margin: 10px 0;
}

table.submissions .tcol-4 {
  max-width: 200px;
  padding: 10px 15px !important;
}

p.summary {
  font-size: 20px;
  line-height: normal;
}

/*table.submissions .person + .person {
  margin-top: 10px;
  margin-top: 10px;
}*/

/* form */

.form-wrapper {
  transition: all 400ms;
  opacity: 1;
  max-height: 25000px;
  overflow: hidden;
}

.form-wrapper.success.submitted {
  opacity: 0;
  max-height: 0;
}

form {
  padding: 30px;
  border-radius: 30px;
}

form header {
  padding: 30px;
  border-radius: 15px;
  display: flex;
  line-height: 1.25;
}

textarea {
  width: 100%;
  min-height: 200px;
  border: solid 1px #E4E4E3;
  border-radius: 15px;
  padding: 15px 20px;
  resize: none;
}

form .error-wrapper {
  color: #e53232;
}

form .hint {
  font-size: 18px;
  line-height: normal;
}

form .fieldset {
  border-radius: 15px;
  border: solid 1px #d7ddd0;
  margin: -15px;
  padding: 15px;
  margin-bottom: 20px;
}

form .fieldset + .fieldset {
  padding-top: 20px;
  margin-top: 20px;
}

.form-check-input:checked {
  background-color: var(--color-highlight);
  border-color: var(--color-highlight);
}

.delete-person {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

form .main > .fieldset:first-child .delete-person {
  display: none;
}

.auth form input[type="password"] {
  border-radius: 40px 0 0 40px;
}

/* for pros */

.for-pros span {
  font-weight: 600;
}

/* responsive styles */

@media (max-width: 1699px) {
  .container {
    max-width: 1120px;
  }
}

@media (max-width: 1499px) {
  .container {
    max-width: 1020px;
  }

  .flight-card {
    padding: 18px 26px;
    font-size: 18px;
    line-height: normal;
  }
}

@media (max-width: 1399px) {
  .container {
    max-width: 920px;
  }

  .lead {
    font-size: 32px;
    line-height: normal;
  }

  h2, .h2 {
    font-size: 40px;
    line-height: normal;
  }

  h3, .h3 {
    font-size: 34px;
    line-height: normal;
  }
  
  h4, .h4 {
    font-size: 28px;
    line-height: normal;
  }
}

@media (max-width: 1599px) {
  .illu-stamp {
    right: -11%;
    top: -90px;
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 792px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-collapse {
    transition: all 100ms;
    padding-top: 0;
    /*top: 30px;
    position: relative;*/
  }

  .navbar-collapse.show {
    padding-bottom: 10px;
  }

  .navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .w-75 {
    width: 100% !important;
  }

  h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    hyphens: auto;
  }

  .navbar-brand {
    display: none;
  }
}

@media (max-width: 991px) {
  .w-75 {
    width: 100% !important;
  }

  h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    hyphens: auto;
  }

  section:not(.slider) {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .carousel .controls {
    right: 40px;
    bottom: 40px;
    transform: scale(.8);
  }

  img[src*="emo"],
  #slider-carousel .carousel-inner img {
    min-height: 60vh;
    object-fit: cover;
  }
}

@media (max-width: 899px) {
  .container {
    max-width: 660px;
  }

  .lead {
    font-size: 28px;
    line-height: normal;
  }

  h2, .h2 {
    font-size: 34px;
    line-height: normal;
  }

  h3, .h3 {
    font-size: 28px;
    line-height: normal;
  }
  
  h4, .h4 {
    font-size: 24px;
    line-height: normal;
  }

  .flight-card .airport-id {
    font-size: 26px;
  }
}

@media (max-width: 819px) {
  .container {
    max-width: 610px;
  }

  .lead {
    font-size: 28px;
    line-height: normal;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 556px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 24px;
  }

  .form-control,
  body {
    font-size: 24px;
    line-height: normal;
  }

  p {
    font-size: 24px;
    line-height: normal;
  }

  .lead {
    font-size: 32px;
    line-height: normal;
  }

  table {
    border-radius: 15px;
    font-size: 20px;
    line-height: normal;
  }

  td, th {
    padding: 10px 20px;
  }

  .carousel .controls {
    right: 30px;
    bottom: 20px;
    transform: scale(.6);
  }
}

@media (max-width: 649px) {
  .container {
    max-width: 506px;
  }

  .form-control,
  body {
    font-size: 21px;
  }

  p {
    font-size: 21px;
  }

  h2, .h2 {
    text-decoration-thickness: 12px;
  }

  h3, .h3 {
    text-decoration-thickness: 8px;
  }

  table:not(.submissions) tbody > tr > td:first-child {
    flex-grow: 1;
    flex-basis: 30%;
  }

  table:not(.submissions) tbody > tr > td:nth-child(2) {
    flex-basis: 40%;
    flex-grow: 1;
    justify-content: center;
  }

  table:not(.submissions) tbody > tr > td:last-child {
    flex-basis: 30%;
    flex-grow: 1;
    min-width: 0;
  }

  .btn {
    font-size: 20px;
  }
  
}

@media (max-width: 631px) {
  .illu-stamp {
    right: -10%;
    top: -90px;
  }

  td, th {
    padding: 8px 12px;
  }
}

@media (max-width: 579px) {
  .container {
    max-width: 460px;
  }

  h2, .h2 {
    font-size: 30px;
  }
  
  p {
    font-size: 20px;
    line-height: normal;
  }

  .lead {
    font-size: 26px;
    line-height: normal;
  }

  table {
    font-size: 16px;
  }

  table:not(.submissions) tbody > tr > td:first-child {
    flex-basis: 25%;
  }

  table:not(.submissions) tbody > tr > td:nth-child(2) {
    flex-basis: 50%;
  }

  table:not(.submissions) tbody > tr > td:last-child {
    flex-basis: 25%;
  }

  form header img {
    display: none;
  }

  .form-control,
  body {
    font-size: 20px;
    line-height: normal;
  }

  form {
    padding: 15px;
    border-radius: 15px;
  }

  form header {
    padding: 15px;
    border-radius: 10px;
  }

  form .fieldset {
    border: 0;
  }

  form .fieldset + .fieldset {
    border: 0;
    border-top: solid 2px #d7ddd0;
  }

  #register-form .mb-2,
  #register-form .mb-3 {
    margin-bottom: 10px !important;
  }

  .flight-card {
    padding: 15px 20px;
    font-size: 18px;
    line-height: normal;
  }

  #footer {
    text-align: center;
  }

  td, th {
    padding: 6px 10px;
  }
}

@media (max-width: 539px) {
  .container {
    max-width: 400px;
  }

  table {
    font-size: 16px;
  }

  .btn {
    font-size: 18px;
  }

  .carousel .controls {
    right: 10px;
    bottom: 10px;
    transform: scale(.5);
  }

}

@media (max-width: 439px) {
  .container {
    max-width: 350px;
  }

  .flight-card {
    border-radius: 15px;
    padding: 15px 15px;
    font-size: 16px;
    line-height: normal;
  }


}