/* General Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Intro Video */
#intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: black;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#intro-text {
    position: absolute;
    top: 30%; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    font-family: "Courier New", monospace;
    font-size: 22px;
    color: #00ffcc; /* Base color */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ffcc; /* Blinking cursor effect */
    animation: glow 1.5s infinite, typing-blink 0.7s infinite;
}

/* Cursor blink effect */
@keyframes typing-blink {
    0% {
        border-right-color: #00ffcc;
    }
    50% {
        border-right-color: transparent;
    }
    100% {
        border-right-color: #00ffcc;
    }   
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00b3a6, 0 0 40px #00b3a6;
    }
    50% {
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffe6, 0 0 50px #00b3a6, 0 0 60px #00b3a6;
    }
}

#enter-button {
    position: absolute;
    top: 40%; /* Directly below the intro text */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    font-size: 18px;
    font-family: "Courier New", monospace;
    color: #00ffcc;
    background: transparent;
    border: 2px solid #00ffcc;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease-in-out;
}

#enter-button:hover {
    color: #ffffff;
    background: #00ffcc;
    box-shadow: 0 0 30px rgba(0, 255, 204, 1);
    transform: translateX(-50%) scale(1.1);
}

/* Main Content */
#main-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Centered Chatbot Container */
#chatbotContainer {
    position: relative;  /* Needed for absolute positioning of children */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 95vh;        /* Example height, adjust as necessary */
    width: 80vw;         /* Example width, adjust as necessary */
    background: black;
    border: 2px solid #00ff00;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between; /* Centers children vertically in the container */
    align-items: center;
    min-width: 800px; /* Minimum width to prevent squeezing */
    min-height: 600px; /* Minimum height to accommodate content */
    padding: 20px;
}


/* Chatbot Header with Logo */
#chatbotHeader {
    display: flex;
    justify-content: space-between; /* Ensures space between the logo/text and the button */
    align-items: center;
    background-color: transparent;
    color: #00ff00;
    font-family: monospace;
    white-space: pre-wrap; /* Allows the text to wrap and preserves spacing */
    font-size: 18px;
    padding: 10px;
    border-bottom: none;
    font-weight: bold;
    overflow: hidden; /* Prevents overflow */
    text-align: center; /* Centers the ASCII art */
    word-break: keep-all; /* Prevents breaking the ASCII art */
    width: 100%; /* Ensures the header spans the full width of its container */
}

#headerImage {
    height: 100px; /* Adjust based on your specific needs */
    margin-right: 1px; /* Adds some space between the image and the text */
}


#chatbotLogo {
    width: 188px;
    height: auto;
    margin-right: 1px;
}

.bot-interface {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bot-interface img {
    width: 450px; /* Increase width for better visibility */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Add space between image and conversation box */
}

.conversation-box {
    margin: 0 auto;
    padding: 10px;
    border: none; /* Remove borders around the conversation box */
    background-color: rgba(0, 0, 0, 0.658); /* Slightly transparent background */
    border-radius: 10px;
    width: 100%; /* Ensures the conversation box takes up all available width */
    max-width: 700px;
    height: 500px; /* Adjust height to accommodate the image */
    overflow-y: auto; /* Adds vertical scrolling if content is too long */
    display: flex;
    flex-direction: column; /* Stacks image and text */
    align-items: flex-start; /* Centers content horizontally */
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 14px;
}


/* Conversation Box */
.conversation-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: black;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

/* Input Area */
.input-area {
    position: absolute;  /* Anchor the input area to a specific position within its container */
    bottom: 0;           /* Align it to the bottom of the container */
    left: 0;             /* Align it to the left of the container */
    right: 0;            /* Stretch it to the right of the container */
    display: flex; /* Use flexbox to align children */
    align-items: center; /* Center items vertically */
    width: 100%; /* Full width of the parent container */
    padding: 10px 10px 10px 10px; /* Consistent padding around the area */
    background: #000;    /* Optional: Change the background if needed */
}

.input-area input[type="text"] {
    flex-grow: 1; /* Takes up as much space as possible */
    margin-right: 20px; /* Space between input field and button, if button exists */
    padding: 8px; /* Padding inside input for aesthetics */
    border: 2px solid #00ff00; /* Styling the border to fit the theme */
    background-color: black; /* Match the input background with the area */
    color: #00ff00; /* Font color to match the theme */
}


#userInput {
    flex: 1;
    padding: 10px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    background-color: black;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

#userInput::placeholder {
    color: #00ff00;
}

#sendButton {
    padding: 10px 20px;
    background-color: #00ff00;
    color: black;
    border: none;
    border-radius: 5px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

#sendButton:hover {
    background-color: #0056b3;
    color: white;
}

/* Hide Chatbot Button */
#toggleChatbot {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: #00ff00;
    background: rgba(0, 0, 0, 0);
    border: none; /* No border for buttons */
    border-radius: 0px;
    cursor: pointer;
}

#toggleChatbot:hover {
    background: #00ff00;
    color: black;
}
/* Chatbot App Icon Container */
#chatbotAppIcon {
    position: absolute;
    top: 10px; /* Adjust the position as needed */
    left: 10px; /* Adjust the position as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    z-index: 150;
}

/* Chatbot Icon (Image) */
#chatbotIcon {
    width: 120px; /* Increased size */
    height: 120px; /* Increased size */
    object-fit: contain; /* Ensures the logo fits naturally */
    background: none; /* No background */
    border: none; /* No border */
    margin-bottom: 0.1px; /* Space between the logo and the text */
}

#chatbotAppIcon:hover #chatbotIcon {
    animation: pulse 0.7s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* Zooms in slightly */
    }
}

@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: #00ff00; }
}

/* Chatbot Label Text */
#chatbotLabel {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #ffffff; /* White text (adjust as needed) */
    margin: 0;
    text-align: center;
}

#exitChatbot {
    position: absolute;  /* Makes the positioning relative to the nearest positioned ancestor */
    top: 10px;           /* 10px from the top of the container */
    right: 10px;         /* 10px from the right of the container */
    background: none;
    border: none;
    color: #fcfcfc;      /* Presuming white or light-colored text */
    font-size: 18px;
    cursor: pointer;
}


#exitChatbot:hover {
    color: #ff0000; /* Highlight in red when hovered */
    transform: scale(1.1); /* Slightly enlarge the button on hover */
}


/* Centered Chatbot Container */
#chatbotContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background: black;
    border: none; /* Remove the green border */
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: none; /* Remove box-shadow if unnecessary */
    border-radius: 8px;
    overflow: hidden;
}

/* ELIZA Image Inside Conversation Box */
#elizaImage {
    width: 80px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it doesn't interfere with text flow */
    margin: 10px auto; /* Center the image with spacing */
    border: 2px solid #00ff00; /* Green border for retro look */
    border-radius: 10px; /* Optional rounded edges */
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* Subtle glow */
}

/* Chat Message Styles */
.message {
    display: flex;
    align-items: flex-start;
    margin: 10px;
}

/* ELIZA's Messages on the Left */
.message.bot {
    justify-content: flex-start; /* Align ELIZA's messages to the left */
    display: flex;
    align-items: flex-start;
}

.message.bot .message-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    word-wrap: break-word;
}

.message.user {
    justify-content: flex-end; /* Align user messages to the right */
    display: flex;
    align-items: flex-start; /* Ensure vertical alignment starts at the top */
    width: 100%; /* Take full width to allow right alignment */
}

.message.user .message-content {
    background-color: rgba(0, 0, 0, 0.8); /* Same as ELIZA's background */
    color: #f8f8f8; /* White text for user */
    font-family: "Courier New", monospace;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    word-wrap: break-word;
    margin-left: auto; /* Push the message content to the right */
}

/* Avatar and Indicator */
.avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #00ff00;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #00ff00;
    border: 1px solid #000;
    border-radius: 50%;
}

/* Message Content */
.message-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    word-wrap: break-word;
}

/* For modern browsers */
.conversation-box::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.conversation-box::-webkit-scrollbar-track {
    background: black; /* Background color of the scrollbar track */
}

.conversation-box::-webkit-scrollbar-thumb {
    background: #00ff00; /* Retro green scrollbar thumb */
    border-radius: 5px; /* Rounded edges for the scrollbar thumb */
    border: 2px solid black; /* Add a black border for the thumb */
}

.conversation-box::-webkit-scrollbar-thumb:hover {
    background: #33ff33; /* Lighter green when hovered */
}

/* For Firefox */
.conversation-box {
    scrollbar-color: #00ff00 black; /* Thumb color and track color */
    scrollbar-width: thin; /* Thin scrollbar */
}


/* Roadmap App Icon Container */
#roadmapAppIcon {
    position: absolute;
    top: 140px; /* Adjust below the chatbot button */
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    z-index: 150;
}

#roadmapIcon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: none;
    border: none;
    margin-bottom: 5px;
}

#roadmapAppIcon:hover #roadmapIcon {
    animation: pulse 0.7s infinite;
}

#roadmapLabel {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

/* Roadmap Container */
#roadmapContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: auto; /* Adjust height dynamically based on content */
    background: rgba(0, 0, 0, 0.87);
    border: 2px solid #ffffff; /* White border for structure */
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* Subtle glow */
    overflow: hidden;
    padding: 20px;
}

#roadmapHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Courier New", monospace;
    font-size: 22px;
    font-weight: bold;
    color: #d6d4d4; 
    padding: 10px 0;
    border-bottom: 2px solid #ffffff; /* Add a divider */
}

#roadmapContent {
    flex: 1;
    padding: 15px 20px; /* Add consistent spacing */
    font-family: "Courier New", monospace;
    font-size: 16px; /* Slightly larger font for readability */
    line-height: 1.8; /* Add line spacing for clarity */
    color: #ffffff; 
    text-align: justify; /* Align text for a clean look */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

/* Game Button Icon Container */
#gameAppIcon {
    position: absolute;
    top: 280px; /* Adjust to sit below the roadmap button */
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    z-index: 150;
}

#gameIcon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: none;
    border: none;
    margin-bottom: 5px;
}

#gameAppIcon:hover #gameIcon {
    animation: pulse 0.7s infinite;
}

#gameLabel {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

/* Snake Game Modal */
#retroGameContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 500px;
    background: rgb(125, 156, 76);
    border: 2px solid #284118;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(241, 243, 241, 0.5);
    overflow: hidden;
    padding: 10px;
}

/* Snake Game Header */
#retroGameHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
    color: #284118;
    border-bottom: 2px solid #284118;
}

/* Canvas Styling */
#snakeGameCanvas {
    margin: 20px auto;
    display: block;
    background: black;
    border: 2px solid #284118;
}

button {
    font-family: "Courier New", monospace;
    box-shadow: 0 0 10px #ffffff;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #000;
    color: #00ff00;
    box-shadow: 0 0 15px #284118;
}

#highScorePage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 23%; /* Match the canvas width */
    height: 42%; /* Match the canvas height */
    background-color: #080808; /* Light green */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border: 1px solid rgb(125, 156, 76); /* Match canvas border style */
    border-radius: 5px; /* Optional rounded edges */
    box-shadow: 0 0 15px rgba(232, 235, 232, 0.5); /* Subtle glow effect */
}

#highScoreHeader {
    font-family: "Courier New", monospace;
    color: #99cc66;
    font-size: 20px;
    margin-bottom: 20px;
}

#highScoreContent {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically (if needed) */
    color: #ffffff;
    margin-top: 20px; /* Add space from the "Your Best Score" text */
}

#playAgainButton {
    margin-bottom: 10px; /* Add space below Play Again button */
    padding: 10px 20px;
    background-color: #99cc66;
    border: none;
    color: #000;
    font-size: 16px;
    font-family: "Courier New", monospace;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); /* Subtle glow */
}

#playAgainButton:hover {
    background-color: #b3e699;
}

#shareButton {
    padding: 7px 14px; /* 30% smaller than playAgainButton */
    background-color: #99cc66;
    border: none;
    color: #000000;
    font-size: 14px; /* Slightly smaller font */
    font-family: "Courier New", monospace;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5); /* Subtle glow */
}

#shareButton:hover {
    background-color: #b3e699; /* Lighter green */
    box-shadow: 0 0 5px rgba(182, 233, 182, 0.8);
}

/* History App Icon Container */
#historyAppIcon {
    position: absolute;
    top: 420px; /* Adjust to align below the Game button */
    left: 10px; /* Aligns with other buttons */
    display: flex;
    flex-direction: column; /* Stack icon and label vertically */
    align-items: center; /* Center-align the icon and label */
    justify-content: flex-start;
    cursor: pointer;
    z-index: 150;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the current text color */
}

/* History Icon */
#historyIcon {
    width: 120px; /* 30% larger than 120px */
    height: 120px; /* Maintain the same 30% increase */
    object-fit: contain;
    background: none;
    border: none;
    margin-bottom: 5px; /* Space between the icon and the label */
}

/* History Label */
#historyLabel {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    text-align: center;
    text-decoration: none; /* Remove underline */
}

/* Hover Effect */
#historyAppIcon:hover #historyLabel {
    color: #ffffff; /* Highlight the label when hovered */
}

#historyAppIcon:hover #historyIcon {
    animation: pulse 0.7s infinite;
}

.social-links {
    position: fixed;
    top: 1px;  /* Adjust top spacing to place it exactly where you want */
    right: 10px;  /* Keeps it pinned to the top right corner */
    display: flex;
    flex-direction: row;  /* Lays out the child buttons in a horizontal row */
    align-items: center;  /* Aligns buttons vertically center */
}

.social-btn {
    padding: 5px;
    margin-left: 20px;  /* Adds spacing between buttons */
    background-color: transparent;
    border: none;
    transition: transform 0.3s ease;
}

.social-btn img {
    height: 120px;  /* Adjust the size as needed */
    width: auto;  /* Maintains the aspect ratio of the image */
    display: block;
}

.social-btn:hover {
    transform: scale(1.1);  /* Enlarges the button slightly on hover */
}

.footer-text {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    font-family: Arial, sans-serif; /* Specify the font style */
    font-size: 16px; /* Specify the font size */
    color: rgb(255, 255, 255); /* Change the color if needed */
    z-index: 1000; /* Ensure it sits above other content */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.75),  /* White glow */
    0 0 10px rgba(255, 255, 255, 0.5),   /* Medium glow */
    0 0 15px rgba(255, 255, 255, 0.25);  /* Subtle glow */
    display: none; /* Initially hidden */
}
