:root{
    --pcolor:#16425B;
    --scolor:#2F6690;
    --tcolor:rgba(11, 39, 55, 0.887);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1A1A1A;
    position: relative;
}


.code-container {
    margin-top: 10vh;
    display: flex;
    width: 100%;
    height: 90vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.editor {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #2F6690;
}

.code {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    background-color: white;
    color: black;
    border: none;
    outline: none;
    resize: none;
    overflow: auto;
}

.run-btn {
    padding: 10px;
    margin-top: 10px;
    border: none;
    background-color: #2F6690;
    color: white;
    cursor: pointer;
    border-radius: 0px;
}

.output-frame {
    width: 50%;
    height: 100%;
    border: none;
}


.toggle-button {
    position: fixed;
    z-index: 999;
    top: 1px;
    left: 5px;
    padding: 10px 20px;
    font-size: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color:var(--tcolor) ;
    color: white;
    transition: background-color 0.3s;
}
.toggle-button:hover {
    background-color: var(--pcolor);
}
.night-mode {
    background-color: #1A1A1A;
    color: #ffffff;
}