body {
  margin: 0 !important;
  padding: 2rem 5rem;
}

div#page {
  display: flex;
  flex-wrap: wrap;
  border-radius: 3px;
  overflow: hidden;
}

.site-branding {
  padding: 20px;
  text-align: center;
}

.site-header {
  width: 100%;
  background: #fff;
}

.site-main {
  padding: 20px 35px 0;
  margin-top: 0;
  width: 100%;
  background: #fff;
}

.entry-header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 19px;
}

.entry-title {
  margin: 10px 0;
  color: #5d6d82;
  line-height: 1.3;
}

.page-subtitle {
  line-height: 1.5;
  font-size: 16px;
}

a {
  outline: none !important;
}

.page-content, .entry-content, .entry-summary {
  margin: 0;
}

.entry-content p {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
.entry-content ul {
  padding: 0 0 0 20px;
  margin: 0;
}
.entry-content iframe {
  border: none;
}

.page-text {
  font-size: 16px;
  padding: 10px 0;
}
.page-text.border-top {
  border-top: 1px solid #ccc;
}

.main-navigation .menu-item a {
  display: block;
  text-decoration: none;
  padding: 15px 15px 15px 20px;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #5d6d82;
  background: #5d6d82;
  color: #fff;
  font-size: 18px;
}
.main-navigation .menu-item a:hover {
  background: #263859;
}
.main-navigation .menu-item.current-menu-item a {
  background: #263859;
}
.main-navigation .menu-item:last-child a {
  border-bottom: none;
}

/* tabs */
.tabs .button-group {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  list-style: none;
  position: relative;
  margin: -1px 0 0 -1px;
  padding: 0;
}

.tabs .button-group:after {
  content: "";
  display: block;
  clear: both;
}

.tabs .button-group .button {
  padding: 9px 15px;
  margin: 1px 5px 5px 1px;
  background: #5d6d82;
  color: #FFF;
  position: relative;
  border: 2px solid #5d6d82;
  text-align: center;
  cursor: default;
}

.tabs .button-group .button:not(.is-checked) {
  cursor: pointer;
}

.tabs .button-group .button:not(.is-checked):hover {
  background: #263859;
  border-color: #263859;
}

.tabs .button-group .is-checked {
  background: #FFF;
  color: #000;
  border-color: #263859;
}

/* flip-card */
.flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #fff;
  color: black;
}
.flip-card-front img {
  object-fit: cover;
  height: 200px;
}

.flip-card-back {
  background-color: #263859;
  color: white;
  transform: rotateY(180deg);
  padding: 15px;
}
.flip-card-back p {
  font-size: 14px;
}
.flip-card-back h4 {
  font-size: 17px;
  line-height: 1.3;
  margin: 5px 0 0;
}

.grid {
  margin: 5px 0;
}
.grid:after {
  content: "";
  display: block;
  clear: both;
}

.element-item {
  position: relative;
  float: left;
}
.element-item > * {
  margin: 0;
  padding: 0;
}

.no_image_card {
  background: #5d6d82;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
}

/* page-list-elements */
.page-list-elements {
  margin: 30px 0;
}

.page-list-elements-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ccc;
}

.page-list-elements-image {
  max-width: 350px;
  margin: 15px auto;
}

.page-list-elements-button {
  text-align: center;
}
.page-list-elements-button a {
  color: #fff;
  text-decoration: none;
  user-select: none;
  background: #6b778d;
  padding: 0.7em 1.5em;
  border-radius: 5px;
  display: inline-block;
}
.page-list-elements-button a:hover {
  background: #263859;
}

/* contact form */
.callback-form {
  margin: 20px 0 0;
}
.callback-form textarea {
  resize: none;
  height: 150px;
  padding-left: 15px;
}
.callback-form .submit-btn {
  background: #587aa5;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  height: 45px;
  width: 100%;
  cursor: pointer;
}
.callback-form .submit-btn:hover {
  background: #263859;
}
.callback-form.lesson_form {
  display: none;
}
.callback-form.lesson_form.show {
  display: block;
}

.callback-form-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.callback-form-line .wpcf7-form-control-wrap {
  width: 49%;
}
.callback-form-line .wpcf7-form-control-wrap input.wpcf7-text {
  width: 100%;
  padding-left: 15px;
}
.callback-form-line .wpcf7-form-control-wrap input.wpcf7-text.wpcf7-not-valid {
  border: 2px solid red;
}

.wpcf7 form .wpcf7-response-output {
  margin: 0 !important;
  text-align: center;
  border-color: red !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450 !important;
}

.wpcf7-not-valid-tip {
  display: none !important;
}

.share_lesson_btn {
  padding: 9px 15px;
  margin: 20px 0;
  background: #5d6d82;
  color: #FFF;
  position: relative;
  border: 2px solid #5d6d82;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}
.share_lesson_btn:hover {
  background: #263859;
  border-color: #263859;
}

/* back-top */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 5px;
  z-index: 1000;
}
#back-top a {
  display: block;
  background: url("../images/top.png") no-repeat scroll 0 0/100% auto rgba(0, 0, 0, 0);
  height: 50px;
  width: 50px;
  transition: all 1s ease;
  -webkit-transition-property: top, bottom;
  -webkit-transition-duration: 0.5s;
  opacity: 0.8;
  outline: none;
}
#back-top a:hover {
  position: relative;
  top: -1px;
  opacity: 1;
}
#back-top a:active {
  position: relative;
  top: 1px;
}

div#container {
  width: 100%;
  height: 640px;
  overflow: hidden;
  /* if you don't want a scrollbar, set to hidden */
  overflow-x: hidden;
  /* hides horizontal scrollbar on newer browsers */
  /* resize and min-height are optional, allows user to resize viewable area */
  min-height: 640px;
}

iframe#embed {
  width: 100%;
  /* set this to approximate width of entire page you're embedding */
  height: 850px;
  /* determines where the bottom of the page cuts off */
  margin-left: -2px;
  margin-top: -211px;
  overflow: hidden;
  /* resize seems to inherit in at least Firefox */
  -webkit-resize: none;
  -moz-resize: none;
  resize: none;
}

/* ---------- media css ---------- */
@media screen and (max-width: 800px) {
  body {
    padding: 1rem 0 2rem;
  }
}
@media screen and (max-width: 768px) {
  body {
    padding: 0 1rem 2rem;
  }

  .site-branding {
    text-align: center;
  }

  .site-header {
    width: 100%;
  }

  .site-main {
    width: 100%;
    margin-top: 20px;
    padding: 0 20px;
  }

  .entry-title {
    font-size: 1.5em;
  }
}
@media screen and (max-width: 576px) {
  .entry-content img {
    float: none;
    display: block;
    margin: 15px auto;
  }

  .tabs img {
    margin: 0;
  }

  .callback-form-line {
    margin-bottom: 0;
  }
  .callback-form-line .wpcf7-form-control-wrap {
    width: 100%;
    margin-bottom: 10px;
  }
}

/*# sourceMappingURL=custom.css.map */
