@font-face {
    font-family: 'Outfit';
    src: url('Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
body {
    margin: 0;
    font-family: 'Outfit', 'Arial', 'Helvetica', sans-serif;
    background-color: #012e56;
    color: #D0D0D0;
    display: flex;
    height: 100vh;
    background-image: url('https://static1.e621.net/data/sample/8f/0f/8f0f02d09a0944e5efba3e797e60d503.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#container {
    display: flex;
    width: 100%;
    height: 100%;
}

#sidebar {
    width: 15%;
    min-width: 150px;
    max-width: 50%;
    background-color: #012e56;
    padding: 20px;
    overflow-y: auto;
    height: 96vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

#sidebar h2 {
    font-size: 22px;
    color: #FFA500;
    margin: 0 0 10px 0; 
    text-align: center;
    background-color: #012e56;
}

#search-container {
    margin-bottom: 15px;
}

#search-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

#search {
    flex-grow: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #4682B4;
    border-radius: 5px;
    background: #012e56;
    color: #D0D0D0;
    outline: none;
    transition: border-color 0.2s;
}

#search:focus {
    border-color: #FFA500;
}

#toggle-tag-menu {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #4682B4;
    border-radius: 5px;
    background: #012e56;
    color: #D0D0D0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    width: 50px;
}

#toggle-tag-menu:hover {
    background-color: #4682B4;
}

#toggle-tag-menu:active, #toggle-tag-menu:focus {
    border-color: #FFA500;
    outline: none;
}

#tag-filter-menu {
    background: #012e56;
    border: 1px solid #4682B4;
    border-radius: 5px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 5px;
}

.tag-filter-item {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 3px;
    margin: 2px 0;
}

.tag-filter-item:hover {
    background-color: #4682B4;
}

.tag-filter-item.selected {
    background-color: #FFA500;
    color: #FFFFFF;
}

#resizer {
    width: 5px;
    background-color: #4682B4;
    cursor: ew-resize;
    height: 100%;
    transition: background-color 0.2s;
}

#resizer:hover {
    background-color: #FFA500;
}

#class-list {
    list-style: none;
    padding: 0;
}

#class-list li {
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

#class-list li:hover {
    background-color: #4682B4;
    color: #FFFFFF;
}

#content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #0b1217ae;
    border-radius: 10px;
    margin: 10px;
}

h1 {
    font-size: 26px;
    color: #FFA500;
    margin-bottom: 20px;
}

.api-text {
    color: #fbf8e5;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.property, .function, .event {
    padding: 12px;
    margin: 8px 0;
    background-color: #012e56;
    border-left: 4px solid;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.highlight {
    background-color: #FFA500;
    color: #FFFFFF;
    border-left-color: #FFFFFF;
}

.property {
    border-left-color: #4682B4;
}

.function {
    border-left-color: rgb(204, 155, 242);
}

.event {
    border-left-color: #ffbf00;
}

span[title] {
    position: relative;
}

span[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFA500;
    color: #FFFFFF;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 100;
    white-space: nowrap;
}