:root {
    --play-degrees: 0deg;
    --setting-w: 30%;
}

@font-face {
    font-family: 'SimplisticSans';
    src: url('AlleSimplisticSans/SimplisticSans/SimplisticSans-Normal.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'SimplisticSans';
    src: url('AlleSimplisticSans/SimplisticSans/SimplisticSans-Medium.otf') format('opentype');
    font-weight: 500;  /* Medium weight */
}

@font-face {
    font-family: 'SimplisticSans';
    src: url('AlleSimplisticSans/SimplisticSans/SimplisticSans-Bold.otf') format('opentype');
    font-weight: bold;
}

canvas {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    z-index: 1;
}
body.mobile canvas {
    top: 0px;
}
body,
html {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
}
.label {
    position: absolute;
    background: transparent;
    color: black;
    background: white;
    border: 1px solid black;
    white-space: nowrap;
    transition:
        left 0.1s,
        top 0.1s;
}
#underlay {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
}
#overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
#overlay * {
    pointer-events: all;
    font-family: 'SimplisticSans', monospace;
}
* {
    font-family: 'SimplisticSans', monospace;
    font-size: 13px;
}

#search {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-bottom: 10px;
    margin-top: 20px;
    width: var(--setting-w);
    align-items: center;
}
#searchbar {
    display: flex;
    column-gap: 5px;
    /*    height: 40px;*/
    width: 100%;
    position: relative;
}

#searchbarinput {
    width: 100%;
    all: unset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border-bottom: 2px solid black;
    padding: 5px;
    outline: none;
    height: 1em;
    text-align: center;
}

#searchbarinput::placeholder {
    color: black; /* Placeholder text color */
}

#orderprinciples,
#suggestions {
    width: 100%;
    height: 2em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0px 0px 0px 5px;
    padding-right: 30px;
    padding-top: 1px;
    border: 2px solid black;
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    border-radius: 0px;
}

#orderprinciples {
    margin-bottom: 1em;
}

#searchterms,
#searchtermssuggested {
    display: flex ;
    column-gap: 10px;
    max-width: 100vw;
    overflow-x: scroll;
    padding: 0px 10px;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#searchterms .searchterm,
#searchtermssuggested .searchterm {
    border: 2px solid black;
    height: fit-content;
    display: inline-flex;
    padding: 5px;
}
#searchterms .searchterm p,
#searchtermssuggested .searchterm p {
    margin: 0px;
    height: fit-content;
    white-space: nowrap;
}

#search .sug-title {
    text-align: center;
    margin-bottom: 10px;
}

/* SLIDERS */

#slider-container {
    width: var(--setting-w);
    margin-top: 2em;
}

.slider-values {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    column-gap: 20px;
}
#start-date,
#end-date {
    padding: 2px;
    /*    border: 1px solid black;*/
}

#end-slider::-webkit-slider-thumb {
    margin-top: -28px;
}
#end-slider::-moz-range-thumb {
    margin-top: -28px;
}
#end-slider {
    background: transparent;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    border-radius: 5px;
    background: #000000;
    outline: none;
    opacity: 1;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid black;
    background: #000000;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid black;
    background: #000000;
    cursor: pointer;
}
.slider::-webkit-slider-thumb:hover {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid black;
    background: #ffffff;
    cursor: pointer;
}

.slider::-moz-range-thumb:hover {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid black;
    background: #ffffff;
    cursor: pointer;
}

/* BOTTOM */

#bottom {
    position: absolute;
    bottom: 0px;
    width: var(--setting-w);
    display: flex;
    align-items: center;
    flex-direction: column;
}
#tempo-container {
    width: 100%;
    margin-bottom: 20px;
}
#playpause {
    background-image: url(../assets/play.svg);
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    transform: rotate(0deg);
    transition: transform 0.5s;

    background-position: center;
}
#playpause.playing {
    background-image: url(../assets/pause.svg);
    transform: rotate(var(--play-degrees));
    transition: none;
}

/* LOADER */

#loader {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;

    display: flex;
    justify-content: center;
    align-items: center;
}
#loader p {
    text-align: center;
    color: white;
    font-family: sans-serif;
}

#cursorText {
    position: absolute;
    z-index: 9;
    background: white;
    padding: 5px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}
#cursorText.hidden {
    opacity: 0;
}

#video-ids {
    display: none;
}

.close svg {
    width: 0.5em;
    margin-left: 5px;
}

@media screen and (orientation: portrait) {
    :root {
        --setting-w: 90%;
    }
}
@media screen and (orientation: landscape) {
    :root {
        --setting-w: 30%;
    }
}
