
  body {
    display: grid;
    min-width: 1500px;
    grid-template-areas:
      "h1 h2 h3"
      "menu menu menu"
      "nav article ads"
      "footer footer footer";
    grid-template-rows: 320px 90px 1fr 60px;
    grid-template-columns: 1fr 3fr 2fr;

    height: 100vh;
    margin: 0;
  }
.txt1 {
    font-size:20px;
}
  footer,
  article,
  nav,
  div {
    padding: 10px;

  }

  #h1,
  #h2,
  #h3 {

    background: #FFB7B8;
    
  }
  body
  {
    background: #FFB7B8;
  }

  #h2 {
    grid-area: h2;
  }

  #h1 {
    grid-area: h1;
  }

  #h3 {
    grid-area: h3;
  }

  #menu {
    grid-area: menu;
    background: blue
    
  }

  #pageFooter {
    grid-area: footer;
    background-color: blue;
  }

  #mainArticle {
    grid-area: article;
    background-color: #FFB7B8;
    
  }

  #mainNav {
    grid-area: nav;
    display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: #FFB7B8;
  font-size: 21px;
  
  }

  #siteAds {
    grid-area: ads;
    background-color: #FFB7B8;
  }

  #img2 {
    margin-left: 30px;
    width: 300px;
  }
  #img1 {
    margin-left: 230px;
   
  }
  #img4{
    margin-left: 50px;
  }

  .modal {
    position: fixed; /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5); /* цвет фона */
    z-index: 1050;
    opacity: 0; /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    pointer-events: none; /* элемент невидим для событий мыши */
    margin: 0;
    padding: 0;
}
/* при отображении модального окно */
.modal:target {
    opacity: 1; /* делаем окно видимым */
	  pointer-events: auto; /* элемент видим для событий мыши */
    overflow-y: auto; /* добавляем прокрутку по y, когда элемент не помещается на страницу */
}
/* ширина модального окна и его отступы от экрана */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}
@media (min-width: 576px) {
  .modal-dialog {
      max-width: 600px;
      margin: 30px auto; /* для отображения модального окна по центру */
  }
}
/* свойства для блока, содержащего контент модального окна */ 
.modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
}
@media (min-width: 768px) {
  .modal-content {
      -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
      box-shadow: 0 5px 15px rgba(0,0,0,.5);
  }
}
/* свойства для заголовка модального окна */
.modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eceeef;
}
.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.5rem;
    font-weight: 500;
}
/* свойства для кнопки "Закрыть" */
.close {
    float: right;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    text-decoration: none;
}
/* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
.close:focus, .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
}
/* свойства для блока, содержащего основное содержимое окна */
.modal-body {
  position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 15px;
    overflow: auto;
}

#h1 {
      
  margin-left: 120px;
  margin-top:50px;





}
#boxDiv {
  margin-top: 0px;
  width: 200px;
  transform-style: preserve-3d;
  animation: rotate 15s linear infinite;
}

#boxDiv div {
  position: absolute;
  width: 200px;
  height: 168px;
  opacity: 1;
  color: white;
}

#front {
  transform: translateZ(100px);
  background: #FFB7B8;;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;

}


#back {
  transform: rotateY(180deg) translateZ(100px);
  background: #FFB7B8;;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;
}

#left {
  transform: rotateY(-90deg) translateX(-100px);
  transform-origin: left;
  background: #FFB7B8;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;
}

#right {
  transform: rotateY(90deg) translateX(100px);
  transform-origin: right;
  background: #FFB7B8;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;
}

#top {
  transform: rotateX(-90deg) translateY(-100px);
  transform-origin: top;
  background: #FFB7B8;;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;
}

#bottom {
  transform: rotateX(90deg) translateY(100px);
  transform-origin: bottom;
  background: #FFB7B8;;
  background-image: url('./images/vit3.png');
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes rotate {
  0% {
      transform: rotateY(0);
  }

  100% {
      transform: rotateY(360deg);
  }
}
