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

body {
  font-family: "Arial", sans-serif;
  background-color: #1c1c1c;
  color: #fff;
}

/* Header styling */
.site-header {
  background-color: #111;
  color: #ccc;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  z-index: 1000;
  position: sticky;
  top: 0;
}

/* Navigation styles */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

/* Header link styles */
.header-link {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  font-weight: bold;
}

.header-link:visited {
  color: #fff;
}

/* Hover Effect */
.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-link:hover {
  color: #007bff;
}

.header-link:hover::after {
  transform: scaleX(1);
}

.container {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 8rem 4rem;
  background-color: #1f2937;
}

h1 {
  font-size: 2.6rem;
}

h1 span {
  display: block;
  color: #4adf86;
}

#text-el {
  font-size: 1.4rem;
  line-height: 2.4rem;
  color: gray;
  margin-bottom: 3.6rem;
}

#pass-criteria {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

#length-input {
  text-align: center;
  color: gray;
  font-size: 1rem;
}

#generate-btn {
  background-color: #10b981;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

hr {
  border: none;
  height: 1px;
  background-color: #2f3e53;
  margin: 2rem 0;
}

.password-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: #55f991;
  gap: 1rem;
}

.password-container label {
  color: #fff;
  font-weight: bold;
  letter-spacing: 1.2;
  font-size: 1.2rem;
}

#password-one,
#password-two {
  background-color: #273549;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  line-height: 2.4rem;
  border-radius: 0.4rem;
  min-height: 2.4rem;
  margin-bottom: 1.6rem;
}

#copy-msg {
  visibility: hidden;
  opacity: 0;
  text-align: center;
  color: #55f991;
  margin-top: 1rem;
  transition: opacity 0.3s;
}
#copy-msg.show {
  visibility: visible;
  opacity: 1;
}

/* FOOTER BASE STYLES */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* LINK STYLING */
.footer-link {
  color: #4eaaff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* REMOVE DEFAULT VISITED COLOR */
.footer-link:visited {
  color: #4eaaff;
}

/* HOVER EFFECT - SLIDE UNDERLINE */
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #4eaaff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link:hover::after {
  transform: scaleX(1);
}
