@media screen and (orientation:portrait) {
    html{
        font-size: 1rem!important;
    }
}
@media screen and (orientation:landscape) {
    html{
        font-size: 1rem!important;
    }
    * {
        animation: none!important;
        -webkit-animation: none!important;
        transition: none!important;
        -webkit-transition: none!important;
    }
}
@font-face {
    font-family:'FiraSans';
    src: url('../fonts/FiraSans-Bold.ttf');
    font-weight: 700;
}
@font-face {
    font-family:'FiraSans';
    src: url('../fonts/FiraSans-Medium.ttf');
    font-weight: 500;
}
@font-face {
    font-family:'FiraSans';
    src: url('../fonts/FiraSans-Regular.ttf');
    font-weight: 300;
}
@font-face {
    font-family:'FiraSans';
    src: url('../fonts/FiraSans-Light.ttf');
    font-weight: 100;
}
@font-face {
    font-family:'FiraSans';
    src: url('../fonts/FiraSans-LightItalic.ttf');
    font-weight: 100;
    font-style: italic; 
}
*{
    font-family: Fira,FiraSans,Open Sans,sans-serif;
    font-size: 1.1rem;
    font-weight: 100;
    letter-spacing: -0.05em;
    padding: 0;
    margin: 0;
}
html, body, section {
    height: 100%;
    width: 100%;
}
body{
    background-color: white;
}
body, section {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
section header {
    height: 3rem;
    min-height: 3rem;
    background-color: #312f34;
    overflow: auto;
}
section header .title,
section header .title *{
    position: absolute;
    color: white;
    display: block;
}
section header .title img{
    top: .5rem;
    left: .3rem;
    height: 2rem;
}
section header .title strong{
    top: 0.2rem;
    left: 2.6rem;
    font-size: 1.3rem !important;
    font-weight: 300;
    width: calc(100vw - 5rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
section header .title span{
    top: 1.4rem;
    left: 2.6rem;
    font-size: 1em;
    width: calc(100vw - 5rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
section#main header.subheader{
    height: 3rem;
}
section#main header.subheader input{
    margin-top: 0.25rem;
    height: 2.5rem;
    width: 70%;
    text-transform: uppercase;
    float:left;
    margin-left: 3px;
}
section#main header.subheader button{
    float: left;
    height: 2.6rem;
    margin-top: 0.25rem;
    width: 28%;
    margin-right: 3px;
    border-radius: .2rem!important;
    cursor: pointer;
    margin-left: -1px;    
    position: relative;
    padding: 6px 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    color:#454545;
    background: #ecf0f1;
    border-bottom: 2px solid #dadedf;
    box-shadow: inset 0 -2px #dadedf;
    border-bottom-left-radius: 0px !important;
    border-top-left-radius: 0px !important;
    font-size: 24px !important;
}
section#main header.subheader button:active {
    top: 1px;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

section#main header.subheader button::-moz-focus-inner {
    border: 0;
}
section article {
    background: white;
    height: 100%;
    overflow-x: scroll;
}
section#main article ul li{
    list-style: none;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid black;
    padding-left: 20px;
}
section#main article ul li.hide{
    display: none;
}
section#view{
    background: white;
    display: block;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    transform: translateX(120%);
    transition: transform 0.3s ease 0s;
    width: 100%;
    z-index: 50 !important;
}
section#view.to_center{
    transform: translateX(0px);
    -webkit-transform: translateX(0px);
}
section#view.to_center header .title{
    left: 35px;
}
section#view.to_center header nav{
    overflow: hidden;
    display: block;
    float: left;
}
section#view.to_center header nav.on-left button{
    background-image: url('../img/tab-decoration-left.svg');
    background-size: 3.2rem 2.5rem;
    -webkit-background-size: 3.2rem 2.5rem;
    padding: 0 1.2rem 0 0rem;
}
section#view.to_center header nav button{
    display: block;
    height: 3rem;
    width: 3rem;
    float: left;

    background: none;
    border: none;
    height: 2.5rem;
    margin-top: .5rem;
    border-radius: 0!important;
    width: 3.2rem;
}
section#view article{
    padding: 20px;
    height: calc(100% - (3rem + 20px));
}
section#view article ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
section#view article .event-list > li {
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 5px rgb(51, 51, 51);
    box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.7);
    padding: 0px;
    margin: 0px 0px 20px;
    border-radius: 20px;
}
section#view article ul > li > time {
    display: inline-block;
    width: calc( 100% - 10px );
    color: rgb(255, 255, 255);
    background-color: rgb(197, 44, 102);
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
section#view article ul > li:nth-child(even) > time {
    background-color: rgb(165, 82, 167);
}
section#view article ul > li > time > .day {
    display: block;
    font-size: 56pt;
    font-weight: 100;
    line-height: 1;
}
section#view article ul > li time > .month {
    display: block;
    font-size: 24pt;
    font-weight: 900;
    line-height: 1;
}
section#view article ul > li > .info {
    padding-top: 5px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: center;
    min-height: 50px;
}
section#view article ul > li > .info > h2 {
    font-size: 17pt;
    font-weight: 700;
    margin: 0px;
}
section#view article ul > li > .info > span {
    font-size: 13pt;
    font-weight: 300;
    margin: 0px;
}
section#view article ul > li > .info > ul,
section#view article .event-list > li > .social > ul {
    display: table;
    list-style: none;
    margin: 10px 0px 0px;
    padding: 0px;
    width: 100%;
    text-align: center;
}
section#view article .event-list > li > .social > ul {
    margin: 0px;
}
section#view article ul > li > .info > ul > li,
section#view article .event-list > li > .social > ul > li {
    display: table-cell;
    cursor: pointer;
    color: rgb(30, 30, 30);
    font-size: 11pt;
    font-weight: 300;
    padding: 3px 0px;
}
section#view article ul > li > .info > ul > li > a {
    display: block;
    width: 100%;
    color: rgb(30, 30, 30);
    text-decoration: none;
} 
section#view article .event-list > li > .social > ul > li {    
    padding: 0px;
}
section#view article .event-list > li > .social > ul > li > a {
    padding: 3px 0px;
} 
section#view article .event-list > li > .info > ul > li:hover,
section#view article .event-list > li > .social > ul > li:hover {
    color: rgb(30, 30, 30);
}
section#view article .save a,
section#view article .share a {
    display: block;
    width: 100%;
    color: rgb(75, 110, 168) !important;
    height: 50px;
    line-height: 50px;
}
section#view article .save a {
    border-bottom-left-radius: 20px;
}
section#view article .share a {
    color: rgb(221, 75, 57) !important;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}
section#view article .save:hover a {
    color: rgb(255, 255, 255) !important;
    background-color: rgb(75, 110, 168) !important;
}
section#view article .share:hover a {
    color: rgb(255, 255, 255) !important;
    background-color: rgb(221, 75, 57) !important;
}

@media (min-width: 768px) {
    section#view article .event-list > li {
        position: relative;
        display: block;
        width: 100%;
        height: 120px;
        padding: 0px;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    section#view article .event-list > li > time{
        border-top-right-radius: 0px;
        border-bottom-left-radius: 20px;
    }
    section#view article .event-list > li > time,
    section#view article .event-list > li > img  {
        display: inline-block;
    }
    section#view article .event-list > li > time,
    section#view article .event-list > li > img {
        width: 120px;
        float: left;
    }
    section#view article .event-list > li > .info {
        background-color: rgb(245, 245, 245);
        overflow: hidden;
    }
    section#view article .event-list > li > time,
    section#view article .event-list > li > img {
        width: 160px;
        height: 120px;
        padding: 0px;
        margin: 0px;
    }
    section#view article .event-list > li > .info {
        position: relative;
        height: 120px;
        text-align: left;
        padding-right: 40px;
    }	
    section#view article .event-list > li > .info > h2, 
    section#view article .event-list > li > .info > span {
        padding: 0px 10px;
    }
    section#view article .event-list > li > .info > ul {
        position: absolute;
        left: 0px;
        bottom: 0px;
    }
    section#view article .event-list > li > .social {
        position: absolute;
        top: 0px;
        right: 0px;
        display: block;
        width: 40px;
    }
    section#view article .event-list > li > .social > ul {
        border-left: 1px solid rgb(230, 230, 230);
    }
    section#view article .event-list > li > .social > ul > li {			
        display: block;
        padding: 0px;
    }
    section#view article .event-list > li > .social > ul > li > a {
        display: block;
        width: 40px;
        padding: 10px 0px 9px;
        height: 106px;
        line-height: 106px;
    }
    section#view article .save a {
        border-bottom-left-radius: 0px;
        border-top-right-radius: 20px;
    }
    section#view article .share a {
    border-bottom-left-radius: 0px;
        border-top-right-radius: 20px;
    }
}