body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #ffffff;
    overflow: hidden;
}

#output {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    position: relative;
    height: 100vh;
    width: 100vw!important;
}

#editor-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30vw;
    display: flex;
    flex-direction: column;
    background-color: #2c2c2c;
    border-left: 1px solid #333;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: width 0.3s ease;
}

#html-editor {
    flex-grow: 1;
    border: none;
    font-family: monospace;
    height: 30%;
    width: 100%;
    background-color: #333;
    color: #fff;
}

#editor {
    flex-grow: 1;
    border: none;
    font-family: monospace;
    font-size: 15px;
    height: 70%;
    width: 100%;
    background-color: #444;
    color: #fff;
}

.button-container {
    position: absolute; 
    bottom: 20px; 
    left: 10%; 
    /* transform: translateX(-50%);  */
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 1000; 
    flex-wrap: wrap; /* Allow wrapping */
}

.group {
    display: flex;
    flex-direction: row; /* Stack elements in the group vertically */
    align-items: center;
    column-gap: 20px;
    padding: 10px;
    margin: 0px;
}

/* Group-specific styles */
#loadGroup {
    background-color: #3f3f3f;
}

#runGroup {
    background-color: #4caf50;
}

#downloadGroup {
    background-color: #3c3c3c;
}

#saveGroup {
    background-color: #ffeb3b;
}

#openGroup {
    background-color: #9c27b0;
}

#toggleGroup {
    background-color: #1a1a1a;
}

button {
    padding: 10px 10px;
    font-size: 16px;
    background-color: #a5a5a5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #525252;
}

select, input[type="text"], input[type="file"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.slider-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
    color: white; 
}

.slider-container input[type="range"] {
    color: white; 
}

#floating-container {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.092);
    padding: 10px;
    width: 300px;
    height: auto;
    min-height: 150px;
    border: 1px solid #cccccc;
    z-index: 1000;
    max-width: 100%; 
    max-height: 100%; 
    overflow: auto; 
    box-sizing: border-box; 
}


#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#auth-form {
    background: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

#auth-form input {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
}

#auth-form button {
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#auth-form button:hover {
    background-color: #0056b3;
}


#bottomToggleButton {
    position: absolute;
    bottom: 10px; /* Adjust to position above the button container */
    left: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #a5a5a5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100; /* Ensure it appears above other elements */
}

#bottomToggleButton:hover {
    background-color: #525252;
}
