:root {
    --bug-color: #ff3e41;
    --wibu-color: #5d7dff;
    --dark-bg: #0d0d15;
    --darker-bg: #08080f;
    --light-text: #f0f0f0;
    --code-bg: #1a1a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: 'Ubuntu Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.glitch-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 62, 65, 0.05) 50%, 
            transparent 100%),
        repeating-linear-gradient(
            45deg,
            var(--darker-bg),
            var(--darker-bg) 2px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.title-container {
    position: relative;
    display: inline-block;
}

h1.glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--bug-color);
    position: relative;
    text-shadow: 4px 4px 0 var(--wibu-color);
    margin-bottom: 0.5rem;
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1.glitch::before {
    color: var(--wibu-color);
    animation: glitch-effect 3s infinite;
    z-index: -1;
}

h1.glitch::after {
    color: var(--bug-color);
    animation: glitch-effect 2s infinite reverse;
    z-index: -2;
}

h2 {
    font-family: 'Ubuntu Mono', monospace;
    font-weight: 700;
    color: var(--wibu-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.tool-box {
    background-color: var(--code-bg);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tool-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--bug-color), var(--wibu-color));
}

.input-area, .output-area {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background-color: var(--darker-bg);
    border: 1px solid #333344;
    border-radius: 4px;
    color: var(--light-text);
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

textarea:focus {
    outline: none;
    border-color: var(--wibu-color);
    box-shadow: 0 0 0 2px rgba(93, 125, 255, 0.3);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Ubuntu Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bug-btn {
    background-color: var(--bug-color);
    color: white;
}

.bug-btn:hover {
    background-color: #e03538;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 62, 65, 0.4);
}

.wibu-btn {
    background-color: var(--wibu-color);
    color: white;
}

.wibu-btn:hover {
    background-color: #4a6bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 125, 255, 0.4);
}

.neutral-btn {
    background-color: #333344;
    color: white;
}

.neutral-btn:hover {
    background-color: #2a2a3a;
    transform: translateY(-2px);
}

.theme-characters {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.bug-hunter, .wibu {
    width: 100px;
    height: 100px;
    position: relative;
}

/* Bug Hunter Character */
.bug-hunter .helmet {
    position: absolute;
    width: 80px;
    height: 70px;
    background-color: #333;
    border-radius: 50% 50% 40% 40%;
    top: 10px;
    left: 10px;
}

.bug-hunter .visor {
    position: absolute;
    width: 60px;
    height: 20px;
    background-color: var(--bug-color);
    border-radius: 10px;
    top: 30px;
    left: 20px;
}

.bug-hunter .tool {
    position: absolute;
    width: 40px;
    height: 10px;
    background-color: #555;
    border-radius: 5px;
    top: 60px;
    left: 30px;
}

/* Wibu Character */
.wibu .head {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: #ffdbdb;
    border-radius: 50%;
    top: 10px;
    left: 15px;
}

.wibu .eyes {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    top: 35px;
    left: 25px;
    box-shadow: 25px 0 #333;
}

.wibu .blush {
    position: absolute;
    width: 15px;
    height: 8px;
    background-color: #ffb6b6;
    border-radius: 50%;
    top: 50px;
    left: 20px;
    box-shadow: 25px 0 #ffb6b6;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: #666677;
    font-size: 0.9rem;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@media (max-width: 768px) {
    h1.glitch {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .theme-characters {
        justify-content: space-around;
    }
}