:root {
    --left-width: 60%; /* Initial width of the left item */
    --right-width: 40%; /* Initial width of the right item */
    --handle-width: 10px; /* Width of the handle */
}

*:focus {
    outline: none;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

i.bi{
    display: flex;
    justify-self: center;
    align-self: center;
    justify-items: center;
    align-items: center;
}

#result1 .bi,
#result2 .bi{
    color: var(--text-color);
}

#result1 .bi-check,
#result2 .bi-check{
    color:rgb(33, 176, 95);
}

#result1 .bi-x,
#result2 .bi-x{
    color: rgb(228, 70, 70);
}


a {
    text-decoration: none;
    color: inherit;
    font-size: small;
}

button {
    cursor: pointer;
}

html,
body {
    flex: 1;
    display: flex;
    flex-direction: column;

    background-color: var(--background-color) !important;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    
    color: var(--text-color);

    height: 100vh;
    overflow: hidden;
}

div.menuContainer {
    height: 5vh;
    display: grid;
    grid-template-columns: 1fr 4fr repeat(5, 1fr);
    gap: 10px;

    margin-bottom: 1vh;

    align-items: stretch;
    justify-items: stretch;
}

div.menuContainer * {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    min-height: 0;

}

#homeButton {
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 5px;
    background-color: rgb(0, 0, 0, 0);
}

#homeButton:hover {
    color: var(--background-color);
    background-color: var(--text-color);
}

#bug {
    border: 1px solid rgb(228, 70, 70);
    border-radius: 5px;
    background-color: rgb(0, 0, 0, 0);
    color: rgb(228, 70, 70);
}

#bug:hover {
    color: var(--text-color);
    background-color: rgb(228, 70, 70);
}

button.menuButton {
    border: 1px solid gray;
    border-radius: 5px;
    background-color: rgb(0, 0, 0, 0);
    color: gray;
}

button.menuButton.selected {
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

button.menuButton:hover {
    color: var(--background-color);
    background-color: var(--text-color);
}

.menuContainer button span {
    display: flex;
    font-size: 1rem;
    white-space: nowrap;
}

.menuContainer .bi {
    font-size: 2rem;
}

.visibility .bi {
    font-size: 1.7rem;
}

div.main {
    flex: 1;

    display: grid;
    grid-template-columns:
        calc(var(--left-width) - var(--handle-width) / 2)
        var(--handle-width)
        calc(var(--right-width) - var(--handle-width) / 2);

    grid-template-rows: 1fr;
    overflow: hidden;
}

div.selectPanel {
    display: flex;
    height: 100%;
    flex-direction: column;
    width: 100%;
}

div.selectPanel > * {
    display: flex;
    flex: 1;

    justify-self: center;
    align-self: center;

    width: 100%;
    height: 100%;

    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;

    flex-direction: column;

    scrollbar-color: var(--secondary-color) rgba(0, 0, 0, 0);
    scrollbar-width: thin;
}

.resize-handle {
    background-color: var(--background-color);
    cursor: ew-resize; /* Horizontal resize cursor */
    width: 10px; /* Width of the resize handle */
    height: 100%;
    z-index: 2;
}

@media (max-aspect-ratio: 1/1) {
    .menuContainer button span {
        display: none;
    }

    div.main {
        grid-template-rows: 1fr 10px 1fr;
        grid-template-columns: 1fr;
    }
}

#problem1,
#problem2,
#problem1 iframe,
#problem2 iframe
{
    width: 100%;
    height: 100%;
}