/* Landing Page Styles for Candy Crush */
:root {
  --primary-color: #ff69b4;
  --secondary-color: #f6851b;
  --dark-color: #85796b;
  --light-color: #f8e8ff;
  --text-color: #333;
  --white-color: #fff;
  --accent-color: #ff003d;
  --success-color: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  background-image: url('https://raw.githubusercontent.com/arpit456jain/Amazing-Js-Projects/master/Candy%20Crush/utils/bg.png');
  background-size: cover;
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Pacifico', cursive;
  color: var(--dark-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

section {
  padding: 60px 20px;
}

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

/* Header Component */
.header {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.nav ul {
  display: flex;
}

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

.nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 10px;
  border-radius: 20px;
}

.nav ul li a:hover {
  color: var(--primary-color);
}

#wallet-status {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s;
}

#wallet-status:hover {
  background-color: #e2761b;
  transform: scale(1.05);
}

#wallet-status.connected {
  background-color: var(--success-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 50px;
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 200px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.play-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.play-button:active {
  transform: translateY(1px);
}

/* About Section */
.about {
  background-color: var(--white-color);
  text-align: center;
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  padding: 0 30px;
  text-align: left;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  padding: 0 30px;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

/* Features Section */
.features {
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.feature-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* How to Play Section */
.how-to-play {
  background-color: var(--white-color);
  text-align: center;
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.how-to-play h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.step {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.play-now-container {
  margin-top: 40px;
}

/* Footer Component */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 60px 20px 20px;
  margin-top: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

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

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.footer h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

.footer-links ul li a {
  color: var(--light-color);
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-credits p {
  margin-bottom: 10px;
}

.footer-credits a {
  color: var(--primary-color);
}

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

/* MetaMask Overlay */
#metamask-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: white;
  font-family: "Montserrat", sans-serif;
}

#metamask-container {
  background-color: #222;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 500px;
  width: 80%;
  box-shadow: 0 0 20px rgba(255, 163, 0, 0.5);
}

#metamask-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

#metamask-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #f6851b;
}

#metamask-status {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

#metamask-connect-button {
  background-color: #f6851b;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

#metamask-connect-button:hover {
  background-color: #e2761b;
  transform: scale(1.05);
}

#metamask-connect-button:active {
  transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text {
    margin-bottom: 30px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
  }

  .logo {
    margin-bottom: 15px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav ul li {
    margin: 5px 10px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .feature-cards, .steps {
    flex-direction: column;
    align-items: center;
  }
}