@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/Press_Start_2P/PressStart2P-Regular.ttf");
}

/* === Reset и базовые настройки === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* === Общий layout === */
body {
  text-align: center;
  background-color: #021b20;
  color: #e37fd3;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* === Ссылки === */
a:link {
  text-decoration: none;
  color: #808000;
}

a:visited {
  color: #0f7afc;
}

a:hover {
  color: #cf0000;
  text-decoration: underline;
}

a:active {
  color: #00aa00;
}

/* === Навигация === */
nav {
  font-family: "Press Start 2P", monospace;
  font-size: 30px;
}

/* === Заголовок === */
header h1 {
  font-family: "Courier New", monospace;
  line-height: 1;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* === Неоновый текст (класс neon-text) === */
.neon-text {
  font-size: 68px;
  color: #fff;
  text-shadow:
    0 0 10px #ff005e,
    0 0 20px #ff005e,
    0 0 40px #ff005e,
    0 0 80px #ff005e;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 5px #ff005e,
      0 0 10px #ff005e,
      0 0 20px #ff005e,
      0 0 40px #ff005e,
      0 0 80px #ff005e;
  }
  to {
    text-shadow:
      0 0 10px #ff80b3,
      0 0 20px #ff80b3,
      0 0 40px #ff80b3,
      0 0 80px #ff80b3,
      0 0 160px #ff80b3;
  }
}

/* === Rubik-линк (3D куб) === */
.rubik {
  position: relative;
  width: 150px;
  height: 50px;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 4s;
  transform: perspective(1000px) rotateX(0deg);
}

.rubik:hover {
  transform: perspective(1000px) rotateX(360deg);
}

.rubik span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 2px;
  transition: 0.5s;
  border: 2px solid #000;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.rubik:hover span {
  color: #fff;
  background: rgba(3, 169, 244, 0.8);
}

.rubik span:nth-child(1) {
  transform: rotateX(0deg) translateZ(25px);
}

.rubik span:nth-child(2) {
  transform: rotateX(90deg) translateZ(25px);
}

.rubik span:nth-child(3) {
  transform: rotateX(180deg) translateZ(25px);
}

.rubik span:nth-child(4) {
  transform: rotateX(270deg) translateZ(25px);
}

/* Позиционирование Rubik на главной */
article sub a.rubik {
  display: inline-block;
  margin-top: 190px;
}

/* === Футер и лицензия CC === */
footer {
  padding: 1px 0;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

footer a.cc-link {
  text-decoration: none;
  color: inherit;
}

footer img.cc-icon {
  max-width: 1em;
  max-height: 1em;
  margin-left: 0.2em;
  vertical-align: middle;
}

footer .brand-label img {
  height: 48px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

footer p {
  margin: 0;
}
