:root {
  --bg-color: #000000;
  --text-color: #e0e0e0;
  --nav-bg: #1a1a1a;
  --footer-bg: #1e1e1e;
  --yellow_main: #EEB82E;
  --gray_main: #e3e5f1;
}

/* 1. Сброс базовых стилей */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;

  background-color: var(--bg-color);
  color: var(--text-color);
  opacity: 0;
  transition: opacity 0.6s ease;
/*select disabled*/
  /* -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; */
}

body.loaded {
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  color: var(--text-color);
  height: 65px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}


header #nav_top_id ul {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  gap: 20px;
}

header #nav_top_id ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

header #nav_top_id ul li a:hover {
  color: var(--text-color);
}


main {
  padding-top: 65px;
  padding-bottom: 90px;
  padding-left: 20px;
  padding-right: 20px;
}

h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 5px;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.optionListItem {
  color: var(--yellow_main);
  font-weight: bold;
}

.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

.center-horizontal {
  text-align: center;
  display: flex;
  justify-content: center;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Main page */
.center-page-content {
  min-height: calc(100vh - 45px - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#crypto-book-details {
  max-width: 1000px;
  width: 90%;
}


.crypto-card {
  max-width: 900px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 30px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.crypto-card h2 {
  color: #EEB82E;
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(238, 184, 46, 0.3);
  padding-bottom: 10px;
}

.crypto-card p {
  font-size: 1em;
  line-height: 1.6;
}

#intro-card #crypto_book_image {
  flex-shrink: 0;
  width: 200px;
}

#intro-card .text-content {
  flex-grow: 1;
}

/* Стили для Conclusion Card */
.conclusion-style {
  max-width: 900px;
  background-color: transparent;
  border: 2px solid #EEB82E;
  color: #f0f0f0;
  padding: 30px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: none;
}

.conclusion-style h2 {
  color: #EEB82E;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: none;
}

/* Стили для ссылок */
.force-yellow-link,
.force-yellow-link:link,
.force-yellow-link:visited,
.force-yellow-link:active {
  color: #EEB82E !important;
  text-decoration: none !important;
}

.force-yellow-link:hover {
  color: #FFD700 !important;
  text-decoration: underline !important;
}

/* Медиа-запросы */
@media (max-width: 600px) {
  .crypto-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #intro-card #crypto_book_image {
    margin-bottom: 20px;
  }
}


/* 5. FOOTER: Фиксация и центрирование */
#footer_main_id {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: 60px;
  box-sizing: border-box;
  text-align: center;
  padding: 0 15px;
  background-color: var(--footer-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer_main_id p {
  margin-right: 50px;
}

.page-title {
    color: var(--yellow_main, #EEB82E);
    font-size: 2.2rem; 
    margin-bottom: 25px;
    font-weight: bold;
}