body, * {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body, .ui-page, .ui-content {
    background-color: #3f3f3f;
}

#error_message {
    border-top-width: 1px;
    color: #D9534F;
}

#chat_title {
    margin-left: 0;
    margin-right: 0;
}

.video_panel {
    height: 242px;
    text-align: center;
}

#img_player, #video_player {
    /*background-color: black;
    width: 320px;
    height: 240px;*/
}

#video_player {
    display: none;
}

/*#audio_button {
position: relative;
top : -2.8em;
left: 8.9em;
}*/
#audio_button {
    float: left;
}

.ui-icon-mute:after {
    background-image: url("/img/mute.svg");
}

.nick.hostess {
    font-weight: bold;
    color: #FF0055;
}

.nick.client {
    font-weight: bold;
    color: #0000DD;
}

.level1000 {
    font-size: larger;
    font-weight: bolder;
}

.system {
    font-weight: bold;
}

.emote {
    vertical-align: middle;
}

.pornstar {
    display: block;
    font-size: smaller;
    font-weight: normal;
    font-style: italic;
}

.session_type {
    display: block;
    font-size: smaller;
    font-weight: normal;
}

.model_thumb {
    padding-top: 5px;
    padding-left: 5px;
}

.webcam_icon {
    vertical-align: middle;
}

#home_ads {
    text-align: center;
}

#home_ads div.mopt {
    display: inline-block;
}

#chatPage, div#chatPage .ui-content, #messages {
    background-color: #ffffff;
}

#cvv_row * {
    display: inline-block;
}

#cvv_input {
    width: 3em;
}

.popup_btn_container {
    text-align: center;
}

.custom-corners .ui-bar {
    -webkit-border-top-left-radius: inherit;
    border-top-left-radius: inherit;
    -webkit-border-top-right-radius: inherit;
    border-top-right-radius: inherit;
}
.custom-corners .ui-body {
    border-top-width: 0;
    -webkit-border-bottom-left-radius: inherit;
    border-bottom-left-radius: inherit;
    -webkit-border-bottom-right-radius: inherit;
    border-bottom-right-radius: inherit;
}

a.cgu_link {
    color: #fff;
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    padding-top: 0.5em;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
}

a.dark_link {
    display: block;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: smaller;
    color: #000000 !important;
}

.pack_name {
    display: block;
    font-size: smaller;
}

.pack_desc {
    display: block;
    font-weight: normal;
    font-size: smaller;
}

div#chatPage div.ui-panel-wrapper {
    background-color: #ffffff;
}

#ocp_success_amount, #ocp_success_email {
    font-weight: bold;
}

h1.title a, h1.title a:visited, h1.title a:hover {
    color: white;
    text-decoration: none;
}

.latest_photo {
    float: left;
    margin: 0;
    text-align: center;
    min-height: 90px;
    display: inline-block;
}

.live_planning {
    table-layout: fixed;
    width: 100%;
}

.live_planning th, .live_planning td {
    width: 35px;
}

.live_planning th {
    text-align: left;
}

.live_planning th span {
    margin-left: -5px;
}

.live_planning td {
    text-align: center;
    padding: 4px 3px;
}

.live_planning_inner {
    overflow-x: scroll;
    overflow-y: visible;
    margin-left: 150px;
}

.live_planning_header {
    position: absolute;
    left: 0;
    width: 150px !important;
    white-space: nowrap;
}

.ad-block {
    display: inline-block
}

.ad-block a, .ad-block a:visited {
    color: white;
    text-shadow: none;
    line-height: 40px;
}


.ad-block {display: inline-block}
.ad-block a, .ad-block a:visited {color: white; text-shadow: none; line-height: 40px}



/* updates 09-12-2015 - Model list */

body, .ui-page, .ui-content {
    background: #263238;
}

.ui-content {
    padding: .5em;
}

.ui-content .ui-listview,
.ui-panel-inner>.ui-listview {
    margin: -.5em;
}

.ui-content .ui-listview-inset,
.ui-panel-inner>.ui-listview-inset {
    margin: 1em 0;
}


.ui-overlay-a,
.ui-page-theme-a,
.ui-page-theme-a .ui-panel-wrapper {
    background: #263238 !important;
}


.ui-header.ui-fixed-hidden {
    position: fixed !important;
}


.ui-header.slidedown.in  {
    -webkit-animation : none !important;
    -webkit-transform : none !important;
    animation         : none !important;
    transform         : none !important;
}

.section-title {
    text-shadow: none;
    font-size: 1em;
    color: #d4145a;
    text-align: center;
}

.model-list {
    justify-content: center;
    display                 : -ms-flexbox;
    display                 : -webkit-flex;
    display                 : flex;
    -webkit-flex-wrap       : wrap;
    -ms-flex-wrap           : wrap;
    flex-wrap               : wrap;
    -webkit-align-content   : flex-start;
    -ms-flex-line-pack      : start;
    align-content           : flex-start;
    -webkit-align-items     : flex-start;
    -ms-flex-align          : start;
    align-items             : flex-start;

    margin: 0 -.5em;
    text-shadow: none;
}

.model-item {
    width: 50%;
    margin-bottom:.5em;
}

.model-item a:active,
.model-item a:focus {
    opacity: .8;
}

.model-item a:active img,
.model-item a:focus img {
    opacity: .8;
}

.model-item .model_thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    padding: 0;
}

.model-item--meta {
    padding: .7em;
    position: relative;
    font-size: 12px;
    color: #fff;
    line-height: 16px;
    overflow: hidden;
    background: #d4145a;
}

.model-item--meta a {
    color: #fff;
}

.model-item--meta a:hover {
    color: #fff;
}


.model-item--meta a:last-child {
    position: absolute;
    padding: 8px;
    height: 100%;
    display: block;
    background: rgba(0,0,0,.2);
    right: 0;
    top: 0;
}

.model-item--date {
    display: block;
    font-weight: normal;
    opacity: .8;
}

.model-list--news .model-item--meta a:last-child {
    position: static;
    padding: 0;
    background: transparent;
}

.model-item--meta .session_type {
    font-size: .9em;
    padding-top: .2em;
}


.model-item--meta svg {
    fill: currentColor;
}

.model-item--meta path {
    fill: currentColor;
}

.model-item--meta .ui-link,
.model-item--meta a:visited,
.model-item--meta a {
    color: inherit;
    text-decoration: none;
}

@media screen and (min-width: 480px) {
    .model-item {
    width: 33.33%;
}

.model-item .model_thumb {
    width: 100%;
}

}

@media screen and (min-width: 640px) {
    .model-list {
    margin: 0;
}
.model-item {
    margin: .5em;
    width: 200px;
}
}

#home_ads {
    margin-top: 1em;
}

.ad-block {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: .5em;
}

/* profile page */
.model-info--img {
    text-align: center;
}

.model-info--img img {
    max-width: 100%;
    height: auto;
}

.model-info--thumbs {
    margin-bottom: 1em;
}

.model-info--thumbs:after {
    content: "";
    display: table;
    clear: both;
}

.model-info--thumbs a {
    float: left;
    position: relative;
    height: 0;
    padding-top: 18%;
    overflow: hidden;
    width: 33.33%;
}

@media screen and (min-width: 480px) {
    .model-info--thumbs a {
    width: 25%;
    padding-top: 12%;
}
}

@media screen and (min-width: 640px) {
    .model-info--thumbs a {
    width: 20%;
    padding-top: 10%;
}
}

.model-info--thumbs img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
}

.model-info--details .ui-listview > .ui-li-static,
.model-info--details .ui-listview >.ui-li-divider,
.model-info--details .ui-listview>li>a.ui-btn {
    white-space: normal;
}

@media screen and (min-width: 480px) {
    .model-info--details_grid {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.model-info--details_grid > div {
    webkit-flex-basis: 49%;
    flex-basis: 49%;
}

}

@media screen and (max-height: 479px) {
    .model-info--img img  {
    max-width: 200px;
}

}

/* chat fixes */


#chatPage,
#chatPage .ui-panel-wrapper .ui-content,
#chatPage .ui-panel-wrapper {
    background: #fff !important;
}


.chat {
    margin: -.5em;
    display: block;
}

.video_panel {
    height: auto;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 75%; /*4:3 ratio*/
    overflow: hidden;
}

.video_panel > img, .video_panel > video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.video_panel .buttons-interface {
    position: absolute;
    z-index: 20;
    bottom: 5px;
    left: 5px;
    display: inline-block;
    width: auto;
    font-size: 13px;
}

.video_panel .buttons-interface .ui-btn {
    float: left;
    font-size: 13px;
    width: auto;
    margin-right: 4px;
}

.video_panel .buttons-interface #audio_button .ui-btn {
    width: 35px;
    height: 35px;
}

.chat-messages {
    margin-top: 74.9%;
    position: fixed;
    top: 45px;
    bottom: 56px;
    left: 0;
    right: 0;
    overflow: auto;
    overflow-x: hidden;
    padding: .5em;
}

.chat-messages ul {
    margin: 0 !important;
    min-height: 100%;

    display                 : -ms-flexbox;
    display                 : -webkit-flex;
    display                 : flex;
    -webkit-flex-direction  : column;
    -ms-flex-direction      : column;
    flex-direction          : column;
    -webkit-flex-wrap       : nowrap;
    -ms-flex-wrap           : nowrap;
    flex-wrap               : nowrap;
    -webkit-justify-content : flex-end;
    -ms-flex-pack           : end;
    justify-content         : flex-end;
    -webkit-align-content   : stretch;
    -ms-flex-line-pack      : stretch;
    align-content           : stretch;
    -webkit-align-items     : flex-start;
    -ms-flex-align          : start;
    align-items             : flex-start;
}

.chat-input {
    background: #d4145a;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

@media screen and (min-width: 460px) {

    #chatPage,
    #chatPage .ui-panel-wrapper .ui-content,
    #chatPage .ui-panel-wrapper {
    background: inherit !important;
}


.video_panel {
    width: 60%;
    right: auto;
    padding: 0;
    position: relative;
}

.video_panel > img {
    position: static;
}

.chat-messages {
    width: 38%;
    position: absolute;
    top: 0;
    bottom: 54px;
    right: 0;
    left: auto;
    background: #fff !important;
    margin: 0;
    padding: 1%;
}

.chat-input {
    left: 60%;
}

.chat-messages ul {

}

}

/* update - 21.07 */
.custom-btn-group {
    text-align: center;
    padding: 10px 0;

}

.custom-btn-group > .ui-btn {
    margin: 0 -1px;
}
/* flags add */
.sidebar-flags {
    margin: 30px 0;
    text-align: center;
}
.sidebar-flags a {
    display: inline-block;
    width: 24px;
    margin: 0 5px;
}

.sidebar-flags img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.sidebar-flags:after {
    content: "";
    display: table;
    clear: both;
}