/* Yii */

html,
body {
    height: 100%;
    font-family: 'Montserrat', sans-serif; 
    color: #23286B;
}

.body-content{
    background-color: #007AFF;
}

a {
    color: #007AFF;
}

a:hover {
    text-decoration: none;
}


h1, h2, h3 {
    color: #007AFF;
    font-weight: bold;
}


.alert-danger, .link-pager, .user-info {
    text-align: center;
} 

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 50px 0 60px;
}

.wrap > .container {
    padding: 20px 15px;
}

.footer {
    text-align: center;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.navbar, .navbar-nav, .navbar-inverse, .navbar-fixed-top, .navbar-right {
    background-color: #007AFF;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-collapse, 
.navbar-inverse .navbar-form {
    background-color: #007AFF;
    border-color: #007AFF;
}
.navbar-fixed-top {
    border: none;
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .btn-link  {
    color: white;
}
.pagination > .active > a,
.pagination > .active > span, 
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #007AFF;
    border-color: #007AFF;
}
.pagination > li > a,
.pagination > li > span {
    border: 1px solid #007AFF;
}
.pagination > .disabled > span, 
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a, 
.pagination > .disabled > a:hover, 
.pagination > .disabled > a:focus {
    color: #007AFF;
    border-color: #007AFF;
}


/* First page */

.main {
    height: 100vh;
}
.main-page {
    margin-top: 10%;
}

.app-img {
    width: 100%;
}
.sign-btn{
    background-color: #007AFF;
    color: white;
    margin-right: 10px;
    padding: 15px;
}
.sign-btn:hover {
    background-color: #23286B;
    color: white;
}
.login-btn {
    border-color: #007AFF;
    color:  #007AFF;
    padding: 15px;
}
.login-btn:hover {
    color: white;
    background-color: #23286B;
    border-color: #23286B;
} 


.card {
    border-radius: 10px;
    background-color: white;
    text-align: center;
    margin: 40px 0px;
    padding: 15px; 
}

.title, .start-item {
    text-align: center;
}



.start-img {
    background-color: #007AFF;
    display: inline-block;
    border-radius: 50%;
    
    color: white;
}



/* post */

.view-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}
.post-info {
    margin-right: 20px;
}
.post-title, .post-title a {
    color: #23286B;
    font-weight: bold;
}
.post-address {
    color: gray;
}
.rating-green {
    background-color: #039c55;
    display: inline-block;
    border-radius: 100px;
    padding: 0 10px; 
    color: #f8f4f4;
}
.rating-yellow {
    background-color: #f8f660;
    display: inline-block;
    border-radius: 100px;
    padding: 0 10px; 
    color: #23286B;
}
.rating-red {
    background-color: #ee0606;
    display: inline-block;
    border-radius: 100px;
    padding: 0 10px; 
    color: white;
}
.category-food {
    background-color: #007AFF;
    display: inline-block;
    border-radius: 100px;
    padding: 0 10px; 
    color: #f8f4f4;
}
.category-other {
    background-color: #007AFF;
    display: inline-block;
    border-radius: 100px;
    padding: 0 10px; 
    color: #f8f4f4;
}

/* photo */

.photo-profile {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    position: relative;
    margin: 10px 0;
    border: 1px solid rgb(236, 236, 236);
}
.photo-profile-min {
    width: 60px;
    height: 60px;
    border-radius: 100px;
    margin-right: 10px;
    border: 1px solid rgb(236, 236, 236);
}
.post-img {
    width: 100%;
    border-radius: 10px;
}
.post-img-min {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}


/* menu */

.profile-main__menu__item>p:last-child {
    margin-bottom: 0px;
}



/* .sign-form, .login-form  */
.sign-form, .login-form, .add-form  {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    
}
.sign-form-item, .login-form-item, .add-form__item  {
    border-radius: 10px;
    background-color: white;
    padding: 15px;
    box-shadow: 0 0 20px #999;
    /* text-align: center; */
}
.sign-form-item, .login-form-item {
    margin-top: 100px;
}
.sign-form-text, .login-form-text, .add-form-item-text {
    text-align: center;
}

/* add */
.add-form {
    display: flex;
    justify-content: center;
}
textarea {
    height: 300px;
    resize: vertical;
}
.add-form-item-text {
    display: flex;
    justify-content: space-between;
}

/* .profile-head */
.profile-head, .profile-head-friend {
    border-radius: 10px;
    display: flex;
    justify-content: space-evenly;
    padding: 15px;
    box-shadow: 0 0 20px #999;
    align-items: center; 
    margin: auto;
}
.username {
    font-weight: bold;
}
.friend-page {
    margin: auto;
}
.profile-head-xs {
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 20px #999;
    text-align: center;
    background-color: #007AFF;
    margin: 10px auto;
}
.profile-head-xs>a {
    color: white;
}
.profile-head__photo {
    text-align: center;
}
.profile-title {
    color: #007AFF;
    font-weight: bold;
}
.btn-main {
    float: right;
    background-color: #007AFF;
    color: white;
}
.btn-main:hover {
    background-color: #23286B;
    color: white;
}
.btn-main-center {
    float: none;
    background-color: #007AFF;
    color: white;
}
.btn-main-center:hover {
    background-color: #23286B;
    color: white;
}
.profile-add {
    background-color: #007AFF;
}
.profile-head-btn_btn:hover {
    text-decoration: none;
    color: white;
    background-color: #23286B;
}

/* .profile-main */
.profile-main {
    display: flex;
    justify-content: space-between; 
    margin-top: 20px;
}
.profile-main__menu__item {
    border-radius: 10px;
    box-shadow: 0 0 20px #999;
    padding: 15px;
    margin: 0 20px 10px 0px;
}
.profile-main__menu__item>p>a {
    color: #23286B;
}
.profile-main__content {
    border-radius: 10px;
    box-shadow: 0 0 20px #999;
    padding: 25px 50px;
}

/* user-list */

.post-photo, .friend {
    margin: 30px 0;
}
.friend, .friend-username  {
    text-align: center;
    font-weight: bold;
}

.btn-success, .btn-danger {
    margin-top: 10px;
}