@charset "UTF-8";
body {
  background-color: black;
 
}

#oval-scene{
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  background-image: url("./../images/40.jpg");
  transition: opacity 0.25s ease;
}

.container {
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}
    
.rect {
  width: 680px;
  height: 1600px;
  border: 3px solid  #199237;
  border-radius: 50%;
  position: absolute;
  color: #300d0d;
}

.oval {
  width: 200px;
  height: 560px;
  color: antiquewhite;
  border: 3px solid rgba(255, 255, 255, 0.575);
  border-radius: 50%;color: #300d0d00;
  position: absolute;
  background-color: transparent;
}

.rect:nth-child(1).animate {
	animation: rotateCounterClockwise 6s linear infinite;
  }
  
  .rect:nth-child(2).animate  {
	animation: rotateCounterClockwise 6s linear infinite;
  }

  .rect:nth-child(3).animate  {
    animation: rotateCounterClockwise 6s linear infinite;
    }
  .rect:nth-child(4).animate  {
      animation: rotateCounterClockwise 6s linear infinite;
      }
  .rect.animate  {
        animation: rotateCounterClockwise 6s linear infinite;
        }


@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
h2 {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 35px;
	text-align: center;
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
  color: #199237;
}
h3 {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 25px;
	text-align: start;
	position: relative;
  color: #c02525;
  margin-bottom: 30px;
}
h4 {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 16px;
	text-align: start;
	position: relative;
  color: #000000;
}
h5 {
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 30px;
	text-align: center;
	position: absolute;
  width: 100%;
	top: 40%;
  color: #ffffff;
}
p {
  font-size: 16px;
  text-align: left;
  position: relative;
  margin-bottom: 10px;
  margin-top: 15px;
  margin-left: 20px;
  color:  #199237;
  
}

p1 {
  font-size: 16px;
  text-align: left;
  position: relative;
  /* margin-bottom: 10px;
  margin-top: 15px; */
  margin-left: 20px;
  color:  #199237;
}

p2 {
  font-size: 18px;
  text-align: left;
  position: relative;
  /* margin-bottom: 10px;
  margin-top: 15px; */
  margin-left: 20px;
  color:  #199237;
}



.bar-container{
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  display: flex;
}

#topBar {
  background-color: #000000;
  color: #199237;
  height: 4rem;
  position: fixed;
  text-align: center;
  top: 0rem;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: top 0.9s;
}

#bottomBar {
  background-color: #000000;
  color: #199237;
  position: fixed;
  height: 4rem;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transition: bottom 0.5s;
}

#infoPanel {
  background-color: #ffffff;
  padding: 20px;
  position: fixed;
  width: 60%;
  bottom: -100%;
  left: 30%;
  height: 38rem;
  transform: translateX(-50%);
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease-in-out;
  z-index: 9997;
}

#infoPanel.show {
  bottom: 3rem; /* Розташування над bottomBar */
}
#topBar.clicked {
  background-color: white;
  color: black;
  transition: background-color 0.5s, color 0.5s;
}
#topBar2 {
  background-color:#199237;
  color: #ffffff;
  height: 4rem;
  text-align: center;
  position: absolute;
  top: 0; /* Виправлено позиціювання */
  top: -3rem; /* Висота topBar */
  left: 0;
  right: 0;
  z-index: 9999;
  position: fixed; /* Абсолютне позиціонування */
}

#infoPanel h2 {
	margin-top: 40; 
}

.inner-panel-container {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 10px;
}

.section-panel {
  grid-column: 1 / 2;
}

.sidebar {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote blockquote {
  font-style: italic;
  font-size:  15px;
  line-height: 1;
  border-left: 3px solid #000000;
  padding-left: 10px; /* Зменшено padding всередині блоку цитати */
  margin: 5px;
  margin-left: 20px;
}


.images img {
  width: 65%;
  height: auto;
  padding: 5px;
  position: right;
  align-self: right;
  box-sizing: border-box;
  margin-top: 20px;
  margin-left: 20px;
}

.images img:not(:last-child) {
  margin-bottom: 20px;
}
#bottomBar.top{
  top:4rem;
}


@media screen and (max-width: 800px) {
  #topBar,
  #bottomBar {
    height: 6rem;
  }

  .inner-panel-container{
    grid-template-columns: 100%;
  }

  #bottomBar {
    top: calc(100% - 6rem);
  }

  #bottomBar.top {
    top: 6rem;
  }
  #infoPanel{
    width: 100%; /* Збільшуємо ширину для маленьких екранів */
    height: 75%; /* Обмежуємо висоту для маленьких екранів */
    max-height: 80vh; /* Максимальна висота для маленьких екранів */
    left: 48%;
    overflow-y: auto;
    padding: 10px;
  }
  #infoPanel.show {
    bottom: 6rem; /* Розташування над bottomBar на маленьких екранах */
  }
  #topBar2 {
    background-color:#199237;
    color: #ffffff;
    height: 5rem;
    left: 0;
    right: 0;
    z-index: 9999;
    position: fixed; /* Абсолютне позиціонування */
  }
  .rect {
    width: 340px; /* Зменшення ширини овалів */
    height: 800px; /* Зменшення висоти овалів */
  }
    /* Зменшення розміру шрифтів */
    h2 {
      font-size: 25px;
  }

  h3 {
      font-size: 18px;
  }

  h4 {
      font-size: 12px;
  }

  h5 {
      font-size: 20px;
      text-align: center;
	position: absolute;
  width: 100%;
	top: 40%;
  margin-top: 20px;
  }

  p {
      font-size: 12px;
      padding-top: 15px;
      /* margin-left: 10px;
      margin-top: 30px; */
  }

  p, p1 {
    font-size: 12px;
    padding-top: 15px;
    /* margin-left: 10px;
    margin-top: 30px; */
}


  .quote blockquote {
      font-size: 12px;
  }

  .section-panel{
    padding-left:20px;
    padding-right: 20px;
  }

  .sidebar{
    grid-column: 1/2;
    padding-left: 20px;
    padding-right: 20px;

  }

  /* Зменшення розміру зображень */
  .images img {
    margin-top: 30px;
      width: 100%;
  }
}