/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

:root {
  --primary-color: #0066cc;
  --primary-dark: #004c8c;
  --primary-light: #66c2ff;
  --accent-color: #ffcc00;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --background: linear-gradient(135deg, #0055a4 0%, #003366 100%);
  --card-bg: #0077cc;
  --card-hover: #0088ee;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

body {
  background: var(--background);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: rgba(0, 77, 153, 0.9);
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  color: var(--text-color);
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-dark);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
  padding-left: 20px;
}

.dropdown:hover .dropdown-content {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Main Content Styles */
main {
  padding: 40px 0;
}

/* Add these new styles for the hero section layout */
.hero-section {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.game-container {
  flex: 3;
  min-width: 300px;
}

.game-wrapper {
  background-color: var(--primary-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin: 0 auto;
}

.game-content {
  height: 600px; /* Increased height from 400px to 600px */
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.game-frame {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Game Overlay Styles */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.game-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.play-now-btn {
  position: relative;
  z-index: 11;
  background-color: var(--accent-color);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-now-btn i {
  font-size: 24px;
}

.play-now-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pixel-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

.game-title {
  text-align: center;
  z-index: 2;
}

.pixel-text {
  font-size: 48px;
  font-family: "Courier New", monospace;
  letter-spacing: 6px;
  color: white;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.game-footer {
  background-color: var(--primary-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-footer h3 {
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.fullscreen-btn {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.fullscreen-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* Hot Games Section Styles */
.hot-games-container {
  width: 350px;
  flex: 1;
  background-color: var(--primary-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding-bottom: 10px;
}

.hot-games-title {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 15px 20px;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.hot-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
}

.hot-game-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.hot-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background-color: var(--card-hover);
}

.hot-game-image {
  position: relative;
  overflow: hidden;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

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

.hot-game-card:hover .hot-game-image img {
  transform: scale(1.1);
}

.hot-game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  transition: var(--transition);
}

.hot-game-overlay i {
  font-size: 30px;
  color: var(--text-color);
  opacity: 0.9;
}

.hot-game-card:hover .hot-game-overlay {
  opacity: 1;
}

.hot-game-card p {
  padding: 8px 10px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Popular Games Section Styles */
.popular-games-section {
  margin-bottom: 50px;
}

.popular-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Games Section Styles */
.games-section {
  margin-top: 50px;
}

.section-title {
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 8px;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.load-more-btn {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.load-more-btn:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  transform: none;
}

.load-more-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-color);
  transition: transform 0.3s ease;
}

.load-more-btn:hover::after {
  transform: translateY(2px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background-color: var(--card-hover);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 120px;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  transition: var(--transition);
}

.play-overlay i {
  font-size: 40px;
  color: var(--text-color);
  opacity: 0.9;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.game-card p {
  padding: 12px 15px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive styles for games grid */
@media (max-width: 768px) {
  .games-grid,
  .popular-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .games-grid,
  .popular-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .game-card p {
    font-size: 12px;
  }
}

/* Footer Styles */
footer {
  background-color: var(--primary-dark);
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-links h3,
.footer-categories h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h3::after,
.footer-categories h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.footer-links ul,
.footer-categories ul {
  list-style: none;
}

.footer-links ul li,
.footer-categories ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-categories ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-categories ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 18px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Pages Styles */
.category-banner {
  background-color: var(--primary-dark);
  padding: 40px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.category-banner h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.category-banner p {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page Content Styles */
.page-content {
  background-color: var(--primary-dark);
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.page-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
}

.page-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.page-content h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--text-color);
}

.page-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-content ul,
.page-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-content a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

.page-content a:hover {
  text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 30px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent-color);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  justify-self: start;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Logo Link Style */
.logo-link {
  color: var(--text-color);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
  }

  .hot-games-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .hot-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-content {
    height: 500px; /* Updated from 450px */
  }

  .game-container {
    flex-direction: column;
    max-width: 700px;
  }

  .pixel-text {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .hot-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-content {
    height: 450px; /* Updated from 400px */
  }

  header .container {
    position: relative;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .dropdown-content {
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    margin-top: 10px;
  }

  .unblocked-games {
    flex-wrap: wrap;
  }

  .unblocked-game {
    width: calc(50% - 12.5px);
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-logo,
  .footer-links,
  .footer-categories,
  .footer-social {
    width: 100%;
  }

  .play-now-btn {
    font-size: 16px;
    padding: 12px 25px;
  }
}

@media (max-width: 576px) {
  .game-content {
    height: 400px; /* Updated from 350px */
  }

  .unblocked-game {
    width: 100%;
  }

  .pixel-text {
    font-size: 36px;
  }

  .pixel-text {
    font-size: 30px;
    letter-spacing: 3px;
  }

  .play-now-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Responsive Styles for Hot Games */
@media (max-width: 1024px) {
  .hot-games-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .hot-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hot-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .hot-game-image {
    height: 70px;
  }

  .hot-game-card p {
    font-size: 11px;
    padding: 6px 8px;
  }
}
