/* ******* */
/* *** FONTS */
/* ******* */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Lato/lato-v24-latin-regular.eot');
  src: url('../fonts/Lato/lato-v24-latin-regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Lato/lato-v24-latin-regular.woff2') format('woff2'),
       url('../fonts/Lato/lato-v24-latin-regular.woff') format('woff'),
       url('../fonts/Lato/lato-v24-latin-regular.ttf') format('truetype'),
       url('../fonts/Lato/lato-v24-latin-regular.svg#Lato') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.eot');
  src: url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.eot?#iefix') format('embedded-opentype'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.woff2') format('woff2'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.woff') format('woff'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.ttf') format('truetype'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800.svg#BarlowCondensed') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.eot');
  src: url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.eot?#iefix') format('embedded-opentype'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.woff2') format('woff2'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.woff') format('woff'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.ttf') format('truetype'),
       url('../fonts/BarlowCondensed/barlow-condensed-v12-latin-800italic.svg#BarlowCondensed') format('svg');
}

/* ******* */
/* *** BASE */
/* ******* */
html {
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  font-weight: var(--font-weight);
  font-size: var(--font-size);
  letter-spacing: var(--font-spacing);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  max-height: 100%;
  background: var(--bg-body);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

* {
  box-sizing: border-box;
}

.overlay {
  position: relative;
}

.overlay::after {
  content: '';
  background: linear-gradient(var(--bg-overlay));
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.videoBg {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  filter: blur(var(--app-bg-video-blur));
}



/* ******* */
/* *** PRELOADER */
/* ******* */
.preloader {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-preloader);
  z-index: 1000;
  opacity: 0;
  pointer-events: auto;
  transition: all 1s 1s;
  z-index: -1;
}

.preloader.active {
  opacity: 1;
  z-index: 1000;
}

.preloader__wrapper {
  position: relative;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: fit-content;
  height: fit-content;
}

.heart {
  position: absolute;
  top: 12px;
  width: 25px;
}

.heart-1 {
  left: 5px;
  animation: heart-1-scale;
  animation-duration: 1.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.heart-2 {
  right: 5px;
  animation: heart-2-scale;
  animation-duration: 1.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.preloader__text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 700;
  clip-path: inset(0 2ch 0 0);
  animation: dots 1s steps(3) infinite;
  color: var(--color-preloader-dots);
  font-size: var(--font-preloader-dots-size);
  font-family: serif;
}




/* ******* */
/* *** HEADER */
/* ******* */
.header {
  position: absolute;
  top: 8px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.logo {
  font-family: var(--font-primary);
  font-size: var(--font-logo-size);
  color: var(--color-text-logo);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
  text-shadow: -1.5px 1.5px 0px var(--color-shadow-text-logo);
  -webkit-text-stroke: var(--app-text-logo-border-size) var(--color-border-text-logo);
  text-overflow: ellipsis;
  overflow: hidden;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
}

.menu li {
  position: relative;
  color: var(--color-text-secondary);
}

.menu li::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  margin: 0 25%;
}

.menu li.active {
  color: var(--color-text-primary);
}

.menu li.active::after {
  background: var(--color-text-primary);
}







/* ******* */
/* *** FOOTER */
/* ******* */
.footer {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 6px solid #393939;
  display: block;
  animation: 8s linear 0s infinite normal none running rotate
}

.description {
  margin-top: 16px;
}






/* ******* */
/* *** MAIN */
/* ******* */
.main {
  position: relative;
}

.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 60%;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  width: 270px;
  max-width: calc(100% - (64px * 2));
  opacity: 0;
  -webkit-animation: fade-in-bottom 0.4s linear .3s forwards;
  animation: fade-in-bottom 0.4s linear .3s forwards;
}

.caption .btn {
  display: block;
  color: var(--color-text-primary-btn);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 800;
  font-size: var(--font-primary-btn-size);
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--bg-primary-btn));
  border-bottom: 2px solid #fff;
  border-radius: 36px;
  padding: 6px 14px 10px;
  text-shadow: -1.5px 1.5px 0px var(--color-shadow-primary-btn);
  animation: pulse var(--app-pulse-animation-speed) alternate-reverse .7s infinite;
  word-break: break-word;
  hyphens: auto;
}

.caption a+a {
  color: var(--color-text-primary);
  margin-top: 12px;
  display: block;
  text-align: center;
}



/* ******* */
/* *** ASIDE */
/* ******* */
.aside {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  right: 4px;
  z-index: 100;
  opacity: 0;
  -webkit-animation: fade-in-right 0.4s linear .5s forwards;
  animation: fade-in-right 0.4s linear .5s forwards;
}

.user {
  width: var(--app-user-avatar-size);
  height: var(--app-user-avatar-size);
  background: #fff;
  margin-bottom: 20px;
  border-radius: 50%;
  position: relative;
}

.user::after {
  content: '+';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-photo-add-icon);
  z-index: 10;
  transform: translate(-50%, 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  font-weight: bold;
}

.user img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.toolsList .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.toolsList .item img {
  width: var(--app-icons-tools-size);
  height: var(--app-icons-tools-size);
  object-fit: contain;
}

.toolsList .item span {
  font-size: var(--font-icons-text-size);
  display: block;
  margin-top: 4px;
}



/* ******* */
/* *** ANIMATIONS */
/* ******* */
@keyframes pulse {
  0% {
    transform: scale(1)
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0)
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-bottom {
  0% {
      transform: translate(-50%, 50px);
      opacity: 0;
  }
  100% {
      transform: translate(-50%, 0);
      opacity: 1;
  }
}
@keyframes fade-in-right {
  0% {
    transform: translate(50px, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(0, -50%);
    opacity: 1;
  }
}

@keyframes heart-1-scale {
  0% {
    transform: scale(100%);
  }
  50% {
    transform: scale(130%);
  }
  100% {
    transform: scale(70%);
  }
}

@keyframes heart-2-scale {
  0% {
    transform: scale(100%);
  }
  50% {
    transform: scale(70%);
  }
  100% {
    transform: scale(130%);
  }
}

@keyframes dots {
  to {
    clip-path: inset(0 -1ch 0 0);
  }
}


/* ******* */
/* *** RESPONSIVE */
/* ******* */
@media screen and (min-width: 640px) {
  .main {
    max-width: var(--app-width);
    margin: 0 auto;
  }

  .header, .footer {
    max-width: var(--app-width);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--app-width) - 32px);
  }

  .aside {
    right: calc((100% - var(--app-width)) / 2 + 4px);
  }
}
