/*************************************************** MAIN RULES **********************************************************/
body {
    padding: 0;
    margin: 0;
    font-family: Arial, Microsoft YaHei, sans-serif;
    font-size: 16px;
    color: #050912;
}

body.zh-tw {
    font-family: Microsoft Yahei, Arial, sans-serif !important;
    font-size: 16px;
}

body.zh-cn {
    font-family: Microsoft Yahei, Arial, sans-serif !important;
    font-size: 16px;
}

.tabItem,
.tab-active,
.form input,
.form select,
.next-event {
    font-size: 16px;
    font-family: Arial, Microsoft YaHei, sans-serif;
    color: #050912;
}

.zh-tw body,
.zh-tw .tabItem,
.zh-tw .tab-active,
.zh-tw .form input,
.zh-tw .form select,
.zh-tw .next-event,
.zh-cn body,
.zh-cn .tabItem,
.zh-cn .tab-active,
.zh-cn .form input,
.zh-cn .form select,
.zh-cn .next-event {
    font-family: Microsoft YaHei, Arial, sans-serif;
}

.wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0 0 0;
    position: relative;
}

a:link,
a:visited,
.hyperlink,
.check-subscription-link {
    color: #050912;
    text-decoration: none;
}

a:hover,
a:active,
.hyperline:active,
.hyperlink:active,
.check-subscription-link:hover {
    text-decoration: underline;
    color: #050912;
}

.footer {
    padding: 0em;
}

/*********************************************** END OF MAIN RULES *******************************************************/

/********************************************* ALIGNMENT FOR CALENDAR ****************************************************/

/* NEXT EVENT HEADER */
.next-event {
    padding-bottom: 1em;
}

.next-event div.lable {
    line-height: normal;
    margin: 0px;
    padding: 0px;
    font-size: 1.25em;
    font-weight: bold;
    padding-top: 0em;
    padding-bottom: 1.0em;
    color: #000;
}

.next-event div.date-time,
.next-event div.event-name {
    padding-bottom: 0.5em;
}

/* END OF NEXT EVENT HEADER */

/* CALENDAR TIMELINE */
.time-line-item {
    padding-top: 0.75em;
    margin: 0px 0 0 0px;
    border: 1px solid #DBDDE0;
    text-align: center;
    transition: background 0.5s;
    height: 50px;
    line-height: normal;
    box-sizing: border-box;
}

/*
.time-line-item:hover {
    background-color: #DBDDE0;
}
*/
.zh-tw .period label span,
.zh-cn .period label span {
    letter-spacing: 3px;
}

.color-dot-box .display-none {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    border: 1px solid #DBDDE0;
}

.color-dot-box .color-dot {
    display: none;
}

.time-line-item:hover,
.calendar-time-line .current-month .time-line-item {
    background-color: #FF270A;
    color: #fff;
    font-weight: normal;
    border: 1px solid #FF270A;
    transition: none;
}

.calendar-time-line .year {
    font-size: 1em;
    padding-bottom: 0.25em;
    line-height: normal;
}

/* CALENDAR TIMELINE END */

/* + BUTTON CONTROLS */
.expand-collapse>.exco-text {
    display: inline-block;
    text-align: center;
    color: #050912;
    font-size: 1em;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    line-height: 15px;
    border: 1px solid #DBDDE0;
    border-radius: 0.75em;
}

.expand-collapse>.exco-text:hover,
.expand-collapse.expand>.exco-text {
    background-color: #DBDDE0;
    border-right-color: #DBDDE0;
    color: #050912 !important;
}

.subscription-header,
.export-header {
    font-weight: 500;
}

/* END OF + BUTTON CONTROLS */

/* EVENT ROWS */
.content-headline {
    margin-left: 0em;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid #EEEEEE;
    padding: 22px 5px;
    line-height: 1;
}

.box-border {
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid #DBDDE0;
}

/* END OF EVENT ROWS */

/* FILTERS */
.filter-type ul li {
    float: none;
    padding: 0.25em 0.5em;
    display: inline-block;
}

.filter-type {
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 0.6em;
}

/* END OF FILTERS */

/* PAGINATION */
.eupagination>li>a,
.eupagination>li>span {
    font-weight: normal;
    padding: 0px 0px;
    margin: 3px;
    color: #050912;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid #DBDDE0;
    height: 40px;
    width: 40px;
    line-height: 40px;
}

.eupagination>li>a:hover,
.eupagination>li>span:hover {
    background-color: #FF270A;
    color: #ffffff !important;
    border: 1px solid #FF270A;
}

.eupagination>.active>a,
.eupagination>.active>span,
.eupagination>.active>a:hover,
.eupagination>.active>span:hover,
.eupagination>.active>a:focus,
.eupagination>.active>span:focus {
    z-index: 2;
    color: #ffffff;
    cursor: default;
    background-color: #FF270A;
    font-weight: normal;
    border: 1px solid #FF270A;
}

.eupagination>li:last-child>a,
.eupagination>li:last-child>span {
    border-radius: 0;
    border: 1px solid #DBDDE0;
    width: 40px;
}

.eupagination>li:first-child>a,
.eupagination>li:first-child>span {
    border-radius: 0;
    border: 1px solid #DBDDE0;
    width: 40px;
}

.eupagination>li:last-child>a:hover,
.eupagination>li:last-child>span:hover,
.eupagination>li:first-child>a:hover,
.eupagination>li:first-child>span:hover {
    color: #ffffff;
    border-color: #FF270A;
}

/* END OF PAGINATION */

/****************************************** END OF ALIGNMENT FOR CALENDAR ************************************************/

/*************************************************** BUTTONS *************************************************************/
.btn,
.btn-primary,
.btn-submit,
.btn-cancel,
.btn:focus,
.btn-primary:focus,
.btn-submit:focus,
.btn-cancel:focus {
    background: #FF270A;
    color: #ffffff !important;
    padding: 13px 10px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 0px;
    line-height: normal;
    text-transform: capitalize;
    transition: background 0.5s;
    border: 1px solid #FF270A;
    width: 180px;
    height: 50px !important;
}

.modal-dialog .btn {
    width: 120px;
    background: #fff;
    color: #FF270A !important;
    border-color: #FF270A;
    line-height: 1em;
}

.btn-subscribe {
    padding: 0px !important;
    height: 50px;
    box-sizing: border-box;
}

/*
.zh-tw .btn,
.zh-cn .btn,
.zh-tw .btn-primary,
.zh-cn .btn-primary {
    width: 4em;
}
*/
.modal-dialog .btn:hover,
.modal-dialog .btn:active,
.btn:active,
.btn-primary:active,
.btn-submit:active,
.btn-cancel:active,
.btn:hover,
.btn-primary:hover,
.btn-submit:hover,
.btn-cancel:hover {
    background: #FF270A;
    color: #FFFFFF !important;
    border-color: #FF270A;
}

/************************************************ END OF BUTTONS *********************************************************/

/***************************************************** TABS **************************************************************/
.tabs-wrapper {
    margin: 1em 0 1.5em 0;
}

.tabs {
    background-color: transparent;
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    height: auto;
    line-height: normal;
    float: none;
    text-align: left;
    font-size: 0;
    /* box-shadow: 0 0 18px rgb(4 0 0 / 8%); */
}

.tabs li {
    _float: none;
    float: none;
    margin: 0;
    display: inline-block;
}


.tabItem {
    height: 38px;
    line-height: 38px;
    padding-top: 0em !important;
    padding-bottom: 0em !important;
    padding-left: 0em;
    padding-right: 0em;
    text-decoration: none;
    font-weight: normal;
    font-style: normal;
    background: #EEEEEE;
    border: 1px solid #EEEEEE;
    transition: background 0.5s, color 0.5s, border 0.5s;
    color: #4B5466 !important;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 0em;
    position: relative;
    top: 0;
    left: 0px;
    width: 172px;
    text-align: center;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.tabItem:hover,
.tab-active,
.tab-active:hover {
    color: #FF270A !important;
    cursor: pointer;
    font-weight: normal;
    background-color: #FFDFDA;
    position: relative;
    top: 0px;
    left: 0px;
    border: 1px solid #FFDFDA;
    text-decoration: none;
}

/* YEAR BUTTONS */
.year-filter ul {
    margin: 1em 0;
}

.year-filter ul li {
    padding: 0;
    margin: 0;
    display: inline-block;
    line-height: 3em;
}

.year-filter ul li a {
    height: 40px;
    font-size: 1em;
    line-height: 40px;
    padding-top: 10px !important;
    padding-bottom: 11px !important;
    padding-left: 1em;
    padding-right: 1em;
    text-decoration: none;
    font-weight: normal;
    font-style: normal;
    background: transparent;
    border: 1px solid #EAEAEA;
    transition: background 0.5s;
    color: #050912;
    border-radius: 0;
    margin: 0;

}

.year-filter ul li a:focus,
.year-filter ul li a:hover,
.year-filter ul li a.selected {
    background: #FF270A;
    color: #ffffff;
}

/* END OF YEAR BUTTONS */
/* REQUIRED TO OVERWRITE MAIN CSS */
.en-gb .tabItem {
    text-transform: none;
}

/* END OF IT */
/************************************************** END OF TABS **********************************************************/

/********************************************* MODAL WINDOW CONTROLS *****************************************************/
.modal-title {
    line-height: normal;
    margin: 0px;
    padding: 0px;
    font-size: 1em;
    font-weight: bold;
    padding-top: 0em;
    padding-bottom: 0em;
    color: #003E5C;
    color: #333;
}

.modal-header .close {
    margin-top: 0.1em;
    font-size: 2.5em;
    line-height: 0.25em;
    font-weight: 300;
    opacity: 1;
    color: #000;
}

.zh-tw .modal-header .close,
.zh-cn .modal-header .close {
    font-size: 2.1em;
    font-weight: 600;
}

li.type {
    width: 50%;
    padding: 0.5em 0;
}

.checkbox-event-type {
    padding: 0;
}

label {
    vertical-align: text-top;
}

.modal-body {
    position: relative;
    padding: 1em;
}

.your-preference-title {
    text-align: center;
    padding: 0 0 1em 0;
}

.your-preferences {
    background-color: transparent;
    box-sizing: border-box;
    border: 0em solid #DBDDE0;
    padding: 1em 0 1em 0;
}

.form input,
.form select {
    color: #050912;
    font-size: 1em;
    padding: 0.22em;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #A8A9A3;
}

.form .lable {
    padding-right: 1em;
    height: auto;
    vertical-align: middle;
    line-height: normal;
    margin-top: 0.45em;
}

.headline-left .date-time {
    font-weight: normal;
    padding-bottom: 15px;
    font-size: .875em;
    color: #ABAFB8;
    padding-top: 0px;
}

.headline-right .event-type {
    font-weight: normal;
    padding-top: 0px;
    padding-bottom: 0px;
    color: #4b5466;
}

.headline-left .event-name {
    color: #000;
}

.content-headline .headline {
    padding: 0px;
}

.expand-collapse {
    top: 20px;
}

.eupagination {
    margin: 3em 0 0;
}

.circle-pager {
    margin-top: 60px;
}

/***************************************** END OF MODAL WINDOW CONTROLS **************************************************/

/**************************************************** TOOLTIP ************************************************************/
.popup-date {
    line-height: normal;
}

.popup-event-name {
    line-height: normal;
    padding: 0.25em 0;
}

.etooltip {
    border: 1px solid #003E5C;
    border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    background: #fff;
    box-shadow: 0 1px 0.32em #003E5C;
    -moz-box-shadow: 0 1px 0.32em #DBDDE0;
    -webkit-box-shadow: 0 1px 0.32em #DBDDE0;
}

.etooltip .tip-arrow {
    background: transparent;
}

.main-heading {
    display: none;
}

.input-control {
    margin-top: 0px;
}

/************************************************* END OF TOOLTIP ********************************************************/
/*THIS IS REQUIRED*/
@media(max-width:640px) {
    li.type {
        width: 50% !important
    }
}

@media (max-width:479px) {
    #PastEventsContainer .attachments {
        margin-top: 0 !important;
    }

    .button-wrraper {
        margin-top: 1em !important
    }

    .headline .headline-right {
        float: none;
        margin-top: 0.5em;
    }

    #UpcomingEventsContainer .headline-right .download-event {
        margin-top: -20px;
    }

    .content-headline {
        position: relative;
    }

    .event-type {
        position: absolute;
        right: 0;
        top: 23px;
    }

    .export-types.download-event {
        position: absolute;
        right: 0;
        top: 73px;
    }
}

/* 
@media (max-width:390px) {
    .tabs {
        text-align: center;
    }
} */

/*

@media (max-width:440px) {
    .tabs li {
        width: 100%;
        margin-bottom: 3px;
    }

    .tabItem:hover,
    .tabItem {
        padding-left: 0em;
        padding-right: 0em;
        width: 60%;
        margin: 0 auto;
    }
}
*/

@media (max-width:320px) {
    .subscription-section .btn-subscribe-wrapper {
        float: none;
        width: 100% !important;
        padding-top: 0.5em !important;
        text-align: right;
    }

    .export-types {
        padding-bottom: inherit;
    }
}

.check-subscription-link .link {
    font-weight: normal;
}

.check-subscription-link .link:hover {
    color: #FF270A;
}

.footer {
    padding-bottom: 2em;
    font-size: 14px;
}

.modal-dialog .btn {
    margin-bottom: 3px;
}

.section-header.subscription-header {
    font-size: 14px;
    color: #4b5466 !important;
}

.check-subscription-link {
    color: #4b5466;
    font-size: 16px;
    text-align: right;
}

.supply-by {
    color: #4b5466;
}

/* .headline .headline-right {
    padding-top: 2em;
} */

.download-event {
    margin-top: 15px;
}

div#PastEventsContainer .filter-type {
    border-bottom: 0px solid #e1e1e1;
}

.modal-content {
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 0px;
    border-radius: 0px;
}

/*
.modal-open .modal {
    background: rgba(0, 0, 0, .65);
}
*/

.preference-period {
    margin-top: 15px;
}

.subscribe-checking .form .input {
    font-size: 12px;
}

.download-event .export-icon {
    cursor: pointer;
}

/*************** Custom Icons ************/
.mail-apple {
    background: url(icons/calendar-normal.svg);
    background-size: 35px 35px;
    transition: none;
}

.mail-apple:hover {
    background: url(icons/calendar-hover.svg);
    background-size: 35px 35px;
    transition: none;
}

/*************** Custom Icons ************/
/*END*/

* {
    outline: 0 !important;
}

.show-hide-toggle {
    display: block !important;
}

.expand-collapse>.exco-text {
    display: none;
}

/* safari */

/* @media (max-width:494px) {
    _::-webkit-full-page-media, _:future, :root .headline .headline-right {
        padding-top: 0em;
    }
} */


/*''''''''''''''''''''''''''' Dynamic Size/Fonts Reset''''''''''''''''''''''''''''*/

@media screen and (max-width: 425px) {
    body {
        font-size: 10px !important;
    }

    .btn-subscribe-wrapper {
        font-size: 12px !important;
    }

    .section-header.subscription-header {
        font-size: 12px !important;
    }

    .tabItem, .tab-active, .form input, .form select, .next-event {
        font-size: 12px !important;
    }

    .footer {
        font-size: 10px !important;
    }

    .check-subscription-link {
        font-size: 12px !important;
    }
}

@media(max-width:320px) {
    .subscription-section .subscription-header {
        display: none !important;
    }

    .en-gb .subscription-section::before {
        content: "Subscribe for events" !important;
        font-size: 12px !important;
        color: #4b5466 !important;
        display: block !important;
    }

    .zh-tw .subscription-section::before {
        content: "訂閱事件" !important;
        font-size: 12px !important;
        color: #4b5466 !important;
        display: block !important;
    }
    
    .zh-cn .subscription-section::before {
        content: "订阅事件" !important;
        font-size: 12px !important;
        color: #4b5466 !important;
        display: block !important;
    }

    .tabs {
        display: block !important;
    }
}