*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* border: 2px solid red; */
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

body {
  background-color: #00000000;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  /* border: 2px solid rgb(0, 255, 64); */
  margin: 0;
  padding: 0;
  /* border: 2px solid red; */
}

a {
  color: #ffffff !important;
  text-decoration: none;
}

header {
  display: flex;
  flex-direction: row;
  width: 450px;
  margin: 0 auto;
  background-color: #0d5c9c;
}

footer {
  width: 450px;
  margin: 0 auto;
  padding: 15px;
  background-color: #0d5c9c;
  font: 400 10px/1.2 "Oswald", system-ui;
  text-align: center;
  /* border: 2px solid red; */
}


.logo {
  max-height: 80px;
  max-width: 100%;
}

.logo-container {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  width: 30%;
  /* height: 80px; */
}

.site-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
   /* border: 2px solid red; */
   padding-right: 25px;
}

.main-container {
  display: flex;
  flex-direction: row;
  width: 450px;
  margin: 0 auto;
}

.left-menu {
  background-color: #0d5c9c;
  width: 30%;
  display: flex;
  justify-content: center;
}

.right-content {
  background-color: #0d5c9c;
  width: 70%;
  display: flex;
  justify-content: center;
}

.left-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* border: 2px solid red; */
}

.left-menu li {
  margin-top: 20px;
  margin-bottom: 30px;
  /* border: 2px solid red; */
  text-align: left;
  font-weight: 400;
}

.displayed {
  border: 2px solid #ffffff;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffeb3b;
  /* padding-top: 500px;
    padding-top: 0px; */
}

h3 {
  /* padding-left: 130px; */
  /* padding-top: 30px; */
  padding-bottom: 5px;
  color: #ffeb3b;
  /* border: 2px solid red; */
  text-align: center;
  width: 200px;
  font-weight: 400;
}

.right-content div {
  display: none;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* Подсветка активной вкладки */
.left-menu a.active {
  font-weight: bold;
  color: #ffeb3b !important;
  /* жёлтая подсветка */
  /* text-decoration: underline; */
  font-size: 1.1em;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  cursor: pointer;
  transform: scale(1.2);
  /* лёгкое увеличение при наведении */
}

.ticker {
  overflow: hidden;
  background: #0d5c9c;
  color: #fff;
  font: 700 24px/1.2 "Oswald", system-ui;
}

.ticker__track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-move 15s linear infinite;
}

.ticker__track::after {
  /* создаём вторую копию текста */
  content: " PAVLENTIY POWER PAVLENTIY POWER PAVLENTIY POWER";
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* половина, т.к. две копии */
}

/* Overlay фон */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;               /* приховано за замовчуванням */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Коли overlay активний */
#overlay.show {
  display: flex;
  opacity: 1;
}

/* Збільшена картинка */
#overlay img {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 20px #000;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анімація при показі */
#overlay.show img {
  transform: scale(1);
  opacity: 1;
}

