body {
    font-family: sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1400px;
    text-align: center;
}

.main-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

.right-panel {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        flex: 1;
    }
}

h1 {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

h1 span {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.input-section {
    margin-bottom: 20px;
}

#text-input {
    width: 80%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.typography-display {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping of letters */
    word-break: break-all; /* Break long words */
    gap: 5px; /* Add some space between letters */
}

.typography-display span {
    transition: all 0.3s ease-in-out;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.download-options {
    display: flex;
    align-items: center;
    gap: 10px;
}


.controls button:hover {
    background-color: #0056b3;
}

.customization-controls {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    border-top: 1px solid #eee;
}

.customization-controls h2 {
    margin-top: 0;
    text-align: center;
    color: #555;
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.control-group label {
    font-size: 16px;
}

#font-family-select {
    padding: 5px;
    border-radius: 5px;
    width: 60%;
}

#color-picker {
    width: 60%;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

#font-size-slider {
    width: 60%;
}




/* Code Viewer Styling */
.code-viewer {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f8f9fa;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    align-items: center;
    padding: 0 10px;
}

.copy-btn {
    margin-left: auto;
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #218838;
}

.copy-btn.copied {
    background-color: #6c757d;
}

.code-container {
    position: relative;
    height: 500px;
    overflow-y: auto;
}

.code-display {
    margin: 0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    display: none;
    white-space: pre;
    text-align: left;
    overflow-x: auto;
}

.code-display.active {
    display: block;
}

.code-display code {
    font-family: 'Courier New', monospace;
    color: #333;
}
