/* Base Reset and Defaults */
:root {
  --bg-color: #0A0A0A;
  --text-color: #EEEEEE;
  --accent-color: #CC5500;
  --shadow-color: #4B0082;
  --mainline-color: #B87333;
  --tagline-color: #AAAAAA;
  --nav-bg-color: #1C1C1C;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/background.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.85;
  z-index: -2;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

.logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.brand-title {
  font-size: 2.5rem; /* Scaled down for smaller screens */
  color: var(--accent-color);
  letter-spacing: 0.1rem;
  text-shadow: 1px 1px 2px var(--shadow-color);
}

main {
  flex: 1;
  text-align: center;
  margin-top: 2rem;
}

.subscription-box {
  max-width: 480px;
  margin: 2.5rem auto 0 auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--accent-color);
  border-radius: 0.75rem;
  box-shadow: 0 0 25px rgba(204, 85, 0, 0.3);
}

.subscription-box h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-color);
  font-size: 1.5rem;
}

.subscription-text {
  font-size: 1rem;
  color: var(--tagline-color);
  margin-bottom: 1.5rem;
}

.subscription-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscription-form .form-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
}

.subscription-form label {
  font-weight: bold;
}

.subscription-form input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--mainline-color);
  border-radius: 0.5rem;
  background-color: rgba(12, 12, 12, 0.9);
  color: var(--text-color);
}

.subscription-form input[type="email"]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.subscription-form button {
  align-self: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscription-form button:hover,
.subscription-form button:focus {
  background-color: #e06b1a;
}

.rotating-mainline {
  font-size: 1.5rem;
  color: var(--mainline-color);
  animation: fadein 1s ease-in-out;
  margin-bottom: 1rem;
}

.rotating-tagline {
  font-size: 1rem;
  color: var(--tagline-color);
  animation: fadein 1s ease-in-out;
}

.nav-bar {
  margin-top: 0;
  margin-bottom: 2rem;
  background-color: transparent;
  padding: 0.8rem;
  text-align: center;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Use a class to control visibility */
.menu-hidden {
  display: none;
}


.nav-bar a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s;
}

.nav-bar a:hover {
  color: var(--accent-color);
}

footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.6);
  margin-top: auto;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2rem;
  }

  .nav-bar ul {
    flex-direction: column;
  }

  #menu {
    margin-top: 0.5rem;
  }

  #menu-toggle {
    display: block;
  }

  .rotating-mainline {
    font-size: 1.2rem;
  }

  .rotating-tagline {
    font-size: 0.9rem;
  }

  header {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.8rem;
  }

  .rotating-mainline {
    font-size: 1rem;
  }

  .rotating-tagline {
    font-size: 0.8rem;
  }
}

/* Ensure menu is visible on large screens and toggle is hidden */
@media (min-width: 769px) {
  #menu {
    display: flex;
  }
  #menu-toggle {
    display: none;
  }
  /* Override the hidden class on large screens */
  .menu-hidden {
    display: flex;
  }
}
