body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    color: #2c3e50;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#language-select, button, .file-upload-label {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

button, .file-upload-label {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

button:hover, .file-upload-label:hover {
    background-color: #2980b9;
}

.file-upload-label {
    display: inline-block;
}

#file-upload {
    display: none;
}

.editor-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 이 부분을 추가하여 Flexbox 오버플로우 문제 해결 */
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #2c3e50;
}

textarea {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

textarea#formatted-code {
    background-color: #f9f9f9;
}

/* 드래그 앤 드롭 스타일 */
textarea.drag-over {
    border: 2px dashed #3498db !important; /* 파란색 점선 테두리 */
    background-color: #f0f8ff; /* 옅은 파란색 배경 */
}


.ads-left, .ads-right {
    position: fixed;
    top: 100px;
    width: 160px;
    height: 600px;
    z-index: 999;
}

.ads-left {
    left: 0;
}

.ads-right {
    right: 0;
}

@media (max-width: 1200px) {
    .ads-left, .ads-right {
        display: none;
    }
}