@charset "utf-8";
/* CSS Document */

body {
  background-image: url(./images/jellyfish2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-family:"Arial", sans serif; 
  margin: 0 auto;
  line-height: 1.5;
  background-attachment: fixed; 
  width: 100%;
  height: 100%;
  font-size: 20px
  }
  
body.loligo {
    background-image: url(./images/term7/squid.jpg);
    background-repeat: repeat;
    /* background-size: cover; */
    background-size: 200px 200px;
    background-position: center;
    font-family:"Arial", sans serif; 
    margin: 0 auto;
    line-height: 1.5;
    background-attachment: fixed; 
    width: 100%;
    height: 100%;
    font-size: 20px
    }
/* a:hover {
  color: #ffffff;
  }
  */

a {color: #e73ce1; /* Голубенький цвет при нажатии*/
  text-decoration: none; /* Убираем подчёркивание */
  font-weight: bold 
  }

a.icon-link {
    text-decoration: none;
    color: #2294e6;
  }

a.icon-link svg {
    margin-right: 8px;
    vertical-align: middle;
  }

/* Ниже пример использования */
/* <a href="#" class="icon-link">
  <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor">
    <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
    <polyline points="15 3 21 3 21 9"></polyline>
    <line x1="10" y1="14" x2="21" y2="3"></line>
  </svg>
  Внешняя ссылка
</a> */


a.cool-underline {
    color: #6c17c8;
    text-decoration: none;
    position: relative;
  }

a.cool-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #6c17c8;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

a.cool-underline:hover::after {
    transform: scaleX(1);
  }


a.button-link:hover {
  background-color: #27ae60; /* Темнее при наведении */
}

figcaption { text-align: center }
figure { margin-bottom: 50px }
nav {background-color:#147290;
     }
nav ul {
	 list-style-type: none;
	 margin: 0;
	 padding: 0;
	 background-color: #147290;
	 overflow: auto;   
         }
nav ul li { float: left }
nav ul li a {
    font-weight: bold; 
    display: block;
    color: #d3e0e6;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px

    }
    nav ul li a:hover {
      color: #ff356b}

div.column60 { width:60%; float:left }
div.column40 { width:40%; float:left }
div.back {width:80%; 
          background-color: #f1fcff;
          border-radius: 10px;
          padding: 50px;
          margin: 50px auto;
          overflow: hidden}

div.photo-container {
  display: flex;
  /* display: inline-block; */
  gap: 20px; /* Расстояние между фото */
  justify-content: center; /* Выравнивание по центру */
  position: relative;
  margin-bottom: 1%
  

}

div.photo-container img {
  max-width: 500px; /* Максимальная ширина */
  height: auto; /* Сохраняет пропорции */
  border-radius: 8px 8px 8px 8px;
  position: relative;
  margin: auto;
  

}


div.photo-container figcaption {
  margin-top: 10%; 
  font-style: italic;
  color: #220962;
  font-size: 14px;
  border-radius: 8px 8px 8px 8px;
  /* border-top: none; */
  background: #d5f9ff;
  padding: 2px;
  position: absolute; 
  bottom: 0;
  margin: auto;
  display: block;
}

pre code {
  display: block;
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  border-left: 4px solid #4299e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Стиль для скроллбара */
pre code::-webkit-scrollbar {
  height: 8px;
}

pre code::-webkit-scrollbar-track {
  background: #4a5568;
  border-radius: 0 0 4px 4px;
}

pre code::-webkit-scrollbar-thumb {
  background: #718096;
  border-radius: 4px;
}

div.image-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
}

img.gallery-img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease; /* Плавный переход */
  cursor: pointer;
}

img.gallery-img:hover {
  transform: scale(3.3); /* Увеличение на 10% */
}


figcaption {
  margin-top: 10px; /* Отступ сверху */
  margin-bottom: 20px; /* Отступ снизу */
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
  color: #666;
}