@font-face {
    font-family: 'FuturaPT';
    src: local("FuturaPT"),
        url('/fonts/FuturaPT/FuturaPT-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

body{
    width: 100vw;
    height: 100vh;
    margin: 0;
}
.particles {
    width: 100%;
    height: 100vh;
    background-color: #06090E;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.particles-js-canvas-el{
    position: absolute;
    z-index: 0;
}
#header{
    z-index: 2;
    width: 90vw;
    height: 30vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
h2{
    font-family: 'FuturaPT';
    color: #D2D2D2;
    font-size: 4vw;
}
h5{
    width: 90%;
    font-family: 'FuturaPT';
    color: #FF6B6B;
    font-size: 1.2em;
    text-align: center;
}
#buttons{
    display: flex;
    width: 97%;
    height: 97%;
    justify-content: space-around;
    flex-wrap: wrap;
}

#text{
    width: 35vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: auto;
}
#button{
    width: 20vh;
    height: 10vh;
    display:flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;

    border-radius: 25px;
    outline: 5px solid #FF6B6B;
    outline-offset: -5px;

    word-wrap: break-word;
    overflow-wrap: break-word;
}
.maintenance{
    pointer-events: auto;
    user-select: none;
}
#hbody{
    z-index: 2;
    display: flex;
    width: 90vw;
    height: 65vh;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
img{
    width: 100%;
    height: auto;
}

.gradient-text{
    font-family: FuturaPT;
    font-size: 10vw;
    background: linear-gradient(0deg, #06090E, #D2D2D2, #A9A9A9, #FF6B6B, #5FB49C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
    animation: gradMain 5s ease-in-out infinite;
}
#logo{
    height: auto;
    width: 9vw;
    pointer-events: auto;
    /*animation: shake 1.5s;
    animation-iteration-count: infinite; */
    user-select: none;
    animation: wind 5s ease-in-out infinite;
    
}

#logo img:hover{
    /*animation: shake3 0.75s;
    animation-iteration-count: infinite; */
    animation: breathing 4s ease-in-out infinite;
    
}
#logo img:active{
    /*animation: shake2 0.45s;
    animation-iteration-count: infinite; */
    animation: jump 0.3s ease-out infinite;
}


#button:hover{
    outline-color: #D2D2D2;
}
#button:hover h5{
    color: #D2D2D2;
}


@media screen and (max-width: 481px) {
    #header{
        flex-direction: column;
    }
    #logo{
        width: 40%;
        height: fit-content;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    #logo img{
        width: 85%;
    }
    #text{
        width: 60%;
    }
    #text h2{
        font-size: 2.5em;
    }
    #button{
        width: 40%;
        outline-width: 0.2em;
    }
    html, body{
        overflow-x: hidden; /* Запретить горизонтальную прокрутку */
        overflow-y: hidden; /* Запретить вертикальную прокрутку */
    }
}
@media only screen and (min-width: 415px) and (max-width: 1279px) {
    body{display:none} html:before{content:'Переверните устройство в портретный режим или откройте сайт с компьютера.';position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;background:#fff;z-index:999;text-align:center;width:80%;height:100px} 
    }




@keyframes swing {
    0% { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-3deg); }
    20% { transform: translate(-3px, 0px) rotate(3deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(3deg); }
    50% { transform: translate(-1px, 2px) rotate(-3deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-3deg); }
    80% { transform: translate(-1px, -1px) rotate(3deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-3deg); }
}

@keyframes glance {
    0% { transform: rotate(0); }
    100% { transform: rotate(-10deg); }
  }

@keyframes shake2 {
    0% { transform: translate(3px, 3px) rotate(0deg); }
    10% { transform: translate(-3px, -5px) rotate(-6deg); }
    20% { transform: translate(-7px, 2px) rotate(3deg); }
    30% { transform: translate(4px, 6px) rotate(4deg); }
    40% { transform: translate(2px, -2px) rotate(5deg); }
    50% { transform: translate(-3px, 4px) rotate(-9deg); }
    60% { transform: translate(-6px, 2px) rotate(5deg); }
    70% { transform: translate(5px, 3px) rotate(-3deg); }
    80% { transform: translate(-2px, -6px) rotate(10deg); }
    90% { transform: translate(2px, 4px) rotate(2deg); }
    100% { transform: translate(-4px, -4px) rotate(-7deg); }
}

@keyframes shake3 {
    20% { transform: translate(1px, 1px) rotate(3deg); }
    40% { transform: translate(-1px, 0px) rotate(-1deg); }
    60% { transform: translate(1px, 3px) rotate(2deg); }
    80% { transform: translate(0px, 2px) rotate(-2deg); }
    100% { transform: translate(2px, 0px) rotate(1deg); }
}

@keyframes wind {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(9px); }
  }

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);  /* Чуть-чуть увеличивается */
    }
}
  
@keyframes look-around {
    0% { transform: rotate(0); }
    50% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}
@keyframes sparkle {
    0% { opacity: 0; transform: scale(0) translate(0, 0); }
    50% { opacity: 1; transform: scale(1) translate(30px, -30px); }
    100% { opacity: 0; transform: scale(0) translate(60px, -60px); }
}
@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }
@keyframes gradMain {
    0% {
        background-position: 0% 100%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}
