/*
Theme Name: vaishnav-istokischool
Theme URI: 
Author: govardhan
Author URI: 
Description: Вайшнавская тема
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaishnav-istokischool
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

body {
 background-image: linear-gradient(#41bebc, #9ee3c3);
 background-repeat: no-repeat;
}


/* кнопки */

.project-button {
  display: none !important;
}

.orange-button {
  transition: all 0.3s ease;
}

.orange-button:hover {
  transform: translate(2px,2px);
}


/* новости */

.template-arch {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}


.news-img.mobile {
  display: none ;
}

.news-img-block {
  order: 1;
}

.news-text-block {
  order: 2;
}

/*{ таблицы*/

.schedule {
  max-width: 500px;
}

.schedule table thead {
  background-color: #CCCCCC;
  border-bottom: 2px solid !important;
}
/* таблицы }*/



/* блоки */

.adv-block {
  position: relative;
}

.adv-text {
    position: relative;
    top: -40px;
    width: 150px;
    -webkit-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    -moz-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    border: 1px solid #CCCCCC !important;
 }

.teacher-text {
    position: relative;
    top: -20px;
    max-width: 200px;
    -webkit-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    -moz-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    border: 1px solid #CCCCCC !important;
    background-color: #FFF;
    padding: 10px !important;
}

.how-it-works-item {
  width: 400px;

}
.program-item {
  width: 350px;
}

.price-panel {
  max-width: 230px;
}


.wp-block-post-content {
   overflow-wrap: break-word;
}


/* оформление */

hr.is-style-default {
  max-width: 190px;
  height: 2px;
}

.sun-and-list-block {
   order: 1;
   padding: 25px 0px 20px 0px;
   align-self: flex-start;
   max-width: 250px;

}


.center-header-block {
  order: 2;
}

.pupils-block {
    order: 3;
}

.top-sub-title5 {
  max-width: 400px;
}


.school-header a, .school-main-header a {
  text-decoration: none;
}


.white-page {
  -webkit-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  -moz-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
}

.school-main-header, .school-header {
 /*background-image: linear-gradient(#2b7fbb, #7fc8fa);
 background-repeat: no-repeat;*/
 border-radius: 0px 0px 0px 0px;
  -webkit-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  -moz-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
 }

.school-footer  {
  -webkit-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  -moz-box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  box-shadow: 4px 4px 8px 0px rgba(12, 15, 17, 0.2);
  border-radius: 0px 0px 0px 0px;

}

.shadow-text {
  text-shadow: 1px 1px 3px #2d5774;
}


a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.wp-block-button a:hover {
  text-decoration: none;
}


/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}



footer.wp-block-template-part {
  margin-block-start: 0px;
}


.adv-media figure img, .teacher-media{
  max-width: 200px;
  max-height: 200px;
}



/* { меню */


.bottom-menu ul li:hover, .bottom-menu ul li a:hover, .top-menu  ul li:hover, .top-menu ul li a:hover {
  color: #FFFF66 !important;
  text-decoration: none !important;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content  {
   color: #FFF !important;
}


.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover  {
   color: #FFFF66 !important;
}

ul.top-menu {
  background-color: rgba(69, 147, 203, 0.0) !important;
}

ul.top-menu ul.wp-block-navigation__submenu-container {
 background-color: #277bb7e6 !important;
 padding: 10px;
 border: 0px solid #277bb7e6 !important;
}

ul.top-menu ul.wp-block-navigation__submenu-container li.wp-block-navigation-item {
 background-color: rgba(69, 147, 203, 0.0) !important;
}

.top-menu .is-menu-open ul.top-menu li, .top-menu .is-menu-open button.wp-block-navigation__responsive-container-close {
  color: #FFF !important;
}


.wp-block-navigation__responsive-container.is-menu-open {
  background-color: rgb(43, 127, 187) !important;
  opacity:0.9;
}



.top-menu .is-menu-open .wp-block-navigation__responsive-container-close {
  svg {
    width: 35px;
    height: 35px;
  }
}


.top-menu .is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: center;
  padding-left: 0px;
}

.top-menu .is-menu-open ul.top-menu {
  align-items: flex-start !important;
  row-gap: 10px !important;
}

.top-menu .is-menu-open ul.top-menu li {
  align-items: flex-start !important;
  font-size: 24px !important;
}

/*  меню } */


/* Анимация оформления */

.the-sun {
   animation-name: infiniti-rotate;
   animation-duration: 5s;
   animation-timing-function: ease-out;
   animation-delay: 0s;
   animation-fill-mode: both; 
   animation-iteration-count:infinite;
   position: absolute;
}

.the-cloud {
   position: absolute;
   top: 43px;
   left: 20px;
}


.sun-block {
  width: 220px;
  height: 150px;
  position: relative;
}


.beeimg {
   position: fixed;
   top: 200px;
   right: -1000px;
   animation:
   xfly 5s ease-out 2s 3,
   yfly 5s ease-out 2s 3;
    
   /*animation-name: fly;
   animation-duration: 5s;
   animation-timing-function: ease-out;
   animation-delay: 2s;
   animation-fill-mode: both; 
   animation-iteration-count:infinite;*/
   width: 100px;
   height: auto;
   z-index: 1000;
}





/* { анимация */

@keyframes overlay-menu__slide-in-animation{
  0%{
    opacity:0;
    transform:translateX(-50%);
  }
  to{
    opacity:0.9;
    transform:translateX(0);
  }
}


@keyframes overlay-menu__slide-out-animation{
  0%{
    opacity:0.9;
    transform:translateX(0);
  }
  to{
    opacity:0;
    transform:translateX(-100%);
  }
}


@keyframes appearance {
 from {
	 transform: translateX(20px);
   opacity: 0;
 }
 to {
	 transform: translateX(0px);
   opacity: 0.86;
 }
}	

@keyframes infiniti-rotate {
 0% {
   transform: rotate(0deg)
 }
 25% {
   transform: rotate(20deg)
 }
 50% {
   transform: rotate(0deg)
 }
 75% {
   transform: rotate(-20deg)
 }
100% {
   transform: rotate(0deg)
 }
}	

@keyframes yfly {
0% {
   top: 200px;
}
50% {
   top: 260px;
}
100% {
   top: 200px;
}
 
}

@keyframes xfly {
 0% {
	 right: 0%;
   opacity: 0;
 }
 5% {
	 right: 5%;
   opacity: 1;
 }
 100% {
	 right: 100%;
   opacity: 1;
 }
}

/* анимация } */



/* меню */

.top-menu .is-menu-open {
  animation-duration: 1.5s !important;
  animation-name: overlay-menu__slide-in-animation !important;
  animation-fill-mode: both;
  /*animation-delay: 1.0s !important; :not(.is-menu-open)  */
}

.top-menu .wp-block-navigation__responsive-container.closed-mnw {
  width: 100%;
  height: 100%;
  animation-duration: 1.5s !important;
  animation-name: overlay-menu__slide-out-animation !important;
  animation-timing-function: ease-in-out;
  padding: 16px 30px 16px 30px;
  box-sizing: border-box;
}



ul.top-menu li a {
    padding-top: 2px;
    padding-bottom: 2px;
    line-height: 1.2;
    box-shadow: inset 0 0 0 0 #FFFFFF !important;
    outline: 0px solid #FFFFFF !important;
}


/* квиз */


label.qsm-input-label {
  font-size: 18px !important;
}

div.qmn_mc_answer_wrap input.qmn_quiz_radio {
  height: 25px;
}


.news-text-block {
  max-width: 400px;
}


/* { плавающая кнопка*/

 .floating-tg {
   animation-name: appearance;
   animation-duration: 2s;
   animation-timing-function: ease-out;
   animation-delay: 2s;
   animation-fill-mode: both;
   box-shadow:  6px 6px 9px rgba(0, 0, 0, 0.2);
   opacity: 0;
   transition: all 0.8s ease !important;
 }

 .floating-tg:hover {
   transform: translate(2px,2px) !important;
 }
 

 .write-to-us a:hover {
  text-decoration: none;
 }

 /* плавающая кнопка }  */




.payment-text {
  border: 1px solid #FFF;
  padding: 3px 8px;
  border-radius: 8px;
}



/* { Contact Form 7 */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 button[type="submit"] {
  font: 400 12px/16px "Roboto", Helvetica, Arial, sans-serif;
}

.wpcf7-form {
  background: #F9F9F9;
  padding: 25px;
  margin: 10px 0;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.wpcf7-form label {
  display: block;
  padding: 0px 15px;
}

.wpcf7-form h4 {
  margin: 5px 0 15px;
  display: block;
  font-size: 13px;
  font-weight: 400;
}

.wpcf7-form fieldset {
  border: medium none !important;
  margin: 0 0 10px;
  min-width: 100%;
  padding: 0;
  width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #FFF;
  margin: 0 0 5px;
  padding: 10px;
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form input[type="url"]:hover,
.wpcf7-form textarea:hover {
  -webkit-transition: border-color 0.3s ease-in-out;
  -moz-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
  border: 1px solid #aaa;
}

.wpcf7-form textarea {
  height: 100px;
  max-width: 100%;
  resize: none;
}

.wpcf7-form input[type="submit"] {
  cursor: pointer;
  width: 100%;
  border: none;
  background: #4CAF50;
  color: #FFF;
  margin: 0 0 5px;
  padding: 10px;
  font-size: 15px;
}

.wpcf7-form input[type="submit"]:hover {
  background: #43A047;
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

.wpcf7-form input[type="submit"]:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.copyright {
  text-align: center;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: 0;
  border: 1px solid #aaa;
}

::-webkit-input-placeholder {
  color: #888;
}

:-moz-placeholder {
  color: #888;
}

::-moz-placeholder {
  color: #888;
}

:-ms-input-placeholder {
  color: #888;
}

/* Contact Form 7 } */




/* mind map { */


.mindmap-block {
  position: relative;
  /*width: 100%;
  height: 300px;*/
}

.mm-wrapper {
  display: none;
}


.mind-map-button {
  cursor: pointer;
}

.mindm-item, .mindm-item-linked {
  position: relative;
}

.mindm-item-linked img {
  transition: transform .2s; /* Animation */
}

.mindm-item-linked:hover img {
  transform: scale(1.2);
}


.mindmap-text {
    position: relative;
    top: -10px;
    width: 120px;
    -webkit-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    -moz-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    border: 1px solid #CCCCCC !important;
    box-sizing: border-box;
 }

 .mindmap-text-header {
    position: relative;
    top: -10px;
    width: 190px;
    -webkit-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    -moz-box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    box-shadow: 2px 2px 16px 0px rgba(2, 2, 2, 0.2);
    border: 1px solid #CCCCCC !important;
    box-sizing: border-box;
 }

.mindm-item-linked .mindmap-text {
    padding: 0px !important;
} 

.mindm-item-linked a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px !important;
  box-sizing: border-box;
}

.mindm-item .mindmap-text.with-arrow-down {
      border: 0px solid #CCCCCC !important;
}

.mindm-item .mindmap-text.with-arrow-down:before {
	content: ""; 
	border: solid transparent;
	position: absolute;
 	top: 100%;
	left: 50%;
	border-width: 9px;
	margin-left: -9px;
}

.mindm-item .mindmap-text.blue.with-arrow-down:before {
  border-top-color: #1f708b;
}
.mindm-item .mindmap-text.green.with-arrow-down:before {
  border-top-color: #2c6d43;
}
.mindm-item .mindmap-text.yellow.with-arrow-down:before {
  border-top-color: #af8f1d;
}
.mindm-item .mindmap-text.grey.with-arrow-down:before {
  border-top-color: #8c8c8c;
}

.mm-istoki {
  /*margin: 0 auto;
  top: 0; left: 0; bottom: 0; right: 0;*/
  anchor-name: --mm-istoki;
}




/* } mind map  */


@media (max-width: 900px) {

  .main-container {
     margin-top: 0px !important;
     margin-bottom: 0px !important;
   }

  .school-main-header, .school-header {
    /*background-image: linear-gradient(#2b7fbb, #7fc8fa);
    background-repeat: no-repeat;*/
    border-radius: 0px 0px 0px 0px !important;
 }

.school-footer  {
  border-radius: 0px 0px 0px 0px !important;
}


.orange-button .has-roboto-condensed-font-family {
    font-size: 22px !important;
}

.orange-button a.wp-block-button__link{
    margin: 0px 10px !important;
    font-size: 22px !important;
}

.pheader {
  font-size: 20px !important;
}

.pnumber {
  font-size: 23px !important;
}


.orange-button.price-button a.wp-block-button__link{
    margin: 0px 6px !important;
    font-size: 20px !important;
}

.adv-media .wp-block-media-text__content .has-roboto-condensed-font-family {
    font-size: 23px !important;
}


.wp-block-navigation-item__label, .top-list-items, .top-phone {
    font-size: 18px !important;
}
.site-name {
    font-size: 50px !important;
}

.sub-tilte, .top-sub-title1 {
  font-size: 20px !important;
}

.top-sub-title2, .bottom-logo-subname, .bottom-write-me, .bottom-sub-title1, .bottom-sub-title2, .bottom-sub-title3, .bottom-email  {
  font-size: 25px !important;
}

.top-sub-title3, .top-sub-title4, .top-sub-title5 {
  font-size: 20px !important;
}

.the-sun {
  top: -40px;
  position: absolute !important;
}

.the-cloud {
  top: 60px !important;
  position: absolute !important;
  left: 60px !important;
}


.the-sun img {
  width: 250px !important;
  height: 250px !important;
}

.bottom-logo-name {
  font-size: 35px !important;
}

.bottom-menu-block {
  margin-left: 30px !important;
}

  .floating-tg {
    width: 70px;
    height: 70px;
    border-radius: 70px;
    position:fixed;
    bottom: 180px;
    right: 4px;
    padding-top: 8px !important;
  }
  .write-to-us {
    font-size: 12px !important;
    line-height: 13px !important;
  }
  .float-tg-img img {
    width: 30px  !important;
    height: auto  !important;
  }

  .sun-block {
    width: 220px;
    height: 260px;
    position: relative;
  }

}


@media (max-width: 730px) {

  .teacher-name, .teacher-info {
    font-size: var(--wp--preset--font-size--medium) !important;
  }

  .block-header-text, .news-header {
    font-size: 25px !important;
  }


  .block-text {
    font-size: 16px !important;
    line-height: 20px;
  }

  .news-img-block {
    order: 2 !important;
  }

  .news-text-block {
    order: 1 !important;
  }

  .news-img-block {
    display: none;
  }

  .news-img.mobile {
    display: block;
  }

  .news-img.desktop {
    display: none;
  }

  .sun-and-list-block {
    order: 2;
  }
  .center-header-block {
    order: 1;
  }
  .pupils-block {
    order: 3;
  }
}


@media (max-width: 600px) {
   .adv-media figure img, .teacher-media{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .adv-text, .teacher-name, .teacher-info {
    font-size: var(--wp--preset--font-size--medium) !important;
  }

  .adv-media .wp-block-media-text__content {
    text-align: center;
  }

  .history-text-div {
     padding-left: 10px !important;
     padding-right: 10px !important;
     width: 100%;
  }

  .top-menu .wp-block-navigation-item__label, .top-list-items, .top-phone {
    font-size: 20px !important;
  }

  .post-image {
    width: 100% !important;
  }

  .page-content-text {
    font-size: var(--wp--preset--font-size--large) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .how-it-works-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
  } 


}



@media (max-width: 400px) {

  .news-img {
    width: 100% !important;
  }

  .wp-block-media-text {
     padding-left: 5px !important;
     padding-right: 5px !important;
  }


  .history-media-text .wp-block-media-text__content {
     padding-left: 5px !important;
     padding-right: 5px !important;

  }

  .learn-program-block .wp-block-media-text {
     padding-left: 20px !important;
     padding-right: 20px !important;

  }

  .adv-block {
     padding-left: 10px !important;
     padding-right: 10px !important;
  }


}

@media (max-width: 320px) {

.the-sun img {
  width: 200px !important;
  height: 200px !important;
}


}




@media (min-width: 901px) {

  .how-it-works-item {
    min-height: 415px;
  } 

  .program-item {
    min-height: 380px;
  }

  .floating-tg {
    width: 70px;
    height: 70px;
    border-radius: 70px;
    position:fixed;
    bottom: 20px;
    right: calc(50% - 470px);
    padding-top: 3px !important;
  }
  .write-to-us {
    font-size: 12px !important;
    line-height: 13px !important;
  }
  .float-tg-img img {
    width: 30px  !important;
    height: auto  !important;
  }

}
