/*
 * Copyright (c) 2025, Víctor Castillo Agüero.
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html {
    --top-nav-height: 150px;
}

@media screen and (min-width: 768px) {
    #top {
        height: var(--top-nav-height);
    }

    #nav-tree, #side-nav {
        height: calc(100vh - var(--top-nav-height)) !important;
    }

    #side-nav {
        top: var(--top-nav-height);
    }
}

.arrow {
    position: relative;
    top: -3px;
    font-size: 80%;
}

.github-corner svg {
    fill: var(--primary-light-color);
    fill: #FCAE1E;
    color: var(--page-background-color);
    width: 50px;
    height: 50px;
}

@media screen and (max-width: 768px) {
    .github-corner svg {
        width: 40px;
        height: 40px;
    }
}

#nav-tree-contents .children_ul .item .label {
    display: inline-block;
    transition: transform 0.2s ease;
}
#nav-tree-contents .children_ul .item .label:hover {
    transform: translateX(6px);
}

#nav-tree-contents .children_ul .item#selected .label {
    transform: translateX(6px);
}

#doc-content .toc a {
    display: inline-block;
    transition: transform 0.15s ease;
}
#doc-content .toc a:hover {
    transform: translateX(4px);
}

#doc-content .toc a.active {
    transform: translateX(4px);
}

a code {
    color: #97c0e3;
}

div.fragment a.code:hover {
    color: #FCAE1E !important;
}

a:hover {
    color: #FCAE1E !important;
}

a:hover code {
    color: #FCAE1E;
}
