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

body {
  background-color: #ECE0D6;
}

@font-face {
  font-family: 'Cormorant-Bold';
  src: url("../fonts/Cormorant-Bold.ttf");
}

@font-face {
  font-family: 'Cormorant-SemiBold';
  src: url("../fonts/Cormorant-SemiBold.ttf");
}

@font-face {
  font-family: 'Cormorant-Regular';
  src: url("../fonts/Cormorant-Regular.ttf");
}

@font-face {
  font-family: 'CormorantInfant-Bold';
  src: url("../fonts/CormorantInfant-Bold.ttf");
}

@font-face {
  font-family: 'CormorantInfant-SemiBold';
  src: url("../fonts/CormorantInfant-SemiBold.ttf");
}

.head__bold {
  font-family: 'Cormorant-Bold';
  z-index: 2;
}

.head__semibold {
  font-family: 'Cormorant-SemiBold';
}

.head__regular {
  font-family: 'Cormorant-Regular';
}

.head__infantBold {
  font-family: 'CormorantInfant-Bold';
}

.head__infantSemiBold {
  font-family: 'CormorantInfant-SemiBold';
}

.head__white {
  color: #FFFFFF;
}

.head__black {
  color: #411212;
}

.center {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

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

.location__img {
  background-image: url("../img/place.jpg");
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
}

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

.welcome {
  background-image: url("../img/head.jpg");
  width: 100%;
  padding-bottom: 35px;
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.welcome:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.welcome__text {
  margin-top: auto;
}

.line {
  background-color: #411212;
  margin-top: auto;
  height: 2px;
  border: none;
}

.button {
  border-radius: 0px;
  background-color: #ECE0D6;
  border: 2px solid #000000;
  touch-action: manipulation;
}

.button__text {
  font-family: 'Cormorant-Bold';
  color: #411212;
}

.button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button:active {
  transform: scale(0.92);
  background: #ECE0D6;
}

.carousel {
  background-image: url("../img/middle.jpg");
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%;
}

.circle {
  border: 0px;
  border-radius: 100px;
}

.circle__pink {
  background-color: #DEB2A9;
}

.circle__beige {
  background-color: #BEA48D;
}

.circle__green {
  background-color: #7A8157;
}

.circle__brown {
  background-color: #634829;
}

.circle__black {
  background-color: #242222;
}

.circle:last-child {
  margin-right: 0px;
}

.upform {
  border: 2px solid #411212;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form__input {
  appearance: none;
  background-color: #ECE0D6;
  border: 0;
  border-radius: 0;
  font-family: 'Cormorant-Regular';
}

.form__input.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form__input:focus {
  appearance: none;
  outline: none;
}

.form__radio {
  appearance: none;
  border: 2px solid #411212;
  border-radius: 50%;
  position: relative;
}

.form__radio.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form__radio:checked::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  background-color: #411212;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form__center {
  display: flex;
  align-items: center;
}

.final {
  background-image: url("../img/tail.jpg");
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 89%;
  background-position: center 44%;
}

.timer {
  display: flex;
  flex-direction: row;
}

.timer__element {
  border-right: 2px solid #FFFFFF;
}

.timer__element:last-of-type {
  border-right: none;
}

.is-error {
  color: #a72121;
}

@media (min-width: 310px) {
  .welcome {
    padding-top: 25px;
    margin-bottom: 43px;
  }
  .head__micro {
    font-size: 13px;
  }
  .head__small {
    font-size: 16px;
  }
  .head__medium {
    font-size: 24px;
  }
  .head__big {
    font-size: 36px;
  }
  .head__giant {
    font-size: 48px;
  }
  .head__form {
    font-size: 16px;
  }
  .head__names {
    font-size: 52px;
  }
  .head__timerText {
    font-size: 16px;
  }
  .head__TimerHeader {
    font-size: 20px;
  }
  .head__marginWedding {
    margin-bottom: 140px;
  }
  .head__marginName {
    margin-bottom: 400px;
  }
  .head__marginGuest {
    margin-bottom: 9px;
  }
  .head__marginDateHead {
    margin-bottom: 8px;
  }
  .head__marginLocation {
    margin-bottom: 35px;
  }
  .head__marginTiming {
    margin-bottom: 11px;
  }
  .head__marginDressCode {
    margin-bottom: 30px;
  }
  .head__marginForm {
    margin-bottom: 30px;
  }
  .head__marginNames {
    margin-bottom: 30px;
  }
  .head__marginCome {
    margin-bottom: 18px;
  }
  .head__marginDetails {
    margin-bottom: 50px;
  }
  .head__desktop {
    display: none;
  }
  .head__mobileMarginLocation {
    margin-bottom: 25px;
  }
  .welomeText {
    margin-bottom: 61px;
  }
  .welomeText__width {
    width: 300px;
  }
  .dateTime {
    margin-bottom: 74px;
  }
  .dateTime__width {
    width: 309px;
  }
  .location {
    margin-bottom: 74px;
    flex-direction: column;
  }
  .location__block1 {
    height: 283px;
    width: 283px;
    margin-bottom: 30px;
  }
  .location__block2 {
    height: 150px;
    width: 283px;
  }
  .line {
    display: none;
  }
  .button {
    height: 48px;
    width: 218px;
  }
  .button__text {
    font-size: 16px;
  }
  .timing__img {
    width: 240px;
    margin-bottom: 20px;
  }
  .carousel {
    height: 185px;
    margin-bottom: 20px;
  }
  .circle {
    width: 55px;
    height: 55px;
    margin-right: 19px;
  }
  .dress-code {
    margin-bottom: 50px;
  }
  .upform {
    width: 375px;
    padding-top: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .form__input {
    font-size: 15px;
    border-bottom: 2px solid;
    margin-bottom: 17px;
    width: 303px;
  }
  .form__radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
  .form__radio:checked::after {
    width: 9px;
    height: 9px;
  }
  .final {
    height: 38vh;
    padding-top: 95px;
  }
  .timer__element {
    width: 68px;
    height: 68px;
  }
}

@media (min-width: 1024px) {
  .welcome {
    padding-top: 71px;
    margin-bottom: 55px;
  }
  .head__micro {
    font-size: 16px;
  }
  .head__small {
    font-size: 24px;
  }
  .head__medium {
    font-size: 36px;
  }
  .head__big {
    font-size: 64px;
  }
  .head__giant {
    font-size: 96px;
  }
  .head__form {
    font-size: 20px;
  }
  .head__names {
    font-size: 64px;
  }
  .head__timerText {
    font-size: 32px;
  }
  .head__TimerHeader {
    font-size: 36px;
  }
  .head__marginWedding {
    margin-bottom: 135px;
  }
  .head__marginName {
    margin-bottom: 461px;
  }
  .head__marginGuest {
    margin-bottom: 18px;
  }
  .head__marginDateHead {
    margin-bottom: 8px;
  }
  .head__marginLocation {
    margin-bottom: 35px;
  }
  .head__marginTiming {
    margin-bottom: 63px;
  }
  .head__marginDressCode {
    margin-bottom: 30px;
  }
  .head__marginForm {
    margin-bottom: 30px;
  }
  .head__marginNames {
    margin-bottom: 47px;
  }
  .head__marginCome {
    margin-bottom: 19px;
  }
  .head__marginDetails {
    margin-bottom: 108px;
  }
  .head__mobileMarginLocation {
    display: none;
  }
  .head__desktop {
    display: flex;
  }
  .welomeText {
    margin-bottom: 67px;
  }
  .welomeText__width {
    width: unset;
  }
  .dateTime {
    margin-bottom: 105px;
  }
  .dateTime__width {
    width: unset;
  }
  .location {
    margin-bottom: 135px;
    flex-direction: row;
  }
  .location__block1 {
    height: 501px;
    width: 501px;
    margin-right: 50px;
  }
  .location__block2 {
    height: 600px;
    width: 600px;
  }
  .line {
    width: 160px;
    margin-bottom: 15px;
    display: inline-block;
  }
  .button {
    height: 60px;
    width: 270px;
  }
  .button__text {
    font-size: 20px;
  }
  .timing__img {
    width: 450px;
    margin-bottom: 55px;
  }
  .carousel {
    height: 617px;
    margin-bottom: 60px;
  }
  .circle {
    width: 140px;
    height: 140px;
    margin-right: 52px;
  }
  .dress-code {
    margin-bottom: 124px;
  }
  .upform {
    width: 945px;
    padding-top: 16px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .form__input {
    font-size: 20px;
    border-bottom: 2px solid;
    margin-bottom: 58px;
    width: 463px;
  }
  .form__radio {
    width: 23px;
    height: 23px;
    margin-right: 8px;
  }
  .form__radio:checked::after {
    width: 11px;
    height: 11px;
  }
  .final {
    height: 60vh;
    padding-top: 257px;
  }
  .timer__element {
    width: 150px;
    height: 150px;
  }
  .mobile {
    display: none;
  }
}
