/* GENERAL */

body {
    font-family: Helvetica, Arial;
    text-align: center;
    margin: 0;
    padding: 0;
}
#top-bar {
    color: white;
    font-size: 1.8rem;
    height: 3rem;
    line-height: 3rem;
    font-weight: 100;
    background: rgb(30,87,153);
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWU1Nzk5IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTAlIiBzdG9wLWNvbG9yPSIjMjk4OWQ4IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTElIiBzdG9wLWNvbG9yPSIjMjA3Y2NhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzdkYjllOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
    background: -moz-linear-gradient(-45deg,  rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);
    background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1)));
    background: -webkit-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);
    background: -o-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);
    background: -ms-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);
    background: linear-gradient(135deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=1 );
}
#top-bar a, #top-bar a:visited {
    color: white;
}
#top-bar-title {
    padding-left: 40px;
    background: url('/res/logo-36.png') no-repeat;
    background-position: center left;
    display: inline-block;
    font-family: Arial, Helvetica;
}
@media screen and (max-width: 440px) {
    #top-bar {
        font-size: 1.5rem;
    }
}
#page-container {
    text-align: left;
    max-width: 800px;
    padding: 8px;
    margin: auto;
    position: relative;
}
a.heading-link:hover {
    color: #61A;
    text-decoration: underline;
}

/* MONTH VIEW */

#container {
    position: relative;
    width: 91%;
    display: table;
}
.weekday-header-row, .calendar-row {
    display: table-row;
    width: 100%;
}
.weekday-container {
    display: table-cell;
    width: 9%;
    text-align: center;
    background: none;
    height: 40px;
    vertical-align: middle;
    font-size: 1.2rem;
}
.week-nr-container {
    display: table-cell;
    width: 9%;
    text-align: center;
    height: 3rem;
    font-size: 1.2rem;
    vertical-align: middle;
}
.day-cell {
    display: table-cell;
    width: 13%;
    text-align: center;
    height: 5.75rem;
    vertical-align: middle;
    font-family: Times New Roman;
    position: relative;
    padding: 1px;
}
.day-cell a {
    height: 100%;
    width: 100%;
    display: inline-block;
    color: initial;
}
.day-container {
    width: 100%;
    height: 100%;
    background: #D8D8D8;
}
.day-container .day-number {
    position: relative;
    font-size: 1.9rem;
    padding-right: 0.2rem;
    text-align: right;
}
.day-container .day-holiday {
    position: relative;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: right;
    font-family: Helvetica, Arial;
    color: #333;
    margin-top: -0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 86px;
    float: right;
    padding-right: 0.2rem;
}
.day-container .day-names {
    position: relative;
    font-size: 0.7rem;
    text-align: right;
    padding-right: 0.2rem;
    font-family: Helvetica, Arial;
    color: #666;
}
.day-container .day-index-number {
    position: absolute;
    left: 0.3rem;
    top: 0.2rem;
    font-size: 0.6rem;
    color: #666;
}
.day-container .icons {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    right: 0.2rem;
    text-align: left;
}
.wiki {
    width: 22px;
    height: 20px;
    display: none;
    background-image: url('/res/wiki.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
.note-icon {
    position: relative;
    width: 20px;
    height: 20px;
    background-image: url('/res/note.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    display: inline-none;
}
.weather {
    display: none;
}
.red-day.day-container .day-number {
    color: #F00;
}
.wrong-month {
    opacity: 0.4;
}
.day-container.today {
    background: #BEB;
}
.day-container.right-month {
    cursor:pointer;
}
.day-container.right-month:hover {
    background: #FCA;
}
.heading {
    display: table;
    position: relative;
    width: 100%;
    height: 3rem;
}
.heading > div {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
.arrow {
    width: 9rem;
    font-size: 1.3rem;
}
.arrow.left {
    text-align: left;
}
.arrow.right {
    text-align: right;
}
h1 {
    font-size: 1.8rem;
    font-weight: normal;
    margin: 0;
}
a, a:visited {
    text-decoration: none;
}
#footer {
    font-size: 0.7rem;
    color: #999;
    margin-top: 1rem;
    text-align: center;
}
hr {
    width: 60%;
    border: none;
    height: 1px;
    background: #BBB;
}
@media screen and (max-width: 768px) {
    .arrow {
        font-size: 1.1rem;
        width: 7.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .day-container .day-names, .day-container .day-holiday {
        display: none;
    }
    .day-container .day-number {
        line-height: 4.25rem;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    .weekday-container, .week-nr-container {
        font-size: 1.1rem;
    }
    .day-cell, .week-nr-container {
        width: 12.5%;
    }
    .day-cell {
        height: 4.25rem;
    }
}
@media screen and (max-width: 400px) {
    .day-container .day-number {
        font-size: 1.7rem;
    }
}
@media screen and (max-width: 320px) {
    .day-container .day-number {
        font-size: 1.5rem;
    }
    .weekday-container, .week-nr-container {
        font-size: 0.9rem;
    }
    .day-container .day-number {
        line-height: 3.75rem;
    }
    .day-cell {
        height: 3.75rem;
    }
}

/* YEAR VIEW */

#year-container {
    position: relative;
    width: 100%;
    text-align: center;
}
.month {
    width: 230px;
    display: inline-block;
    margin: 0.7rem 0.3rem;
    height: 220px;
    cursor: pointer;
    padding: 10px;
}
.month:hover {
    box-shadow: 0 0 0 1px #CCC;
    background-color: #F8F8F8;
}
.month-table {
    display: table;
    width: 92%;
}
.weekday-header-row, .calendar-row {
    display: table-row;
    width: 100%;
}
.month .weekday-container {
    display: table-cell;
    width: 9%;
    text-align: center;
    background: none;
    height: 40px;
    vertical-align: middle;
    font-size: 0.8rem;
}
.month .week-nr-container {
    display: table-cell;
    width: 12.5%;
    text-align: center;
    height: 1.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
}
.month .day-cell {
    display: table-cell;
    width: 12.5%;
    text-align: center;
    height: 1.4rem;
    vertical-align: middle;
    font-family: Times New Roman;
    position: relative;
    padding: 1px;
}
.month .day-container {
    width: 100%;
    height: 100%;
}
.month .day-container .day-number {
    position: relative;
    height: 100%;
    width: 100%;
    line-height: 1.4rem;
    text-align: center;
    font-size: 1.05rem;
}

.month:hover .day-container.right-month {
    background: #FCA;
}
.day-container.right-month:hover {
    background: #FCA;
}

@media screen and (max-width: 540px) {
    .month {
        width: 280px;
        margin: 0.7rem 0;
        height: initial;
        min-height: 200px;
    }
    .month .day-cell {
        height: 1.8rem;
    }
    .month .day-container .day-number {
        line-height: 1.8rem;
        font-size: 1.2rem;
    }
}

a, a:visited {
    text-decoration: none;
    color: black;
}
h2 {
    font-weight: 100;
    text-align: center;
    margin-bottom: 0.1rem;
    margin-top: 0.3rem;
}
a.hover-link {
    color: #17B;
}
a.hover-link:hover {
    text-decoration: underline;
    color: #2AD;
}

/* WEEK LIST VIEW */

.week-list {
    width: 360px;
    display: inline-block;
    margin: 0.7rem 0.3rem;
    cursor: pointer;
}
.week-list-table {
    display: table;
    width: 100%;
}
.week-list .weekday-container {
    display: table-cell;
    width: 11%;
    text-align: center;
    background: none;
    height: 30px;
    vertical-align: middle;
    font-size: 1rem;
}
.week-list .week-nr-container {
    display: table-cell;
    width: 11%;
    text-align: center;
    height: 2.2rem;
    font-size: 1rem;
    vertical-align: middle;
}
.week-list .month-letter-container {
    display: table-cell;
    width: 11%;
    text-align: center;
    height: 2.2rem;
    font-size: 1.1rem;
    vertical-align: middle;
    text-transform: uppercase;
    font-weight: bold;
    font-family: Arial;
}
.week-list .odd-month .month-letter-container {
    color: #BBB;
}
.week-list .even-month .month-letter-container {
    color: #D0D0D0;
}
.week-list .calendar-row:hover .week-nr-container {
    background-color: #FED;
}
.week-list .day-container .day-number {
    position: relative;
    height: 100%;
    width: 100%;
    line-height: 2.2rem;
    text-align: center;
    font-size: 1.2rem;
}
.week-list .day-cell {
    display: table-cell;
    width: 11%;
    text-align: center;
    height: 2.2rem;
    vertical-align: middle;
    font-family: Times New Roman;
    position: relative;
    padding: 1px;
}
.week-list .day-container {
    width: 100%;
    height: 100%;
}
.week-list .calendar-row {
    cursor: pointer;
}
.week-list .calendar-row:hover .day-container {
    background: #FCA;
}
.week-list .odd-month .day-container {
    background: #D8D8D8;
}
.week-list .even-month .day-container {
    background: #EEE;
}
.week-list .day-container.wrong-year {
    opacity: 0.4;
    background: #EEE;
}
.week-list .calendar-row .day-container.today {
    background: #BEB;
}

@media screen and (max-width: 400px) {
    .week-list {
        width: 250px;
    }
    .week-list .day-cell, .week-list .week-nr-container, .week-list .month-letter-container {
        height: 1.6rem;
    }
    .week-list .day-container .day-number {
        font-size: 1.05rem;
        line-height: 1.6rem;
    }
    .week-list .weekday-container, .week-list .week-nr-container {
        font-size: 0.8rem;
    }
    .week-list .month-letter-container {
        font-size: 1rem;
    }
}

/* SINGLE WEEK VIEW */

#single-week-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 1rem;   
}

.single-week-day-container {
    position: relative;
    margin: auto;
    padding: 3px;
    width: 85%;
    max-width: 480px; 
}
.single-week-day-content {
    background: #D8D8D8;
    width: 100%;
    position: relative;
    cursor:pointer;
}
.today .single-week-day-content {
    background: #BEB;
}
.single-week-day-content-header {
    background: rgba(0,0,0,0.15);
    width: 100%;
    line-height: 2rem;
    font-size: 1.1rem;
    height: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}
.single-week-day-content:hover {
    background: #FCA;
}
.single-week-day-metadata-container {
    position: relative;
    padding: 0.4rem 0;
}
.single-week-day-metadata {
    position: relative;
    padding: 0.2rem;
}
.single-week-day-note {
    font-style: italic;
    background-image: url('/res/note.png');
    background-repeat: no-repeat;
    background-position: 6px 6px;
    background-color: rgba(91,197,246,0.7);
    border: 1px solid rgba(100,157,186,0.8);
    padding: 6px 32px;
    margin: 0.2rem 1.1rem;
}

/* SINGLE DAY VIEW */

#single-day-container {
    position: relative;
    width: 100%;
    text-align: center;
}

#single-day-content {
    position: relative;
    width: 80%;
    margin: auto;
    text-align: left;
    font-size: 1.1rem;
}

@media screen and (max-width: 440px) {
    #single-day-content {
        width: 100%;
    }
}

#day-notes {
    width: 100%;
    background-color: #FED;
    height: 4.2rem;
    margin: 0.3rem 0;
    font-size: 1rem;
    border: 1px solid #DCB;
}

.button-container {
    margin-top: 0.5rem;
}

#save-button {
    width: 220px;
    height: 2.4rem;
    background-color: #eee;
    color: #222222;
    border: 1px solid #bbb;
    margin: 0px;
    padding: 0px;
    font-size: 1.2rem;
    font-family: Arial;
    cursor: pointer;
    border-radius: 5px;
}

#save-button:hover {
    background-color: #ddd;
}

#save-button:disabled {
    background-color: #ddd;
    color: #888;
}

.strong {
    font-weight: bold;
    text-transform: uppercase;
}