/* Reset */
* {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  font-family: "East Sea Dokdo", serif;
  font-weight: 400;
  font-size: 25px;
  background-color: hsl(195, 100%, 7%);
  background: url("fishbg.jpg") center no-repeat;
  background-size: cover;
  width: 100vw;
  height: 100vh;
}

body::-webkit-scrollbar {
  width: 12px; /* ширина scrollbar */
}
body::-webkit-scrollbar-track {
  background: #007bff; /* цвет дорожки */
}
body::-webkit-scrollbar-thumb {
  background-color: #020e1b; /* цвет плашки */
  border-radius: 20px; /* закругления плашки */
  border: 3px solid #007bff; /* padding вокруг плашки */
}

.tabs {
  width: 80%;
  margin: 20px auto;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #ccc;
}

.tab-button {
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 34px;
  outline: none;
  font-family: "East Sea Dokdo", serif;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  border-bottom: 2px solid #007bff;
  font-weight: bold;
}

.tab-content {
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
  padding-bottom: 0;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* Header */
.header {
  width: 100%;
  margin: auto;
  color: #ffffff;
  height: 70px;
  overflow: hidden;
}

.header .navbar {
  text-align: right;
  width: 100%;
  height: 30%;
  padding: 10px;
  padding-top: 12px;
}

.header .navbar ul {
  display: flex;
  width: fit-content;
  background: #0f11818f;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 25px;
}

.header .navbar ul li {
  display: inline-block;
  padding-right: 20px;
}

.header .navbar ul li a {
  padding: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
  text-transform: uppercase;
}

.header .subhead {
  height: 70%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logoSite {
  width: 130px;
  height: 130px;
  margin-right: 20px;
}

.logoSite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header .subhead .logo {
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 60px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 4px 6px #0f11818f;
}

.header .subhead .ads {
  width: 75%;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.fixed-block {
  z-index: 12414124;
  position: fixed;
  top: 80px;
  right: 200px;
  width: auto;
  padding: 10px;
  background-color: rgba(20, 20, 87, 0.8); /* Тёмный полупрозрачный фон */
  border: 2px solid rgba(0, 255, 255, 0.493); /* Тёмно-синяя рамка */
  box-shadow: 0 0 0.1em cyan, 0 0 0.1em cyan;
  display: flex;
  gap: 10px;
  border-radius: 8px;
}

/* Неоновая кнопка */
.custom-button {
  padding: 10px 15px;
  font-size: 16px;
  color: #d0eaff; /* Нежно-голубой цвет текста */
  background-color: #0e3d96; /* Темный фон кнопки */
  border: 1px solid rgba(0, 255, 255, 0.493); /* Тёмно-синяя рамка */
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.logoImg {
  position: absolute;
  top: 30px;
  left: 50px;
  width: 200px;
  height: 100px;
}

.logoImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Свечение и анимация при наведении */
.custom-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(10, 71, 163, 0.2), transparent 60%);
  transition: opacity 0.5s;
  opacity: 0;
}

.custom-button:hover::before {
  opacity: 1;
}

.custom-button:hover {
  color: #ffffff;
  background-color: rgb(53, 194, 194);
  box-shadow: 0 0 0.5em cyan, 0 0 0.5em cyan;
}

.custom-button:active {
  transform: scale(0.98);
}

/* Ссылка без подчеркивания */
a {
  text-decoration: none;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.videoCon {
  width: 700px;
  height: 450px;
  position: relative;
}

.menu {
  position: absolute;
  top: 70px;
  display: flex;
  justify-content: space-evenly;
  transform: translate(-50%, -50%);
  left: 50%;
}

.menu-item {
  margin-right: 10px;
  background: #333;
  padding: 10px;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #000;
  transition: all 0.3s linear;
  cursor: pointer;
}

video {
  pointer-events: none;
}

.menu-item:hover {
  background: #fff;
  color: #000;
}

.menu-item.active {
  background: #fff;
  color: #000;
}

.graphs-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: #100e857e;
  border: 2px solid #fff;
  border-radius: 20px;
}

.graph {
  color: #fff;
  text-align: center;
  margin: 10px;
  border: 1px dashed #fff;
  padding: 0 5px;
}

/* Container for cards */
.cards-container {
  display: none;
  width: 50%;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cards-container.active {
  display: flex;
  align-items: center;
}

/* Card styling */
.card {
  width: 100px;
  height: 100px;
  background-color: hsla(241, 71%, 31%, 0.877);
  border-radius: 10px;
  border: 1px solid #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  position: relative;
  padding-top: 10px;
}
h2 {
  margin: 4px;
}

.card img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  animation: rotateImage 5s infinite linear; /* Continuous rotation of image */
}

.card h2 {
  margin-top: 20px;
  font-size: 22px;
  color: #0ea851;
}

h3 {
  color: #0ea851;
  font-size: 17px;
}

.card p {
  padding: 0 20px;
  font-size: 16px;
  color: #fff;
}

/* Rotation effect on hover (card lifts up) */
.card:hover {
  transform: translateY(-10px) scale(1.05); /* Lift the card and make it slightly bigger */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card:nth-child(1):hover {
  transform: translateY(-12px) scale(1.06);
}

.card:nth-child(2):hover {
  transform: translateY(-14px) scale(1.07);
}

.card:nth-child(3):hover {
  transform: translateY(-16px) scale(1.08);
}

.card:nth-child(4):hover {
  transform: translateY(-18px) scale(1.09);
}

.card:nth-child(5):hover {
  transform: translateY(-20px) scale(1.1);
}

.card:nth-child(6):hover {
  transform: translateY(-22px) scale(1.11);
}

.card:nth-child(7):hover {
  transform: translateY(-24px) scale(1.12);
}

/* Animation for continuous rotation of the image */
@keyframes rotateImage {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

canvas {
  width: 300px;
  height: 210px !important;
}

.metric {
  background: #ffffff71;
  width: 600px;
  padding: 30px;
  border: 2px solid #fff;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 10px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#tab3 {
  background-color: #f8f9fa; /* светлый фон для выделения */
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px; /* скругленные углы */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* легкая тень для выделения */
  font-family: "Arial", sans-serif; /* шрифт для текста */
  color: #333; /* темный текст для лучшей читаемости */
  height: 750px;
  margin: 20px 0;
  overflow-y: scroll;
}

#tab3::-webkit-scrollbar {
  width: 12px; /* ширина scrollbar */
}
#tab3::-webkit-scrollbar-track {
  background: #007bff; /* цвет дорожки */
}
#tab3::-webkit-scrollbar-thumb {
  background-color: #020e1b; /* цвет плашки */
  border-radius: 20px; /* закругления плашки */
  border: 3px solid #007bff; /* padding вокруг плашки */
}

#tab3 h2 {
  font-size: 24px;
  color: #007bff; /* цвет заголовка */
  margin-bottom: 15px; /* расстояние между заголовком и текстом */
}

#tab3 p {
  font-size: 16px;
  line-height: 1.6; /* интерлиньяж для удобочитаемости */
  margin-bottom: 10px;
}

#tab3 p a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#tab3 p a:hover {
  color: #0056b3; /* цвет при наведении */
  text-decoration: underline; /* подчеркивание при наведении */
}
