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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 320px;
}

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    color: #2c3e50;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.preview-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.text-input-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.font-size-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-input-wrapper label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    font-size: 1.1rem;
    min-width: 100px;
}

.preview-input-wrapper input[type="text"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.preview-input-wrapper input[type="text"]::placeholder {
    color: #6c757d;
}

.preview-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.font-size-controls input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.font-size-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.font-size-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.font-size-controls select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    min-width: 80px;
}

.font-size-controls select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.font-list {
    display: grid;
    gap: 30px;
}

.font-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.font-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.font-card.expanded {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.font-card.highlighted {
    animation: highlight-pulse 2s ease-in-out;
    border: 2px solid #007bff;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-color: #007bff;
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
        border-color: #007bff;
    }
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }
}

.font-info {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.font-name {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.expand-indicator {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.font-card.expanded .expand-indicator {
    transform: rotate(180deg);
}



.font-previews {
    margin-bottom: 30px;
}

.font-preview {
    margin-bottom: 20px;
}

.preview-text {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    cursor: default;
    user-select: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease;
}

.preview-text.loading {
    opacity: 0.6;
    position: relative;
}

.preview-text.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.embed-code-section {
    margin-top: 20px;
}



.embed-code-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.embed-code-section.expanded .embed-code-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.code-block {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
}

pre {
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

code {
    color: #e83e8c;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .font-card {
        padding: 20px;
    }
    
    .font-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .lang-label {
        min-width: auto;
    }
    
    .preview-text {
        font-size: 2rem;
    }
    
    .font-name {
        font-size: 1.2rem;
    }
    
    .preview-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }
    
    .text-input-section,
    .font-size-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .font-size-controls {
        width: 100%;
    }
    
    .preview-input-wrapper input[type="text"] {
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    pre {
        font-size: 0.8rem;
        padding: 15px;
        word-break: break-all;
    }
    
    .code-header {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .font-card {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .font-name {
        font-size: 1.5rem;
    }
    
    pre {
        font-size: 0.75rem;
        padding: 12px;
    }
    
    .code-header {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .copy-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .preview-text {
        font-size: 1.8rem;
    }
    
    .font-name {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .preview-input-wrapper {
        padding: 12px 0;
    }
} 