:root {
    --ms-red: rgb(150, 0, 0);
    --ms-red-dark: rgb(99, 0, 0);
    --ms-red-accent: rgb(210, 0, 0);
    --ms-button-active: rgb(114, 114, 114);
    --ms-button-disabled: rgb(25, 25, 25);
    --ms-button-selected: rgb(210, 0, 0);
    --ms-button-hover: rgb(150, 150, 150);
    --ms-background-light: rgba(50, 50, 50, 1);
    --ms-background-dark: rgb(25, 25, 25);
    --ms-skel-margin-tb: 15px;
}

body{
    font-family: 'Titillium Web', sans-serif;
    transition: 0.1s all ease-in-out;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

.ms-player {
    position: relative;
    margin-bottom: 20px;
}

.bolder {
    font-weight: bolder;
}

/*###########################
    Blazor
###########################*/

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/*###########################
    Bootstrap overrides
###########################*/
/* Making all cols the same height without breaking responsivness */
.row.display-flex {
    display: flex;
    flex-wrap: wrap;
}

.row.display-flex > [class*='col-'] {
    flex-grow: 1;
}

.btn-primary {
    background-color: var(--ms-red) !important;
    border-color: var(--ms-red) !important;
    color: white !important;
}

.navbar-brand {
    color: white !important;
}

a {
    color: var(--ms-red-accent) !important;
}

h1 {
    font-size: 3rem !important;
}

/* Making card-body overflow hidden */
.card-body * {
    overflow: hidden !important;
}

/*###########################
    Player size card hidden on mobile
###########################*/
@media only screen and (max-width: 600px) {
    #player-size-card {
        display: none;
    }
}
/*###########################
    Input Group overrides
###########################*/
@media only screen and (max-width: 600px) {
    .input-group {
        display: flex;
        flex-direction: column;
    }

    .input-group * {
        width: 100% !important;
    }
}
/*###########################
    Main Menu
###########################*/

.nav-link {
    color: var(--ms-red-accent);
}

/*###########################
    Content.cshtml
###########################*/
.content-maintitle {
    margin-top: 30px;
    margin-bottom: 30px;
}

.content-icon-container {
    display: flex;
    flex-direction: column;
}
.content-icon-container .settings-true {
    color: var(--ms-red);
    font-size: 2.5rem;
}

.content-icon-container .settings-false {
    color: var(--ms-red-dark);
    font-size: 2.5rem;
}

.content-icon-container p {
    font-size: 1rem;
}

.content-subtitle {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 2rem;
}
/*###########################
    Metadata Viewer
###########################*/
.metadata-viewer-card {
    margin-top: 10px;
    margin-bottom: 10px;
}

.metadata-viewer-entry {
    color: var(--ms-red-accent);
    font-weight: bold;
    margin-right: 20px;
}

/*###########################
    Skeleton Loader
###########################*/
.skel-mask-title {
    width: 100%;
    height: 35px;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-cardtitle {
    width: 75%;
    height: 25px;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-cardsubtitle {
    width: 45%;
    height: 15px;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-bigicon {
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-p {
    height: 10px;
    width: 100%;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-button {
    height: 15px;
    width: 80%;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.skel-mask-player {
    height: 25vh;
    width: 100%;
    margin-bottom: var(--ms-skel-margin-tb);
    margin-top: var(--ms-skel-margin-tb);
}

.animated-background {
    will-change: transform;
    animation: skel 1s linear infinite forwards;
    -webkit-backface-visibility: hidden;
    background: #e6e6e6;
    background: linear-gradient(92deg, #454545 50%, #505050 100%, #454545 0%);
    background-size: 2000px 104px;
    border-radius: 10px;
}

.animated-background:nth-child(2n+1) {
    animation-delay: 0.25s;
}

@keyframes skel {
    0% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        background-position: -1000px 0
    }

    to {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        background-position: 1000px 0
    }
}

/*###########################
    Correlated Video
###########################*/
.correlated-video-poster {
    margin: 15px 0 15px 0;
}

/*###########################
    Share Buttons
###########################*/
.share-button {
    color: var(--ms-red);
}

/*###########################
    MSPlayer Sizes
###########################*/
.msplayer-xs {
    width: 426px !important;
    height: 240px !important;
    flex: none !important;
}

.msplayer-md {
    width: 640px !important;
    height: 360px !important;
    flex: none !important;
}

.msplayer-lg {
    width: 960px !important;
    height: 540px !important;
    flex: none !important;
}

.ms-player-sq {
    width: 640px !important;
    height: 640px !important;
    flex: none !important;
}

@media only screen and (max-width: 600px) {
    /* Cannot debug size on mobile */
    .msplayer-xs {
        width: 100%;
    }

    .msplayer-md {
        width: 100%;
    }
}


/*###########################
    Main Navbar
###########################*/
.main-navbar {
    z-index: 2;
    height: 75px;
}

.main-navbar-brand {
    display: flex !important;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.main-navbar-brand img {
    margin-right: 15px;
}

.main-navbar-button-left {
    position: absolute;
    right: 20px;
    top: 20px;
}

/*###########################
    Settings Sidebar
###########################*/
.test-page-container {
    margin-left: 300px !important;
    width: 100% !important;
    max-width: 80vw !important;
}

.test-menu {
    display: flex;
    flex-direction: row;
}

.test-menu button {
    margin-right: 5px;
    margin-left: 5px;
}

/*###########################
    Settings Sidebar
###########################*/
.settings-sidebar {
    position: fixed;
    z-index: 1;
    height: 100%;
    top: 0px;
    left: 0px;
    /* background-color: #303030 !important; */
    overflow-x: hidden;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 300px;
}

.settings-sidebar::-webkit-scrollbar {
    display: none;
}

.settings-sidebar-hamburger {
    position: fixed;
    z-index: 101;
    bottom: 25px;
    right: 25px;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: var(--ms-red);
    color: white;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.sidebar-open {
    width: 250px;
}

@media only screen and (max-width: 600px) {
    .sidebar-open {
        width: 100%;
    }
}

.sidebar-close {
    width: 0%;
}

.player-size-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.player-size-container button {
    margin: 5px;
}