@charset "UTF-8";

body {
    margin: 0;
    padding: 32px;
    background: #f4f4f4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #444;
}

/* Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-links {
    font-size: 13px;
}

.home-links a {
    color: #777;
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.2s;
}

.home-links a:hover {
    color: #222;
    text-decoration: underline;
}

/* GitHub Link Style */
.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.github-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card h2 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    color: #222;
}

.preview {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    /* Align bottom to match heights */
    min-height: 140px;
    /* Ensure space for Click label */
    padding-bottom: 10px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    font-size: 11px;
    color: #777;
    height: 100%;
}

.item code {
    display: block;
    margin-top: 12px;
    font-size: 10px;
    color: #999;
}

/* Click Hint Styling */
.click-hint {
    font-size: 9px;
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1.5px);
    }
}

/* Dummy spacer */
.spacer {
    height: 23px;
    /* Match click-hint height */
    width: 1px;
    margin-bottom: 8px;
}

footer {
    margin-top: 40px;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.ja-text {
    display: block;
    margin-top: 8px;
    opacity: 0.8;
    font-size: 11px;
}