* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f0f13;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-text {
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 4px;
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.8rem;
  }
  .center-text {
    font-size: 2.5rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* Стили для навигационной панели */
.topnav {
    background-color: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 80px; /* Фиксированная высота */
}

/* Особые стили для логотипа */
.logo {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(80deg, #0077ff, #03f1de);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    padding: 0 10px;
    margin-right: 30px;
}

/* Стили для всех ссылок в навигации */
.topnav a {
    color: #00ff80;
    text-decoration: none;
    font-size: 17px;
    padding: 10px 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

/* Стили при наведении */
.topnav a:hover {
    color: #03f1de;
}

.topnav a:active {
    background-color: #cc00ff;
    color: rgb(98, 0, 255);
    border-radius: 8px;
}


.topnav a.logo::after {
    background-color: #cc00ff;
    color: rgb(212, 0, 255);
    
}



/* Секции должны начинаться ниже навигации */
.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Отступ сверху для компенсации фиксированного хедера */
    padding-bottom: 20px;
    box-sizing: border-box;

}

.content-box {
    width: 70%; /* Ширина 90% от родительского .page-section */
    max-width: 1300px; /* Максимальная ширина, например 800px */
    margin: 0 auto; /* Центрирует сам контейнер внутри .page-section */
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
    background-color: linear-gradient(80deg, #0077ff, #03f1de);

}

/* Заголовки */
h1 {
  display: block;
  font-size: 3.5em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(0, 255, 128);
  text-align: left;
}

h2 {
  display: block;
  font-size: 2em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

h3 {
  display: block;
  font-size: 2em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

h4 {
  display: block;
  font-size: 1em;
  margin-top: 1.33em;
  margin-bottom: 1.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

h5 {
  display: block;
  font-size: 0.83em;
  margin-top: 1.67em;
  margin-bottom: 1.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

h6 {
  display: block;
  font-size: 0.67em;
  margin-top: 2.33em;
  margin-bottom: 2.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

/* Основной текст */
p {
  display: block;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  font-family: sans-serif;
  font-size: xx-large;
  color: rgb(255, 255, 255);
  text-align: left;
}

/* Ссылки */
a {
  color: rgb(0, 0, 238);
  text-decoration: underline;
  cursor: pointer;
}

a:visited {
  color: rgb(1, 136, 247);
}

a:hover {
  color: rgb(0, 0, 238);
}

a:active {
  color: rgb(238, 0, 0);
}

/* Списки */
ul, ol {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

li {
  font-size:xx-large;
  display: list-item;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  text-align: left;
}

/* Жирный и курсив */
strong, b {
  font-weight: bold;
}

em, i {
  font-style: italic;
}

/* Код и предформатированный текст */
code, pre {
  font-family: monospace;
  font-size: 1em;
  color: rgb(255, 255, 255);
}

pre {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  white-space: pre;
}

/* Цитаты */
blockquote {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
  font-family: sans-serif;
  color: rgb(0, 0, 0);
  font-style: italic;
}


hr {
  border: none;
  height: 2px;
  background-image: linear-gradient(to right, #3700ff, #00eeff);
  margin: 20px 0;
}

footer {
  text-align: center;
  color: rgb(54, 54, 54)

}
