/* Body styling */
body {
    background-color: black;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main title outside container */
.main-title {
    color: white; /* gold text */
    font-size: 36px;
    text-align: center;
    padding: 15px 30px;
    border: 2px solid gold; /* white border */
    border-radius: 12px;
    box-shadow: 0 0 20px gold; /* white glow */
    margin-bottom: 30px; /* space between title and container */
}

/* Container card */
.container {
    border: 2px solid gold; /* outer container border */
    width: 400px;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px gold;
    background-color: #111;
}

/* Instructions inside container */
.instructions {
    color: white; /* swapped text color */
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 5px gold; /* still glows gold */
    padding: 10px;
    border: 2px solid gold; /* gold border */
    border-radius: 10px;
    box-shadow: 0 0 12px gold;
}

/* Input box */
input {
    padding: 12px 10px;
    border: 2px solid gold; /* gold border */
    border-radius: 8px;
    width: 80%;
    margin-top: 10px;
    background-color: black;
    color: white; /* swapped text color */
    font-size: 16px;
    outline: none;
    caret-color: gold;
    box-shadow: 0 0 10px gold;
    transition: 0.3s;
}

input:focus {
    box-shadow: 0 0 15px gold;
}

/* Placeholder styling */
input::placeholder {
    color: gold;
}

/* Prevent autofill from messing up colors */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px black inset;
}

/* Submit button */
button {
    padding: 12px 25px;
    margin-top: 15px;
    background: black;
    border: 2px solid gold; /* gold border */
    border-radius: 8px;
    color: white; /* swapped text color */
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 12px gold;
    transition: 0.3s;
}

button:hover {
    background: gold;
    color: black;
    box-shadow: 0 0 18px gold;
}

/* Output text (greeting) */
#output {
    margin-top: 25px;
    font-size: 18px;
    color: white; /* greeting text white */
    text-shadow: 0 0 12px gold;
    padding: 10px;
    border: 2px solid gold; /* gold border */
    border-radius: 10px;
    box-shadow: 0 0 15px gold;
}
#output {
  margin-top: 15px;
  font-size: 20px;
  opacity: 0;
}

/* animation class */
.animate {
  animation: fadeSlide 0.6s ease;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body {
  background: #111;
  color: white;
  font-family: Arial;
  text-align: center;
}

.container {
  margin-top: 30px;
}

/* DROPDOWN STYLE */
select {
  background: #222;
  color: white;
  border: 2px solid #444;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 5px;
  cursor: pointer;
  transition: 0.2s;
}

select:hover {
  border-color: gold;
}

/* INPUT */
input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
}

/* BUTTON */
button {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: gold;
  color: black;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.05);
}

/* OUTPUT (MAIN IMPROVEMENT) */
#output {
  margin-top: 20px;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  opacity: 1;

  text-shadow: 
    0 0 8px currentColor,
    0 0 16px currentColor,
    0 0 24px currentColor;
}

/* ANIMATION */
.animate {
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
html, body {
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial;
}

/* NAVBAR */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #0a0a0a;
  padding: 12px 20px;

  border-bottom: 2px solid gold;
  box-shadow: 0 2px 10px rgba(255,215,0,0.2);

  position: sticky;
  top: 0;
  z-index: 1000;

  flex-wrap: wrap; /* allows stacking on small screens */
}

/* LEFT SIDE */
.nav-left {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: gold;
  font-weight: bold;
}

/* LINK */
.nav-right a {
  color: gold;
  text-decoration: none;
}

.nav-right a:hover {
  text-decoration: underline;
}

/* SEPARATOR */
.nav-sep {
  color: white;
  opacity: 0.6;
}

/* 📱 MOBILE FIX */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}
.navbar {
  width: 100%;
  position: fixed;   /* locks it to viewport */
  top: 0;
  left: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #0a0a0a;
  padding: 12px 20px;

  border-bottom: 2px solid gold;
  box-shadow: 0 2px 10px rgba(255,215,0,0.2);

  z-index: 1000;
}
.container {
  margin-top: 80px; /* adjust if needed */
}