* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    flex-direction: column;
    height: 100vh;
    display: flex;
    color: white;
    /* font-family: 'Segoe UI', sans-serif; */
}

/* Header CSS START */
header {
    background-color: #282c34;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    padding: 1rem;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header nav .logo {
    flex: 0 0 auto;
}

header nav .ad-section {
    flex: 1;
    text-align: center;
}

header nav #theme-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    outline: none;
    border: 2px solid #282c34;
    padding: 1rem 0.2rem;
}

header nav #theme-selector {
    background: #2d2d2d;
    color: white;
    padding: 5px;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
    border: 1px solid #000;
}

header nav #theme-selector option{
    outline: none;
    border: none;
}


header nav #theme-selector:hover {
    outline: 1px solid #000;
    border: 1px solid #000;
}

/* Header CSS END  */
.lang-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.lang-icon.selected {
    opacity: 1;
    border: 2px solid white;
    border-radius: 5px;
}

/* main flex box layout START */
main {
    flex: 1;
    display: flex;
    min-height: 100vh;
}


/* sidebar css start */
.sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.1rem;
    gap: 1rem;
    border-right: 1px solid #444;
    min-height: 100%;
    background-color: #2d2d2d;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar img {
    width: 40px;
    border-radius: 11px;
    margin: 10px 0;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

/* sidebar css END */

.center {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 4px 8px;
    padding: 10px;
    height: 100vh;
    box-sizing: border-box;
}

.editor-container {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 1rem;

}

.editor-label {
    padding: 5px 10px;
    background: #333;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.CodeMirror {
    height: 100% !important;
}

button {
    padding: 10px 20px;
    font-weight: bold;
    background: #007acc;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    height: 100%;
}

.lang-icon.selected {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 4px;
}

/* main flex box layout END */

/* Footer CSS Start */
/* .footer {
    background-color: #1a1919;
    color: white;
    padding: 1rem 0;
    font-family: 'Segoe UI', sans-serif;
    border-top: 3px solid #000;
    position: relative;
    z-index: 1000;
}

.footer div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    text-align: center;
} */
.footer {
    background-color: #1a1919;
    color: white;
    padding: 1rem 0;
    font-family: 'Segoe UI', sans-serif;
    border-top: 3px solid #000;
    position: relative;
    z-index: 1000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-item {
    flex: 1;
    text-align: center;
}

.footer-item:first-child {
    text-align: left;
}

.footer-item:last-child {
    text-align: right;
}

.footer a {
    color: #61dafb;
    text-decoration: none;
    font-size: 1rem;
}

.footer .copyright {
    color: #aaa;
    font-size: 0.95rem;
}


/* Footer CSS End */