@font-face {
  font-family: 'test';
  src: url('../fonts/Minecraftia-Regular.ttf');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.671);
  font-family: test, sans-serif;
  line-height: 1.75;
}

/* ✅ Background applied to html so it always covers full page */
html {
  min-height: 100%;
  background: url('../images/Minecraft.jpeg') center/cover no-repeat;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent; /* ✅ let html’s background show through */
  overflow-x: hidden;
  color: white;
}

nav {
  position: relative;
  margin-top: 1em;
}

header {
  margin-top: 200px; /* ✅ consistent spacing below nav */
  text-align: center;
}

header h1 {
  margin: 0; /* ✅ prevent collapsing margins */
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgba(255, 255, 255, 0.671);
  text-shadow: 2px 2px 4px #000;
}

main {
  flex: 1;                   /* ✅ grows to push footer down */
  display: flex;
  flex-direction: column;
  padding: 1em;
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.h2font {
  padding: 0.9em;
}

.rules {
  width: auto;
  color: rgba(255, 255, 255, 0.671);
  padding: 1.2em;
  background: rgba(204, 204, 204, 0); /* transparent */
  margin-bottom: 0;
}

.rules h2 {
  font-weight: bold;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.671);
}

.rules ol,
.rules ul {
  list-style-type: square;
  padding-left: 1.2em;
  margin-bottom: 1.5em;
  color: white; /* solid white list items */
}

.btn {
  background-color: #04AA6D;
  border: none;
  color: white;
  padding: 0.8em 1.5em;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-left {
  position: absolute;
  left: 0;
}

.btn-right {
  position: absolute;
  right: 0;
}

.btn:hover {
  background-color: #038c5a;
}

/* Footer always flush at bottom */
footer {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  padding: 0 1em;
  color: white;
  font-size: 0.9rem;
  background-color: rgb(68, 67, 67);
}

footer p {
  margin: 0;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .rules {
    width: 90%;
    padding: 1em;
  }

  .btn {
    width: 19rem;
    font-size: 0.9rem;
    padding: 0.6em 1em;
  }
}

@media (max-width: 480px) {

  html {
    background-image: url('../images/half.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Stretches the image */
  }

  h1 {
    font-size: 2rem;
    margin: 0 auto
  }

  .rules h2 {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.6em 1em;
    width: 8rem;
  }
}
