/* Ensure the footer sticks to the bottom of the page */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

header {
  position: relative;
  background-image: url('Images/Screenshot.png');  /* fixed path */
  background-size: cover;
  background-position: 50% 35%;
  color: white;
  text-align: center;
  padding: 8em;
  min-height: 150px;
}

.text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-bg {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.3em 2em;
  display: block;
  border-radius: 8px;
  text-shadow: 1px 1px 3px black;
  font-weight: bold;
  font-size: 2em;
  margin: 0.5em auto 0.25em auto;
  max-width: 90%;
  width: fit-content;
  line-height: 1.3;
  animation: fadeSlideUp 1s ease forwards;
}

.slogan-bg {
  background-color: rgba(0, 77, 64, 0.8);
  color: white;
  padding: 0.5em 1em;
  display: block;
  border-radius: 8px;
  text-shadow: 1px 1px 2px black;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0.25em auto 1em auto;
  max-width: 90%;
  width: fit-content;
  line-height: 1.3;
}

header .logo {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  height: 120px;
  width: auto;
  border-radius: 15px;
}

nav {
  background-image: url('Images/chainlink2.png'); /* fixed path */
  background-size: 150% auto;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 3px black;
  box-shadow: none;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: white;
  background: #06402B;
  border-color: white;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

h3 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

ul {
  padding-left: 1.2em;
}

ul li {
  margin-bottom: 1.5em;
  line-height: 1.5;
}

ul li strong {
  font-size: 1.1em;
  color: #1a73e8;
}

ul li a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95em;
}

ul li a:hover {
  text-decoration: underline;
}

.container {
  flex: 1;
  background: white;
  max-width: 800px;
  margin: auto;
}

footer {
  background-color: #004d40;
  color: white;
  text-align: center;
  padding: 1em;
  position: static;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 600px) {
  .title-bg {
    font-size: 1.4em;
    padding: 0.3em 0.6em;
    margin: -2em auto 2em auto;
    position: relative;
    top: -4px;
  }

  .slogan-bg {
    font-size: 0.9em;
    padding: 0.3em 0.8em;
    margin: 1em auto -1em auto;
  }

  header {
    background-image: url('Images/Screenshot.png'); /* fixed path */
    background-size: cover;
    background-position: center top;
    height: 200px;
    padding: 0;
  }

  header .logo {
    position: static;
    height: 70px;
    margin: 3.5em auto 3em auto;
    display: block;
    transform: none;
  }

  nav {
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  nav a {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4em 0.8em;
    min-height: 50px;
    font-size: 0.9em;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .black-box {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 80%;
    max-width: 300px;
    min-height: 80px;
    padding: 0.8em 1em;
    margin: 0.5em auto;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1em;
    margin: 0 auto;
    overflow-x: hidden;
  }
}
