@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

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

body {
    background: #000;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier Prime', monospace;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('3.webp') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.glitch-text {
    font-size: 4rem;
    letter-spacing: 0.5rem;
    text-shadow: 
        0 0 5px rgba(255,255,255,0.8),
        0 0 10px rgba(255,255,255,0.5),
        0 0 15px rgba(255,255,255,0.3);
    animation: glitch 2s infinite;
}

.menu-item {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.menu-item:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 5px rgba(255,255,255,0.8),
        0 0 10px rgba(255,255,255,0.5);
}

.password-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
    width: 300px;
    outline: none;
}

.password-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.copyright {
    position: absolute;
    bottom: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* Interface Buttons */
.interface-buttons {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 1000;
}

.back-button, .social-button {
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ca-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    z-index: 1000;
}

.back-button:hover, .social-button:hover, .ca-button:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 5px rgba(255,255,255,0.8),
        0 0 10px rgba(255,255,255,0.5);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Chat Interface Styles */
.chat-interface {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    letter-spacing: 0.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.chat-messages {
    height: 380px;
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: rgba(255, 255, 255, 0.1);
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
}

.bot-message {
    background: rgba(0, 255, 255, 0.1);
    margin-right: auto;
    color: rgba(0, 255, 255, 0.9);
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    border-radius: 3px;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.send-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Forest Interface Styles */
.forest-interface {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('3.webp') center/cover no-repeat;
    z-index: 900;
}

.typing-text {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    z-index: 1000;
    opacity: 0.9;
    letter-spacing: 0.1rem;
    min-height: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.chat-box input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 3px;
    outline: none;
}

.chat-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-box button {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.9);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.chat-box button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.story-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-text {
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

@keyframes glitch {
    0% {
        text-shadow: 
            0 0 5px rgba(255,255,255,0.8),
            0 0 10px rgba(255,255,255,0.5);
    }
    50% {
        text-shadow: 
            -1px -1px 5px rgba(255,255,255,0.8),
            1px 1px 10px rgba(255,255,255,0.5);
    }
    100% {
        text-shadow: 
            0 0 5px rgba(255,255,255,0.8),
            0 0 10px rgba(255,255,255,0.5);
    }
}
