@media screen and (min-width: 800px) {
    .channel_box {
        width: 32%;
        min-height: 200px !important;
        margin: 0.5%;
        overflow: hidden;
        float: left;
	}
	.recomendedBox {
		width: 32%;
		float: left;
		position: relative;
        background-color: #232323;        
		overflow: hidden;
		margin: 0.5%;
		min-height: 250px;
		/* min-height: 100px; */
	}
}

@media screen and (min-width: 1200px) {
    .channel_box {
        width: 24%;
        min-height: 200px !important;
        margin: 0.5%;
        overflow: hidden;
        float: left;
	}
	.recomendedBox {
		width: 24%;
		float: left;
		position: relative;
		background-color: #232323;
		overflow: hidden;
		margin: 0.5%;
		min-height: 250px;
		/* min-height: 100px; */
	}
}

html, body {
    margin: 0 auto;
    background-color: #383838;
    color: white;
    font-family: 'Advent Pro', sans-serif;
    font-size: 20px;
    height: auto;
}

a, a:hover, a:visited {
    text-decoration: none;
    color: white;
}
.controlarea{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: none;
    height: 100%;
    z-index: 99;
    background-color: #000000de;
    text-shadow: -3px -3px 3px rgba(255, 255, 255, .1), 3px 3px 3px rgba(0, 0, 0, .5);
}
.controlarea-visible{
    display: flex;
}

.recomendedBox video{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.recomendedBox {	
	position: relative;
	background-color: #232323;
	overflow: hidden;
	/* background: linear-gradient(0deg, rgba(22, 22, 22, 1) 0%, rgba(22, 22, 22, 0.50) 20%, rgba(0, 0, 0, 0) 50%); */
    max-height: 300px;	
    min-height: 200px;
    
}
.recomendedBox img{
	height: 50px;
}

.recomendedBox .play {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;

}
.recomendedBox .playMd {
    position: absolute;
    top: 55px;
    right: 15px;
    
}

.recomendedBox .channelepg{
	position: absolute;
	width: 100%;
    left: 0;
    /* top: 120px; */
    bottom: 0px;
    padding: 5px;
    background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(22, 22, 22, 0.5) 60%, rgba(0, 0, 0, 0) 100%);    
    text-shadow: -3px -3px 3px rgba(255, 255, 255, .1), 3px 3px 3px rgba(0, 0, 0, .5);
}

.channel_box{
    position: relative;
    background-color: #232323;
    /* margin: 10px 5px; */
    min-height: 150px;
    overflow: hidden;
}

.channel_box video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);

}

.channel_box .channel_controls {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    margin: 0 auto;
    background: linear-gradient(0deg, rgba(22, 22, 22, 1) 0%, rgba(22, 22, 22, 0.50) 20%, rgba(0, 0, 0, 0) 50%);
    text-shadow: -3px -3px 3px rgba(255, 255, 255, .1), 3px 3px 3px rgba(0, 0, 0, .5);

}


.channel_box div {
    /* margin: 5px auto;	 */
}

.channel_box img {
    height: 50px;
}

.channellogo {
    position: absolute;
    top: 10px;
    left: 10px;

}

.channel .channelepg {
    font-size: 18px;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;    
}

.button:hover {
    background-color: #1d1d1d;
    ;
}
.button {
    font-size: 20px;
    padding: 10px;
    /* margin-bottom: 15px; */
    background-color: #007bff;
    text-align: center;
}
.controls div {
    background-color:  #0000003d;    
    border-radius: 30px;
    margin: 10px 0;
    width: 50px;
    height: 45px;    
    text-align: center;
}

.channel {
    position: absolute;
    bottom: 10px;
    margin: 5px;
    width: 100%;

}


.channelprogres {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: #616161;
    margin: 0 !important;
}

.channelprogresbar {
    position: static;
    background-color: #7893ef;
    height: 5px;
    margin: 0 !important;
    width: 0;
    border-radius: 0 3px 3px 0;
}

#channelepg {
    width: 100%;
}

.epgcontent:last-child {
    margin-bottom: 70px;
}

.epgcontent .epgdescription {
    font-size: 18px;
    padding: 0 20px 20px 20px;
    overflow: hidden;

    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.epgcontent {
    background-color: #232323;
    margin: 5px 0;
    min-height: 70px;
}

.epgcontent .epgtime {
    padding: 10px 10px 0 10px;
    font-size: 18px;
    font-style: italic;
    background-color: #00000042;
}

.epgcontent .shortepg {
    display: flex;
    background-color: #00000042;
}
.epgcontent .shortepg div span {
    font-size: 42px;
}
.epgcontent .shortepg div img {
    height: 50px;
}


.epgcontent .shortepg div:nth-child(2) {
    width: 80%;
}
.epgcontent .shortepg div:first-child{font-size: 32px;} 
.epgcontent .shortepg div {
    margin: 10px;
    min-width: 80px;    
}

#channellist {
    width: 100%;
    margin-top: 70px;   
    /* margin-bottom: 70px; */
    background-color: #232323;
}

#menu {
    height: 70px;
    position: fixed;
    display: flex;
    display: none;
    top: 0;
    width: 100%;
    background: #212121e8;
    color: white;
    z-index: 999;
    overflow: hidden;
    transition: max-height 0.3s;
}

.menuoption {
    padding: 5px;
    font-size: 42px;
    color: #ffffff;
    margin: 0 20px 0 20px;
}

.hiddenepgdescription {
    height: 0;
    display: none;

}

.active_channel {
    background-color: #616161;
}

.activeepgdescription {
    height: auto;

}

.activeView {
    display: block;
}

.hiddenView {
    display: none !important;

}

#settings > div:nth-child(1), #settings > div:nth-child(2) {
    margin-bottom: 5px;
    font-size: 24px;
    text-align: center;
}

#settings {
    margin-top: 80px;
    text-align: center;
    margin-bottom: 70px;
    width: 100%;
}

#settings #stblist {
    text-align: left;
    /* margin: 5px 0 70px 0;     */
    transition: 0.3s easy;
    overflow: hidden;
    display: none;

}
.expand-div {
    display: block!important;
}

#settings .stb .poweroff {
    color: #d80000;
}

#settings .stb .poweron {
    color: #03b702;
}

#settings .stb span {
    font-size: 38px;

}

#settings .stb {
    margin-bottom: 5px;
    background-color: #232323;
    padding: 10px;
    font-size: 20px;
}

.activeSTB {
    background-color: #7893ef !important;
}


#loginform {
    margin: 0 auto;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Baloo Bhaina', sans-serif;
    font-size: 24px;
}

#loginform input {
    margin: 5px;
    padding: 10px;
    font-size: 24px;
    max-width: 80%;
}

#epgDateContener.fixed {
    position: fixed;  
    top: 70px;
    margin-top: 0;    
    width: 100%;
    min-height: 70px;    
    z-index: 999;
}
#epgDateContener {
    position: relative;
    display: flex;    
    background-color: #212121e8;
    width: 100%;    
    display: flex;
}
#epgDateContener {
    margin-top: 70px;
}
#currentEPG {
    padding: 10px;
    font-size: 24px;
    max-height: 90px;
    overflow: hidden;
}

#epgDate {
    width: 80%;
    padding: 20px;
    font-size: 24px;
    text-align: center;
}

#nextDay, #lastDay {
    width: 10%;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 42px;
}

.returnbutton {
    position: fixed;
    bottom: 90px;
    margin: 0 auto;
    /* font-size: 24px; */
    color: black;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background-image: radial-gradient(#ffffff, #d8d8d8, #000000);
    /* padding: 10px; */
    text-align: center;
    right: 20px;
    cursor: pointer;
}
.stb-name {
    font-size: 18px;

}
#tvPilot {    
    position: fixed; 
    height: 100%;
    bottom: 0;
    text-align: center;
    width: 100%;   
    background-color: #191919;
    z-index: 1000;
    transition: max-height .45s ease-in;
}



/* koniec styli dla pilota */

.buttoncontener {
    margin: 5% auto;
    height: 70px;
    background-image: radial-gradient(#3a3a3a, #171717, #000000);
    box-shadow: 2px 2px 5px #000000;
    border-radius: 50px;
}


.pilotButton {
    /* height: 30px; */
    padding: 15px;
    text-align: center;
    /* font-size: 28px; */
}
.pilotcenterarea {
    display: flex;
    height: auto;
    margin: 0 10%;
    margin-top: 20%;
}


.pilotPlay {
    width: 50px;
    font-size: 28px;
    height: 30px;
    padding: 10px;
    text-align: center;
}

#pilotpowerbutton {
    max-width: 50px;
    font-size: 46px;
    color: #d80000;
    padding: 5px 10px;

}

.pilotButtonGroup {
    margin: 10% auto;
    max-width: 65px;
    background-image: radial-gradient(#3a3a3a, #171717, #000000);
    box-shadow: 2px 2px 5px #000000;
    border-radius: 50px;
}

.catchuparea {
    position: relative;
    
}

#progressTime {
    position: absolute;
    top: -200px;
    font-size: 32px;
    text-align: center;
    width: 100%;
}

#progressArea {
    position: relative;
    margin: 0 auto 15px;
    width: 80%;
    height: 5px;
    background-color: #9a9a9a;
}

#progressbar {
    width: 0;
    height: 5px;
    /*background-color: #ff0000; */
    background-image: radial-gradient(#ff0000, #b70000, #800000);
}

#progresshandle {
    position: absolute;
    display: none;
    left: 0;
    top: -12px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
}

#channelcategory {
    margin-bottom: 5px;
}

#channelcategory form {
    margin-block-end: 0;
}

#channelcategory select {
    padding: 10px;
    width: 100%;
    font-size: 24px;
    background-color: #212121e8;
    color: white;
    border: none;
    font-family: 'Advent Pro', sans-serif;
}

#channelcategory select:first-letter {

}

#channelcategory option {
    font-size: 20px;
    background-color: #212121e8;
}

.video-box {
    position: relative;
    top: 70px;        
    width: 100%;
    background-color: #000000eb;
    z-index: 999;

}
#video {        
    display: none;
    margin: 0 auto;      
    /* max-height: 30%; */
    /* max-width: 50%; */
    z-index: 999;
    /* padding-bottom: 30px; */
    
}
#close-video {
    position: absolute;
    right: -20px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    background-color: #d80000;
    font-size: 28px;
    line-height: 0.85;
    text-align: center;
    border-radius: 50%;
}
#goUp {
    /* display: none; */
    position: fixed;
    z-index: 999;
    bottom: 20px;
    /* position: absolute; */
    /* top: -50px; */
    margin: 0 auto;
    /* font-size: 24px; */
    color: #777777;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    border: 2px solid #4e4e4e;
    /* background-image: radial-gradient(#ff0000, #b70000, #800000); */
    background-color: #000000a8;
    left: 50%;
    transform: translateX(-50%);
    /* padding: 10px; */
    text-align: center;
}

#serchChannel {
    position: relative;
    padding: 0 5px 5px 5px;
    font-size: 32px;
    border-bottom: solid 1px #525252;
    /* border-radius: 30px; */
    width: 90%;
    margin: 0 auto 5px;
    background-color: #232323;
}

#serchChannel .clear {
    position: absolute;
    right: 10px;
    top: 3px;
    cursor: pointer;

}

#serchChannel form {
    margin-block-end: 0;
    padding: 0;
    margin: 0;
}

#serchChannel input[type=text]:focus {
    outline: none;
}

#serchChannel input {
    margin-bottom: 5px;
    background-color: #232323;
    border: none;
    width: 75%;
    color: white;
    font-size: 20px;
    font-family: 'Advent Pro', sans-serif;
}

#searchEpgResolutSize {
    margin: 5px 0;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    display: none;
    background-color: #212121e8;
}

#searchEpgResolutData {
    overflow: auto;
    margin-top: 70px;
}

#searchEpgResolut {

}

.stb input[type=text]:focus {
    outline: none;
}

.stb input {
    background-color: #232323;
    border: none;
    width: 90%;
    color: white;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Advent Pro', sans-serif;
    background-color: transparent;
}

#errortext {
    padding: 15px;
}

#errorlog {
    position: fixed;
    bottom: 0;
    text-align: center;
    background-color: black;
    color: red;
    max-height: 0;
    width: 100%;
    transition: max-height 1.5s;
    overflow: hidden;
    z-index: 9999;

}

/* bootstrap class */
.navbar {min-height: 70px;}
.navbar-brand {font-size: 24px;}
.nav-link, .dropdown-item {line-height: 20px; font-size: 24px;}
.nav-link span {font-size: 18px; font-weight: normal;}
.dropdown-item {color: white;}
.navbar-toggler {border: none;}
.bg-1{background-color: #3a3a3a;}
.spinner {position: fixed; left: 50%; top: 50%; margin-top: -15px; margin-left: -15px;}