/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background:#3f51b5;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 520px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px 20px; 
    margin: auto;
    position: relative;
}



/* Main Container */
.character-container {
    width: 100%;
    max-width: 280px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(63, 81, 181, 0.15);
    margin: 0 auto;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    place-items: center;
}

/* Column Layout */
.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Character Boxes */
.copy-box {
    width: 35px;
    height: 35px;
    background: #ffffff;
    color: #3f51b5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(70, 90, 200, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: 2px solid #3f51b5;
}

.copy-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 90, 200, 0.2);
    border-color: rgba(63, 81, 181, 0.3);
}

.copy-box:active {
    transform: translateY(0);
    background: #f0f2ff;
}

.copy-box::after {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #3f51b5;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-box.copied::after {
    top: -30px;
    opacity: 1;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 10px;
    background: #3f51b5;
}

footer p {
    margin: 0;
}

footer a {
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    position: relative;
}

footer p, footer a {
    background: transparent;
}
footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #1a237e 0%, #3f51b5 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

footer a:hover::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 520px) {
    .character-container {
        width: 95%;
        gap: 12px;
        padding: 20px;
    }

    .copy-box {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    h1 {
        font-size: 24px;
    }
}

/* Copy Animation */
@keyframes copyFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-animation {
    animation: copyFeedback 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}