@import url("/gc/sm/static/css/sm.css");

body {
    font-family: cartoon,sans-serif;
    overflow: hidden;
}
.loading {
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 5px white;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.loading .loader {
    position: absolute;
    bottom: 5%;
    width: 100%;
}
.shade {
    background-color: rgba(0,0,0,0.8);
}
.larger {
    font-size: 1.5em;
}
.smaller {
    font-size: 0.8em;
}
.tiny {
    font-size: 0.6em;
}
.scroller {
    width: 100%;
}
.hscroller {
    white-space: nowrap;
}    
.alignTop > * {
    vertical-align: top;
}
.alignMiddle > * {
    vertical-align: middle;
}
.alignLeft {
    text-align: left;
}
.alignRight {
    text-align: right;
}
.alignCenter {
    text-align: center;
}
.origa {
    font-family: origa;
}
.modal {
    text-align: center;
}
.modal > div {
    width: 100%;
    height: 100%;
}
.modal .padding {
    padding: 0 2em;
}
.modal .body {
    display: inline-block;
    border-radius: 0.5em;
    background-color: rgba(255,255,255,0.8);
    padding: 2em;
    position: relative;
}
.gc_popup .footer {
    padding: 0.25em;
    border-top: 2px dotted black;
    text-align: center;
}
.gc_popup .footer .gc_button {
    margin: 0.25em;
}
.checkbutton {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 2em;
    display: inline-block;
    margin-right: 1em;
}
.checkbutton > * {
    display: inline-block;
    vertical-align: middle;
}
.checkbutton .icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin: 0.25em;
}
.topZ {
    z-index: 10;
}
.arrow {
    width: 1em;
}
.recieptBg,.gc_popup.dialog {
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#f5f5f5),color-stop(0.1,#f9f9f9),color-stop(0.2,#fbfbfb),color-stop(0.8,#fbfbfb),color-stop(0.9,#f9f9f9),color-stop(1,#f5f5f5));
    background: -moz-linear-gradient(top,#f5f5f5 0%,#f9f9f9 10%,#fbfbfb 20%,#fbfbfb 80%,#f9f9f9 90%,#f5f5f5 100%); 
}

.gc_button.disabled {
    border-color: #686868;
    background-color: #878787;
    border-top-color: #acacac;
    color: #cacaca;
}    
.date {
    font-size: 0.8em;
}
.marginb5 {
    margin-bottom: 0.5em;
}
.gc_popup .body {
    font-family: cartoon;
}
.gc_text {
    border: 1px solid lightgray;
}
p.label {
    font-weight: bold;
    font-size: 1.5em;
    color: #4d1916;
    margin: 0.25em 0 0 0;
}
p.error {
    color: #f3274c;
    margin: 0 0 0.25em;
}

div.gc_focus {
    outline: 0;
}
div.gc_popup .footer a { color: black; }
div.gc_popup .body .more {
    text-align: center;
    font-weight: bold;
    padding: 0.5em;
}
img.attr {
    height: 2em;
    width: auto;
    vertical-align: middle;
}
canvas.portrait {
    width: 3em;
    height: 3em;
}
img.attr {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}
canvas.attr {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}
canvas.statuses {
    width: 3em;
    height: 1em;
}

canvas.status {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}
canvas.status.left {
    right: auto;
    left: 1em;
}
canvas.status.bottom {
    bottom:0;
    top:auto;
}

.car .info {
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    bottom: 0;
    right: 0;
}
.parts {
    font-family: origa;
}
.parts img {
    width: 1.5em;
    height: 1.5em;
}
.parts span {
}
.green {
    color: #2e8b57;
}
.red {
    color: #b22222;
}
.plus:before {
    color: #2e8b57;
    font-family: origa;
    content:"+";
}
.plus span {
    color: #2e8b57;
}
.minus:before {
    content:"-";
    font-family: origa;
    color: #b22222;
}
.minus span {
    color: #b22222;
}
.missing:before {
    content:"!";
    font-family: origa;
    color: #a020f0;
}
.missing {
    color: #a020f0;
}

.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.clip {
    overflow: hidden;
}
.font2 {
    font-size: 2em;
}


div.price {
    display: inline-block;
    white-space: nowrap;
}
div.price > img {
    vertical-align: middle;
    height: 1em;
    width: auto;
    margin-right: 0.25em;
}

.nowrap {
    white-space: nowrap;
}
.boxShadow {
    box-shadow: 5px 2px 10px gray, 0 7px 10px gray;
    -webkit-box-shadow: 5px 2px 10px gray, 0 7px 10px gray;
}

/* tabs */
.tabs {
    position: relative;
    width: 100%;
    white-space: nowrap;
    text-align: left;
    line-height: 0;
}
.tabs .tab {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 0.25em 0;
    border: 2px solid #eddcb0;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-color: transparent;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    background-color: #fff7c0;
    height: 2em;
}
.tabs .tab:first-child {
    border-left-width: 1px;
}
.tabs .tab:last-child {
    border-right-width: 1px;
}
.tabs .tab.selected {
    background-color: white;
}
.tabs .tab.selected > * {
    -webkit-transform: scale(1.2,1.2);
    -moz-transform: scale(1.2,1.2);
    transform: scale(1.2,1.2);
}
.tabs .tab img {
    height: 100%;
    width: auto;
}

/* tutorial */
.modal .tutorial .body {
    border-radius: 0;
}
.tutorial canvas.item {
    width: 5em;
    height: 5em;
    margin: 0.25em;
}
.tutorial .skip {
    text-align: right;
    padding: 1em 0;
}
.tutorial .skip div {
    text-decoration: underline;
    color: #609bff;
    cursor: pointer;
}

/* attributes */
.attributes {
    margin: 0.5em;
    text-align: left;
}
.attributes caption {
    font-weight: bold;
    border-bottom: 2px dotted black;
}
.attributes .row {
    width: 50%;
}
.attributes .row > * {
    display: inline-block;
    padding: 0 0.25em;
}    
.attributes .label {
    font-weight: bold;
    text-align: right;
}
span.plus {
    color: #3A0;
}
span.minus {
    color: #A30;
}


/* reward popup */
#reward .body {
    padding: 1em;
}
canvas.reward {
    width: 3em;
    height: 3em;
}

/* confirm popup */
#confirm.gc_popup.dialog {
    bottom: auto;
    left: 2em;
    right: 2em;
}
#confirm .body {
    padding: 1em;
    font-weight: bold;
}
#confirm canvas.item {
    width: 3em;
    height: 3em;
}
#confirm.sell .gc_button {
    min-width: 12em;
}
#confirm .margin5 {
    margin: 0.5em;
}

/* forums */
#forum.gc_popup {
    position: absolute;
    top: 0.5em; bottom: 0.5em;
    left: 0.5em; right: 0.5em;
}
#forum.gc_popup .body {
    position: absolute;
    left: 0; right: 0;
    top: 2.5em;
    bottom: 0.25em;
    padding: 0;
    overflow: hidden;
    text-align: left;
}
#forums .row:nth-child(2n) {
    background-color: #dfecf8;
}
#forums .row.blue, .row:nth-child(2n).blue {
    background-color: #dbf88b;
}
#forums .thread {
    font-family: arial;
}

/* item description */
.item .description {
    font-size: 0.8em;
 }
.item .price {
    margin: 0.5em;
 }
     
/* alert */
.alert {
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
}
.alert .text {
    margin: 1em;
}
.alert img {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 2.5em;
    height: auto;
}
.alert img.back {
    left: 1em;
    width: 2.5em;
}
.alert .footer {
    display: none;
}
.alert a {
    color: white;
}

/* guests */
#guests {
    padding: 0 0.5em;
    white-space: nowrap;
}
#guests > div {
    display: inline-block;
}
#guests.zoomOut {
    top: 3em;
}
#guests .queue {
    position: absolute;
    right: 0.5em;
    bottom: 0.5em;
}
    
/* main */
#content {
    width: 100%;
}

#cars {
    width: 100%;
    margin-top: 2em;
}

/* comments/feeds */
.post {
    padding: 0 0.25em;
}
.post:nth-child(2n+1) {
    background-color: rgba(220,220,240,0.3);
}
.post > canvas.portrait {
    width: 2.5em;
    height: 2.5em;
    margin-right: 0.5em;
    display: block;
}
.post .date {
    font-size: 0.8em;
}

#feeds .body {
    text-align: left;
    padding: 0;
}
#feeds .content {
    font-size: 0.8em;
}
#feeds .name {
    font-weight: bold;
    font-size: 0.8em;
}
#feeds canvas.item {
    width: 2em;
    height: 2em;
}
#feeds canvas.portrait {
    width: 2em;
    height: 2em;
    margin-right: 0.25em;
}
#feeds .top {
    white-space: nowrap;
    overflow: hidden;
}    
#feeds .bottom {
    white-space: nowrap;
    overflow: hidden;
}
#feeds .right {
    width: 35%;
    max-width: 6em;
    text-align: right;
}
#feeds .right img {
    margin: 0.25em;
}

#comments .textpost {
    padding: 0.25em;
}
#comments .gc_text {
    border-radius: 0;
    border: 0;
    height: 2em;
    background-color: transparent;
}
#comments .gc_button {
    height: 2em;
    padding-top: 0.25em;
}
#comments .body {
    text-align: left;
    padding: 0;
}
#comments .name {
    font-weight: bold;
    font-size: 0.8em;
}


/* car view */
#tables {
    width: 100%;
    text-align: center;
}
#tables .beggar {
    position: absolute;
    right: 0;
    top: -0.5em;
}
.a_beggar #tables .beggar {
    animation: backforward 5s infinite;
    -webkit-animation: backforward 5s infinite;
    -moz-animation: backforward 5s infinite;
}
@keyframes backforward {
    0% { transform: translate3d(0px,0px,0px); }
    45% { transform: translate3d(-100%,0px,0px); }
    50% { transform: translate3d(-100%,0px,0px) rotateY(180deg); }
    95% { transform: translate3d(0px,0px,0px) rotateY(180deg); }
    100% { transform: translate3d(0px,0px,0px); }
}
@-webkit-keyframes backforward {
    0% { -webkit-transform: translate3d(0px,0px,0px); }
    45% { -webkit-transform: translate3d(-100%,0px,0px); }
    50% { -webkit-transform: translate3d(-100%,0px,0px) rotateY(180deg); }
    95% { -webkit-transform: translate3d(0px,0px,0px) rotateY(180deg); }
    100% { -webkit-transform: translate3d(0px,0px,0px); }
}
@-moz-keyframes backforward {
    0% { -moz-transform: translate3d(0px,0px,0px); }
    45% { -moz-transform: translate3d(-100%,0px,0px); }
    50% { -moz-transform: translate3d(-100%,0px,0px) rotateY(180deg); }
    95% { -moz-transform: translate3d(0px,0px,0px) rotateY(180deg); }
    100% { -moz-transform: translate3d(0px,0px,0px); }
}
.table {
    white-space: nowrap;
}
.table > * {
    position: absolute;
}
.a_spin .spin {
    animation: spin 2s infinite;
    -webkit-animation: spin 2s infinite;
    -moz-animation: spin 2s infinite;
}
@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotateY(0deg); }
    100% { -webkit-transform: rotateY(360deg); }
}
@-moz-keyframes spin {
    0% { -moz-transform: rotateY(0deg); }
    100% { -moz-transform: rotateY(360deg); }
}
.uguest {
    position: absolute;
    display: inline-block;
}
.uguest canvas.status.mid {
    left: 50%;
}
.uguest canvas.portrait {
    width: 2em;
    height: 2em;
    border-radius: 0.25em;
    left: -0.5em;
    top: 0;
    z-index: 1;
    opacity: 0.7;
}
.wob {
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    -moz-transform-origin: 50% 100%;
    transform: rotateZ(0deg);
    -webkit-transform: rotateZ(0deg);
    -moz-transform: rotateZ(0deg);
}
.a_idle .wob {
    animation: wob 1.5s infinite;
    -webkit-animation: wob 1.5s infinite;
    -moz-animation: wob 1.5s infinite;
}
@keyframes wob {
    0% {transform:rotateZ(4deg);}
    50% {transform:rotateZ(-4deg);}
    100% {transform:rotateZ(4deg);}
}
@-webkit-keyframes wob {
    0% {-webkit-transform:rotateZ(4deg);}
    50% {-webkit-transform:rotateZ(-4deg);}
    100% {-webkit-transform:rotateZ(4deg);}
}
@-moz-keyframes wob {
    0% {-moz-transform:rotateZ(4deg);}
    50% {-moz-transform:rotateZ(-4deg);}
    100% {-moz-transform:rotateZ(4deg);}
}
.walk {
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    -moz-transform-origin: 50% 100%;
    transform: scale(1,1.05);
    -webkit-transform: scale(1,1);
    -moz-transform: scale(1,1.05);
    animation: walk 0.5s infinite;
    -webkit-animation: walk 0.5s infinite;
    -moz-animation: walk 0.5s infinite;
}
@keyframes walk {
    0% {transform:scale(1,1.05);}
    50% {transform:scale(1,1);}
    100% {transform:scale(1,1.05);}
}
@-webkit-keyframes walk {
    0% {-webkit-transform:scale(1,1.05);}
    50% {-webkit-transform:scale(1,1);}
    100% {-webkit-transform:scale(1,1.05);}
}
@-moz-keyframes walk {
    0% {-moz-transform:scale(1,1.05);}
    50% {-moz-transform:scale(1,1);}
    100% {-moz-transform:scale(1,1.05);}
}
    

.star {
    position: absolute;
    left: 10%;
    top: 0;
}
.a_gift .star {
    animation: bounce 1s infinite;
    -webkit-animation: bounce 1s infinite;
    -moz-animation: bounce 1s infinite;
}
@keyframes bounce {
    0% { transform: translate3d(0px,0px,0px); }
    50% { transform:  scale(1,0.8) translate3d(0px,2em,0px); }
    100% { transform: translate3d(0px,0px,0px); }
}
@-webkit-keyframes bounce {
    0% { -webkit-transform: translate3d(0px,0px,0px); }
    50% { -webkit-transform:  scale(1,0.8) translate3d(0px,2em,0px); }
    100% { -webkit-transform: translate3d(0px,0px,0px); }
}
@-moz-keyframes bounce {
    0% { -moz-transform: translate3d(0px,0px,0px); }
    50% { -moz-transform:  scale(1,0.8) translate3d(0px,2em,0px); }
    100% { -moz-transform: translate3d(0px,0px,0px); }
}

.pulse {
    animation: pulse 0.5s infinite;
    -webkit-animation: pulse 0.5s infinite;
    -moz-animation: pulse 0.5s infinite;
    transform: scale(1,1);
    -webkit-transform: scale(1,1);
    -moz-transform: scale(1,1);
    font-weight: bold;
    text-shadow: 0 0 2px solid white;
}
@keyframes pulse {
    0% { transform: scale(1,1) }
    50% { transform: scale(1,1.2) }
}
@-webkit-keyframes pulse {
    0% { -webkit-transform: scale(1,1) }
    50% { -webkit-transform: scale(1,1.2) }
    100% { -webkit-transform: scale(1,1) }
}
@-moz-keyframes pulse {
    0% { -moz-transform: scale(1,1) }
    50% { -moz-transform: scale(1,1.2) }
}

/* hq */
    
/* option */
#money {
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0.8)),color-stop(1,transparent)); 
    background: -moz-linear-gradient(top,rgba(255,255,255,0.7) 0%,transparent 100%); 
    font-size: 0.8em;
    padding: 0.25em;
}
#money .me {
    position: absolute;
    top: 0;
    right: 0.25em;
}
#option {
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0.8)),color-stop(1,transparent)); 
    background: -moz-linear-gradient(top,rgba(255,255,255,0.7) 0%,transparent 100%); 
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
}
#option .icon {
    display: inline-block;
    width: 2.5em;
    height: 2.5em;
    border-radius: 0.25em;
    overflow: hidden;
    position: relative;
}
#option .menu canvas.fact {
    right: 0;
    top: 0;
}

/* plane */
#plane {
    position: absolute;
    left: 0;
    top: 1em;
    width: 100%;
    height: 3em;
    padding: 0.25em;
}
#plane > div {
    position: relative;
    height: 2.5em;
    overflow: hidden;
    border: 2px solid #747474;
    border-radius: 0.25em;
    background-color: #dfd3b2;
    color: #883300;
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0.8)),color-stop(1,#dfd3b2)); 
    background: -moz-linear-gradient(top,rgba(255,255,255,0.8) 0%,#dfd3b2 100%); 
}
#plane img.sat {
    position: absolute;
    top: 0.25em;
    right: 0.25em;
    height: 100%;
    width: auto;
}
#plane .row {
    height: 100%;
}
#plane .row div {
    font-size: 0.9em;
}
#plane canvas.portrait {
    height: 2.5em;
    width: 2.5em;
    border-radius: 0.25em;
    margin-right: 0.25em;
}

/* barn */
#barn .body {
    padding: 0;
}
#barn .stock {
    display: inline-block;
    position: relative;
}
#barn .stock canvas {
    width: 5em;
    height: 5em;
}
#barn .stock .action {
    width: 2em;
    height: 2em;
    position: absolute;
    left: 0em;
    bottom: 1em;
}

#barn .gc_button {
    min-width: 15em;
}

/* upgrade guest stack */
#gstack .gc_button {
    min-width: 15em;
}
#gstack .body {
    padding: 0;
}

/* beggar */
#beggar {
    position: absolute;
    left: 1em;
    right: 1em;
    bottom: 3em;
}
#beggar > * {
    vertical-align: top;
}
#beggar .bubble {
    position: relative;
    height: 2.5em;
    color: #883300;
    border: 2px solid #747474;
    border-radius: 0.25em;
    background-color: #dfd3b2;
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0.8)),color-stop(1,#dfd3b2)); 
    background: -moz-linear-gradient(top,rgba(255,255,255,0.8) 0%,#dfd3b2 100%); 
    overflow: hidden;
    width: 12em;
}
#beggar img.head {
    height: 3em;
    width: auto;
}
#beggar img.head.bob {
    animation: bob 2s infinite;
    -webkit-animation: bob 2s infinite;
    -moz-animation: bob 2s infinite;
}
@keyframes bob {
    0% { transform: scale(1,1); }
    2% { transform: scale(1,0.95); }
    4% { transform: scale(1,1.15); }
    6% { transform: scale(1,1.1); }
    8% { transform: scale(1,1.15); }
    10% { transform: scale(1,1); }
}
@-webkit-keyframes bob {
    0% { -webkit-transform: scale(1,1); }
    2% { -webkit-transform: scale(1,0.95); }
    4% { -webkit-transform: scale(1,1.15); }
    6% { -webkit-transform: scale(1,1.1); }
    8% { -webkit-transform: scale(1,1.15); }
    10% { -webkit-transform: scale(1,1); }
}
@-moz-keyframes bob {
    0% { -moz-transform: scale(1,1); }
    2% { -moz-transform: scale(1,0.95); }
    4% { -moz-transform: scale(1,1.15); }
    6% { -moz-transform: scale(1,1.1); }
    8% { -moz-transform: scale(1,1.15); }
    10% { -moz-transform: scale(1,1); }
}

#beggar .guest {
    position: relative;
    top: -0.5em;
}
#beggar canvas.portrait {
    height: 2.5em;
    width: 2.5em;
    border-radius: 0.25em;
    margin-right: 0.25em;
}
#beggar .row {
    height: 100%;
}

#nextFriend {
    margin-left: 1em;
    width: 1.5em;
    height: 3em;
}


/* guest */
.guests canvas.portrait {
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    left:-0.5em;
    top:0;
    border-radius: 0.25em;
}

/* hscroller */
.gallery.hscroll {
    height: 2.75em;
    line-height: 0;
    margin: 0.25em;
}
.gallery.hscroll .gi {
    width: 2.5em;
    height: 2.5em;
    border: 0.125em solid transparent;
}
.gallery.hscroll .gi.selected {
    border: 0.125em solid orange;
}

/* store */
div.gc_popup.store {
    position: absolute;
    left:0.5em;
    right: 0.5em;
    top: 0.5em;
    bottom: 0.5em;
}
.store canvas.item {
    width: 2.5em;
    height: 2.5em;
}

/* receipt */
div.gc_popup.receipt {
    margin: 0 1em;
    border-radius: 0.5em;
    background-color: rgba(255,255,255,0.9);
}
div.gc_popup.receipt .title {
    background-color: transparent;
    color: black;
    text-align: center;
    border-bottom: 2px dotted gray;
}
div.gc_popup.receipt .body {
    padding: 1em 0;
}
    
.gallery.hscroll {
    background-color: rgba(0,0,0,0.1);
    border-radius: 0.25em;
    border: 1px solid lightgray;
    -webkit-box-sizing: content-box;
    -m-box-sizing: content-box;
    box-sizing: content-box;
}
.gallery .content {
    margin: 0 0.25em;
    border-left: 1px dotted lightgray;
    border-right: 1px dotted lightgray;
}

/* popup */
.gc_popup.dialog {
    position: absolute;
    left: 0.5em; right: 0.5em;
    top:0.5em; bottom: 0.5em;
    border-radius: 0.5em;
    border: 0.25em solid white;
    box-shadow: 5px 2px 10px gray, 0 7px 10px gray;
    -webkit-box-shadow: 5px 2px 10px gray, 0 7px 10px gray;
}
.gc_popup.dialog .title {
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#60beff),color-stop(1,#609bff)); 
    background: -moz-linear-gradient(top,#60beff 0%,#609bff 100%); 
    color: white;
    font-family: verdana;
    font-style: normal;
}

.gc_popup.dialog .title .exit {
    top: 0;
    right: 0;
    width: 2.5em;
    height: 2.5em;
    z-index:1;
}

/* upgrade */
#upgrade .tabs .tab {
    width: 20%;
}
#upgrade .infoTitle {
    padding: 0.5em;
}
#upgrade .desc {
    padding: 0.5em;
    text-align: left;
}

#upgrade .info canvas.item {
    width: 4em;
    height: 4em;
}

/* friends */
#friends .body {
    padding: 0;
    text-align: left;
}
#friends .search {
    padding: 0.125em 0;
}
#friends .gc_text {
    margin: 0.125em;
}
#friends .search .button {
    display: block;
    height: 2.5em;
    margin-top: 0.25em;
    margin-left: 0.25em;
}
#friends .heading {
    text-align: center;
    font-weight: bold;
    font-family: verdana;
    padding: 0.25em;
}
#friends .request {
    width: 50%;
    height: 3em;
    background-color: rgba(255,240,240,0.3);
}
#friends .friend {
    position: relative;
    width: 50%;
    height: 3em;
}
#friends .name {
    font-size: 0.8em;
    font-weight: bold;
    margin: 0.5em 0;
}
#friends .delete {
    width: 1em;
    height: auto;
    position: absolute;
    top: 1em;
    right: 0.5em;
}
#friends canvas.portrait {
    display: block;
    margin-right: 0.25em;
}

/* TITLE */
#title {
    height: 1.5em;
    overflow: hidden;
}
#title * {
    vertical-align: middle;
}
#title > div {
    display: inline-block;
    font-size: 0.8em;
    margin-right: 0.25em;
}

/* deploy dialog */
#deploy {
    position: absolute;
    left: 0.5em; top: 5em;
    right: 0.5em; bottom: 0.5em;
}
#deploy .scroller > * {
    vertical-align: top;
}
#deploy .row {
    width: 100%;
}

/* purchase dialog */
div.gc_popup .body {
    padding: 0.25em;
}

/* store */
.store .hscroll {
    position: absolute;
    left: 0; top: 0;
    right: 0; bottom: 0;
}
.store .body {
    text-align :center;
}
.store .stock {
    display: inline-block;
    vertical-align: top;
}
.store .item > img {
    width: 3em;
    height: 3em;
}
.store .description {
    font-size: 0.8em;
}

/* order */
#order {
    text-align: center;
}

#order .food {
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0.25em;
    padding: 0.5em;
    min-height: 13em;
    box-shadow: 5px 2px 10px gray;
    -webkit-box-shadow: 5px 2px 10px gray;
    -moz-box-shadow: 5px 2px 10px gray;
    text-align: center;
}
#order .disabled {
    opacity: 0.7;
}

#order .food canvas {
    width: 4em;
    height: 4em;
}
    
/* factory */
#factory .body {
    padding: 0;
    margin: 0.25em;
}
#factory .subtitle {
    color: #4d1916;
    font-weight: bold;
    font-family: arial;
    border-bottom: 1px dashed black;
    margin: 0.25em 0;
}
#factory .row > * {
    vertical-align: middle;
}
#factory .row {
    text-align: left;
    position: relative;
}
#factory .row canvas:first-child {
    margin-right: 0.25em;
}
#factory .row .count {
    width: 2.5em;
    overflow: hidden;
    font-size: 0.8em;
}
#factory .row canvas {
    width: 3em;
    height: 3em;
}
#factory .row img {
    height: 2em;
}
#factory .row:nth-child(2n+1) {
    background-color: #e1f4f8;
}
#factory .rush {
    position: absolute;
    right: 0.25em;
    top: 0.25em;
    height: 2.5em;
}
#factory .process {
    text-align: center;
}

/* tip */
div.tip {
    background-color:rgba(255,255,255,0.9);
    border-radius: 0.5em;
    padding: 0.5em;
    border: 1px solid gray;
    box-shadow: 0 2px 2px gray;
    -webkit-box-shadow: 0 2px 5px gray;
    max-width: 80%;
}
.tip .content {
    padding: 0.25em;
}
.tip .content > div {
    margin-bottom: 0.25em;
}
.tip canvas.item {
    width: 5em;
    height: 5em;
}
.tip .attributes .row {
    width: 100%;
}
.tip .name {
    font-weight: bold;
}

/* leaders */
#leader .desc {
    font-weight: bold;
    font-size: 0.8em;
    font-family: arial;
    margin-bottom: 0.25em;
    padding: 0.5em;
}
#leader.dialog .tabs .tab {
    -webkit-box: content-box;
    -moz-box: content-box;
    box: content-box;
    width: 50%;
    line-height: normal;
}
#leader .boards {
    white-space: nowrap;
}
#leader .boards img {
    width: 16.7%;
    height: auto;
    opacity: 0.8;
}
#leader .boards img.selected {
    -webkit-transform: scale(1.2,1.2);
    -moz-transform: scale(1.2,1.2);
    transform: scale(1.2,1.2);
    opacity: 1;
}
#leader .scroller > div:nth-child(2n+1) {
    background-color: rgba(220,220,240,0.3);
}
#leader .name {
    font-weight: bold;
}
#leader .score {
    padding-top: 0.25em;
    color: rgb(86,140,55);
}
#leader .me {
    border-bottom: 2px dotted gray;
    background-color: rgba(225, 200, 200, 0.3);
    text-align: left;
}
#leader .scroller > * {
    text-align: left;
}
#leader canvas.portrait {
    display: block;
    width: 2.5em;
    height: 2.5em;
    margin-right: 0.5em;
}

/* frequest */
#frequest {
    position: absolute;
    bottom: auto;
    width: 80%;
    max-width: 18em;
}
#frequest .body {
    padding: 0;
}
#frequest canvas {
    width: 5em;
    height: 5em;
    margin: 0.5em;
}
#frequest .msg {
    padding: 0.5em;
}

/* badge */
.badge {
    position: absolute;
    font-size: 0.7em;
    bottom:0.25em; right:0.25em;
    border-radius:0.75em;
    width:1.5em;height:1.5em;
    background-color: #e20038;
    color: white;
    text-align: center;
    padding-top: 0.175em;
}

/* chats */
#chats .gc_text {
    margin: 0.125em;
}
#chats canvas {
    width: 2.5em;
    height: 2.5em;
    margin-right: 0.25em;
}
#chats .active {
    position: relative;
    text-align: left;
}
#chats .active:nth-child(2n+1) {
    background-color: rgba(220,220,240,0.3);
}
#chats .active .name {
    font-weight: bold;
}
#chats .active .date {
    text-align: right;
}
#chats .body {
    position: absolute;
    top: 2.5em;
    bottom: 0em;
    width: 100%;
    padding: 0;
}
.lounge {
    background-color: #e9e9e9;
}
.lounge .title {
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(1,#e9e9e9)); 
    background: -moz-linear-gradient(top,#fbfbfb 0%,#e9e9e9 100%); 
    box-shadow: 0 1px 1px #c9c9c9;
    -webkit-box-shadow: 0 1px 1px #c9c9c9;
    -moz-box-shadow: 0 1px 1px #c9c9c9;
    color: #6b6b6b;
    height: 3em;
}
.lounge .title canvas {
    width: 3em;
    height: 3em;
}
.lounge .name {
    font-weight: bold;
    padding: 0.75em 0.5em;
}
.lounge .close {
    width: 2em;
    height: 2em;
    margin: 0.5em;
}
.lounge .footer {
    box-shadow: 0 -1px 1px #c9c9c9;
    -webkit-box-shadow: 0 -1px 1px #c9c9c9;
    -moz-box-shadow: 0 -1px 1px #c9c9c9;
}
.lounge .gc_text {
    border: 0;
    border-radius: 0;
}
.lounge .gc_ibutton .text {
    padding: 0.5em 0.25em;
}
.lounge .body {
    position: relative;
}
.lounge .scroller {
    position: absolute;
    width: 100%;
}
.lounge a {
    color: #23819C;
}
.lounge .message.me {
    text-align: right;
}
.lounge .bubble {
    position: relative;
    border-radius: 0.5em;
    padding: 0.5em;
    margin: 0.5em 1em;
    font-size: 0.9em;
    font-family: Sans-Serif;
    min-height: 3em;
    min-width: 60%;
    text-align: left;
}
.lounge .me .bubble{
    background-color: rgba(135,231,255,0.5);
}
.lounge .me .bubble:after {
    content: " ";
    position: absolute;
    right: -1em;
    top: 1em;
    border-width: 0.5em;
    border-style: solid;
    border-color: transparent;
    border-left-color: rgba(135,231,255,0.5);
    overflow: hidden;
}
.lounge .other .bubble {
    background-color: rgba(255,218,84,0.5);
}
.lounge .other .bubble:before {
    content: " ";
    position: absolute;
    left: -1em;
    top: 1em;
    border-width: 0.5em;
    border-style: solid;
    border-color: transparent;
    border-right-color: rgba(255,218,84,0.5);
    overflow: hidden;
}
.lounge .bubble .date {
    margin: 0 0.5em;
    font-size: 0.8em;
}
.fblike {
    position: absolute;
    bottom: 3.5em;
    left: 0.5em;
}

#help .back {
    position: absolute;
    left: 0.25em;
    top: 0.25em;
    width: auto;
    height: 1.5em;
}

#help .topic {
    font-weight: bold;
    text-align: left;
    padding: 1em;
}
#help .topic:nth-child(2n+1) {
    background-color: rgba(220,220,240,0.3);
}
#help .contents {
    position: absolute;
    left: 0.5em;
    right: 0.5em;
    top: 0.5em;
    bottom: 0.5em;
}
#help canvas.item {
    width: 3em;
    height: 3em;
    margin-right: 0.25em;
}
#help .heading {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.5em;
}
#help .help {
    padding: 0.5em;
}
#help .row {
    text-align: left;
}
#help .row:nth-child(2n) {
    background-color: rgba(220,220,240,0.3);
}
#help table td.label {
    font-weight: bold;
    text-align: right;
}
#help table td {
    padding-left: 0.5em;
    text-align: left;
}
#help .abutton {
    text-decoration: underline;
    cursor: pointer;
}
#help .switch {
    font-weight: bold;
}

.post.gc_popup .gc_text {
    border: 1px solid gray;
}
.post.gc_popup {
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#f5f5f5),color-stop(0.1,#f9f9f9),color-stop(0.2,#fbfbfb),color-stop(0.8,#fbfbfb),color-stop(0.9,#f9f9f9),color-stop(1,#f5f5f5));
    background: -moz-linear-gradient(top,#f5f5f5 0%,#f9f9f9 10%,#fbfbfb 20%,#fbfbfb 80%,#f9f9f9 90%,#f5f5f5 100%); 
    bottom: auto;
    top: auto;
    left: 0.75em;
    right: 0.75em;
    border-radius: 0.5em;
    padding: 0;
    position: absolute;
    border: 1px solid #609bff;
}

.shout {
    position: absolute;
    display: inline-block;
    right: 0.5em;
    padding: 1em;
    background-color: rgba(255,255,255,0.8);
    color: black;
    border-radius: 0.5em;
    border: 2px solid #747474;
}
.shout:before {
    content: " ";
    width: 1em;
    height: 1em;
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #747474;
    border-radius: 0.625em;
    position: absolute;
    right: 0.5em;
    bottom: -0.75em;
}
.shout:after {
    content: " ";
    width: 0.6em;
    height: 0.6em;
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #747474;
    border-radius: 0.325em;
    position: absolute;
    right: 1.2em;
    bottom: -1.2em;
}

/* context menu */
#choose {
    display: inline-block;
    position: absolute;
    visibility: hidden;
    background-color: white;
    text-align: left;
    border-radius: 0.25em;
}
#choose .title {
    font-weight: bold;
    background-color:#60beff;
    border-top-left-radius: 0.25em;
    border-top-right-radius: 0.25em;
    color: white;
}
#choose > div {
    padding: 0.5em;
}
#choose > div:nth-child(2n) {
    background-color: #f5f5f5;
}
#choose > div:last-child {
    margin-bottom: 0;
    border-bottom-left-radius: 0.25em;
    border-bottom-right-radius: 0.25em;
}
#choose .button.gc_focus {
    background-color: #e5e5e5;
}
#choose .button {
    position: relative;
    min-width: 6em;
    padding-right: 2em;
}
#choose .button img {
    position: absolute;
    right: 0.25em;
    height: 1em;
    width: auto;
}

/* invite options */
#chooser {
    background-color: white;
    position: absolute;
    left: 0.5em; right: 0.5em;
    top: 0.5em; bottom: 0.5em;
    text-align: center;
}
#chooser .body {
    padding: 0;
}
#chooser .head {
    padding: 0.125em 0;
}
#chooser .row {
    height: auto;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
    padding: 0; 
    margin: 0 0.25em;
}
#chooser .row:last-child {
    border-bottom: 0;
}
#chooser .name {
    font-weight: bold;
    padding: 0.25em;
    text-align: left;
    color: #3a3a3a;
}
#chooser .contact {
    font-size: 0.8em;
}
#chooser .footer {
    position: relative;
}
#chooser .wave {
    position: absolute;
    top: -0.5em;
    height: 1em;
    left: 0;
    right: 0;
}
.chooserbutton {
    display: inline-block;
    width: 50%;
    position: relative;
    height: 2.5em;
}
.chooserbutton.gc_focus {
    background-color: #90b22d;
}
.chooserbutton:first-child {
    border-right: 1px solid #527c00;
}
.chooserbutton span {
    position: relative;
    top: 1em;
    font-weight: bold;
    font-size: 0.8em;
}
.chooserbutton img {
    position: absolute;
    height: 1.5em;
    width: auto;
    top: 0.75em;
}    
.chooserbutton:first-child img {
    left: 0.5em;
}
.chooserbutton:nth-child(2) img {
    right: 0.5em;
}

/* find friend */
#findfriend {
    bottom: auto;
    width: 80%;
    max-width: 15em;
}
#findfriend p {
    font-size: 0.9em;
}

/* login */
#wizard {
    background-color: #b5d448;
}
#wizard .title {
    height: 3em;
    overflow: hidden;
    background-color: #31d5f8;
    border-bottom: 1px solid #787878;
    font-weight: bold;
    color: #4d1916;
    text-align: center;
}
#wizard .title > * {
    margin: 0.5em;
}
#wizard .titletext {
    padding-top: 0.5em;
}
#wizard .title .gc_ibutton .text {
    color: #115467;
    font-size: 0.8em;
    padding: 0.75em 1em 0.75em 0.5em;
}
#wizard .title .logo {
    width: auto;
    height: 2em;
}
#wizard .contents {
    position: relative;
}
#wizard .body {
    position: relative;
    padding: 1em 0;
}
#wizard .gc_text {
    width: 80%;
    max-width: 14em;
    border: 0.125em solid #77a11c;
    margin: 0.25em;
    border-radius: 0.4em;
}
#wizard .gc_button {
    margin: 1em;
}
#wizard p {
    margin: 0.5em;
}
#wizard .linkbutton {
    margin: 0.25em 0.5em;
    font-weight: bold;
    text-decoration: underline;
}

/* entire body is a button, so no padding */
#newORexist .body { padding: 0; }

.terms {
    color: #6c9320;
    padding-bottom: 2em;
    text-align: center;
}
.terms .link {
    display: inline-block;
    color: #42443b;
    font-weight: bold;
}
.terms {
    padding-top: 1em;
}

.panel {
    position: absolute;
    left: 0; right: 0;
    top: 0;
    bottom: 0;
}
.button1 {
    position: relative;
    padding: 1em;
}
.button1 .text {
    font-size: 1.5em;
    font-weight: bold;
    color: #4d1916;
}
.button1 .msg {
    color: #426c06;
}
.button1.gc_focus {
    background-color: #c5e458;
}
.button1:nth-child(1) {
    border-bottom: 1px solid #a0c632;
}
.button1 img {
    position: absolute;
    top: 1.5em;
    right: 0.5em;
    height: 2.5em;
    width: auto;
}

.button2 {
    position: relative;
    margin: 0.25em 0;
    color: white;
    font-weight: bold;
}
.button2 canvas {
    height: 3.5em;
    width: 100%;
    display: block;
}
.button2 .content {
    position: absolute;
    top: 0.5em; bottom: 0.5em;
    left: 1em;
    right: 1em;
}
.button2 .content > * {
    vertical-align: middle;
}
.button2 .icon {
    height: 2.5em;
    margin-right: 0.5em;
}
.button2 img:last-child {
    position: absolute;
    top: 0.75em;
    right: 0.5em;
    height: 2em;
}


/* option buttons */
.panel .contents {
    background-color: #b5d448;
    padding: 1em 0.5em;
}
.panel .subtitle {
    position: absolute;
    bottom: 0.5em;
    left: 1em;
    font-size: 1.5em;
    color: #4d1916;
    font-weight: bold;
}

#login {
    position: absolute;
    overflow: hidden;
}
#login .body {
    text-align: center;
}
#login .footer {
    color: #6c9320;
}
#login .footer .link {
    display: inline-block;
    color: #42443b;
    font-weight: bold;
}

/* forgot */
#forgot .gc_text {
    width: 60%;
    max-width: 14em;
}
#forgot .body {
    text-align: center;
}
 
/* flash */
div.flash {
    text-align: center;
    padding: 2em;
}
div.flash * {
    font-size: 2.5em;
    color: white;
    text-shadow: 2px 0 2px #609bff, 2px 2px 2px #609bff, 0 2px 2px #609bff, -2px 2px 2px #609bff, -2px 0 2px #609bff, -2px -2px 2px #609bff, 0 -2px 2px #609bff, 2px -2px 2px #609bff;
    font-weight: bold;
}


@media (max-width: 250px) {
    body { font-size: 0.9em; }
    #begger .bubble {
        width: 10em;
    }
}
@media (min-width: 600px) {
    body { font-size: 2em; }
}

