﻿html, body {
    height: 100%;
}

.inner-wrapper {
    flex-direction: column;
    display: -webkit-flex; /* Safari */
    -webkit-flex-direction: column; /* Safari 6.1+ */
    display: flex;
    flex-direction: column;
}

.mainWrapper {
    -webkit-flex: 1 0 auto; /* Safari 6.1+ */
    -ms-flex: 1 0 auto; /* IE 10 */
    flex: 1 0 auto;
}

footer {
    -webkit-flex-shrink: 0; /* Safari 6.1+ */
    flex-shrink: 0;
}

/******************************/

.container {
    padding-top: 0.625rem;
}

.bannerWrapper {
    width: 100%;
    display: grid;
    margin-bottom: 0;
}

.bannerWrapper img {
    width: 100%;
}

.weekSliderWrapper {
    width: 100%;
    margin-top: 1.875rem;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.weekSliderWrapper i {
    font-size: 2.8125rem;
    color: #ccc;
}

.weekSliderWrapper i:hover {
    color: #bbb;
}

.arrowBlock {
    padding: 1.875rem;
    position: relative;
    background-position: center;
    background-repeat: repeat-x;
    background-image: url('../../Content/images/lineR_1x1.gif');
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.arrowBlock[data-dir='left'] div {
    right: 0;
}

.arrowBlock[data-dir='right'] div {
    left: 0
}

.arrowBlock div {
    position: absolute;
    padding: 0.3125rem;
    background-color: #efefef;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.circleWithHorizLineWrapper {
    width: calc((100% - 2.5rem * 2) - 2.5rem);
}

.circleWithHorizLine {
    width: 14.28%;
    height: auto;
    display: inline-block;
    padding: 3.125rem 0; /*50px*/
    background-color: transparent;
}

.circleWithHorizLine:hover {
    color: #333;
}

.currentItem {
    border-radius: 7px;
    background-color: #fc5c7a;
}

.circleWithHorizLine:after {
    background-color: var(--shared-red);
}

.circleItem {
    background-color: transparent;
    top: calc(((3.125rem * 2 + 1px) - 20px) * 0.5);
    left: calc((100% - 20px) * 0.5);
}

.circleItem:after {
    background-color: var(--shared-red);
}

.circleWithHorizLine:after {
    position: absolute;
}

.circleWithHorizLine .topBlock {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    position: absolute;
    top: 15px;
    left: 0;
}

.circleWithHorizLine .bottomBlock {
    width: 100%;
    font-size: 1.375rem;
    font-weight: 500;
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 0;
}

/************************/

.scheduleWrapper {
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

@media screen and (max-width: 767px)  {
    .scheduleWrapper {
        margin-top: 1.25rem;
    }
}

.scheduleItem {
    width: 100%;
}

.scheduleItem > div {
    display: -webkit-flex;
    -webkit-align-items: stretch;
    display: flex;
    align-items: stretch;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.leftBlock {
    width: 8.75rem;
    position: relative;
    background-position: center;
    background-repeat: repeat-y;
    background-image: url('../../Content/images/lineGray_2x2.gif');
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.leftBlock > div {
    color: #000;
    font-weight: 500;
    font-size: 2.25rem;
    position: absolute;
    padding: 1.25rem 0.9375rem;
    background-color: #efefef;
    left: calc(50% - 7px);
    transform: translate(-50%, 0);
    text-align: center;
}

.leftBlock span {
    font-size: 1rem;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-bottom: 0.3125rem;
}

.leftBlock span span:last-child {
    margin-left: 0.3125rem;
}

.rightBlock {
    width: calc((100% - 100px + 20px * 2));
    display: none;
}

.lineBlock {
    min-height: 1.25rem;
}

.quadWithTriangleLeft[data-status="open"] {
    border-bottom-color: transparent;
}

.rightBlock[data-status="open"] {
    border: 1px solid #ccc;
    border-top-width: 0;
}

.currentProgram {
    color: var(--shared-red);
    background-color: #ffdede;
}

.currentProgram:after {
    border-color: transparent #ffdede transparent transparent;
}

.currentProgramTime {
    color: var(--shared-red) !important;
}

.currentProgramTime span {
    font-size: 1rem;
    margin-top: 0.625rem;
}

.quadWithTriangleLeft {
    margin-left: 0;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-color: #ccc;
    font-weight: 500;
}

.quadWithTriangleLeft:not(.rightBlock) {
    position: relative;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.quadWithTriangleLeft:not(.rightBlock) div {
    font-size: 1.5rem;
}

.quadWithTriangleLeft .hr {
    width: 100%;
    height: 1px;
    margin-bottom: 0.625rem;
}

.quadWithTriangleLeft .hr[data-color="transparent"] {
    background-color: transparent;
}

.quadWithTriangleLeft .hr[data-color="ccc"] {
    background-color: #ccc;
}

.quadWithTriangleLeft:not(.rightBlock) i {
    position: absolute;
    right: 1.25rem;
    font-size: 1.875rem;
    color: #ccc;
}

@media screen and (max-width: 767px) {
    .quadWithTriangleLeft:not(.rightBlock) div {
        margin-right: 0.625rem;
    }

    .quadWithTriangleLeft:not(.rightBlock) i {
        right: 0.625rem;
    }
}

.quadWithTriangleLeft:not(.rightBlock) i:hover {
    color: #bbb;
}

.quadWithTriangleLeft:before {
    top: calc((80px - 20px * 2) * 0.5);
    left: calc(-14px * 2);
    border-color: transparent #ccc transparent transparent;
}

.quadWithTriangleLeft:after {
    top: calc((80px - 20px * 2) * 0.5);
    left: calc(-14px * 2 + 1px);
}

.quadWithTriangleLeft:before,
.quadWithTriangleLeft:after {
    border-width: 20px 14px;
}

.rightBlock.quadWithTriangleLeft:not([data-status='open']) {
    border-color: transparent;
}

.rightBlock.quadWithTriangleLeft {
    height: auto;
    margin-bottom: 0.625rem;
    padding: 1.25rem;
    padding-top: 0;
    font-size: 1rem;
}

.rightBlock.quadWithTriangleLeft:before,
.rightBlock.quadWithTriangleLeft:after {
    border-color: transparent;
}

/************搜尋區塊****************/

.searchBlock {
    font-weight: 500;
    padding: 1.25rem 0;
    background-color: #fff;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.searchTitle {
    font-size: 1.375rem;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.searchTitle i {
    color: #333;
    font-size: 1.375rem;
    margin-right: 0.3125rem;
}

.searchBlock input {
    width: 25rem;
    font-size: 1.125rem;
    padding: 0.3125rem;
    border: 1px solid #ccc;
    max-width: none;
}

.searchBlock .selectWidget {
    width: 15.625rem;
    padding: 0.3125rem;
    font-size: 1.125rem;
    margin-left: 0.625rem;
}

.searchBlock .sharedBtn {
    width: 5.625rem;
    padding: 0.3125rem 0;
    font-size: 1.125rem;
    margin-left: 1.25rem;
}

.slash {
    font-size: 1.5rem;
    margin: 0 0.625rem;
}

@media screen and (max-width: 767px) {
    .searchBlock {
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    .searchTitle {
        width: 100%;
        -webkit-justify-content: center;
        justify-content: center;
        margin-bottom: 0.625rem;
    }

    .searchBlock select {
        width: 8.57rem;
    }

    .searchBlock input {
        width: calc(50% - 0.625rem);
        margin-right: 0.625rem;
    }

    .searchBlock .sharedBtn {
        margin-top: 0.625rem;
    }
}

.searchKeyWrapper {
    color: #000;
    line-height: normal;
    padding: 0.625rem;
    margin-left: 1.25rem;
}

.searchKeyWrapper span {
    color: var(--shared-red);
    margin: 0 0.625rem;
}

@media screen and (max-width: 767px) {
    .searchKeyWrapper {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
}

.currentSelected {
    color: #333;
    margin: 1.25rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    flex-wrap: wrap;
}

.currentSelected > div {
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.currentSelected .channelName {
    color: var(--shared-red);
}


/*************customSelect**********************/

.customSelect {
    color: #333;
    font-weight: 500;
    min-width: 15.625rem;
    font-size: 1.125rem;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-left: 0.625rem;
}

.customSelect:hover {
    color: #333;
}

.customSelect > li:first-child {
    border-top-width: 1px;
    border-bottom-width: 0;
}

.currentSelect + i {
    margin-left: 0.3125rem;
}

.customSelect i,
.customSelect i:hover {
    color: #333;
}

.customSelect li {
    border: 1px solid rgba(0,0,0,.09);
    border-top-width: 0;
    padding: 0.3125rem;
    background-color: #fff;
}

.customSelect > li:nth-child(2) {
    padding: 0;
    position: relative;
}

.customSelect li {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: space-between; /* Safari 6.1+ */
    display: flex;
    justify-content: space-between;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.customSelect li:hover {
    cursor: pointer;
}

.currentSelect[data-select="2"] + .fa-caret-down {
    margin-left: 0.5rem;
}

.customSelOptionWrapper {
    min-width: 15.625rem;
    position: absolute;
    z-index: 3;
    top: 0;
    left: -1px;
    display: none;
}

.customSelOptionWrapper li:hover {
    color: #333;
}

.customSelOptionWrapper li:first-child {
    border-top-width: 1px;
}

.shearchDropdownWrapper {
    display: -webkit-flex;
    -webkit-align-items: center;
    display: flex;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

@media screen and (max-width: 767px) {
    .shearchDropdownWrapper {
        width: 100%;
    }

    .customSelect {
        width: calc(50% - 1.5rem - 0.625rem * 2);
        min-width: 0;
    }

    .searchBtnWrapper {
        width: 100%;
    }

    .searchBtnWrapper .sharedBtn {
        margin-left: auto;
        margin-right: auto;
    }

    .customSelOptionWrapper {
        width: calc(100% + 2px);
        min-width: 0;
    }
}

@media screen and (max-width: 767px) {
    #searchScheduleType {
        margin-left: 0;
    }
}

