@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
  --color: #ffbb00;
  --hover: #ffea00;
  --footer-color: #ffbb00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #000;
  height: 100vh;
  background-position: relative;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/media/background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

#community-hero {
  background-image: url("../media/hero-background.jpg");
  width: 100%;
  height: 40vh;
  background-size: cover;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 14px;
  margin-top: 90px;
}

#community-hero h2 {
  letter-spacing: 15px;
}

#community-hero p {
  letter-spacing: 5px;
  font-size: 12px;
}

#community-hero p a:hover {
  color: #0357b7;
}

#community-hero h2,
#community-hero p {
  color: #fff;
  margin-bottom: 30px;
}

#community-form h2 {
  margin-top: 30px;
  text-transform: uppercase;
  text-align: center;
}

#community-form .tagline {
  text-align: center;
  margin: 20px;
}

#community-form .community-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#community-form .community-box {
  background-color: rgba(20, 27, 39, 0.9);
  border-radius: 12px;
  display: flex;
  padding: 20px;
  align-items: center;
  line-height: 24px;
  color: rgb(255, 255, 255);
  font-weight: 400;
  width: 40%;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

#community-form .community-box .col-1 {
  margin-left: 24px;
  width: 70%;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

#community-form .community-box img {
  display: block;
  height: 100px;
  width: 120px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#community-form .community-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 187, 0, 0.3);
  background-color: rgba(20, 27, 39, 0.95);
}

#community-form .community-box:hover img {
  transform: scale(1.05);
}

#community-form .community-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 187, 0, 0.1),
    transparent
  );
  transition: left 0.5s;
}

#community-form .community-box:hover::before {
  left: 100%;
}

#community-form .community-box h3 {
  color: rgb(255, 255, 255);
  text-decoration: none solid rgb(255, 255, 255);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

#community-form .community-box .community-stats {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
  overflow: hidden;
}

#community-form .community-box .community-stats p {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

#community-form .community-box .played-by {
  display: flex;
  align-items: center;
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

#community-form .community-box .played-by img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: 4px;
  border: 2px solid rgba(255, 187, 0, 0.3);
  flex-shrink: 0;
}

#community-form .community-box .played-by-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

#community-form .community-box .join-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 187, 0, 0.9),
    rgba(255, 234, 0, 0.9)
  );
  margin: 0px 0px 0px 20px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  appearance: none;
  cursor: pointer;
  align-items: center;
  border-radius: 25px;
  gap: 8px;
  display: flex;
  justify-content: center;
  border: none;
  color: #000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(255, 187, 0, 0.3);
  position: relative;
  overflow: hidden;
}

#community-form .community-box .join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 187, 0, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 234, 0, 1),
    rgba(255, 187, 0, 1)
  );
}

#community-form .community-box .join-btn:active {
  transform: translateY(0);
}

#community-form .community-box .join-btn i {
  color: #000;
  font-size: 14px;
}

@media (max-width: 799px) {
  #community-form .community-box {
    width: 80%;
  }
}
