@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-jp.min.css");

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font-family: Pretendard, "Pretendard JP", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", Meiryo, "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", Osaka, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    background-color: #f5f5f5;
    padding-bottom: 220px;
    /* Space for fixed timeline */
}

::placeholder {
    font-family: inherit;
    font-weight: inherit;
}

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

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Input section */
/* Unified card styling for main sections */
.input-section,
.preview-section,
.export-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="file"],
input[type="number"],
input[type="color"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="color"] {
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

input[type="number"] {
    width: 100%;
}

textarea {
    resize: vertical;
    font-family: monospace;
}

.hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.hidden {
    display: none;
}

#timeline-wrapper .hidden-force,
#timeline-main-content.hidden-force,
#timeline-playhead-handle.hidden-force,
.timeline-waveform.hidden-force {
    display: none !important;
}

/* Responsive design */
@media (min-width: 768px) {
    .container {
        display: grid;
        grid-template-columns: minmax(400px, 620px) 1fr;
        gap: 20px;
    }

    .input-section {
        grid-column: 1;
        min-width: 0;
    }

    .preview-section,
    .export-section {
        grid-column: 2;
    }
}