header {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  padding: 4%;
  justify-content: center;
  align-items: center;
}




body {
  max-width: 1960px;
  font-family: 'Roboto', sans-serif;
  background-image: linear-gradient(to bottom right, rgba(86, 148, 105, 0.9), rgba(190, 203, 155, 0.9), rgba(150, 190, 134, 0.9), rgba(189, 199, 105, 0.9)), url(images/fonback.png);
  background-attachment: fixed;
  margin: 0 auto;
  display: block;
  justify-content: center;
  align-items: center;
}





nav {
  font-family: 'Roboto', sans-serif;
  flex-grow: 1;
  border-radius: 17px;
  text-align: center;
  transition: all .15s ease .15s;
}

nav ul {
  font-size: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 1%;
  padding: 1%;
}

nav li {
  position: relative;
  padding: 1%;
}

nav li a {
  background-color: #2481CC;
  color: #ffffff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 50px;
  transition: all 0.5s ease-in-out;
}

nav li a:hover {
  background-color: #ffffff;
  color: #2481CC;

}

nav ul ul {
  position: absolute;
  top: 100%;
  width: 100%;
  display: none;
  font-size: 1em;
}

nav li:hover>ul {
  padding-left: 100px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 3fr);

}

nav ul ul li {
  padding: 13px;

}

nav ul ul li a {
  margin: 3px;
  padding: 10px 10px;
  color: #2481CC;
  background-color: #ffffff;
  border: 3px solid #2481CC;


}

nav ul ul li a:hover {
  color: #ffffff;
  background-color: #FF0000;
  border: 3px solid #f90000;

}





@media screen and (max-width: 767px) {
  nav li a {
    font-size: 80%;
    padding: 10px;

  }

  nav ul ul li {
    padding: 9%;
    font-size: 80%;
  }
}


button:hover {
  background-color: #000000;
  color: #fff;
}


/*контейнер с двумя блоками рядом*/

.container {
  height: 90%;
  width: 90%;
  display: flex;
  flex-direction: row;
  /* display the blocks side by side on desktop screens */
}

.left-block {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-block {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  text-align: center;
  /* center the content horizontally within each block */
}

.content1 {
  margin-right: 20%;
  /* center the content horizontally within each block */
}

.content0 {
  text-align: center;
  /* center the content horizontally within each block */
}

.left-block1 {
  width: 50%;
  display: flex;
  justify-content: right;
  align-items: center;
}

.right-block1 {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content1 {
  text-align: center;
  /* center the content horizontally within each block */
}



@media screen and (max-width: 767px) {
  .container {
    flex-direction: column;
    /* display the blocks in a column on small screens */
    width: 100%;
  }

  .left-block {
    order: 1;
    /* display the left block after the right block on small screens */
    width: 100%;
  }

  .right-block {
    order: 2;
    /* display the right block before the left block on small screens */
    width: 100%;
  }

  .content {
    max-width: 100%;
    /* adjust this value as needed to control the width of the content */
  }

  .content0 {
    padding-left: 0%;
    padding-bottom: 0%;
    text-align: center;
    /* center the content horizontally within each block */
  }

  .left-block1 {
    order: 1;
    /* display the left block after the right block on small screens */
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .right-block1 {
    order: 2;
    /* display the right block before the left block on small screens */
    width: 100%;
  }

  .content1 {

    margin: 0 auto;
    max-width: 100%;
    /* adjust this value as needed to control the width of the content */
  }
}





.gif-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  /* set the height of the container */
}

.gif-container img {
  max-width: 100%;
  max-height: 100%;
}



.gif-container0 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  /* set the height of the container */
}

.gif-container0 img {
  max-width: 100%;
  max-height: 100%;
}


.gif-container1 {
  margin-left: 50%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  /* set the height of the container */
}

.gif-container1 img {
  max-width: 100%;
  max-height: 100%;
}


/* пустой блок */

.empty {
  padding: 1%;
  margin: 1%;

}






.block {
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10%;
  background-color: #ffffff;
}

.title {
  -webkit-text-fill-color: rgb(0, 0, 0);
  font-size: 1em;
  text-align: center;
  border-radius: 50px;
}

.text {

  border-radius: 50px;
  text-align: centr;
  font-size: 1em;
  padding: 32px;
  color: rgb(0, 0, 0);
}

.title1 {
  font-size: 1.5em;
  text-align: center;
  -webkit-text-fill-color: rgb(255, 255, 255);
  border-radius: 50px;
}

.text1 {
  border-radius: 50px;
  text-align: center;
  font-size: 1.4em;
  -webkit-text-stroke: 1px rgb(6, 6, 6);
  -webkit-text-fill-color: rgb(0, 0, 0);
  color: rgb(0, 0, 0);
}


.text0 {

  border-radius: 50px;
  text-align: left;
  font-size: 1em;
  padding: 32px;
  color: rgb(0, 0, 0);
}

@media screen and (max-width: 767px) {
  .block {
    flex-direction: column;
  }

  .title {
    padding: 1%;
    text-align: center;
    margin-bottom: 1%;
  }

  .text {
    border-radius: 50px;
    text-align: center;
    padding: 1%;
    font-size: 1em;
    padding: 10px;
    margin-bottom: 1%;

  }

  .title1 {
    font-size: 1em;
    text-align: center;
    -webkit-text-fill-color: rgb(255, 255, 255);
    -webkit-text-stroke: 1px rgb(6, 6, 6);
    border-radius: 50px;
  }

  .text1 {
    border-radius: 50px;
    text-align: center;
    font-size: 1em;
    -webkit-text-stroke: 1px rgb(6, 6, 6);
    -webkit-text-fill-color: rgb(0, 0, 0);
    color: rgb(0, 0, 0);
  }

  .gif-container1 {
    margin-left: 1%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* set the height of the container */
  }

  .gif-container0 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* set the height of the container */
  }

  .gif-container1 img {
    max-width: 100%;
    max-height: 100%;
  }
}





.blockcpodlojkoi {
  background-color: #fff;
  margin: 16px auto;
  padding: 32px 0;
  max-width: 400px;
  min-width: 340px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 16px;

}

.blockcpodlojkoibig {
  margin-left: 500px;
  margin-right: 500px;
  text-align: center;


}

.blockcpodlojkoikaketorabotaet {
  min-width: 70%;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  margin-left: 15%;
  margin-right: 15%;
  text-align: left;

}






@media screen and (max-width: 767px) {
  .blockcpodlojkoibig {
    margin: 3%;
  }

  .blockcpodlojkoikaketorabotaet {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    margin-left: 5%;
    margin-right: 5%;
    text-align: left;
  }

  .blockcpodlojkoi {
    margin: 3%;
    background-color: #fff;
    padding: 32px 0;
    max-width: 400px;
    min-width: 270px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
  }

}



.divider {
  border: none;
  height: 2px;
  background-color: #ccc;
  margin: 30px 0;
}

.footer {
  margin-bottom: 50px;
  text-align: center;
  margin-top: 5%;

}