@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


@keyframes slideInFromBottom {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes Opacity {
  0% {
    
    opacity: 0;
  }
  100% {
    
    opacity: 1;
  }
}

@font-face {
  font-family: 'Archivo-Narrow-Bold-Italic';
  src: url('fonts/Archivo-Narrow-Bold-Italic.woff2') format('woff2'),
       url('fonts/Archivo-Narrow-Bold-Italic.woff') format('woff'),
       url('fonts/Archivo-Narrow-Bold-Italic.eot'),
       url('fonts/Archivo-Narrow-Bold-Italic.svg#Archivo-Narrow-Bold-Italic') format('svg');
  font-weight: normal;
  font-style: normal;
}


        
h1 {
  color: #00f;
  font-size: 4em;
  font-weight: bold;
  text-align: center;
}         

h2 {
  color: #00f;
  font-size: 1.4em;
  text-align: center;
  line-height: 1.5;
}

        
h3 {
             
  font-size: 1em;
  font-weight: bold;
  text-align: right;
  line-height: 1.5;
  text-transform: none;
  
 

}
        


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
         
         }
 body {
  display: flex;
  flex-direction: row;
  justify-content: center;  /* Выравнивание по горизонтали */
  align-items: center;  /* Выравнивание по вертикали */
  
  margin: 0;
  background: #090f09;
  font-style: italic;
  font-family: 'Archivo-Narrow-Bold-Italic', Arial, sans-serif;
  text-transform: uppercase;
  color: #C2EBFF;
         
            
        }


  .header {
  width: 100%;
  height:10vh;
  display: flex;
  justify-content: space-between;
  position: fixed;
  padding: 0px 20px;
  animation: 1s ease-out 0s 1 slideInFromTop; 
        }


 .main {
  width: 80%;
  max-width: 800px; /* Ограничение по ширине */
  text-align: center;
  background:url(pics/bg/bggif.gif);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;

     } 




.back {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;  
    cursor: pointer;
    /* Кнопка скрыта, пока не начнётся прокрутка */
    transition: opacity 0.3s;     
  
  
 
        }

 a:hover {
    color: #C2EBFF;
}

#scrollToTop {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* Кнопка скрыта, пока не начнётся прокрутка */
    transition: opacity 0.3s;
}

#scrollToTop:hover {
    background-color: #C2EBFF;
}





         


.aboutmc {
  padding-top: 4em;
  width: 100%;
  animation: 1s ease-out 0s 1 Opacity;
  height: 70vh;
  display: flex; 
  flex-direction: column;
    justify-content: center; 
    align-items: center; 

    text-align: center;

 
 
}

.textbox {
/* margin: 0 auto;*/
max-width: 300px;
  max-width: 90%;
 width: 720px;
 padding: 40px;


  
  
}


.scroll-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#scrollToSection {
    padding: 10px 15px;
    border: none;
    background-color: #C2EBFF;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s;
}

#scrollToSection:hover {
    background-color: #555;
}

.resume {
    height: 100vh; /* Делаем секции полноэкранными */
    display: flex;
    justify-content: space-between; 
    align-items: center; 

    text-align: center;
 
 
    border-bottom: 2px solid #ddd;
}

.videoivi {
  padding: 40px;
  width: 400px;
 height: 250px;
 animation: 1s ease-out 0s 1 Opacity;
}

.mainvideo{
      
 width: 100%;
 height: 100vh;
 animation: 1s ease-out 0s 1 Opacity;
     

  
  
}



.mainvideocell{
  margin: 0 auto;
  max-width: 90%;
 width: 720px;
            height: 540px;
  display:block;
  
 
}

iframe{
  max-width: 100%;
  width: 100%;
  height: inherit;
}

        
   
         }

.videotable div {
           margin-bottom: 4px;
         }

@media (max-width: 600px) {
   .videocell1 {
      width: 100%;
   }
}

