/**************************************** reset *****************************************/
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: Roboto, Arial, sans-serif;
}

.iconfont {
    font-size: 24px;
    color: #606060;
}

/**************************************** fix bs modal shifting *****************************************/
.disable-modal-shifting {
    pointer-events: none;
}

/**************************************** header style setting *****************************************/
.master-head-container {
    height: 56px;
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
    position: fixed; /* relative to the viewport */
    top: 0;
    left: 0;
    z-index: 999;
    padding: 7px 16px;
    box-sizing: border-box; /* include padding and border to width and height */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.master-head-button {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    border: none;
    outline: none !important;
    background-color: #ffffff;
    text-decoration: none;
}

.logo {
    height: 24px;
    width: 129px;
    display: block;
}

.logo:hover {
    text-decoration: none;
}

.logo .icon-play {
    font-size: 24px;
    color: #7a3374;
    float: left;
    line-height: 24px;
}

.logo .logo-name {
    font-size: 20px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: -2px;
    color: #7a3374;
    text-align: center;
    padding-left: 2px;
    display: inline-block;
    height: 100%;
    line-height: 24px;
}

.search-container {
    margin: 0 40px;
    height: 32px;
    flex-grow: 1; /* set flex-grow to auto fill the rest of space, it equals to flex: 1; */
    display: flex;
    justify-content: center;
}

.search-container .search-form {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.search-form .search-box {
    max-width: 600px;
    flex-grow: 1;
    border: 1px solid #d3d3d3;
    border-right: none;
    border-radius: 2px 0 0 2px;
    box-shadow: inset 0 1px 2px #eeeeee;
    padding: 2px 6px;
}

.search-box.has-focus {
    border: 1px solid #1c62b9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-box input {
    width: 100%;
    outline: none;
    margin-left: 4px;
    padding: 1px;
    border: 0;
    color: #111111;
    font-family: 'Roboto', 'Noto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.search-form .search-button {
    cursor: pointer;
    width: 65px;
    border: 1px solid #d3d3d3;
    background-color: #f8f8f8;
    border-radius: 0 2px 2px 0;
    margin: 0;
    outline: none !important;
}

.search-form .search-button:hover {
    border-color: #c6c6c6;
    background-color: #f0f0f0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.search-button .icon-search {
    color: #979797;
}

.search-button:hover .icon-search {
    color: #232323;
}

.end {
    width: 200px;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.end a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
}

.end a, .end button {
    margin: 0 6px;
}

.end .btn-primary {
    height: 80%;
}

.avatar-button,
.avatar-button:focus {
    background: none;
    border: none;
    outline: none;
}

.avatar-button .avatar-sm {
    /*vertical-align: middle;*/
    width: 24px;
    height: 24px;
    margin-bottom: 1px;
    border-radius: 50%;
}

.header-popup-wrapper {
    position: fixed;
    top: 56px;
    right: 0;
    width: 290px;
    background-color: #ffffff;
    z-index: 999;
}

.header-popup-wrapper .header {
    width: 100%;
    height: 80px;
}

.header-popup-wrapper .header .header-renderer {
    width: 100%;
    height: 100%;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.header-renderer .avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    float: left;
}

.header-renderer .username {
    margin: 0;
    padding-left: 10px;
    float: left;
    width: 60%;
    color: #030303;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
}

.header-renderer .email {
    margin: 0;
    padding-left: 10px;
    font-size: 14px;
    line-height: 20px;
    float: left;
    width: 60%;
}

.endpoint {
    display: block;
    cursor: pointer;
    width: 100%;
    height: 40px;
    color: #212529;
    font-size: 14px;
}

.endpoint:hover {
    background-color: #f2f2f2;
    /*background-color: rgba(122,51,116, 0.2);*/
    text-decoration-line: none;
    color: #212529;
}

.endpoint .endpoint-content {
    width: 100%;
    height: 100%;
    padding-left: 16px;
    padding-right: 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.endpoint .endpoint-content i {
    font-size: 24px;
    padding-right: 16px;
    color: #909090;
}

.endpoint .endpoint-content p {
    margin: 0;
    height: 40px;
    line-height: 40px;
}

.mail-notification-wrapper {
    position: fixed;
    top: 56px;
    right: 0;
    /*width: 290px;*/
    max-height: 250px;
    overflow: auto;
    background-color: #ffffff;
    z-index: 999;
}

.mail-notification-wrapper .no-new-messages{
    min-width: 250px;
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 400;
    color: #030303;
    text-align: center;
}

.mail-notification-wrapper .mail-notification-content {
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: pointer;
}

.mail-notification-wrapper .mail-notification-content:hover {
    background-color: #f2f2f2;
}

.mail-notification-wrapper .mail-notification-content span {
    word-break: keep-all;
    word-wrap: normal;
    /*display: block;*/
    /*margin: 0 15px;*/
}

.mail-notification-wrapper .mail-notification-content .sender-name {
    font-size: 14px;
    font-weight: 400;
    color: #7a3374;
}

.mail-notification-wrapper .mail-notification-content .text {
    font-size: 14px;
    font-weight: 400;
    color: #030303;
}

.mail-notification-wrapper .mail-notification-content .time-diff {
    font-size: 13px;
    font-weight: 400;
    color: #606060;
}

/**************************************** nav bar style setting *****************************************/
.side-nav-container {
    width: 240px;
    background-color: #ffffff;
    position: fixed;
    top: 56px;
    left: 0;
    height: 100%;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.side-nav-container .endpoint .endpoint-content {
    padding: 0 24px;
}

.side-nav-container .endpoint .endpoint-content i {
    font-size: 24px;
    padding-right: 24px;
    color: #909090;
}

/**************************************** main section style setting *****************************************/
.main-section-container {
    /*height: 100%;*/
    background-color: #f5f5f5;
    padding-top: 56px;
}

.main-content-container {
    padding: 10px 30px;
    display: flex;
}

#index.main-content-container{
    padding: 10px 0;
}

.form-wrapper {
    display: flex;
    justify-content: center;
}

.column {
    width: 50%;
    min-height: 300px;
    padding: 20px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

select.form-control {
    -webkit-appearance: menulist;
}

/************************************ modal on upload page *********************************************/
#loading_modal .modal-content {
    background-color: transparent;
    border: none;
}

#loading_modal .modal-body {
    text-align: center;
}

#loading_modal img {
    width: 20%;
    height: 20%;
}

#loading_modal p {
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #7a3374;
}

/************************************ sign up/ sign in modal *********************************************/
#sign_up_modal .modal-title, .sign-modal-msg,
#sign_in_modal .modal-title {
    color: #7a3374;
}

#sign_up_modal .btn-primary,
#sign_in_modal .btn-primary {
    background-color: #7a3374;
    border-color: #7a3374;
}

/************************************ alert modal *********************************************/
.modal-confirm {
    color: #434e65;
    width: 525px;
}

.modal-confirm .modal-content {
    padding: 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .modal-header {
    background: #e85e6c;
    border-bottom: none;
    position: relative;
    text-align: center;
    margin: -20px -20px 0;
    border-radius: 5px 5px 0 0;
    padding: 35px;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 36px;
    margin: 10px 0;
}

.modal-confirm .btn {
    min-height: 40px;
    border-radius: 3px;
}

.modal-confirm .icon-box {
    width: 100%;
    height: 100%;
    display: inline-block;
    z-index: 9;
    padding: 15px;
    text-align: center;
}

.modal-confirm .icon-box .icon-error {
    font-size: 95px;
    margin: -2px 0 0 -2px;
    color: #ffffff;
}

.modal-confirm.modal-dialog {
    margin-top: 80px;
}

.modal-confirm .btn {
    color: #fff;
    background: #eeb711;
    text-decoration: none;
    transition: all 0.4s;
    line-height: normal;
    border-radius: 30px;
    margin-top: 10px;
    padding: 6px 20px;
    min-width: 150px;
    border: none;
}

.modal-confirm .btn:hover, .modal-confirm .btn:focus {
    background: #eda645;
    outline: none;
}

/************************************ message handler modal *********************************************/
#message_dialog_modal.modal{
    /*padding: 0 !important;*/
    z-index: 1000;
}

#message_dialog_modal.modal .modal-content{
    background-color: #f9f9f9;
}

#message_dialog_modal.modal .modal-header {
    padding: 10px 10px;
    height: 40px;
    position: relative;
    background-color: #f9f9f9;
}

#message_dialog_modal.modal .modal-header .modal-title {
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #030303;
    text-align: center;
}

#message_dialog_modal.modal .modal-header button {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px;
    color: #7a3374;
}

#message_dialog_modal.modal .modal-header button:hover {
    outline: none !important;
}

#message_dialog_modal.modal .modal-body {
    height: 300px;
    padding: 20px 0 4px 0 ;
    background-color: #f9f9f9;
    overflow: auto;
}

.receive-message {
    width: 100%;
    padding-left: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
}

.send-message {
    width: 100%;
    padding-right: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
}

.receive-message .user-page-link,
.send-message .user-page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.receive-message .user-page-link{
    margin-right: 10px;
}

.send-message .user-page-link{
    margin-left: 10px;
}

.receive-message .user-page-link img,
.send-message .user-page-link img{
    width:100%;
    border-radius: 50%;
}

.message-box{
    min-width: 50px;
    max-width: 250px;
    padding: 8px;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    color: #030303;
    background-color: #ffffff;
    word-wrap: break-word;
    word-break: break-word;
    border-radius: 6%;
}

#message_dialog_modal.modal .modal-footer{
    height: 120px;
}

#message_dialog_modal.modal .modal-footer .text-area{
    flex:1;
    height: 100%;
    border: 1px solid rgb(222, 226, 230);
    margin: 0 8px 0 0;
    padding: 6px;
    word-break: break-word;
    background-color: #ffffff;
    overflow: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #030303;
}

#message_dialog_modal.modal .modal-footer .btn-purple{
    background-color: #843d7e;
    border-color: #843d7e;
    color: #ffffff;
}

#message_dialog_modal.modal .modal-footer .btn-purple:hover{
    background-color: #7a3374;
}

#message_dialog_modal.modal .modal-footer .text-area:hover{
    outline: none;
}

/************************************ contact list *********************************************/
.contactPage {
    /*background-color: #efefee;*/
    height: 90vh;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.contactPage_head {
    width: 100%;
    max-height: 300px;
    flex: 1;
    /*overflow-y:auto;*/
    padding: 5px;
    text-align: center;
}

.contactPage_head h1 {
    /*background-color: #fcf8e3;*/
    /*border:1px solid #dedede ;*/
    border-radius: 3px;
    text-align: center;
}

.contactPage_head h1 a {
    text-decoration: none;
    color: black;
}

.contactPage_head #contactListError {
    color: red;
}

.contactList {
    width: 100%;
    flex: 5;
    text-align: center;
    /*padding:20px 35px;*/
}

.contactList .filter {
    padding: 5px;
}

.contactList .filter select {
    height: 38px;
}

.contactList .viewtable {
    padding: 5px;
    overflow-y: auto;
}

/*contact list*/
/*show all video- index.php*/
#main-video-container {
    display: flex;
    width: 100%;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

#main-video-container #welcomemessage {
    width: 100%;
    max-height: 300px;
    flex: 1;
    /*overflow-y:auto;*/
    padding: 5px;
    text-align: center;
}

/*#showAllVideo {*/
/*    width:100%;*/
/*    height:100vh;*/
/*    padding:5px;*/
/*}*/
#showAllVideo #categoryvideopage {
    margin: 10px;
    display: flex;
    flex-flow: row wrap;
}

#showAllVideo #categoryvideopage div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 300px;
    margin: 0;
}

#showAllVideo #categoryvideopage div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

#showAllVideo #categoryvideopage div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

#showAllVideo #allvideopage {
    /*width:100%;*/
    /*height:70vh;*/
    margin: 15px;
    display: flex;
    flex-flow: row wrap;
}


#showAllVideo #allvideopage div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 300px;
    margin: 0;
}

#showAllVideo #allvideopage div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

#showAllVideo #allvideopage div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

#showAllVideo #page-nav {
    /*width:100%;*/
    margin: 20px auto;
    /*text-align:center*/
}

#showAllVideo #page-nav ul {
    display: flex;
    justify-content: center;
}

#showAllVideo #allvideopage div #videoTitle {
    /*ellipsis if text too long replace text with ...  https://www.w3schools.com/cssref/css3_pr_text-overflow.asp*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*show all video*/
/*channel.php*/
#channelPage {
    width: 100%;
    margin-left: 250px;
}

#channelPage .container {
    /*margin-right:0;*/
    /*margin-left:0;*/
    margin: 0 auto;
    box-sizing: content-box;
}

@media (min-width: 1600px) {
    .container {
        min-width: 1600px;
        margin-right: 0;
    }
}

.container .tab-content > .active #show {
    display: flex;
    flex-flow: row wrap;
}

.container .tab-content > .active #show div {
    margin-right: 30px;
}

.container .tab-content > .active #show div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 300px;
    margin: 0;
}

.container .tab-content > .active #show div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

.container .tab-content > .active #show div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

.container .tab-content > .active #show form #delete {
    flex-basis: 100%;
}

.container .tab-content > .active #page-nav ul {
    display: flex;
    justify-content: center;
}

/*.container .tab-content>.active #page-nav{*/
/*text-align:center;*/
/*}*/
/*my subsciptions tab*/
#showSubscriptions .video {
    display: flex;
    /*flex-direction: row;*/
    flex-flow: row wrap;
}

#showSubscriptions p {
    margin: 10px 0px;
}

#showSubscriptions .video div {
    /*width:250px;*/
    /*height:200px;*/
    margin-right: 30px;
}

#showSubscriptions .video div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 230px;
    margin: 0;
}

#showSubscriptions .video div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

#showSubscriptions .video div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

/*my playlist tab*/
.container .tab-content > .active #showMyPlayList {
    display: flex;
    flex-flow: row wrap;
    margin-top: 16px;
}

.container .tab-content > .active #showMyPlayList div {
    margin: 10px 0px;
}

.container .tab-content > .active #showMyPlayList p {
    flex-basis: 100%;
}

.container .tab-content > .active #showMyPlayList div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 230px;
    margin: 0;
}

.container .tab-content > .active #showMyPlayList div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

.container .tab-content > .active #showMyPlayList div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

.container .tab-content > .active #showMyFavoriteList {
    display: flex;
    flex-flow: row wrap;
}

.container .tab-content > .active #showMyFavoriteList div {
    margin-right: 30px;
}

.container .tab-content > .active #showMyFavoriteList div .wrapper {
    display: flex;
    align-items: flex-start;
    width: 300px;
    margin: 0;
}

.container .tab-content > .active #showMyFavoriteList div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

.container .tab-content > .active #showMyFavoriteList div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

.container .tab-content > .active #showSortingVideos {
    display: flex;
    flex-flow: row wrap;
}

.container .tab-content > .active #showSortingVideos div {
    margin-right: 30px;
}

.container .tab-content > .active #showSortingVideos div .wrapper {
    display: flex;
    /*The flexbox items are aligned at the start of the cross axis.By default,
    the cross axis is vertical. This means the flexbox items will be centered vertically.*/
    align-items: flex-start;
    width: 300px;
    margin: 0;
}

.container .tab-content > .active #showSortingVideos div .wrapper .left {
    flex: 0 0 auto;
    margin: 0;
}

.container .tab-content > .active #showSortingVideos div .wrapper .right {
    flex: 1 1 auto;
    margin: 0;
}

#myTabContent,
#show {
    margin-top: 16px;
}

/*channel.php*/
