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

body {
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.6;
    color: #00ff00;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    animation: matrixFadeIn 0.8s ease forwards;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    opacity: 0;
    animation: overlayFadeIn 0.8s ease forwards;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    flex: 1;
    opacity: 0;
    animation: containerFadeIn 0.5s ease forwards 0.2s;
}

@keyframes containerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: headerFadeIn 0.5s ease forwards 0.4s;
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

header h1 {
    color: #00ff00;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #00ff00;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
    }
    to {
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    }
}

header p {
    color: #00ff00;
    opacity: 0;
    animation: subtitleFadeIn 0.5s ease forwards 0.6s;
}

@keyframes subtitleFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.8; transform: translateY(0); }
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: mainFadeIn 0.5s ease forwards 0.8s;
}

@keyframes mainFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border: 1px solid #00ff00;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    width: 100%;
    max-width: 600px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    animation: contentFadeIn 0.5s ease forwards 1s;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content.searching {
    transform: scale(0.95);
    opacity: 0;
}

.search-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    animation: formFadeIn 0.5s ease forwards 1.2s;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Consolas', 'Courier New', monospace;
    outline: none;
    transition: all 0.3s ease;
}

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

.search-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

.search-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: transparent;
    border: 1px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    cursor: pointer;
    font-family: 'Consolas', 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 1rem 0;
    color: #00ff00;
    opacity: 0;
    animation: footerFadeIn 0.5s ease forwards 1.4s;
}

@keyframes footerFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.7; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .search-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
} 