@CHARSET "UTF-8";

/** Core

  Use this file for things like form controls, repeating elements (like error/warning/confirmation
  panels) and other non-page layout stuff and utility classes

*/

/* General */

h1:first-child, h2:first-child {
  margin-top: 0;
}

.wrapper h1:first-child {
  margin-top: 5px;
}

a {
  color: #719430;
  text-decoration: underline;
  transition: color 0.3s;
  -o-transition: color 0.3s;
  -ms-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -webkit-transition: color 0.3s;
}

a:hover {
  color: #92BF3E;
}

button.settings.button {
  padding: 2px 2px 0 2px;
  margin-left: 5px;
  height: 32px;
}

.lang-selector {
  float: right;
  z-index: 10;
  margin-top: -6px;
}

.lang-selector>div {
  padding: 3px;
}

.lang-selector:hover>div {
  transform: scaleY(1);
}

.lang-item {
  padding: 4px 55px 4px 5px;
  height: 20px;
  cursor: pointer;
  transition: background 0.3s;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
}

.lang-item:hover {
  background-color: #719430;
  color: #fff;
}

.lang-item.en {
  background-image: url(../art/en.png);
}

.lang-item.cn {
  background-image: url(../art/cn.png);
}

.lang-selector.cn .lang-item.cn, .lang-selector.en .lang-item.en {
  background-color: #ddd;
  color: #444 !important;
}

.cog.small {
  transform: scale(0.8);
}

.cog {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  padding: 4px;
}

.cog:before {
  border: 1px solid #719430;
  top: 5px;
  left: 5px;
  bottom: 5px;
  right: 5px;
  position: absolute;
  content: '';
  border-radius: 100%;
  z-index: 2;
}

.cog:after {
  background: #719430;
  top: 10px;
  right: 10px;
  left: 10px;
  bottom: 10px;
  border-radius: 100%;
  z-index: 2;
  position: absolute;
  content: '';
}

.cog .teeth, .cog .teeth:after, .cog .teeth:before {
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: #fff;
  z-index: 1;
}

.cog .teeth:after {
  content: '';
  transform: rotate(30deg);
  -o-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  -moz-transform: rotate(30deg);
  -webkit-transform: rotate(30deg);
}

.cog .teeth:before {
  content: '';
  transform: rotate(60deg);
  -o-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  -moz-transform: rotate(60deg);
  -webkit-transform: rotate(60deg);
}

img {
  border: 0;
}

/* Utility */

.one-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

label.block {
  display: block;
  padding: 2px 0;
}

div.clear {
  clear: both;
}

.small {
  font-size: 80%;
}

.tiny {
  font-size: 50%;
}

.big {
  font-size: 120%;
}

.bold {
  font-weight: bold;
}

.hidden {
  display: none;
}

.padded {
  padding: 10px;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: ' ';
  clear: both;
}

.rel {
  position: relative;
}

.full {
  width: 100%;
}

.inline-block {
  display: inline-block;
}

.unpadded {
  padding: 0 !important;
}

.hidden {
  display: none;
}

.summary {
  height: 200px;
  overflow: hidden;
}

.bars {

}

.bar {
  height: 10px;
  background: #aaa;
}

.bar>div {
  height: 10px;
  background: #719430;
}

.summary h2 {
  margin-bottom: 4px;
}

hr {
  border: none;
  border-bottom: 1px solid #aaa;
  width: 80%;
  margin: 0 auto;
}

/** forms */

input[type="text"],input[type="password"],textarea,input[type="number"],select {
  border: 1px solid #aaa;
  font-size: 14pt;
  padding: 4px;
  background: #fff;
  border-radius: 2px;
  font-family: "Open Sans", Ariel, Helvetica, sans-serif;
}

input[type="text"]:focus,input[type="password"]:focus,textarea:focus,input[type="number"]:focus,select:focus {
  box-shadow: 0 0 3px #aaa;
}

textarea {
  height: 200px;
}

div.label {
  padding: 8px 0;
}

.well {
  border: 1px solid #888;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
}

.help {
  border: 1px solid #719430;
  border-radius: 2px;
  padding: 15px;
}

.help h2 {
  font-weight: normal;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #719430;
}

.warning {
  border: 1px solid #94303D;
  border-radius: 2px;
  padding: 15px;
}

.help *:first-child, .warning *:first-child {
  margin-top: 0;
}

.help *:last-child, .warning *:last-child {
  margin-bottom: 0;
}

.progress {
  background: #666;
  color: #fff;
  text-shadow: 0 0 1px #000,0 0 1px #000,0 0 1px #000,0 0 1px #000,0 0 1px #000;
  text-align: center;
}

/*********************************************************** BUTTONS */

.button {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 2px 0 0;
  background: #719430;
  border: none;
  font-family: arial, helvetica, sans-serif;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  border-radius: 2px;
  cursor: pointer;
  font-size: 150%;
}

.button.rounded {
  border-radius: 10px;
  box-shadow: 5px 5px 5px #ddd;
  padding: 4px 20px;
}

.button.rounded:hover {
  box-shadow: 2px 2px 2px #888;
}

a.button, span.button {
  padding-top: 5px;
  padding-bottom: 5px;
  text-decoration: none !important;
}

.button:hover {
  background: #92BF3E;
  color: #fff;
  text-decoration: none;
}

.button.block {
  margin-bottom: 4px;
}

a.button:hover, a.button:hover:visited {
  color: #fff;
}

.button.search {
  margin: 5px 0 0 5px;
}

.button.tiny {
  font-size: 50%;
}

/** separator between horizontal buttons */
.button-sep {
  padding: 0;
  margin: 0px 10px;
  display: inline-block;
  vertical-align: bottom;
  content: '';
  height: 26px;
  border-left: 1px solid #aaa;
}

span.button.down {
  cursor: default;
}

.button.block {
  width: 90%;
}

.button.big {
  font-size: 22pt;
  padding: 8px 20px;
  margin: 0;
}

h1 .button {
  float: right;
  font-size: 80%;
  padding: 5px 8px;
}

/** Tabs */

.button.tab {
  border-radius: 6px 6px 0 0;
  margin: 10px 0 0 0;
  float: left;
  transition: padding 0.3s, margin 0.3s, background 0.3s, width 0.3s;
}

.button.tab.selected {
  background-position: 0 -10px;
  margin: 0;
  padding: 9px 20px 9px;
  cursor: default;
}

.tabgroup {
  font-size: 0;
  vertical-align: bottom;
  padding-left: 10px;
}

.tabframe {
  border: 1px solid #888;
  padding: 0 10px;
  border-radius: 4px;
}

span.tab {
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {

  .tabframe {
    border: 0;
  }

  .button.tab {
    display: block;
    float: none;
    margin: 1px 0 0 8%;
    padding: 8px 0;
    border-radius: 4px;
    width: 90%;
  }

  .button.tab.selected {
    margin: 1px 0 0 0;
    width: 98%;
  }
}

/** Dialog */

#dialog {
  position: fixed;
  width: 500px;
  background: #fff;
  border: 1px solid #888;
  border-radius: 4px;
  height: 300;
  top: -500px;
  left: 45%;
  left: calc(50% - 251px);
  z-index: 3;
}

#fader {
  position: fixed;
  top: 0;
  left: 0;
  background: none;
  background: rgba(255,255,255,0.5);
  width: 100%;
  height: 100%;
  display: none;
  z-index: 2;
}

#fader.noclick {
  background: #fff;
}

#dialog>h1 {
  text-align: center;
  margin: 0;
  font-size: 22pt;
}

#dialog div.loading {
  padding: 100px 20px;
  text-align: center;
  font-size: 22pt;
}

.dialog-only {
  display: none;
}

#dialog .dialog-only {
  display: block;
}

#dialog .bottomleft {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/* form controls */

input[type="text"], input[type="number"] {
  background: #fff;
  border: 1px solid #888;
  padding: 4px;
  border-radius: 2px;
}

input.full {
  width: 95%;
  width: calc(100% - 10px);
}

@media (max-width: 640px), (max-height: 500px) {

  span.only-phone {
    display: inline-block;
  }

  body {
    height: 100%;
  }

  .pull-right, .pull-left {
    float: none;
    display: block;
  }

  #dialog {
    position: fixed !important;
    overflow-y: auto;
    width: auto;
    background: #fff;
    border: none;
    border-radius: 0;
    top: -500px;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 3;
    margin-top: -100px;
    top: -100%;
  }

  .lang-item {
  }

  .lang-selector {
    margin-top: 4px;
    border-top: 1px solid #aaa;
    padding-top: 4px;
    float: none;
    text-align: center;
  }

}

@media (print) {
  #menubar,
  .user.right,
  .lang-selector {
    display: none !important;
  }
}

form.wait {
  position: relative;
  opacity: 0.7;
}

form.wait:after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';  
  border-top: 4px solid #719430;
  border-right: 4px solid #719430;
  border-left: 4px solid #719430;
  border-bottom: 4px solid transparent;
  border-radius: 100%;
  height: 4rem;
  width: 4rem;
  animation-name: spinner;
  animation-duration: 1.5s;
  animation-timing-function: linear;  
  animation-iteration-count: infinite;
  display: block;
}

@keyframes spinner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
