:root {
  --website-accent-color: #d2f4ea; 
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #white;
}

#breadcrumbs  a {
  text-decoration: underline;
  color: rgb(90, 90, 90);
}

#breadcrumbs {
  text-align: center;
  color: darkgray;
}

#tabs img {
  max-width: 30rem;
  width: -webkit-fill-available;
  height: auto;
}

#tabs table img {
  width: 100%
}

#tabs table {
  width: 100%;
}

#tabs ul {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
  text-align: center;
  flex-wrap: wrap;
  align-content: center;
}

#tabs ul li {
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 10px;
  background-color: #7567e0;
  transition: 0.2s;
  color: white;
}
#tabs ul li:hover {
  opacity: 0,9
  color: black;
  border: 1px solid grey;
  transition: 0.4s;
}

#tabs ul li a{
  color: inherit;
  text-decoration: none;
}


#tabs li.ui-tabs-active {
  background-color: floralwhite;
  color: black;
  border: 1px solid grey;
}

.content_box img {
  border-radius: 25px;
}

.news-section  a {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.resource a {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.social-media a {
  text-decoration: none;
  color: inherit;
  display: contents;
}


html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

.dropdown-toggle { outline: 0; }

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: var(--website-accent-color);
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.scrollarea {
  overflow-y: auto;
}


/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
  resize: vertical;
}

/* ==========================================================================
Author's custom styles
========================================================================== */

/* ==========================================================================
Helper classes
========================================================================== */

/*
* Hide visually and from screen readers
*/

.hidden,
[hidden] {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]::after {
    content: " (" attr(title) ")";
  }
  
  /*
  * Don't show links that are fragment identifiers,
  * or use the `javascript:` pseudo protocol
  */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  
  pre {
    white-space: pre-wrap !important;
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  /*
  * Printing Tables:
  * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
  */
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
Custom styles
========================================================================== */





.news-item {
  color: white;
  position: relative; 
  flex: 0 0 auto; 
  background-color: #4AA49E;
  border-radius: 25px;
  border: 1px solid;
  border-color: #D9D9D9;
  width: 18rem;
  overflow: hidden;
}

.news-item:hover {
  cursor: pointer;
}

.news-item:hover .news-item-read {
  background-color: white;
  transition: 0.5s;
}

.news-item:hover .news-item-read img{
  transform: translateX(5px);
  transition: 0.5s;
}

.news-item:hover .news-photo {
  transition: 0.5s;
  transform: scale(1.1);
}

.news-item-read {
  color: black;
  border-radius: 25px;
  background-color: beige;
  display: inline;
  width: 6.5rem;
  margin: 1rem;
  padding: 10px 0px 10px 10px;
}

.news-item-read:hover {
  background-color: white;
  cursor: pointer;
  transition: 0.5s;
}
.news-item-read:hover img{
  transition: 0.5s;
  transform: translateX(5px);
}

.news-item-read img{
  transition: 0.3s;
  transform: translateX(0px);
  vertical-align: text-top;
}

.news-date {
  color: black;
  margin: 1rem;
}

.news-photo {
  scale: 1;
  transition: 0.3s;
  height: 10rem;
  object-fit: cover;
  overflow: hidden;
}

.divider {
  border: 1px solid;
  border-color: gray;
  margin: 1rem;
  width: 75%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.dropdown-menu {
  animation: dropdown_show 0.5s;
}

/* .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* remove the gap so it doesn't close */
/* } */

@keyframes dropdown_show {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal{
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: 1s all ease;
}
.reveal-in-section{
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: 1s all ease;
  transition-delay: 100ms;
}



.reveal-on-load{
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: 1s all ease;
}

.reveal-on-load.active{
  transform: translateY(0);
  opacity: 1;
}
.reveal-in-section.active{
  transform: translateY(0);
  opacity: 1;
}


.reveal.active{
  transform: translateY(0);
  opacity: 1;
}

.resource {
  transition: 0.2s;
  padding: 0.5rem;
  border: 4px solid transparent;
}

.resource:hover {
  border-color: var(--website-accent-color);
  cursor: pointer;
  transition: 0.4s;
  border-radius: 20px;
  border-style: solid;
}

.resource:hover div h5{
  text-decoration: underline;
  transition: 0.4s;
}

.resource div h5{
  text-decoration: none;
  transition: 0.4s;
}

.resource:hover img {
  scale: 1.07;
  transition: 0.4s;
}

.resource img {
  scale: 1;
  transition: 0.2s;
}

/* pc breakpoint */

@media only screen and (min-width: 768px) {
  .resources-section {
    width: 80%;
  }
}

/* mobile breakpoint */

@media only screen and (max-width: 768px) {
  .resources-section {
    width: 100%;
  }
}

.social-media div:hover img{
  scale: 1.2;
  transition: 0.4s;
}

.social-media div:hover{
  cursor: pointer;
  text-decoration: underline;
}

.social-media div:active img {
  scale: 1;
  transition: 0.001;
}

.social-media div img{
  scale: 1;
  transition: 0.2s;
}

.footer-logo:hover {
  cursor: pointer;
  transition: 0.4s;
  scale: 1.2;
}

.footer-logo {
  scale: 1;
  transition: 0.2s;
}

.footer-child {
  z-index: 2;
  position: fixed;
  bottom: 0;
  left: 30px;
  transition: 1s;
}

.carousel-background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat; 
  position: absolute;
  bottom: 0;
  left: 0; 
  right: 0;
  top: 0;

  background-color: #8e4d4d;
}

.carousel-container {
  margin-top: 10rem;
}

.mandatory-scroll-snapping::-webkit-scrollbar {
  display: none;
}


#resources {
  margin: 2rem 0;
}

.scroll-section.secondary {
  background-color: white;
  overflow: hidden;
}

.scroll-section.main {
  overflow: hidden;
}

.scroll-down-arrow {
  margin-bottom: 2rem;
  animation-name: jump;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  display: flex;
  align-items: center;
}

.welcome-text div img:hover {
  scale: 1.04;
  transition: 0.4s;
}

.welcome-text div img {
  scale: 1;
  transition: 0.2s;
}

@keyframes jump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.news-item.org div h4 {
  /* font-style: italic; */
  font-size: 1.2rem;
}

.news-item.org {
  background-color: #7c80d4;
  width: 20rem;
  transition: 0.2s;
}


.news-item-read.org {
  background-color: #b3b6ef;
  transition: 0.4s;
}

.news-item.org:hover .news-item-read.org {
  width: 20rem;
  background-color: white;
  transition: 0.4s;
}

/* district custom styles */

#district .news-item-read.org {
  background-color: #b3b6ef;
}

#district .news-item.org:hover {
  background-color: #6e73d9;
  transition: 0.4s;
}

#district .news-item.org:hover .news-item-read.org {
  background-color: white;
}

#district .news-item.org {
  background-color: #7c80d4;
}

/* end district custom styles */


/* region custom styles */

#region .news-item.org {
  background-color: #8EA7E9;
}

#region .news-item-read.org {
  background-color: #E5E0FF;
}

#region .news-item.org:hover {
  background-color: #7286D3;
  transition: 0.4s;
}

#region .news-item.org:hover .news-item-read.org {
  background-color: white;
}

/* end region custom styles */

/* republic custom styles */

#republic .news-item.org {
  background-color: #5871ee;
}

#republic .news-item-read.org {
  background-color:  #a0aef7;
}

#republic .news-item.org:hover {
  background-color: #4e65d5;
  transition: 0.4s;
}

#republic .news-item.org:hover .news-item-read.org {
  background-color: white;
}

/* end republic custom styles */


.org-news-choose {
  gap: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.org-news-choose h5 {
  margin-bottom: 0;
  transition: 0.2s;
  padding: 1rem;
  border-radius: 25px;
  border: 1px solid grey;
}

.org-news-choose h5:hover {
  cursor: pointer;
  text-decoration: underline;
  background-color: #e8e7e7;
  transition: 0.4s;
}

.org-news-choose h5.active#district-title {
  background-color: #6e73d9;
  border-radius: 25px;
  padding: 1rem;
  color: white;
  transition: 0.4s;
}

.org-news-choose h5.active#region-title {
  background-color: #8EA7E9;
  border-radius: 25px;
  padding: 1rem;
  color: white;
  transition: 0.4s;
}

.org-news-choose h5.active#republic-title {
  background-color: #5871ee;
  border-radius: 25px;
  padding: 1rem;
  color: white;
  transition: 0.4s;
}

.news-section.org.d-flex {
  transform: translateY(0px);
  opacity: 1;
  transition: 1s;
}

.news-section.org.d-none {
  transform: translateY(-30px);
  opacity: 0;
  transition: 1s;
}

.appearance {
  opacity: 0;

}

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

.welcome-text {
  background-color: #ffddbb;
  padding: 1rem;
  border-radius: 20px;
}

.welcome-text:hover {
  
  transition: 0.4s;
}


@media only screen and (max-width: 1200px) {
  .navbar-hide {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .org-news-choose {
    gap: 0.5rem;
    overflow-x: scroll;
    
  }

  .org-news-choose {
    justify-content: start;
  }

}

.carousel-inner {
  height: 100%;
}

.carousel-icons {
  position: relative;
  
}

.carousel-icons img{
  position: absolute;
  z-index: 3;
  width: 10rem;
  animation: 3s ease-in-out 0s infinite jump;
  opacity: 70%;
}

@media only screen and (max-width: 1024px) {
  .carousel-icons img{
    display: none;
  }
}

@media only screen and (max-width: 1800px) {
  .carousel-icons img{
    width: 8rem;
    opacity: 50%;
  }
}

.carousel-item {
  height: 100%;
}

.carousel-icons img:nth-child(1) {
  top: 7vh;
  left: 3vw;
  rotate: 10deg;
  animation-delay: 0s;
}
.carousel-icons img:nth-child(2) {
  top: 35vh;
  left: 3vw;
  rotate: 30deg;
  animation-delay: 0.5s;
}
.carousel-icons img:nth-child(3) {
  top: 60vh;
  left: 3vw;
  rotate: 30deg;
  animation-delay: 1s;
}
.carousel-icons img:nth-child(4) {
  top: 7vh;
  right: 3vw;
  rotate: 30deg;
  animation-delay: 0.5s;
}
.carousel-icons img:nth-child(5) {
  top: 35vh;
  right: 3vw;
  rotate: 30deg;
  animation-delay: 1s;
}
.carousel-icons img:nth-child(6) {
  top: 60vh;
  right: 3vw;
  rotate: 30deg;
  animation-delay: 3s;
}

.side-images {
  position: relative;
  z-index: 1;
}

.side-images img{
  position: absolute;
  top: 50vh;
  z-index: 2;
  animation: jump 3s ease-in-out 0s infinite;
}

.side-images img:nth-child(1) {
  left: 0;
  margin-left: 3rem;
}

.side-images img:nth-child(2) {
  right: 0;
  margin-right: 3rem;
  animation-delay: 1s;
}

@keyframes jump {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

#scrollToResources {
  font-size: 5rem;
  height: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* laptop breakpoint */


@media only screen and (max-width: 1650px) {
  .side-images {
    display: none;
  }
}

@media only screen and (max-width: 2050px) {
  .side-images img {
    width: 9rem;
  }
}
@media only screen and (max-width: 1800px) {
  .side-images img {
    width: 7rem;
  }
}
@media only screen and (max-width: 425px) {
  #scrollToResources {
    font-size: 3rem;
  }
}

.org-slider div {
  display: flex;
}

.news-description {
  font-size: small;
}

.news-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
  border-radius: 25px;
}

.news-read-more img {
  margin-bottom: 5px;
  width: 60px;
  border-radius: 100%;
  border: 1px solid transparent;
  padding: 10px;
  background-color: rgba(233, 126, 126, 0.4);
  transition: 0.2s;
}

.news-read-more:hover {
  background-color: #f6e5dc;
  transition: 0.4s;
}

.section_menu ul{
  text-align: center;
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.section_menu ul li {
  color: #000;
  border: 1px lightgray solid;
  border-radius: 25px;
  padding: 10px;
  background-color: #fffffb;
  transition: 0.4s;
  width: 20rem;
  height: 10rem;
  align-items: center;
  justify-content: center;
}
.section_menu ul li:hover img {
  transition: 0.2s;
  margin-right: 0;
  text-decoration: underline;
}

.section_menu ul li img {
  height: 100px;
  transition: 0.2s;
  margin-right: 1rem;
  text-decoration: underline;
}

.section_menu ul li a {
  text-decoration: none;
  color: inherit;
}

.menu-tools a {
  display: block;
  text-decoration: none;
  color: #000;
  transition: 0.4s;
  padding: 5px 0;
}

.menu-tools div a {
  display: inline;
  padding: 5px 5px;
}

.menu-tools div {
  padding: 5px 0px;
}

.menu-tools a:hover {
  background-color: var(--website-accent-color);
  border-radius: 0.375rem;
  transition: 0.2s;
}

.menu-tools span.lng_active {
  background-color: var(--website-accent-color);
  border-radius: 0.375rem;
  padding: 5px 5px;
}


@media only screen and (max-width: 425px) {
  .carousel-container {
    margin-top: 7rem;
  }
  
}

.hide {
  opacity: 0;
  transition: 0.4s;
}

@media screen and (max-width: 425px){
  .resources-row  h5{
    font-size: 1.10rem;
  }

  /* fix for chrome search bar */
  .footer-registration {
    margin-bottom: 3.7rem;
  }
  #scrollToResources {
    height: 15%;
  }
}

.news-item .card-title {
  display: -webkit-box;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    height: inherit;
    width: inherit;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  font-size: 24px;
}

.youtube object {
  max-width: 40rem;
  width: 100%;
}

#tabs table {
  margin: 0 auto;
}

.site_search {text-align: center; margin-bottom: 10px; /* компенсируем padding 6px в стилях Яндекс.Поиска */}
#ya-site-form0 .ya-site-form__search-input{padding:0!important;}
.ya-site-form__input-text {
  font-size: 1rem !important;
 line-height: 24px; border: 1px solid lightgray !important; box-sizing: border-box; padding: 0 12px; height: 40px; border-radius: 10px 0px 0px 10px; border-right: none !important; }

.ya-site-form__submit {
    display: block;
    background: url(sm.aspx?guid=6223) 50% no-repeat;
    text-indent: -9999px;
    width: 40px !important; line-height: 24px;
    margin: 0 !important;
    border: 1px solid lightgray; 
    box-sizing: border-box;
    border-left: none;
    border-radius: 0px 10px 10px 0px;
    height: 40px;
}

.ya-site-form__submit:hover {
}

.site_search {
  
  width: 80%;
  margin: 0 auto;
}

.ya-site-suggest {
  display: none;
}

#ya-site-form0 .ya-site-form__form * {
    font-size: 1rem !important;
}


@media screen and (max-width: 768px) {
  .navbar .container {
    flex-wrap: nowrap;
  }
  .navbar-title-upper {
    font-size: 0.8rem;
  }
  .navbar-title-lower {
    font-size: 1rem;
  }

  .ask-question {
    justify-content: center;
  }
}


.ask-question {
  border-radius: 25px;
  background-color: #f2a2a2;
  color: black;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 6rem;
  max-width: 60rem;
  transition: 0.2s;
  border: 5px solid transparent;
}

.ask-question i {
  font-size: 5rem;
  background-color: #f5c7b4;
  border-radius: 100%;
  transition: 0.2s;
  display: flex;
}

.ask-question h4 {
  margin-bottom: 0;
  text-align: center;
}

.ask-question:hover {
  background-color: transparent;
  border: 5px solid lightcoral;
  transition: 0.3s;

}

.ask-question:hover h4 {
  text-decoration: underline;
}


.ask-question:hover i {
  scale: 1.2;
  transition: 0.5s;
}

.resource:nth-child(1) div:first-child {
  background-color: #B2DE9D;
}
.resource:nth-child(2) div:first-child {
  background-color: #E2B3A9; 
}
.resource:nth-child(3) div:first-child {
  background-color: #F1DF9D;
}
.resource:nth-child(4) div:first-child {
  background-color: #B6FBEA;
}
.resource:nth-child(5) div:first-child {
  background-color: #BFB6FB;
}
.resource:nth-child(6) div:first-child {
  background-color: #EBC1FF; 
}

.social-media.left div:nth-child(1) img{
  background-color: #ECAB96;
}
.social-media.left div:nth-child(2) img{
  background-color: #FC9892;
}
.social-media.left div:nth-child(3) img{
  background-color: #91DFF8;
}

