* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #FFFFFF;
  background-color: #1A1A1A;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(25, 25, 25, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid #7f0000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #FFFFFF;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-right {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background-color: #1A1A1A;
  color: #cccccc;
  border: 1px solid #808080;
  padding: 8px 16px 10px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

    .nav-btn:hover {
        color: #FFFFFF;
        background-color: #660000;
        border-color: #cc0000;
    }

/* Hero Section with logo.png */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 70px;
}

.hero-logo {
  max-width: 450px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(127, 0, 0, 0.6));
  animation: pulse 3s infinite ease-in-out;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1.0);
  text-decoration: none;
  font-size: 16px;
  font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
}


.scroll-arrow {
  font-size: 18px;
  line-height: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

@keyframes pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(127, 0, 0, 0.6)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(127, 0, 0, 0.9)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(127, 0, 0, 0.6)); }
}

/* Games Section */
.games-section {
  width: 100%;
  background-color: rgba(25, 25, 25, 0.75);
  border-top: 1px solid #7f0000;
  padding: 60px 20px 80px 20px;
}

.games-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  container-type: inline-size; 
}

.game-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  border: 1px solid #404040;
  border-radius: 10cqw; 
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: #7F0000;
  box-shadow: 0 10px 40px rgba(127, 0, 0, 0.5);
}

.game-image-wrapper {
  width: 100%;
  position: relative;
  line-height: 0;
}

.game-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.02);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 20px 20px 20px;
  text-align: center;
  font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #bfbfbf;
  background: linear-gradient(to top, rgba(10, 10, 10, 1.0), rgba(10, 10, 10, 0.0));
  transition: all 0.3s ease;
}

.game-card:hover .game-title {
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(102, 0, 0, 0.95), rgba(102, 0, 0, 0.0));
}

/* Content Pages (Privacy Policy, Contacts) */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 50px 20px;
  flex: 1;
  width: 100%;
}

.content-box {
  background-color: rgba(25, 25, 25, 0.9);
  border: 1px solid #7f0000;
  border-radius: 50px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.content-box h1 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #FFFFFF;
  border-bottom: 2px solid #7f0000;
  padding-bottom: 10px;
}

.content-box h2 {
  font-size: 22px;
  margin: 30px 0 15px 0;
  color: #FFFFFF;
}

.content-box p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #E6E6E6;
}

.content-box ul {
  margin: 20px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-box li {
  font-size: 16px;
  line-height: 1.5;
  color: #DDDDDD;
}

.content-box email {
  margin-top: 10px;
  display: flex;
}

/* Footer */
footer {
  text-align: center;
  align-content: center; 
  height: 70px;
  background-color: rgba(25, 25, 25, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid #7f0000;
  font-size: 16px;
  color: #bfbfbf;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0 10px;
    height: 60px;
  }
  
  .header-logo {
    height: 30px;
  }

  .header-right {
    gap: 8px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 50px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-logo {
    max-width: 280px;
    width: 85%;
  }

  .games-section {
    padding: 30px 10px 60px 10px;
  }

  .games-container {
    gap: 25px;
  }

  .game-card {
    max-width: 100%;
  }

  .game-title {
    font-size: 21px;
    padding: 35px 10px 12px 10px;
  }

  .page-container {
    padding: 90px 10px 40px 10px;
  }

  .content-box {
    padding: 25px;
    border-radius: 30px;
  }

  .content-box h1 {
    font-size: 24px;
  }

  .content-box h2 {
    font-size: 18px;
  }

  .content-box p, .content-box li {
    font-size: 14px;
  }
}

