/* Base Layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  color: #ffffff;
}

/* Repeating background */
body {
  background-image: url('assets/grass-tile.png');
  background-repeat: repeat;
  background-size: auto;
  background-color: #85bb4c;
}

/* Container for page content */
main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: rgba(46, 58, 37, 0.55);
  border: 4px ridge #b86314;
  box-shadow: 4px 4px 0 #b86314;
}

/* Header styling */
.page-header {
  text-align: center;
  background: rgba(86, 78, 11, .75);
  border-bottom: 4px ridge #b86314;
  padding: 10px;
}

.page-header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-shadow: 1px 1px #000000;
}

/* Centered foreground image */
.foreground {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px ridge #b86314;
  object-fit: scale-down;
  max-width: 70vw; /* Maximum width relative to the viewport width */
}

/* Project section */
.project-section {
  margin-top: 30px;
}

.project-section h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #b86314;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.project-intro {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.feature-list {
  list-style: square inside;
  margin: 10px 0 20px;
  padding: 0;
}

.feature-list li {
  margin-bottom: 8px;
}

/* Screenshot container - responsive */
.screenshot-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.screenshot {
  flex: 1 1 200px;
  border: 4px ridge #b86314;
  background: #181a1b;
  padding: 5px;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.screenshot figcaption {
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Call-to-action button */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  text-decoration: none;
  color: #ffffff;
  background: #564e0b;
  border: 2px solid #b86314;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #b86314;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #85780f;
}

.project-cta {
  text-align: center;
  margin-bottom: 30px;
}

/* Footer styling */
.site-footer {
  text-align: center;
  padding: 15px;
  background: #f0e68c;
  border-top: 4px ridge #b86314;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 2rem;
  }
  .project-section h2 {
    font-size: 1.5rem;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
}


