/**
 *
 */

/*** common elements ***/

/* override style from ionic */

body,
textarea, 
input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"],
.item p
{
    font-size: 16px;
}

.item {
    font-size: 100%;
}

hr {
	color: #ddd;
	background-color: #ddd;
	border: 0;
	height: 1px;
	margin: 8px 0;
}

/*
@media (min-width: 1024px) {
    .main-container {
        width: 1000px;
        margin: 0 auto;
        background-color: #fff;
        left: 50%;
        margin-left: -500px;
        box-shadow: 0 2px 20px #777;
    }
    
    body {
        background-color: #ddd;
    }
}
*/
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important;
}

h3.title {
    font-size: 122.5%;
    margin: 4px 0 4px 0px;
    color: #666;
}

.nowrap {
    white-space: nowrap;
}

.center {
    width: 100%;
    text-align: center;
}

h4.title {
    font-size: 112.5%;
    margin: 4px 0;
    color: #666;
}

.bar.bar-positive {
    border-color: #387ef5;
}

.bar.bar-stable, .tabs {
    box-shadow: 0px 0px 2px #bbb;
}


.item {
	border: 0;
	border-bottom: 1px solid #ddd;
	margin-top: 1px;
}

.item p {
    color: #444;
    line-height: 120%;
}

.item p.title {
    font-size: 110%;
    margin-bottom: 5px;
    color: #222;
    overflow: visible;
    white-space: normal;
}

.gray-text, .item p.gray-text {
    color: #777;
}

.padding {
	padding: 4px 10px;
}

.padding-h {
    padding: 0 12px;
}

.padding-v {
    padding: 12px 0;
}

.seperator-h {
    height: 20px;
}

.card {
    padding: 12px;
    border-right: 1px solid #ccc;
}

.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
}

/* others */

.padding-0-5 {
    padding: 0 5px;
}

.padding-0 {
    padding: 0px;
}

.text-item {
    padding: 10px;
}

.dot-link {
    border-bottom: 1px dotted #ccc;
    cursor: pointer;
}

p.created-by {
    font-size: 75%px;
    color: #888;
}

p.notes {
    color: #666;
}

/*** login ***/

#user-login-form {
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
    max-width: 500px;
}
@media (min-width: 768px) {
    #user-login-form {
        width: 500px;
    }
}

#user-login-footer {
    background: #eeeeee;
}

#user-login-footer .copyright {
    padding: 6px 10px;
    color: #777;
    font-size: 11px;
}

/*** user register ***/
#user-register-form .input-label {
    /* padding: 16px 0px 2px 4px; */
}



/*** group and group chat ***/

/*
.secondview, #groupchat, .chatitem {
    background-color: #f0f0f0;
}
*/

.comment-toolbar {
    padding: 12px 0 8px 0;
    line-height: 24px;
    display: flex;
}

.comment-toolbar span {
/*    font-size: 16px;  */
}

.comment-toolbar a.button-text {
    background: none;
    color: #888;
    text-decoration: none;
    padding: 4px 12px 4px 2px;
    font-size: 20px;    /* font for icon */
}

.comment-toolbar a.button-text span {
    font-size: 16px;
    vertical-align: top;
}

span.comment-name {
    color: #888;
}
span.comment-text {
    color: #444;
}

/*** calendar ***/

.bar-subheader-toolbar {
    position:absolute;
    width:100%;
    top:84px;
    height:41px;
    padding:1px 20px;
    vertical-align:middle;
    background-color:#f8f8f8;
    border-bottom:1px solid #ccc;
}
.platform-ios.platform-cordova .bar-subheader-toolbar {
    top: 104px;
}

#cal-month-view, #calendar_content {
    width: 100%;
    position:absolute;
    top:126px;
}
.platform-ios.platform-cordova:not(.fullscreen) #cal-month-view,
.platform-ios.platform-cordova:not(.fullscreen) #calendar_content {
    top: 146px;
}

#calendar_content {
    background-color: #eee;
}

.cal-date-bar {
    font-size: 85%;
/*    text-transform: uppercase;    */
    height: 30px;
    min-height: 26px;
    line-height: 1.0;
    padding: 7px 20px 0 20px;
    margin-top: -1px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    font-weight: normal;
}

.cal-item {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.cal-item-card {
    padding: 12px 10px;
    margin: 12px 20px;
}

.cal-item-content {
    padding: 2px 10px 2px 10px;
    overflow: visible;
    white-space: normal;
}

.cal-date {
    font-size: 90%;
}

.cal-title, .item p.cal-title {
    line-height: 150%;
}

.cal-time, .item p.cal-time, .cal-location, .item p.cal-location {
    font-size: 90%;
    white-space: nowrap;
}

.ion-icon {
    width: 1em;
    display: inline-block;
    text-align: center;
}

.cal-detail {
    white-space: normal;
    padding-right: 20px;
}
.today-button {
    margin-top: -4px;
}
#view-calendar-edit #button-start-date, #view-calendar-edit #button-end-date {
    width: 130px;
    text-align: center;
    display: inline-block;
}

#view-calendar-edit #button-start-time, #view-calendar-edit #button-end-time {
    width: 80px;
    text-align: center;
    display: inline-block;
}

#view-calendar-edit #button-repeat {
    text-align: right;
    border: 0;
    margin: 6px 0;
    padding-left: 10px;
    padding-right: 15px;
    background-color: transparent;
    min-height: 20px;
    font-size: 87.5%;
    color: #444;
    white-space: normal;
}

#monthcal tr {
    border-bottom: 1px solid #eee;
}
#monthcal tr:last-child {
    border-bottom: 1px solid #ddd;
}

#monthcal td {
    text-align: center;
    padding: 4px;
    color: #444;
}

#monthcal td.day div {
    margin: 0 auto;
    padding: 6px 8px;
    border-radius: 50%;
    white-space: nowrap;
    text-align: center;
    max-width: 36px;
    color: #222;
}

#monthcal td.clickable {
    cursor: pointer;
}

#monthcal td.out_month {
    color: #bbb;
}

#monthcal td.day:first-child, #monthcal td.day:last-child {
    background-color: #f8f8f8;
}

#monthcal td.has_event {
    background-image: url('../img/gray-dot.png');
    background-repeat: no-repeat;
    background-position: 50% calc(100% - 3px);
}

#monthcal td.is_today div {
    color: #dd0000;
    font-weight: bold;
}

#monthcal td.is_selected div {
    background-color: #38e;
    color: #ffffff;
}

#monthcal tr.weekday_name td {
    font-size: 70%;
    color: #888;
}

#monthcal tr.title {
    border-bottom: 0;
}

#monthcal tr.title td {
    font-size: 125%;
    padding: 12px 12px 6px 12px;
}

#monthcal tr.title td.clickable {
    color: #38e;
}

#monthcal tr.title td.month_year {
    color: #444;
    text-align: left;
}

#monthcal .title td.goto_today {
    font-size: 100%;
}

#dayevents tr {
    border-bottom: 1px solid #ddd;
}

#dayevents td {
    text-align: left;
    padding: 8px 12px;
    color: #444;
    font-size: 80%;
}
#dayevents td .end_time, #dayevents td .location {
    color: #999;
}
#dayevents td .start_time, #dayevents td .end_time {
    font-size: 12px;
}
#dayevents td .location {
    font-size: 90%;
}

/*** friends ***/

#new-friend-request {
    margin-bottom: 2px;
    border-bottom: 0px;
    padding: 0
}
#new-friend-request a.item-content {
    background-color: #fffff4;
    border: 1px solid #ddddcc;
    border-radius: 4px;
    padding: 10px 16px;
    margin: 10px 10px 0 10px;
}

.item#new-friend-request .badge {
    top: 22px;
    right: 20px;
}

#friend-list .item-divider {
    padding-top: 4px;
    padding-bottom: 4px;
}
.red-dot{
    left: 55px;
    border-radius: 50%;
    background-color: red;
    width: 10px;
    height: 10px;
    top: 10px;
    position: absolute;
}
.button-row {
    padding: 12px 0 8px 0;
    width: 100%;
}

.button-answer {
    min-height: 40px;
    font-size: 95%;
    padding: 2px 4px;
}


/*** post(news) ***/

#news_content p.created-by, #news_detail p.created-by {
    font-size: 85%;
}

.toolbar-icon-button {
    height: 38px;
    min-height: 38px;
    width: 44px;
    min-width: 44px;
    padding: 0 10px;
}

.toolbar-icon-button, .toolbar-icon-button:hover {
    color: #387ef5;
}
