/* General Styles */
body {
  background-color: #282c34;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.blockfun-header {
  position: relative;
  text-align: center;
  color: white;
  background: url('background-image.jpg') no-repeat center center/cover; /* Add your background */
  height: 65vh; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-section {
  position: absolute;
  top: 15%;
  left: 10%;
}

.logo {
  max-width: 300px;
  height: auto;
}

@media screen and (max-width: 1024px) {
  .logo-section {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
}

.welcome-text {
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: 500px;
  width: 80%;
}

.welcome-text h1 {
  margin: 0;
  font-size: 2.5rem;
}

.welcome-text p {
  font-size: 1.2rem;
  margin-top: 10px;
  line-height: 1.6;
}

.header-bar {
  background-color: #75ef2a;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-left: 10%;
  margin-right: 10%;
  border-radius: 15px;
  margin-bottom: 30px;
}

.header-text {
  color: #3c2f1b;
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px); /* Apply the blur effect */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  width: 400px;
}

.popup-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #ffffff;
}

.popup-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.popup-content ul li {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
  background: #2a2a2a;
  color: #fff;
  transition: background-color 0.3s;
}

.popup-content ul li:hover {
  background: #444;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #b50c0c;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background: #c9681e;
}

.category-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  white-space: nowrap;
  width: 80%;
  margin-left: 10%;
  flex-wrap: wrap; /* Allow wrapping of items */
}

.category-card {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 45%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;

  &:hover {
    background-color: #3a3a3a;
    transform: translateY(-5px);
  }
}

.ranks h2 {
  color: #f82727;
}

.coins h2 {
  color: #d7b718;
}

.category-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.category-card p {
  margin: 0;
  font-size: 1rem;
  color: #ccc;
}

.category-card img {
  max-width: 100px;
  margin-top: 10px;
}

.ranks {
  border-left: 5px solid red;
}

.coins {
  border-left: 5px solid yellow;
}

.keys {
  color: #75ef2a;
  border-left: 5px solid rgb(23, 190, 4);
}

.info-section {
  display: flex;
  justify-content: space-evenly;
  padding: 20px;
  gap: 2px;
  text-align: center;
  flex-wrap: wrap;
}

.info-card {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 20px;
  width: 36%;
  border: 2px solid rgb(0, 255, 38);
  margin-bottom: 30px;
}

.info-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.icon {
  font-size: 1.2rem;
  margin-right: 5px;
}

.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-left: 50px;
  margin-right: 100px;
}

.footer-left {
  max-width: 300px;
  margin-right: 70px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-top: 20px;
}

.footer-left h3 {
  margin: 0;
  color: #75ef2a;
  font-size: 1.5rem;
}

.copy-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #75ef2a;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.copy-btn:hover {
  background-color: #40aab0;
}

.footer-left p {
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  color: #cccccc;
}

.footer-center {
  text-align: center;
  margin-top: 20px;
}

.footer-links h4 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.social-row {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center; /* Centers the social links in a row */
  gap: 20px; /* Adds space between the links */
  margin: 0;
}

.social-row li {
  display: flex;
  align-items: center; /* Align icons and text in a row */
}

.social-row a {
  text-decoration: none;
  color: #10d5ef; /* Matches the yellow color from the design */
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding-top: 10px;
  gap: 5px; /* Spacing between the icon and text */
  transition: color 0.3s ease;
}

.social-row a:hover {
  color: #75ef2a;
  text-shadow: 0 0 20px #2aefe5;
}

.social-row i {
  font-size: 1.2rem;
}

.footer-right {
  max-width: 500px;
  padding-left: 100px;
}

.footer-right h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-right p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #cccccc;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .header-bar {
    margin-left: 5%;
    margin-right: 5%;
  }

  .welcome-text {
    width: 40%;
    margin-right: 5%;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin-left: 500px;
    width: 80%;
  }

  .category-container {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }

  .category-card {
    width: 48%;
  }

  .info-card {
    width: 45%;
  }
}

@media screen and (max-width: 1024px) {
  .welcome-text {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    display: none;
  }
}

@media (max-width: 768px) {
  .blockfun-header {
    height: 50vh;
  }

  .welcome-text {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    display: none;
  }

  .category-card {
    width: 100%;
  }

  .info-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .blockfun-header {
    height: 40vh;
  }

  .category-card {
    width: 100%;
  }

  .info-card {
    width: 100%;
  }
}

@media screen and (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    gap: 20px;
  }

  .footer-left {
    max-width: 100%;
    text-align: center;
    margin: 0 auto; /* Centers the footer-left section */
  }

  .footer-logo {
    margin: 10px auto;
  }

  .footer-center {
    max-width: 100%;
    text-align: center;
  }

  .footer-right {
    max-width: 100%;
    text-align: center;
    padding: 0; /* Removes padding to keep it aligned */
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .social-row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links h4 {
    font-size: 1.5rem;
  }

  .social-row a {
    font-size: 0.9rem;
  }
}
