#separate {
  width: 75%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 65vh;
}

#left,
#right {
  width: 50%;
  height: 100%;
}

#left {
    height: 100%;
    overflow-y: scroll;
}

#right {
    border-left: 1px solid rgba(0, 32.5, 47.5);
    height: 100%;
    overflow-y: auto;
}

h2 {
    margin: 20px 0 10px 0;
    text-align: center;
    font-size: 20px;
    font-family: Inter;
    font-weight: bold;
}

#left ul#game-list {
    font-family: Inter;
    font-size: 15px;
}

#left ul#game-list li p a {
    color: black;
    text-decoration: underline;
    margin: 0 10px 0 10px;
}

#left ul#game-list li p span.unplayable {
    color: rgb(83, 83, 83);
    text-decoration: line-through;
    margin: 0 10px 0 10px;
}

#right #form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.creation-mode-auto,
.creation-mode-custom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creation-mode-custom label {
    display: block;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

#id,
#fen-code {
    width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#id:focus,
#fen-code:focus {
    border-color: #0097db;
    box-shadow: 0 0 0 3px rgba(0, 151, 219, 0.2);
}

.text-divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 250px;
    margin: 12px auto;
}

.text-divider::before,
.text-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.text-divider span {
    padding: 0 10px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

button#create.modern-button, button#auto-create.modern-button, #form a.modern-button {
    margin: 0 auto 0 auto;
    max-width: 250px;
}

.modern-button img{

    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-button {
    margin: 0 auto 0 auto;
    font-size: 250%;
}

#fen-form.hidden {
    display: none;
}

.divider {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0.75rem auto;
}
@media (max-width: 800px) {
    #logo {
        width: 200px;
    }

    body {
        justify-content: flex-start;
        padding: 50px 0 20px;
    }

    #separate {
        width: 100%;
        flex-direction: column;
        height: auto;
        gap: 10px;
        margin-top: 0;
    }

    #left,
    #right {
        width: 100%;
        height: auto;
        overflow-y: visible;
    }

    #right {
        border-left: none;
        border-bottom: 1px solid rgba(0, 32.5, 47.5);
        padding: 10px 12px 12px;
    }

    #left {
        border-top: none;
        padding: 10px 12px;
        max-height: none;
    }

    #form br,
    .panel br {
        display: none;
    }
    .panel {
        min-height: 320px;    
    }

    h2 {
        margin: 0 0 10px 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    .logo-button {
        margin: 0;
        font-size: 1.8rem;
        width: 1.8rem;
        height: 1.8rem;
        line-height: 1.8rem;
        text-align: center;
        flex-shrink: 0;
    }

    #form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .text-divider {
        margin: 6px auto;
    }

    .switch {
        margin: 4px 0 10px 0;
        gap: 0.3rem;
    }

    .switch-label {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    button#auto-create.modern-button {
        margin-bottom: 10px;
    }

    .divider {
        margin: 0.5rem 0;
    }

    label {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    #id,
    #fen-code {
        width: 250px;
        box-sizing: border-box;
        font-size: 0.85rem;
        padding: 5px 8px;
        margin-bottom: 10px;
    }


    #left ul#game-list {
        font-size: 0.8rem;
        margin-top: 6px;
    }
}
body.vocal-active .auto-create-inactive { display: none; }
body.vocal-active .auto-create-active { display: flex; align-items: center; gap: 10px; justify-content: center; }

body:not(.vocal-active) .auto-create-active { display: none; }
body:not(.vocal-active) .auto-create-inactive { display: inline; }

