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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f0f0f;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    position: fixed;
    top: 0;
    left: 0;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 2200px;
    height: 100%;
    padding: 20px;
    gap: 20px;
}

.typing-container {
    width: 100%;
    height: 150px;
}

#typing-area {
    width: 100%;
    height: 100%;
    background: #121212;
    border: 2px solid #00ffff;
    border-radius: 10px;
    color: white;
    font-size: 20px;
    padding: 15px;
    resize: none;
    outline: none;
    animation: glow-border 2s infinite linear;
}

#typing-area::placeholder {
    color: #00ffff;
    opacity: 0.7;
}

@keyframes glow-border {
    0%   { box-shadow: 0 0 10px #00ffff; }
    50%  { box-shadow: 0 0 20px #d400ff; }
    100% { box-shadow: 0 0 10px #a2ff00; }
}

.keyboard-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 10px; 
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
    width: fit-content;
}

.row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.key {
    background: #121212;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    animation: rgb-glow 3s infinite linear;
    box-shadow: 0 0 10px rgba(0,255,255,0.1);
    transition: transform 0.1s, box-shadow 0.2s;
}

.key.wide {
    width: 120px;
}

.key.extra-wide {
    width: 160px;
}

.key.control-right {
    width: 140px;
}

.key.space {
    width: 300px;
}

.key.pressed {
    transform: scale(0.9);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3);
}

@keyframes rgb-glow {
    0% { box-shadow: 0 0 10px #ff0080; }
    25% { box-shadow: 0 0 10px #8000ff; }
    50% { box-shadow: 0 0 10px #00ffff; }
    75% { box-shadow: 0 0 10px #00ff80; }
    100% { box-shadow: 0 0 10px #ff0080; }
}

.credit {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 12px;
    font-family: monospace;
}

.credit a {
    color: #00ffff;
    text-decoration: none;
    text-shadow: 0 0 8px #00ffff;
}

.footer {
    width: 100%;
    padding: 20px 40px;
    background: #121212;
    border-top: 2px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 14px;
    box-shadow: 0 -2px 20px rgba(0, 255, 255, 0.2);
    z-index: 10;
}

.footer a {
    color: #00ffff;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 5px #00ffff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #8cfafa;
    text-shadow: 0 0 8px #8cfafa;
}


.footer a:active {
    color: #00ff66;
    text-shadow: 0 0 8px #00ff66;
}


.footer p {
    margin: 0;
    font-weight: 500;
    color: #59eeee;
    text-shadow: 0 0 5px #8cebeb;
}

.footer .social-media {
    display: flex;
    gap: 15px;
}

.footer .social-media a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer .social-media img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer .social-media a:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #00ffff);
}
.footer .social-media a:active {
    transform: scale(0.9);
    filter: drop-shadow(0 0 5px #00ffff);
}
.footer .social-media a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px #00ffff);
}

@media (max-width: 1200px) {
    .keyboard-container {
        padding: 20px;
    }
    .key {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    .key.wide {
        width: 100px;
    }
    .key.extra-wide {
        width: 140px;
    }
    .key.space {
        width: 250px;
    }
    .credit {
        font-size: 10px;
        right: 15px;
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    .key {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
    .key.wide {
        width: 80px;
    }
    .key.extra-wide {
        width: 120px;
    }
    .key.space {
        width: 200px;
    }
    .credit {
        font-size: 8px;
        right: 10px;
        bottom: 10px;
    }
}
