* {
    -webkit-tap-highlight-color: rgba(160,160,160,0.70);
    margin: 0;
    padding: 0;
}

body {
    -webkit-user-select: auto;
    -webkit-text-size-adjust: none;
    overflow-x: hidden;
    font-family: Helvetica;
    background: #000;
}

body > * {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    height: 416px !important;
    background: url(stripe.png) #c5ccd3;
}

body > .current {
    display: block !important;
}

.in, .out {
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-duration: 350ms;
    animation-duration: 350ms;
}

.slide.in {
    -webkit-animation-name: slideinfromright;
    animation-name: slideinfromright;
}

.slide.out {
    -webkit-animation-name: slideouttoleft;
    animation-name: slideouttoleft;
}

.slide.in.reverse {
    -webkit-animation-name: slideinfromleft;
    animation-name: slideinfromleft;
}

.slide.out.reverse {
    -webkit-animation-name: slideouttoright;
    animation-name: slideouttoright;
}

@-webkit-keyframes slideinfromright {
    from { -webkit-transform: translateX(100%); }
    to { -webkit-transform: translateX(0); }
}

@keyframes slideinfromright {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@-webkit-keyframes slideinfromleft {
    from { -webkit-transform: translateX(-100%); }
    to { -webkit-transform: translateX(0); }
}

@keyframes slideinfromleft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@-webkit-keyframes slideouttoleft {
    from { -webkit-transform: translateX(0); }
    to { -webkit-transform: translateX(-100%); }
}

@keyframes slideouttoleft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@-webkit-keyframes slideouttoright {
    from { -webkit-transform: translateX(0); }
    to { -webkit-transform: translateX(100%); }
}

@keyframes slideouttoright {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}


.toolbar {
    border-bottom: 1px solid #2d3642;
    height: 45px;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#b0bccd), color-stop(.5,#889bb3), color-stop(.5,#8195af), to(#6d84a2));
    position: relative;
}

.toolbar > h1 {
    position: absolute;
    overflow: hidden;
    left: 50%;
    top: 10px;
    line-height: 1em;
    margin: 1px 0 0 -75px;
    height: 40px;
    font-size: 20px;
    width: 150px;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.toolbar a .nav, .toolbar a img {
    position: absolute;
    left: 7px;
    right: auto;
    top: 7px;
    border: none;
}

.toolbar a .nav.left_2nd_icon, .toolbar a img.left_2nd_icon {
    left: 40px;
}

.toolbar a .nav.right_icon, .toolbar a img.right_icon {
    left: auto;
    right: 7px;
}

.toolbar a .nav.right_2nd_icon, .toolbar a img.right_2nd_icon {
    left: auto;
    right: 40px;
}

.button {
    position: absolute;
    overflow: hidden;
    top: 6px;
    right: 6px;
    margin: 0;
    padding: 0 8px;
    width: auto;
    height: 30px;
    line-height: 30px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #000;
    background-color:#4A6D9B;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    -o-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background-image: -webkit-gradient(linear,
				       left top, left bottom,
				       color-stop(0.0, rgba(255, 255, 255, 0.8)),
				       color-stop(0.01, rgba(255, 255, 255, 0.6)),
				       color-stop(0.4, rgba(255, 255, 255, 0.3)),
				       color-stop(0.4, rgba(255, 255, 255, 0.2)),
				       color-stop(1.0, rgba(255, 255, 255, 0.0)));
    background-image: -moz-linear-gradient(top,
					   rgba(255, 255, 255, 1.0) 0%,
					   rgba(255, 255, 255, 0.6) 1px,
					   rgba(255, 255, 255, 0.3) 40%,
					   rgba(255, 255, 255, 0.2) 40%,
					   rgba(255, 255, 255, 0.0) 100%);
}

.whiteButton {
    display: block;
    border: 1px solid #000;
    background-color: #999;
    padding: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: inherit;
    text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px;
    color: #fff;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    -o-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background-image: -webkit-gradient(linear,
				       left top, left bottom,
				       color-stop(0.0, rgba(255, 255, 255, 0.8)),
				       color-stop(0.01, rgba(255, 255, 255, 0.6)),
				       color-stop(0.4, rgba(255, 255, 255, 0.3)),
				       color-stop(0.4, rgba(255, 255, 255, 0.2)),
				       color-stop(1.0, rgba(255, 255, 255, 0.0)));
    background-image: -moz-linear-gradient(top,
					   rgba(255, 255, 255, 1.0) 0%,
					   rgba(255, 255, 255, 0.6) 1px,
					   rgba(255, 255, 255, 0.3) 40%,
					   rgba(255, 255, 255, 0.2) 40%,
					   rgba(255, 255, 255, 0.0) 100%);
}

ul {
    color: black;
    background: #fff;
    border: 1px solid #B4B4B4;
    font: bold 17px Helvetica;
    padding: 0;
    margin: 15px 10px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
}

ul li {
    color: #666;
    border-top: 1px solid #B4B4B4;
    list-style-type: none;
    padding: 10px 10px 10px 10px;
}

li:first-child, li:first-child a {
    border-top: 0;
    -webkit-border-top-left-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -o-border-top-left-radius: 8px;
    border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
    -moz-border-radius-topright: 8px;
    -o-border-top-right-radius: 8px;
    border-top-right-radius: 8px;
}

li:last-child, li:last-child a {
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-bottomleft: 8px;
    -o-border-bottom-left-radius: 8px;
    border-bottom-left-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
    -moz-border-radius-bottomright: 8px;
    -o-border-bottom-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

ul li a {
    color: #000;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    padding: 12px 10px 12px 10px;
    margin: -10px;
}

.edgetoedge {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.edgetoedge ul {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 0;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.edgetoedge li {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 0;
}

.edgetoedge ul li:first-child,
.edgetoedge ul li:first-child a,
.edgetoedge ul li:last-child,
.edgetoedge ul li:last-child a {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 0;
}

.edgetoedge ul li small {
    font-size: 16px;
    line-height: 28px;
}

.edgetoedge li em {
    font-weight: normal;
    font-style: normal;
}

ul li small {
    color: #369;
    font: 17px Helvetica;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 23%;
    float: right;
    padding: 3px 0px;
}

ul li.arrow small {
    padding: 0 15px;
}

ul li small.counter {
    font-size: 17px !important;
    line-height: 13px !important;
    font-weight: bold;
    background: rgb(154,159,170);
    color: #fff;
    -webkit-border-radius: 11px;
    -moz-border-radius: 11px;
    -o-border-radius: 11px;
    border-radius: 11px;
    padding: 4px 10px 5px 10px;
    display: inline !important;
    width: auto;
    margin-top: -22px;
}

ul li.arrow small.counter {
    margin-right: 15px;
}


ul li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid #E0E0E0;
    padding: 8px 0 8px 10px;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
    word-break: break-all;
}

ul li a {
    display: block;
    margin: -8px 15px -8px -10px;
    padding: 8px 20px 8px 10px;
    text-decoration: none;
    color: inherit;
    background: url(right_arrow.png) no-repeat right center;
    white-space: normal;
    -webkit-tap-highlight-color: rgba(160,160,160,0.70);
}

ul li.message {
    padding: 4px 0 4px 10px;
    font-size: 16px;
    font-weight: normal;
    color: black;
}

ul li.messagenew {
    padding: 4px 0 4px 10px;
    font-size: 16px;
    font-weight: normal;
    background: #aaccff;
    color: black;
}

ul li.sep {
    background: #fff;
    color: #7b9ba5;
    font-size: 14px;
    font-weight: normal;
    padding: 1px 10px;
}

ul li.group {
    background: #7b9ba5;
    font-size: 16px;
    padding: 0 0 0 10px;
    height: 20px;
}

ul li.group a {
    padding: 0 0 8px 8px;
    height: 20px;
    display: inline;
    background-image: none;
}

ul li a.inline {
    color: #00f;
    display: inline;
}

ul.no_arrow li a {
    background-image: none;
}

span.nick {
      margin: 0 5px 0 0;
      padding: 3px 3px 3px 5px;
      line-height: 30px;
      font-weight: bold;
      color: #fff;
      text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
      text-overflow: ellipsis;
      -webkit-border-radius: 8px;
      -moz-border-radius: 8px;
      -o-border-radius: 8px;
      border-radius: 8px;
      background: #434A4D;
}

/* input form */
form.edit {
    padding: 0px 10px;
}

form.edit button {
    margin:0 auto;
    font-size: 14px;
    width: 100%;
}

form.edit.bottom {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: absolute;
    left: 0px;
    bottom: 22px;
    width: 100%;
    height: 47px;
}

form.edit.bottom input[type="text"] {
    margin-top: 8px;
}

input[type="text"], input[type="password"] {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    font-size: 16px;
    font-weight: normal;
    padding-left: 32px;
    background: white;
    color: #777;
    display: block;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    padding: 8px;
    margin: 5px auto;
    border: 1px solid #b4b4b4;
}

/* floating menu */
.floaty {
    position: absolute;
    top: 50px;
    left: 0px;
    display: none;
    background: transparent;
    width: 100%;
}

.floaty_in {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: rgba(0,0,0, .5) 0px 1px 1px;
    -moz-box-shadow: rgba(0,0,0, .5) 0px 1px 1px;
    box-shadow: rgba(0,0,0, .5) 0px 1px 1px;
    position: relative;
    width: 98%;
    margin: 0px auto;
    padding: 5px 0px;
    background: rgba(255,255,255,.7);
    color: #000;
}

/* info */
.info {
    background: #dce1eb;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    text-shadow: rgba(255,255,255,.8) 0 1px 0;
    color: rgb(76, 86, 108);
    border-top: 1px solid rgba(76, 86, 108, .3);
    font-weight: bold;
    margin-top: 5px;
    padding: 3px;
}

.info.bottom {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 20px;
}

/* operation icon */
.icon {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 3px 3px 3px gray;
    -moz-box-shadow: 3px 3px 3px gray;
    box-shadow: 3px 3px 3px gray;
    background: #6D84A2;
    color: #fff;
    width: 48px;
    height: 48px;
    align: center;
    font-size: 10px;
    text-align: center;
    margin: 0px auto;
}

.icon .nav {
    margin: 0px auto;
}

.icon img {
    margin: 0px auto;
    width: 30px;
    height: 30px;
    display: block;
    border: none;
}

.icon_box {
    width: 100%;
}

.icon_box a {
    padding: 3px;
}


#loading {
    z-index: 20;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    display: none;
    background: rgba(255,255,255,.5);
}

#loading img {
    position: relative;
    top: 100px;
    margin: 0 auto;
    background: transparent;
    display: block;
}

#loading a {
    display: block;
    position: relative;
    top: 100px;
    float: right;
    margin-right: 10px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    background: #434A4D;
    text-decoration: none;
    padding: 3px 5px;
    color: #fff;
    font-size: 12px;
}

#map_canvas {
    width: 100%;
    display: block;
    position: absolute;
    top: 45px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    background-attachment: scroll;
}

#preloader {
    display: none;
    background-image:
      url(right_arrow.png),
      url(stripe.png),
      url(twg_iphone_toolbar_icons/icon_arrow_left.png),
      url(twg_iphone_toolbar_icons/icon_circle_arrow_right.png),
      url(twg_iphone_toolbar_icons/icon_blog.png),
      url(twg_iphone_toolbar_icons/icon_users.png),
      url(twg_iphone_toolbar_icons/icon_post.png),
      url(twg_iphone_toolbar_icons/icon_flag.png),
      url(twg_iphone_toolbar_icons/icon_cancel.png),
      url(ajax-loader.gif);
}

#reload_mark {
    position: absolute;
    width: 100%;
    height: 35px;
    font-size: 28px;
    display: none;
    top: -35px;
}

#reload_mark div {
    background-color: transparent;
    background-position: top left;
    background-repeat: no-repeat;
    background-image: url(twg_iphone_toolbar_icons/icon_circle_arrow_right.png);
    padding-left: 30px;
    height: 35px;
    margin: 0px auto;
    width: 85px;
    color: #f0f0f0;
}

.scroll_wrap {
    overflow: hidden;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    height: 303px;
    width: 100%;
}

#scroll {
    min-height: 101%;
    padding-bottom: 10px;
}

.scrollbar {
    position: absolute;
    z-index: 10;
    width: 1px;
    height: 1px;
    border-width: 3px;
    -webkit-border-image: url(iscroll/scrollbar.png) 3;
    -moz-border-image: url(iscroll/scrollbar.png) 3;
    -o-border-image: url(iscroll/scrollbar.png) 3;
    border-image: url(iscroll/scrollbar.png) 3;
}

.scrollbar.horizontal {
    bottom: 1px;
    left: 1px;
}

.scrollbar.vertical {
    top: 1px;
    right: 1px;
}

@media screen and (width: 480px) {
    /* iPhone landscape */
    body > * {
	height: 268px !important;
    }
}

@media screen and (device-height: 800px) and (device-width: 480px) {
    /* Nexus One */
    body > * {
	height: 508px !important;
    }
}
