/* Import pixelated font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* General styles */
body {
    margin: 0;
    padding: 0;
    background-color: #1a2533;
    font-family: "Press Start 2P", monospace;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

#response {
    position: relative;
    z-index: 3;
    margin: 20px auto;
    background: transparent;
    height: 80px;
}

h1 {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0 0 12px rgba(0, 180, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

input {
    flex: 1;
    padding: 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 14px;
    border: 2px solid #4a90e2;
    background: rgba(26, 37, 51, 0.8);
    color: #ffffff;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

button {
    padding: 12px 24px;
    font-family: "Press Start 2P", monospace;
    font-size: 14px;
    background: #4a90e2;
    color: #1a2533;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

button:hover {
    background: #2171d0;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(33, 113, 208, 0.6);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

footer a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.4);
}

footer a:hover {
    color: #2171d0;
    text-shadow: 0 0 15px rgba(0, 180, 255, 0.6);
    transform: translateY(-1px);
    display: inline-block;
}

@media (max-width: 600px) {
    .input-container {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    h1 {
        font-size: 20px;
    }
}

#responseContainer {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    line-height: 1;
    margin-bottom: 10px;
}

#responseCanvas {
    background-color: #0a192f;
    max-width: 100%;
    height: 40px;
}

a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.6rem;
    font-family: 'Press Start 2P', monospace;
}

a:hover {
    text-decoration: underline;
}

#matrixRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}