/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #161616;
  color: #f1f1f1;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  padding: 0;
}

h1, h2, h3 {
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 2rem;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  margin-top: 4rem;
  animation: fadeIn 1.2s ease;
}

.logo {
  max-width: 280px;
  /*margin-bottom: 1rem;*/
  cursor: pointer;
}

.intro, .games, .about, footer {
  width: 100%;
}

.intro {
  animation: fadeIn 1.5s ease-in-out;
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  animation: fadeIn 2s ease 0.3s forwards;
  opacity: 0;
}

.game-card {
  background: #fff;
  color: #424242;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  overflow: hidden;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);  
}

.game-card img {
  width: 100%;
  display: block;
}

.game-card .info {
  padding: 1rem;
}

.game-card .info h3 {
  margin-bottom: 0.5rem;
  color: #424242;
  font-size: 1.2rem;
}

.game-card .info p {
  color: #727272;
  font-size: 0.95rem;
}

.btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.play-button {
  margin-top: 1rem;
}

.play-button img {
  width: 200px;
  margin: 0 auto;
  transition: transform 0.2s;
}

.play-button img:hover {
  transform: scale(1.05);
}

.about {
  max-width: 890px;
  margin: 2rem auto;
  padding: 1rem 0 1rem 0;
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

.about h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.about p {
  color: #aaa;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
  /*border-top: 1px solid #333;*/
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #f1f1f1;
  text-decoration: underline;
  font-size: 1rem;
}

/* Linki */
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

/* Animacje */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsywność */
html {
  font-size: 16px;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .games {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 13px;
  }
  .logo {
    max-width: 220px;
  }
  .game-card {
    width: 90%;
  }
  .about {
    width: 90%;
  }
}
