* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Tex Regular";
}
body, html {
    overflow: hidden;
}
.bg {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
}
/* Main Styles */
.main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container {
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    max-width: 500px;
    width: 100%;

    /* Тут можно змінювати колір та прозорість над відео */
    background-color: rgba(0, 0, 0, 0.8);
}
.video {
    position: absolute;
    top: 0;
    height: 100vh;
    mix-blend-mode: darken;
    width: 100%;
    object-fit: cover;
    z-index: 2;
}
.content {
    z-index: 3;
    text-align: center;
    display: none;
}
.flag {
    width: 40px;
    display: block;
    margin: 0 auto;
}
.title {
    margin-top: 10px;
    font-size: 34px;
    color: white;
    font-weight: 300;
    padding: 0 15px;
}
.buttons {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons__btn {
    padding: 15px 0;
    text-decoration: none;
    color: white;
    font-family: "Tex Regular";
    font-size: 32px;
    width: 130px;
    display: block;
    border: 2px solid white;

    /* Задній фон для кнопок */
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ефект неонового світіння для першої кнопки */
.buttons__btn:first-child {
    margin-right: 40px;
    box-shadow: 0 0 .1rem #fff,
            0 0 .1rem #fff,
            0 0 0.5rem #ff3131,
            0 0 0.5rem #ff3131,
            0 0 0.5rem #ff3131,
            inset 0 0 0.5rem #ff3131; 
}

/* Ефект неонового світіння для другої кнопки */
.buttons__btn:nth-child(2) {
    box-shadow: 0 0 .1rem #fff,
            0 0 .1rem #fff,
            0 0 1rem #000,
            0 0 0.8rem #000,
            0 0 1.8rem #000,
            inset 0 0 1rem #000; 
}

.preloader {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    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: black;
    font-size: 72px;
    font-family: serif;
  }


@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);
    }
  }
  
  


/* Адаптація */
@media screen and (max-width: 425px) {
    .title {
        font-size: 32px;
    }
    .flag {
        width: 35px;
    }
    .buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 360px) {
    .title {
        font-size: 27px;
    }
    .buttons__btn {
        font-size: 26px;
    }
}

/* Підключення шрифтів */
@font-face {
    font-family: "Tex Regular";
    src: url('../fonts/TeXGyreAdventor-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: "Tex Bold";
    src: url('../fonts/TeXGyreAdventor-Bold.ttf');
    font-weight: 700;
}