* {
  box-sizing: border-box;
}

html {
  background: #0a0a0a;
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #ffffff;
  background: #0a0a0a;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px 16px;
}

.content {
  max-width: 600px;
  width: 100%;
  text-align: left;
}

h1 {
  margin: 0 0 24px 0;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #39B54A 0%, #39B54A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.02em;
}

.description {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: #e5e5e5;
  line-height: 1.7;
}

.cta-button {
  display: block;
  margin: 8px auto 32px auto;
  padding: 12px 32px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
  background: #FFDE17;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  text-align: center;
  width: fit-content;
}

.cta-button:hover {
  background: #FFDE17;
}

.cta-button i {
  margin-right: 8px;
}

h2 {
  margin: 32px 0 16px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #00ff73;
}

/* White color for How to Play heading */
.content > h2 {
  color: #ffffff;
}

.how-to-play {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #39B54A;
}

.how-to-play p {
  margin: 0 0 12px 0;
}

.how-to-play p:last-child {
  margin-bottom: 0;
}

footer {
  flex-shrink: 0;
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

footer a {
  color: #39B54A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: #39B54A;
  text-decoration: underline;
}

.footer-copy {
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Content page specific styles */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 32px;
  text-align: left;
}

.content-page p {
  margin-bottom: 16px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.content-page ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-page li {
  margin-bottom: 8px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.content-page a {
  color: #39B54A;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #39B54A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.back-link:hover {
  color: #39B54A;
  text-decoration: underline;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .content {
    text-align: left;
  }
  
  .content-page h1 {
    font-size: 2rem;
  }
  
  .content-page p,
  .content-page li {
    font-size: 1rem;
  }
}

.pdm-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.pdm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.zigzag-divider {
  width: 100%;
  height: 12px;
  background: url('./assets/images/zigzag.svg') repeat-x;
  background-size: 24px 12px;
  margin-bottom: 24px;
}

.pdm-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pdm-text {
  height: 24px;
  max-width: 200px;
  opacity: 0.8;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} 

/*
 * Heading image-title overlay
 */
.heading {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
}

.heading-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

/* Background and rounded top corners on the title text */
.heading-title span {
  background-color: #0a0a0a;
  padding: 0 0.5em;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: inline-block;
  color: #39B54A;
  -webkit-text-fill-color: #39B54A;
}

/* Add spacing between heading area and description */
.description {
  margin-top: 32px;
} 