*,*::after,*::before {
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Playpen Sans", Tahoma, sans-serif;
}

:root {
    --back-color: rgb(0,0,50);
    --back-mid: rgba(0,0,50,0.7);
    --back-light: rgba(0,0,50,0.3);
}

body {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(45deg,var(--back-mid),10%,var(--back-color));
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.main-video-player {
    width: 80%;
    height: auto;
    max-height: 80%;
}
.plip-home-link {
    height: 80%;
    width: 20%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.plip-home-link-img {
    height: 80%;
    width: auto;
    max-height: 30px;
    padding: 3px;
    border-radius: 8px;
    box-shadow: 0 0 3px 1px white;
}
.plip-home-link-text {
    margin-left: 10px;
}

.search-container {
    margin: 0 auto;
    width: 95%;
    height: 10%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}
.search-tabs {
    height: 10%;
    min-height: 35px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.search-tab {
    color: white;
    height: 95%;
    border-radius: 10px 10px 0 0;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
}
.search-tab:hover {
    box-shadow: 0 0 3px 1px white;
}
.search-tab-text {
    pointer-events: none;
}
.search-tab-img {
    height: 60%;
    transform: rotate(-90deg);
    transition: transform 200ms ease-in-out;
}
.search-tab.open-tab > img{
    transform: rotate(0deg);
}
.search-body {
    height: 0%;
    max-height: 30vh;
    position: relative; 
    transition: height 200ms ease-in-out;
    overflow: hidden;
    padding-bottom: 1.5%;
}
.search-body.expand {
    height: 90%;
    /* flex-grow: 1; */
}
.tag-list {
    list-style: none;
    padding-left: 5%;
    padding-top: 10px;
    padding-bottom: 5%;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 2%;
    flex-wrap: wrap;
    overflow-y: scroll;
}
.search-list {
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: rgba(0, 0, 150, 0.5) var(--back-color);
    }
}
.search-list::-webkit-scrollbar {
    background: linear-gradient(45deg,var(--back-mid),10%,var(--back-color));
    border-radius: 2px;
}
.search-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 150, 0.5);
}
.search-body-footer {
    position: absolute;
    bottom: 0;
    background: linear-gradient(90deg,var(--back-mid),10%,var(--back-color));
    width: 100%;
    text-align: center;
    color: white;
    cursor: pointer;
}
.tag-button {
    width: fit-content;
    min-width: 75px;
    padding: 5px;
    color: black;
    border-radius: 10px;
    border: 2px solid lightblue;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.search-footer {
    height: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.search-show-more, .search-show-less {
    width: 90%;
    padding: 2%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.material-list {
    padding: 5px;
    list-style: none;
    height: 100%;
    overflow-x: scroll;
    display: flex;
    gap: 2%;
}
.material-button {
    position: relative;
    height: 90%;
    background: linear-gradient(45deg,var(--back-mid),10%,var(--back-color));
    border-radius: 10px;
    box-shadow: 0 0 3px 1px white;
    border: 2px solid silver;
    min-width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.2em;
    overflow: hidden;
}
.material-title {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
}
.material-title:hover {
    background: white;
    color: black;
}
.material-units-list {
    list-style: none;
    height: 80%;
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 2%;
}
.material-unit-button {
    height: 25%;
    width: 25%;
    box-shadow: 0 0 3px 1px white;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
}
.material-unit-button:hover {
    background-color: white;
    color: black;
}
.search-input-img {
    height: 90%;
    transform: rotate(45deg)
}
.search-bar {
    height: 65%;
    width: 80%;
    background-color: var(--back-mid);
    color: white;
    border: 2px solid white;
    border-radius: 4px;
}
.button-container {
    margin: 0 auto;
    padding: 1%;
    width: 90%;
    height: 5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    display: none;
}
.player-button, .player-option {
    width: fit-content;
    flex-grow: 1;
    padding: 2px;
    box-shadow: 1px 1px 3px 1px black;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}
.player-button:hover {
    background-color: white;
    color: black;
}

.current-video-title {
    height: 10%;
    color: white;
    text-align: center;
}
.video-player-options {
    height: 10%;
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.video-back {
    position: absolute;
    top: 5%;
    right: 5%;
    height: 10vh;
    width: 10vh;
    border-radius: 10px;
    box-shadow: 1px 1px 3px 1px darkorange;
    background-color: orange;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.select-container {
    width: 100%;
    height: 100%;
    /* overflow-y: scroll; */
    display: flex;
    flex-direction: column;
}
.thumb-viewer {
    margin-left: 5%;
    padding: 1%;
    height: 50%;
    width: 90%;
    flex-grow: 1;
    position: relative;
}
.thumb-row {
    padding: 1%;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    display: flex;
    gap: 15px;
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: rgba(0, 0, 150, 0.5) var(--back-color);
    }
}
.thumb-row::-webkit-scrollbar {
    /* display: none; */
    background: linear-gradient(45deg,var(--back-mid),10%,var(--back-color));
    border-radius: 2px;
}
.thumb-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 150, 0.5);
}
.thumb-box {
    position: relative;
    min-width: 45%;
    max-width: 55%;
    max-height: 50vh;
}
.thumb {
    height: 100%;
    width: 100%;
    padding: 2%;
    box-shadow: 1px 1px 3px 1px black;
    border-radius: 12px;
    cursor: pointer;
}
/* .thumb:hover {
    z-index: 1;
} */
.thumb-text {
    position: absolute;
    height: 80%;
    width: 80%;
    font-size: 2rem;
    top: 10%;
    left: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    color: white;
    z-index: 2;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
    pointer-events: none;
}
.thumb-text.show {
    opacity: 1;
}
.thumb-viewer-empty {
    position: absolute;
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
}
.thumb-viewer-empty-text {
    width: 100%;
    text-align: center;
}
.thumb-viewer-empty-button {
    border: 2px solid silver;
    box-shadow: 0 0  3px 1px white;
    border-radius: 8px;
    padding: 4%;
    margin-top: 5%;
    cursor: pointer;
}
.thumb-viewer-empty-button:hover {
    background-color: white;
    color: black;
}
.active-player-button, .active-chant-button {
    background-color: yellow;
    color: black;
}

.active-tag {
    background-color: white;
    color: black;
}

.unavailable {
    opacity: .4;
    pointer-events: none;
}

.behind {
    display: none;
}