html, body {
    font-family: 'Sevolt UI', 'Sevolt Emoji Color', system-ui, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 1;
}

#editor-container {
    flex: 1;
    display: flex;
    height: 100%;
    flex-direction: row; /* Default horizontal layout */
}

#editor {
    width: 50%;
    overflow: none;
}

#divider {
    width: 6px;
    cursor: ew-resize;
    background-color: #666;
}

#preview {
    flex: 1;
    overflow: auto;
    background-color: #ffffff;
    border-left: 1px solid #000;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background-color: #000000;
}

button {
    font-family: 'Sevolt UI', 'Sevolt Emoji Color', system-ui, Arial, Helvetica, sans-serif;
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: #212121;
    color: #ffffff;
    border: none;
    border-radius: 4px;
}

button:hover {
    color: #ffffff;
    background-color: #3474f0;
}

select {
    font-family: 'Sevolt UI', 'Sevolt Emoji Color', system-ui, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #ffffff;
    background-color: #212121;
    border: none;
    margin-right: 8px;
    padding: 6px 12px;
    border-radius: 4px;
}

#logo {
    margin-left: 10px;
    padding-top: 8px;
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 30px;
    z-index: 1;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Layout (small screen) */
@media (max-width: 768px) {
    #editor-container {
        flex-direction: column; /* Stack editor and preview vertically */
    }

    #editor {
        width: 100%; /* Full width on mobile */
        height: 50%; /* Half of the screen */
    }

    #divider {
        display: none; /* Remove divider on mobile */
    }

    #preview {
        width: 100%; /* Full width on mobile */
        height: 50%; /* Half of the screen */
        border: none; /* Remove border on mobile */
    }
}