@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body{
    background-color: #0e0e10;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    box-sizing: border-box;
    color: white;
    font-family: 'Roboto', sans-serif;
}
/*Cabecera*/
header{
    background-color: red;
    width: 100%;
    height: 50px;
    background-image: url(assets/bg.png);
    background-size: auto 50px;
    position: relative;
    display: flex;
    flex-flow: row;
    align-items: flex-end;
    box-shadow: 0px 3px 3px rgba(0,0,0,0.5);
}
/* Botones*/
.header-button {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 100%;
    border: 2px solid #BB0000;
    box-shadow: 3px 3px 2px rgba(0,0,0,0.2);
    align-self: center;
    margin-right: 15px;
    transition: border-radius 0.2s, background-color 0.2s;
}

.header-button:hover {
    background-color: #eee;
    border-radius: 10px;
}

.header-button > img {
    width: 30px;
    position: relative;
    top: 5px;
    left: 5px;
}
#discord-button > img, #twitter-button > img{
    top: 8px;
}
#youtube-button > img {
    top: 9px;
}
#twitch-button > img{
    width: 28px;
}
/*Icono Ociobits*/
#header-logo{
    position: relative;
    z-index: 110;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    left: 10px;
    top: 25px;
    width: 70px;
    height: 70px;
}
/*Contenedor principal*/
#main-container{
    width: 100%;
    position: relative;
    display: flex;
    flex-flow: row nowrap;
}

#video-container{
    width: calc();
}
#chat-container{
    width: 20vw;
}
/*Iframes integracion YT/chat Twicht*/
#youtube-container,#twitch-chat-container{
    position: relative;
    width: 100%;
}
#twitch-chat-container{
    position: relative;
    width: 300px;
}

#youtube-container > .ui-resizable-handle{
    background-color: #222 !important;
    width: 10px;
    right: -5px;
    z-index: 70 !important;
    opacity: 0;
    transition: opacity 0.2s;
}
#youtube-container > .ui-resizable-handle:hover{
    opacity: 1;
}

#youtube-container > .ui-resizable-handle::after{
    content: "";
    background-image: url(assets/ui-icons_444444_256x240.png);
    background-position: -30px -224px;
    position: absolute;
    top: 50%;
    right: -1px;
    width: 16px;
    height: 16px;
    z-index: 71;
}

#youtube-video{
    width: 100%;
    height: calc(100vh - 54px);
}

#twitch-chat{
    width: 100%;
    height: calc(100vh - 54px);
    background-color: #000000;
}


/* Ventana modal movible Twitch*/
#draggable-twitch-video{
    position: absolute !important;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    top: calc(100vh - 320px);
    left: calc(100vw - 700px);
    width: 320px;
    height: 180px;
    z-index: 80;
    padding: 10px;
    padding-top: 30px;
    background-size: auto 50px;
    border-radius: 3px;
    background-color: transparent;
    background-image: none;
    color: transparent;
    transition: color 0.1s, background-color 0.2s, background-image 0.2s, box-shadow 0.2s;
    box-shadow: 5px 5px 3px rgba(0,0,0,0);
    cursor: move;
}


#draggable-twitch-video iframe {
    width: 100%;
    flex-grow: 100;
    align-self: stretch;
}

#draggable-twitch-video:hover{
    background-image: url(assets/bg.png);
    color: #fff;
    box-shadow: 5px 5px 3px rgba(0,0,0,0.5);
}


#draggable-twitch-video >  .draggable-bar{
    font-weight: bold;
    height: 15px;
    width: calc(100% - 10px);
    top: 5px;
    position: absolute;
}
#draggable-twitch-video > .draggable-bar > .opacity-button-container {
    position: absolute;
    right: 2px;
    top: -2px;
    display: flex;
    flex-flow: row nowrap;
    cursor: pointer;
}

#draggable-twitch-video > .draggable-bar > .opacity-button-container > .opacity-button{
    margin-left: 3px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 2px;
}

.ui-resizable-handle{
    position: absolute;
    display: block;
}

/* Arreglos dragable */
.ui-resizable-handle.ui-resizable-se{
    background-image: url(assets/ui-icons_444444_256x240.png);
    width: 16px;
    height: 16px;
    background-position: -64px -224px;
    right: 1px;
    bottom: 0px;
    cursor: nw-resize;
    opacity: 0;
    transition: opacity 0.2s;
}

#draggable-twitch-video:hover > .ui-resizable-handle.ui-resizable-se {
    opacity: 1;
}

.ui-resizable-handle.ui-resizable-s{
    width: 100%;
    height: 9px;
    bottom: -3px;
    left: 0px;
    cursor: n-resize;
}

.ui-resizable-handle.ui-resizable-e{
    height: 100%;
    width: 9px;
    top: 0px;
    right: -3px;
    cursor: w-resize;
}

.ui-resizable-helper,
.ui-draggable-helper{
    position: relative;
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
    z-index: 200;
}

#opacity-slider{
    width: 100px;
    opacity: 0;
    transition: 0.2s;
    top: 7px;
    right: 6px;
}

#draggable-twitch-video:hover #opacity-slider {
    opacity: 1;
}

.ui-slider{
    position: relative;
    top: 3px;
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 3px;
}
.ui-slider-handle{
    width: 7px;
    height: 12px;
    position: absolute;
    top: -3px;
    background-color: white;
    border-radius: 3px;
    transform: translateX(-3px);
    border: 1px solid #ccc;
}

.ui-slider-range {
    position: relative;
    background-color: white;
    height: 100%;
    border-radius: 3px 0 0 3px;
}