body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    color: #333;
}
cite {
    display: inline-block;
    text-align: center;
    width: 100%;
}
a {
    color: blue;
}
.control-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.preview-section {
    margin-bottom: 20px;
    text-align: center;
}
.device-preview {
    display: inline-block;
    width: 194px;
    height: 368px;
    background-color: black;
    position: relative;
    border-radius: 20px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}
.preview-element {
    position: absolute;
    color: white;
}
canvas {
    display: block;
    margin: 10px 0;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-wrap: nowrap;
}
input, select, button {
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}
input:is([type="checkbox"]) {
    width: auto;
}
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #45a049;
}
.download-section {
    margin-top: 15px;
}
.color-picker {
    display: flex;
    align-items: center;
}
.color-picker input[type="color"] {
    width: 50px;
    margin-right: 10px;
}
.color-picker input[type="text"] {
    flex-grow: 1;
}
.font-preview {
    margin-top: 10px;
    font-size: 40px;
    text-align: center;
    min-height: 60px;
    border: 1px dashed #ccc;
    padding: 10px;
}
.samples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.sample-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: white;
    text-align: center;
    font-size: 0.8em;
}
.sample-image img {
    max-width: 100px;
    height: auto;
}
.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: block;
}
.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
