@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow: hidden;
}

button {
    cursor: pointer;
    width: 5%;
    height: auto;
    background-color: #007bff;
    border: #6b8e23 2px solid;
}

#header {
    background-image: linear-gradient(-43deg, #007bff, #00c6ff);
    color: white;
    padding: 20px;
    text-align: center;
    user-select: none;
}

#header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 400;
    color: #28e328;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

#header a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
}

#code-editors {
    display: flex;
    justify-content: center;
    gap: 20px; /* Add space between editors */
    margin-top: 20px;
    z-index: 1;
}
#code-editors textarea {
    resize: none;
    width: 45%;
    height: 350px;
    /* Removed position: absolute; and z-index: 1; to fix overlapping */
}
#run {
    position: relative;
    top: 50px;
    left: 47.5%;
    z-index: 1;
}
#output-frame {
    position: relative;
    width: 90vh;
    height: 90vh;
    border: 1px solid #000;
    background-color: white;
    z-index: 2;
    display: none;
    border-radius: 10px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000000b3;
    z-index: 2000;
}

#output-frame.fullscreen {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 90vh !important;
    z-index: 1001 !important;
    box-shadow: 0 0 40px #000;
    background: #fff;
    border: 2px solid #007bff;
    display: block !important;
}