/*
 * ========= Base (shared) =========
 * These styles apply to both the landing and console pages.
 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* This is the background for the entire application */
body {
  background-image: url("alice_app_bg.png");
  background-color: #0a0a0a;
}

/*
 * ========= Console Page (scoped) =========
 * These styles are for the static, console page.
 * They are activated by the `console-page` class on the body tag.
 */
body.console-page {
  height: 100vh;
  overflow: hidden;      /* Prevents scrolling on the console page */
  position: relative;
  /* This is to match the background from your screenshot */
  background-image: url("alice_app_bg.png");
}

/* Chat Box at the top - Preserves original dimensions */
.console-page .chat-box {
  position: absolute;
  top: 25px;
  left: 20px;
  right: 20px;
  height: 33%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid cyan;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* User Input Box at the bottom - Preserves original dimensions */
.console-page .user-input-box {
  position: absolute;
  bottom: 25px;
  left: 20px;
  right: 20px;
  height: 100px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid cyan;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  color: white;
}

.console-page .user-input-box textarea {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 1.1em;
  resize: none;
  padding: 5px;
  margin: 0;
}

.console-page .input-buttons {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.console-page .input-buttons button {
  background: rgba(0, 200, 200, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 6px;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s ease, border 0.3s ease;
}

.console-page .input-buttons button:hover {
  background: rgba(0, 200, 200, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.7);
}

/*
 * ========= Welcome Overlay (console-specific) =========
 * Full-screen overlay for the loading message.
 */
.console-page .welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out; /* Smooth fade-out */
}

.console-page .welcome-text {
    text-align: center;
}

.console-page .welcome-text h1 {
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

.console-page .welcome-text p {
    font-size: 1.5em;
    color: white;
}

.console-page .welcome-overlay.fade-out {
    opacity: 0;
}

/*
 * ========= Landing Page (scoped) =========
 * These styles are for the scrolling landing page.
 * They are activated by the `landing-page` class on the body tag.
 */
body.landing-page {
  height: auto;
  overflow-y: auto;  /* This restores the scroll on the landing page */
  background-image: url('bg.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fade-in animation for landing page elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.landing-page .hero {
    text-align: center;
    padding: 80px 20px;
    background: transparent;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}
.landing-page .hero img {
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  margin-bottom: 30px;
  opacity: 0.9; /* makes the image more visible */
}
.landing-page .hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ff0000;
}
.landing-page .hero p {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 30px;
}


.landing-page .cta-button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.landing-page .cta-button:hover {
    background-color: #0056b3;
}
.landing-page .description {
    max-width: 700px;
    padding: 40px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.5s;
}
.landing-page .description-box {
    max-width: 700px;
    padding: 40px 20px;
    text-align: center;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.7s;
}
.landing-page footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 1s;
}
.landing-page .chat-box-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}
.landing-page .chat-box {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}