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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* debug Layout 

header, main, footer {
  border: 2px solid red;
} 
*/

header {
  background-image: url("../assets/images/phaser3.png");
  /* dont use together with contain background-size: cover;  */
  background-position: center;   /* keeps it centered */
  background-repeat: no-repeat;
  background-size: contain;
  color: white;
  min-height: 100px;
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
  padding: 1rem;
}

main {
  background-image: url("../assets/images/sprite.png");
  background-position: center;   /* keeps it centered */
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  min-height: 100px; 
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
  padding: 1rem;
}


a {
    text-decoration: none; /* No underline */
    color: white; /* Unvisited color */
}

/* Specifically for visited links */
a:visited {
    color: yellow; /* Visited color */
    text-decoration: none; /* Ensure no underline */
}

/* Optional: Keep style on hover */
a:hover {
    text-decoration: none;
    color: red;
}

h1, h2 {
  font-size: clamp(1rem, 5vw, 3rem);
  text-shadow: 2px 2px black;
}

nav ul {
  display: flex;
  flex-direction: column; /* mobile first */
  list-style: none;
}

nav li {
  margin: 0.5rem 0;
}

nav a {
  color: white;
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 0.3rem;
  text-align: center;
}

/* Features grid */
.features {
	
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 1rem;
  padding: 1rem;
}

.card {
  background-color: rgba(33, 87, 47, 0.4);
  color: #fff;
  size: 0.3rem;
  padding: 0.3rem;
  text-align: center;
}


/* Tablet */
@media (min-width: 768px) {
	  header {
    min-height: 300px;
  }
  	main {
    min-height: 300px;
  }
  nav ul {
    flex-direction: row;
    justify-content: space-around;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 2rem;
  }
}
