body, html {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}
.content-wrapper {
    display: flex;
    align-items: flex-start;
    max-width: 1350px;
    width: 100%;
}
.container {
    width: 100%;
    max-width: 1050px;
    flex-direction: column;
    display: flex;
    height: 100%;
}
#search-container {
    display: none;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    z-index: 10;
}
.editor-container {
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 70vh;
}
#editor {
    padding: 10px;
    border: none;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}
.tools-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-bar-friends {
    display: flex;
    gap: 10px;
}
#result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}
.valid {
    background-color: #d4edda;
    color: #155724;
}
.invalid {
    background-color: #f8d7da;
    color: #721c24;
}
.secondary-bar {
    margin-left: 20px;
}
.keymaps-bar {
    width: 300px;
    background-color: #edeae1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.keymaps-bar ul {
    list-style-type: none;
    padding: 0;
}
.keymaps-bar li {
    margin-bottom: 5px;
}

button {
    padding: 10px 20px;
    background-color: #AF4CAB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.square-button {
    background-color: #4C79AF;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 4px;
}
.square-button svg {
    width: 20px;
    height: 20px;
}

.rainbow-text:is(.linear-hstripes) {
    background: linear-gradient(to bottom, red 0%, red 12.5%, orange 12.5%, orange 25%, yellow 25%, yellow 37.5%, green 37.5%, green 50%, blue 50%, blue 62.5%, indigo 62.5%, indigo 75%, violet 75%, violet 87.5%, white 87.5%) 0 0.3em/100% 1em repeat-y;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8vw;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
    display: inline !important;
    text-align: center;
    display: block;
    animation: scroll 2s infinite;
    animation-timing-function: linear;
}
.switch-to-diff {
    margin: 15px 0;
    text-align: center;
}
.coffee-box {
    margin: 15px 0;
    text-align: center;
}

.diff-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #4a4a4a, #333);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #555;
    gap: 8px;
}

.diff-link:hover {
    background: linear-gradient(135deg, #555, #444);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.diff-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.diff-link svg {
    width: 16px;
    height: 16px;
}
.stroke {
    filter: drop-shadow(3px 0 0 white) drop-shadow(0 3px 0 black) drop-shadow(-3px 0 0 white) drop-shadow(0 -3px 0 white);
}
@keyframes scroll {
    0% {
        background-position-y: 0;
    }
    100% {
        background-position-y: 1em;
    }
}

.CodeMirror {
    max-height: 100% !important;
    font-size: 14px;
    line-height: 1.6;
}
.CodeMirror-foldmarker {
    color: blue;
    text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
    font-family: arial;
    line-height: .30;
    cursor: pointer;
}
.CodeMirror-foldgutter {
    width: .7em;
}
.CodeMirror-foldgutter-open,
.CodeMirror-foldgutter-folded {
    cursor: pointer;
}
.CodeMirror-foldgutter-open:after {
    content: "\25BC";
}
.CodeMirror-foldgutter-folded:after {
    content: "\25B6";
}

#searcher {
    width: 100%;
    padding: 12px 16px 12px 16px;
    border-radius: 9999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: black;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.highlight { background-color: #395589; }

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    pointer-events: none;
}
.notification.show {
    opacity: 1;
}