@charset "UTF-8";
.modal-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-overlay.modal-overlay-visible{
    display: block;
}

.modal-container{
    display: none;
    position:fixed;
    top: 50%;
    left: 50%;
    z-index: 101;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 20px 15px 20px 0px rgb(255 255 255 / 20%);
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    /* Let's add the overflow-y property */
    overflow-y: auto;
}

.modal-ai-container{
    display: none;
    position:fixed;
    top: 50%;
    left: 50%;
    z-index: 101;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 20px 15px 20px 0px rgb(255 255 255 / 20%);
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    /* Let's add the overflow-y property */
    overflow-y: auto;
}

.modal-container-controls{
    position: absolute;
    right: 40px;
    top: 8px;
}

.modal-button {
    opacity: 0.7;
    color: white;
    border-radius: 25px;
    padding: 10px;
    border: 0px;
}

.modal-saveall-button {
    background-color: green;
    margin-right: 20px;
}

.modal-savecode-button {
    background-color: rgb(233, 102, 172);
    margin-right: 20px;
}

.modal-savedoc-button {
    background-color: rgb(56, 172, 214);
    margin-right: 20px;
}

.modal-close-button {
    background-color: red;
 }

.code_ai:hover,
.code_e:hover,
.modal-button:hover{
    opacity: 1;
    transform: translate3D(0,-1px,0) scale(1.03);
    cursor: pointer;
}

.modal-container.modal-container-visible,
.modal-ai-container.modal-container-visible{
    display: block;
}

#codemir {
    margin-top: 50px;
    margin-right: -5px;
}

.CodeMirror  {
    height: 85%;
    width: 100.1%;
/*    border: 1px solid #000000; */
}

.code_ai {
    cursor: pointer;
}
.code_ai img {
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: block;
    margin-top: 1em;
    cursor: pointer;
    border: 1px solid #000;
    box-sizing: border-box;
}

#ai { font-family: sans-serif; max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
#ai label { /*display: block; */font-weight: bold; margin-top: 1rem; }
#ai textarea { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 0.9rem; width: 100%; height: 175px; }
#aIoutput { white-space: pre-wrap; font-size: 11px; font-family: monospace; background: #f4f4f4; padding: 0.5rem; margin-top: 0.5rem; min-height: 3rem; min-width: 50%;}
#aIinfo { /*white-space: pre-wrap; */font-size: 11px; font-family: monospace; background: #f4f4f4; padding: 0.5rem; margin-top: 0.5rem; min-height: 3rem; min-width: 50%;}
.ai-info-wrap { position: relative; padding-top: 0; margin-top: 0;}

.ai-info-editor {
    display: none;
    position: absolute;
    top: 1.6rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f4f4f4;
    padding: 0.5rem;
    z-index: 2;
    box-sizing: border-box;
}

.ai-info-editor.visible {
    display: block;
}

#aiInfoEditorTextarea {
    width: 100%;
    height: calc(100% - 2.7rem);
    box-sizing: border-box;
    font-family: monospace;
    font-size: 11px;
    resize: vertical;
}

.ai-info-editor-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.ai-info-editor-controls .aibut {
    margin-top: 0;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
}

.aibut  { margin-top: 1rem; padding: 0.5rem 1.5rem; font-size: 1rem; cursor: pointer; }

#editDoc {
    position: absolute;
    top: -28px;
    right: 1.6rem;
    margin-bottom: 0px;
    transform: none;
    margin-left: 0;
    width: 30px;
	padding: 3px 3px;
    font-size: 11px;
}

#editDoc:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#copyAIInfoButton {
    all: unset;
    position: absolute;
    top: -23px;
    right: 0;
    margin-bottom: 0px;
    transform: none;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-family: sans-serif;
    line-height: 1;
    color: #555;
    cursor: pointer;
    z-index: 1;
}
#copyAIInfoButton::before,
#copyAIInfoButton::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    width: 0.62rem;
    height: 0.62rem;
    border: 1px solid currentColor;
    border-radius: 1px;
    background: #fff;
}
#copyAIInfoButton::before {
    top: 0.17rem;
    left: 0.32rem;
}
#copyAIInfoButton::after {
    top: 0.06rem;
    left: 0.21rem;
}
#copyAIInfoButton:hover {
    color: #000;
    transform: scale(1.08);
}
#copyAIInfoButton.copied {
    color: #4db878;
    transition: color 0.3s ease;
}
#copyAIInfoButton.copied::before,
#copyAIInfoButton.copied::after {
    border-color: #4db878;
    background-color: #4db878;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
#outTable {width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 20px 0;}
#outTable td {vertical-align: top; }
.horizontal-radio label, .horizontal-radio input {
/*    display: inline-block;*/
    margin-right: 10px;
 }
