#bg {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    z-index: -999;
}

#bg img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
}

#searchHeader {
    position: fixed;
    top: 2em;
    width: 100%;
    padding: 1em auto;
    background-color: rgba(0, 0, 0, 0.64);
    text-align: center;
    min-width: 420px;
    overflow: auto;
}

#video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    width: 100%;
    height: auto;
    overflow: auto;
    color: #ffffff;
    text-align: center;
    font-size: 1.2em;
    background-color: rgba(0,0,0,0.64);
    margin: 8em auto;
    width: 85%;
    padding: 2em;
}

#query {
    width: 25em;
    height: 2em;
    background-color: rgba(8, 8, 8, 0.61);
    border-style: solid;
    padding: 0em 1em;
    border-color: rgba(0, 232, 255, 0.5);
    color: rgba(255, 255, 255, 1);
}

#internalPlayerContainer {
    position: fixed;
    z-index: 999;
    top: 45%;
    left: 2%;
    padding: 2.5em 2em 2em 2em;
    background-color: rgba(8, 8, 8, 0.61);
}

#toTab,
#prevPage,
#nextPage,
#loadMore {
    top: 0.5em;
    padding: 0.2em 1em;
    display: inline-block;
    padding: 0.3em 1.2em;
    margin: 0 0.3em 0.3em 0;
    border-radius: 2em;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 300;
    color: #FFFFFF;
    background-color: #4eb5f1;
    text-align: center;
    transition: all 0.2s;
}

#toTab    {  left: 1.5em;  }
#prevPage { right: 14.5em; }
#nextPage { right: 9.5em;  }
#loadMore { right: 1.5em;  }

#toTab:hover,
#prevPage:hover,
#nextPage:hover,
#loadMore:hover {
    cursor: pointer;
    background-color:#4095c6;
}

.videoStyle {
    display: block;
    width: 100%;
    height: auto;
    overflow: auto;
    padding-bottom: 0.5em;
    color: #ffffff;
    text-align: center;
    font-size: 1.2em;
    background-color: rgba(0,0,0,0.64);
    min-height: 6.5em;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.videoTitle {
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
    border-style: none;
    font-size: 75%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.64);
    color: rgb(255, 255, 255);
    border-top: 1px solid rgb(255, 255, 255);
    border-bottom: 1px solid rgb(255, 255, 255);
    margin-top: 6.5em;
}

.videoStyle:hover {
    background-color: rgba(0, 141, 166, 0.56);
    cursor: pointer;
    box-shadow: 0px 0px 15px rgb(114,184,199);
    border-radius: 0.5em;
}

.videoStyle:focus {
    background-color: rgba(0, 139, 35, 0.76);
    cursor: pointer;
    box-shadow: 0px 0px 25px rgb(114, 199, 120);
    border-radius: 0.5em;
}

/* Messages coloring */
.error, .warnning, .success {
    float: left;
    clear: both;
}

.error { color: rgb(255, 0, 0); }
.warning { color: rgb(255, 168, 0); }
.success { color: rgb(136, 204, 39); }
