body {
    overflow-x: hidden;
    overflow-y: scroll;
}

.content_sep {
    margin-top: 1rem;
    border-bottom: 1px #444 solid;
    margin-bottom: 1rem;
    color: #444;
}

h1 {
    margin-bottom: 0;
}

h1 a, h1 a:hover, h2 a, h2 a:hover, kbd a, kbd a:hover {
    color: inherit;
    text-decoration: none;
}

.menu {
    gap: 0.5em;
}

.dropdown-item {
    cursor: pointer;
}

.sign video {
    width: 100%;
    max-height: 25vh;
    min-height: 200px;
}

.single .sign video {
    max-height: 60vh;
    min-height: 200px;
}

.popoutcontainer, .idiom-video-container {
    transform-origin: var(--popout-x-shift) 50%;
    transition: transform 0.2s;

    position: relative;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    /* don't hover on touch and smaller devices */
    .popout {
        position: relative;
        animation: popout 0.2s;
        transform: scale(1.70);
        z-index: 11;
    }
    .idiom-video-container.popout {
        animation: popout_idiom 0.2s;
        transform: scale(1.70);
    }
}

@keyframes popout {
    from {
        transform: scale(1);
        z-index: 10;
    }
    to {
        transform: scale(1.70);
        z-index: 11;
    }
}

@keyframes popout_idiom {
    from {
        transform: scale(1);
        z-index: 10;
    }
    to {
        transform: scale(1.70);
        z-index: 11;
    }
}

.metadata > *:not(:last-child) {
    margin-right: 1em;
}

.admin {
    float: right;
}

.container {
    margin-top: 1em;
    margin-bottom: 1em;
}

.sign h2 {
    font-weight: bold;
    font-size: inherit;
}

.sign h2 a {
    color: inherit;
}

.signheader .btn {
    padding: 0;
    border: none;
    font-size: 25px;
    margin-left: 0.3rem;
    margin-top: -0.3rem;
    color: inherit;
    text-decoration: none;
}

.dropdown.tiny {
    margin-top: -0.3rem;
}

.dropdown.tiny .dropdown-toggle::after {
    display: none;
}

.material-symbols-outlined.checkbox {
    font-size: 20px;
    position: relative;
    top: 0.25rem;
}

.sign {
    border: 2px #555 dotted;
    padding: 1em;
    height: 100%;
}

.signvideocontainer {
    position: relative;
}

.signvideo {
    transition: transform 0.5s;
}

.signvideo {
    z-index: 2;
    position: relative;
}

.signvideo.hidden {
    transform: scale(0.33) translate(100%, 100%);
}

.signvideocontainer {
    position: relative;
}

.explanationvideo {
    position: absolute;
    top: 0;
    left: 0;
}

.explanationvideo, .signvideo {
    transition: transform 0.5s;
}

.explanationvideo {
    z-index: 1;
}

.signvideo {
    z-index: 2;
    position: relative;
}

.signvideo.hidden {
    transform: scale(0.33) translate(100%, 100%);
}

video.intro {
    width: 100%;
}

.webcam {
    width: 40vh;
}

.countdown {
    width: 40vh;
    position: absolute;
    font-size: 100px;
    text-align: center;
    color: white;
}

.recording {
    width: 40vh;
    position: absolute;
    visibility: hidden;
}

.recording .indicator {
    position: relative;
    top: 10px;
    left: 10px;
    background-color: red;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    animation: pulsate_opacity 1s linear infinite;
}

@keyframes pulsate_opacity {
    from { opacity: 1; }
    50% { opacity: 0.5; }
    to { opacity: 1; }
  }

h3 {
    margin-top: 1rem !important;
}

.search_examples > p {
    padding-left: 1rem;
}
.search_examples > p > kbd {
    margin-left: -1rem;
}

.search .help_btn {
    font-size: 2rem;
    padding: 6px;
    width: 60px;
}

.icon-button {
    font-size: 2rem;
    padding: 7.5px;
    color: var(--bs-body-color);
}

.autoplay-toggle, #q {
    border: none;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    border-bottom-right-radius: 0;
}

.meaning {
    transition: .05s filter;
}

.sign.geheim:not(:hover) .meaning {
    filter: blur(0.5rem);
}

.idiom-video-container video {
    width: 100%;
    height: 100%;
}

html[data-bs-theme=light] {
    --sign-video-icon-container-background: var(--bs-gray-300);
    --sign-video-icon-container-color: var(--bs-gray-800);
}

html[data-bs-theme=dark] {
    --sign-video-icon-container-background: var(--bs-gray-800);
    --sign-video-icon-container-color: var(--bs-gray-500);
}

.signvideocontainer__info-icon {
    --icon-offset: 6px;
    position: absolute;
    top: 0;
    right: 0;

    text-decoration: none;

    color: var(--sign-video-icon-container-color);
    transform: scale(1.4) translate(calc(-1 * var(--icon-offset)), var(--icon-offset));
}

.signvideocontainer__info-icon-background {
    position: absolute;
    top: 0;
    right: 0;
    fill: var(--sign-video-icon-container-background);
    z-index: 5;
}

.spacer {
    height: 100px;
}

#explainer-buttons {
    position: relative;
    top: 16px;
    left: 3px;
    z-index: 3;
    height: 0;
    width: 100px;
    overflow: visible;;
}

.sign-image {
    width: 100%;
}

.topiclink {
    padding-top: 0;
    color: #fff;
    text-align: left;
    margin-left: 10px;
    font-weight: bold;
}

.topiclink span {
    position: relative;
    top: 6px;
}

.topic-edit-icon {
    font-size: 2rem;
}

.add-topic-icon {
    font-size: 2rem;
}

.delete-htmx {
    position: absolute;
    right: 3px;
    top: 6px;
    z-index: 3;
    height: 0;
    overflow: visible;
    text-decoration: none;
    color: inherit;
}

.htmx-delete-subtopic {
    text-decoration: none;
    color: inherit;
    margin-top: 6px;
    text-align: right;
}

.clickable-form label {
    cursor: pointer;
    padding: 6rem;
}

.delete-example-video {
    position: absolute;
    right: 0;
    top: 2px;
    z-index: 3;
    color: darkred;
}
