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

/* Body */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Headings */
.title {
    font-size: 2.2rem;
    color: #1a73e8;
    margin-bottom: 0.5rem;
    text-align: center;
}

.sub-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    color: #1a1a1a;
}

/* Paragraph */
.p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #555;
}

/* Buttons */
button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #1666c1;
    transform: translateY(-2px);
}

/* File input */
input[type="file"] {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Editor */
#editor {
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
    overflow-y: auto;
}

/* Language selector */
#blockLanguageSelector {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.buttonContainer {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    #editor {
        width: 100%;
        height: 300px;
    }
}
