
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(to bottom, #1a1a1a, #121212);
  line-height: 1.6;
}

section {
	margin-bottom: -100px;
}

/* Sekcje */
.section {
  padding: 60px 5%;
}

/* Nagłówki sekcji */
.header {
  font-family: 'VT323';
  font-size: 48px;
  text-align: center;
  margin-bottom: 40px;
}

/* NAWIGACJA */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  border: 2px solid #fff;
  padding: 10px 0;
  z-index: 1000;
	text-decoration: underline;
}

.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.top-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-family: 'Pixelify Sans', sans-serif;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.top-nav ul li a:hover {
  color: #f0a500;
}


/* HERO SECTION */
.hero-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 40px 0px 0px;
  background-color: #111;
  border: 3px solid #fff;
  overflow: hidden;
}

.hero-box {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 600px;
  overflow: hidden;
}

.hero-image {
  flex: 1 1 60%;
  max-width: 60%;
	margin-top: 80px;
  margin-left: -10px;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-text {
  flex: 0 0 50%;
  max-width: 50%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  text-align: right;
}

.hero-subtitle {
  font-family: 'VT323', monospace;
  font-size: 64px;
	text-align: center;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero-description {
  font-size: 24px;
  line-height: 1.6;
}

/* BOX CONTAINERS */

.box {
  background-color: #111;
  border: 2px solid #fff;
  padding: 40px 40px;
  margin: 20px auto;
 margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.07);
  max-width: 1200px;
  align-items: center;
  justify-content: center;
}

/* CIEKAWOSTKI */

.trivia-entry {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 20px auto;
  margin-bottom: 40px;
  padding: 50px 50px;
  border: 2px solid #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.07);
  background-color: #111;
}

.trivia-entry .text {
  flex: 1 1 60%;
  max-width: 66.666%;
  text-align: center;
  margin: 0;
  padding: 20px 50px;
}

.trivia-entry .image-mamut,
.trivia-entry .image-jaskinia,
.trivia-entry .image-lek {
  flex: 1 1 35%;
  max-width: 35%;
  height: auto;
  margin: 0;
  border: 2px dashed #777;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reversed {
  flex-direction: row-reverse;
}

.text {
  flex: 1 1 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
	padding: 40px 0 40px 0;
}

.text-left {
  flex: 1 1 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  margin: 0 auto;
	padding: 40px 0 40px 0;
}

.text-right {
  flex: 1 1 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  margin: 0 auto;
}

h3 {
	text-align: center;
}

.image-box,
.image-mamut,
.image-jaskinia,
.image-lek {
  flex: 1 1 35%;
  max-width: 350px;
  height: 400px;
  background-color: #333;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border: 2px dashed #777;
  margin: 0 auto;
}

.image-mamut {
  max-width: 627px;
  height: 418px;
}

.image-jaskinia {
  max-width: 664px;
  height: 442px;
}

.image-lek {
  max-width: 644px;
  height: 429px;
}

/* STOPKA */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #111;
  color: #eee;
  padding: 20px 20px;
  font-size: 12px;
  font-family: inherit;
  box-shadow: inset 0 4px 0 #222;
  gap: 20px;
}

.footer-box {
  flex: 1 1 140px;
  max-width: 180px;
  margin: 5px 10px;
  padding: 10px;
  border: 1px solid #333;
  box-shadow: 2px 2px 0 #000;
  background-color: #1a1a1a;
}

.footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 5px;
}

.footer-title {
  font-size: 12px;
  margin-top: 3px;
  color: #ccc;
}

.footer-box h3 {
  font-size: 14px;
  color: #f5f5f5;
  margin-bottom: 8px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin: 5px 0;
}

.footer-nav a {
  color: #66f;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ccf;
  text-shadow: 1px 1px 0 #000;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

/* ANIMACJE */

/* BOUNCE */
@keyframes pixel-bounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-5px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

.pixel-bounce {
  animation: pixel-bounce 3s steps(1) infinite;
}


@keyframes textBounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-0,2px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(0,2px); }
  100% { transform: translateY(0); }
}

.bounce-text {
  animation: pixel-bounce 3s steps(1) infinite;
}

/* MRUGANIE */

.eye-box {
  position: relative;
  width: 350px;
  height: 400px;
}

.eye {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease;
}

.eye.closed {
  opacity: 0;
}

@keyframes blink {
  0%, 90%, 100% {
    opacity: 0;
  }
  91%, 99% {
    opacity: 1;
  }
}

.eye.closed {
  animation: blink 3s infinite;
}

/* POJAWIENIE */

@keyframes teleport {
  0% {
    transform: scaleY(0.1);
    opacity: 0;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
  }
}

.teleport {
  animation: teleport 1s ease;
}

.shimmer-text {
  animation: shimmer 2s infinite;
}

/**/

@keyframes shimmer {
  0%   { color: white; }
  25%  { color: #00ffff; }
  50%  { color: #ff00ff; }
  75%  { color: #ffff00; }
  100% { color: white; }
}


/*AT MEDIA  PRZEJŚCIOWY*/

@media (max-width:850px) {
	.hero-container {
    padding: 60px 0 40px 0;
    margin: 20px auto;
    margin-top: 50px;
    border-width: 2px;
  }

  .hero-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
  }

  .hero-image {
    display: none;
  }

  .hero-text {
	max-width: 70vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  .hero-text img.pixel-bounce {
    max-width: 60%;
    height: auto;
  }

  .hero-subtitle {
    font-size: 18px;
    margin: 0;
  }

  .hero-description {
    font-size: 16px;
    max-width: 90%;
    line-height: 1.5;
  }
	
	.image-mamut,
  .image-jaskinia,
  .image-lek {
    width: 100%;
	  min-width: 250px;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
	
}


/* AT MEDIA */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  section {
    margin-bottom: -85px;
  }

  .text,
  .text-left,
  .text-right {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 10px;
  }
	
 .top-nav {
    padding: 6px 0;
    border-width: 1px;
  }

  .top-nav ul {
    gap: 15px;
  }

  .top-nav ul li a {
    font-size: 14px;
    padding: 4px 6px;
  }

  .hero-container {
    padding: 60px 0 40px 0;
    margin: 20px auto;
    margin-top: 50px;
    border-width: 2px;
  }

  .hero-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
  }

  .hero-image {
    display: none;
  }

  .hero-text {
	max-width: 70vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  .hero-text img.pixel-bounce {
    max-width: 60%;
    height: auto;
  }

  .hero-subtitle {
    font-size: 18px;
    margin: 0;
  }

  .hero-description {
    font-size: 16px;
    max-width: 90%;
    line-height: 1.5;
  }

  .top-nav ul {
    flex-wrap: wrap;
    gap: 20px;
  }

  .box.entry,
  .box.trivia-entry {
    flex-direction: column;
  }

  .box.entry.reversed,
  .box.trivia-entry.reversed {
    flex-direction: column-reverse;
  }

  .eye-box img {
    width: 100%;
    max-width: 300px;
  }

  .text {
    padding: 0 10px;
  }
	.header {
		font-size: 32px;
	}

  .image-mamut,
  .image-jaskinia,
  .image-lek {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .footer-box {
    flex: 1 1 100%;
    max-width: 300px;
    padding: 10px 0;
  }

  .footer-box:first-child img {
    display: block;
    margin: 0 auto;
  }

  #evolution .box.entry {
    display: flex  ;
    flex-direction: column  ;
    align-items: center  ;
    text-align: center  ;
    flex-wrap: nowrap; 
    gap: 40px;
    padding: 40px 20px 0 20px;
    margin-bottom: 0;
  }

  #evolution .box.entry .text {
    order: 1  ;
    width: 100%;
    max-width: 90vw;
    padding: 10px 10px 0px 10px;
    text-align: center;
  }

  #evolution .box.entry .eye-box {
    position: relative;
    order: 2  ;
    width: 100%;
    display: flex  ;
    justify-content: center  ;
    padding: 0;
  }

  #evolution .box.entry .eye-box img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 0 auto 0 auto;
    padding: 0;
  }

  .eye-box {
    margin-left: 70px;
  }

  #ciekawostki .box.trivia-entry {
    display: flex  ;
    flex-direction: column  ;
    align-items: center  ;
    text-align: center  ;
	  padding: 40px 20px 40px 20px;
    width: 100%;
  }

  #ciekawostki .box.trivia-entry .text {
    order: 1  ;
    padding: 10px 10px 0px 10px;
    width: 100%;
    max-width: 90vw;
  }

  #ciekawostki .box.trivia-entry img {
    order: 2;
    width: 80%  ;
    height: auto  ;
    max-width: 100%  ;
    object-fit: contain;
    display: block  ;
    margin: 10px auto;
  }

  .image-box,
  .image-mamut,
  .image-jaskinia,
  .image-lek {
    margin-bottom: 40px;
  }
}