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

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

h1, h2, h3{
	color: rgb(138, 70, 88)
}

body {
  font-family: 'Montserrat', sans-serif;
  background: rgb(24, 26, 27);
  color: #f3f3f3;
  line-height: 1.7;
}

section {
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid rgba(25, 25, 25, 1);
}

.hero {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  height: 100vh;
  text-align: center;
}

.hero .text-box {
  position: relative;
  z-index: 1;
  display: inline-block;

  h1 {
    font-size: 4em;
  }
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

.text-box {
  max-width: 800px;
  padding: 0px 36px;

  h2 {
	font-size: 2.3em;
	margin-bottom: 20px;
	font-weight: 700;
  }

  h3 {
	font-size: 1.3em;
	margin: 25px 0 10px;
	font-weight: bold;
  }
  
  p {
	font-size: 1.18em;
  }
}

.left .text-box {
  margin-right: auto;
  text-align: left;
}

.right .text-box {
  margin-left: auto;
  text-align: right;
}

.section-joinus {
  background: linear-gradient(rgba(24, 26, 27, 0.8), rgba(24, 26, 27, 0.8)), url('assets/joinus.png') center/cover no-repeat;
  height: 100vh;
  text-align: center;

  .text-box {
	margin: 0 auto;
	max-width: 75%;
  }

  h2 {
	font-size: 4em;
	text-shadow: 0px 0px 3px rgba(0,0,0,0.5);
  }
}

.welcome-section {
  background: linear-gradient(to right, rgba(24, 26, 27,1) 0%, rgba(24, 26, 27,0.5) 60%), url('assets/community.png') center/cover no-repeat;
}

.section-engine {
  background: linear-gradient(to left, rgba(24, 26, 27,1) 0%, rgba(24, 26, 27,0.5) 60%), url('assets/commitment.png') center/cover no-repeat;
}

.section-gameplay {
  background: linear-gradient(to right, rgba(24, 26, 27,1) 0%, rgba(24, 26, 27,0.5) 60%), url('assets/vision.png') center/cover no-repeat;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.join-btn {
  background: rgb(138, 70, 88);
  color: #fff;
  padding: 8px 36px;
  margin: 0px 10px 0px 10px;
  border: none;
  font-size: 1.2em;
  font-family: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  display: inline-block;
}

.join-btn:hover {
  background: rgb(168, 90, 108);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2em;
    padding: 0 8px;
    word-break: break-word;
  }
  .text-box, .faction-subsection, .section-joinus .text-box {
    max-width: 100% !important;
    padding: 0 18px !important;
    text-align: center !important;
  }
  .section-joinus .text-box {
    max-width: 500px !important;
    margin: 0 auto !important;
  }
  .faction-subsection {
    width: 100vw !important;
    min-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 16px 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .faction-subsection > * {
    max-width: 90vw !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .section-joinus h2, h2 {
    font-size: 2em !important;
  }
  .join-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 24px;
  }
  .join-btn {
    width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 12px 0;
    font-size: 1.1em;
  }
  .text-box p,
  .section-joinus .text-box p,
  .faction-subsection p,
  .faction-subsection li {
    font-size: 1em !important;
  }
}

@media (max-width: 600px) {
  .hero h1 {
	font-size: 1.5em;
  }
  .text-box h2 {
	font-size: 1.1em;
  }
}

.hero .join-buttons {
  margin-top: 2em;
}