*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  margin: 0 !important;
  -webkit-text-size-adjust: none;
}

.row {
  margin-right: -25px !important;
  margin-left: -25px !important;
}

.align-right {
  text-align: right;
}

.datetime-width {
  min-width: 140px;
}

#load {
  overflow-x: auto;
}

table,
th,
td {
  border-spacing: 1px;
  border-collapse: collapse;
}

[id*=-table] {
  font-size: 14px !important;
}

[id*=-table] thead {
  color: #8a6d3b;
}

.table > thead > tr {
  border-bottom: 1px solid #555;
}

.table > thead > tr > th {
  vertical-align: bottom;
}

[id*=-table] tbody {
  color: #555;
}

[id*=-table] > tbody > tr {
  padding-top: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid #ddd;
}

.table > tbody > tr > td {
  padding: 3px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: ghostwhite;
}

/* HTML5 display-role reset for older browsers */

ol,
ul {
  padding-left: 5px;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
main {
  display: block;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.row-item {
  overflow: hidden;
  border-bottom: 1px solid #e8e8e8;
}

.row-item .key {
  font-size: large;
}

.row-item .value {
  font-size: large;
  font-style: revert;
}

.title {
  font-size: large;
  font-style: revert;
}

input.parsley-success,
select.parsley-success,
textarea.parsley-success {
  color: #468847;
  background-color: #DFF0D8;
  border: 1px solid #D6E9C6;
}

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
  color: #B94A48;
  background-color: #F2DEDE;
  border: 1px solid #EED3D7;
}

.parsley-errors-list {
  margin: 2px 0 3px;
  padding: 0;
  list-style-type: none;
  font-size: 0.9em;
  line-height: 0.9em;
  opacity: 0;
  transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
}

.parsley-errors-list.filled {
  opacity: 1;
}

.panel-default > .panel-heading {
  background-image: none !important;
  font-size: 25px;
}

.pi-sign {
  font-family: sans-serif;
  font-size: 150%;
  color: gold;
}

.inline {
  display: inline-block;
}

#pi-value {
  font-size: 36;
  color: white;
}

#currentvalue_panel {
  padding-bottom: 20px;
  margin-bottom: 20px;
  background-color: #403838;
}

#pi-value_label {
  color: white;
  font-size: 18px;
}

#current-pivalue {
  display: inline-block;
  font-size: 150%;
  color: gold;
}

#pi-proposal {
  font-size: 40;
}

#proposal-value {
  font-size: 40px;
  text-align: center;
  font-size: inherit;
}

#onepi {
  font-size: 40px;
}

#dollar-sign {
  font-size: 40px;
  display: inline-block;
}

#donate_label {
  clear: both;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 18px;
  color: darkorange;
  font-weight: 500;
}

#donate_value {
  color: blue;
  font-size: 120%;
}

#donate_sign {
  color: blue;
  font-size: 120%;
}

#donate_hint {
  display: inline-block;
  color: darkblue;
  width: 14px;
  height: 14px;
  line-height: 14px;
  vertical-align: super;
  font-size: 105%;
}

#donate_hint:hover {
  color: blue;
}

#btn-propose {
  min-width: 200px;
}

#ready_state {
  font-size: 16;
  color: brown;
  font-style: italic;
}

#ready_state.login_error {
  color: red;
}

.this-month-em {
  padding-top: 15px;
  display: inline-block;
}

#last-month-reward {
  clear: both;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
  margin-right: -15px;
  margin-left: -15px;
  border-top: 1px solid #ddd;
  font-family: sans-serif;
  font-size: 105%;
  color: #171718;
}

#last-month-reward ul {
  color: #337ab7;
}

#last-month-reward .draw-info {
  color: #131414;
}

.total-proposal-info {
  padding-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 16px;
  display: inline-block;
}

.total-proposal-info .info-item-wrap {
  padding: 10px;
  overflow: hidden;
  clear: both;
  background: #555;
  border-radius: 5px;
}

.total-proposal-info .info-item {
  display: inline-block;
  padding: 0 5px;
  color: white;
}

.align-center {
  text-align: center;
}

.footer {
  margin-top: 50px;
  padding: 20px;
  color: #f5f5f5;
  background-color: #555;
}

#about-logo {
  width: 100px;
  height: auto;
}

#about-title {
  font-size: 80px;
  color: gold;
  display: inline-block;
  line-height: 100px;
  vertical-align: middle;
  padding: 20px;
}

#about-header {
  text-align: center;
}

#about-slogan {
  text-align: center;
  color: #e40aab;
  font-size: 20px;
  padding: 20px;
}

.readmore {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  border: solid 1px #8a6d3b;
  padding: 10px;
  margin-bottom: 20px;
  transition: max-height 0.15s ease-out;
  box-shadow: 0px 3px 5px #cebc9f;
}

.readmore.expand {
  max-height: 5000px !important;
  transition: max-height 0.35s ease-in-out;
}

.readmore-link {
  position: absolute;
  bottom: 0px;
  right: 0;
  padding-right: 5px;
  display: block;
  width: 100%;
  height: 65px;
  text-align: right;
  color: #808084;
  font-weight: bold;
  font-size: 15px;
  padding-top: 40px;
  background-image: linear-gradient(to bottom, transparent 20%, white 60% 100%);
  cursor: pointer;
}

.readmore-link.expand {
  position: relative;
  background-image: none;
  padding-top: 5px;
  height: 20px;
}

.readmore-link:after {
  content: "Read more...";
  background-color: white;
}

.readmore-link.expand:after {
  content: "Read less";
}

.readmore-title {
  color: mediumseagreen;
  font-size: 18px;
}

.page-title {
  color: mediumseagreen;
  text-align: center;
  font-size: 25px;
  font-weight: 500;
  padding-top: 20px;
  padding-bottom: 30px;
}

.sm-separate {
  margin-top: 20px;
}

.md-separate {
  margin-top: 30px;
}

.input-control {
  height: 36px;
  padding: 5px;
  font-size: 16px;
}

#selected-time {
  font-size: 20px;
  color: brown;
}

#form_donatelog {
  font-size: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  border: solid 2px #eee;
}

.row-block {
  overflow: hidden;
}

/* CSS */

.pi-button {
  background-color: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: rgba(213, 217, 217, 0.5) 0 2px 5px 0;
  box-sizing: border-box;
  color: #0f1111;
  cursor: pointer;
  display: inline-block;
  font-family: "Amazon Ember", sans-serif;
  font-size: 13px;
  line-height: 29px;
  padding: 0 10px 0 11px;
  position: relative;
  text-align: center;
  text-decoration: none;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
}

.pi-button:hover {
  background-color: #f7fafa;
  text-decoration: none;
}

.pi-button:focus {
  border-color: #008296;
  box-shadow: rgba(213, 217, 217, 0.5) 0 2px 5px 0;
  outline: 0;
}

.countdown-item {
  overflow: hidden;
  padding: 15px;
}

.post-item {
  margin-top: 10px;
  border: solid 1px #dff0d8;
}

.post-item .post-title {
  font-size: larger;
  border-bottom: solid 1px #eee;
  padding: 5px;
}

.post-item .post-body {
  padding: 5px;
}

.post-item .post-action {
  padding: 5px;
  text-align: right;
}

.post-item .post-detail {
  padding: 10px;
  text-align: right;
}

#form_post .post-field {
  padding: 10px;
}

#form_post .post-field input,
textarea {
  width: 100%;
}

.setting-item {
  padding: 10px;
  border: solid 1px lightgray;
}

.setting-item .setting-attr {
  padding: 10px;
  color: blue;
}

.setting-item .setting-value {
  color: coral;
  margin-left: 20px;
  border: solid 1px beige;
  margin-bottom: 10px;
}

.luckyresult_item {
  border: solid 1px darkgray;
  padding-bottom: 3px;
  padding-top: 3px;
  padding: 5px;
  margin-bottom: 5px;
}

.drop-lang {
  padding: 12px;
  display: block;
  float: right;
}

.drop-lang a {
  text-decoration: none;
}

@media (min-width: 768px) {
  #nav-header-lang {
    display: none;
  }
}

@media (max-width: 768px) {
  #nav-lang {
    display: none;
  }

  .donate {
    margin-left: -10px;
    margin-right: -10px;
  }

  #btn-propose {
    width: 100%;
  }

  #current-pivalue {
    font-size: 105%;
  }

  #donate_label {
    font-size: 14px;
  }

  #onepi {
    padding-top: 5px;
    font-size: 20px;
    padding-right: 0px !important;
    padding-left: 0px !important;
  }

  #dollar-sign {
    padding-top: 5px;
    font-size: 20px;
  }

  #proposal-value {
    font-size: 22px;
  }

  #donate_value {
    font-size: 110%;
  }

  .datetime-width {
    min-width: 80px;
  }

  .small-hide {
    display: none;
  }

  .total-proposal-info {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #about-logo {
    width: 50px;
    height: 50px;
  }

  #about-title {
    font-size: 35px;
    display: inline-block;
    line-height: 50px;
    vertical-align: middle;
    padding: 10px;
  }

  #about-slogan {
    font-size: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .ssmall-hide {
    display: none;
  }

  .total-proposal-info {
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
  }

  #about-logo {
    width: 40px;
    height: 40px;
  }

  #about-title {
    font-size: 30px;
    display: inline-block;
    line-height: 40px;
    vertical-align: middle;
    padding: 8px;
  }

  #about-slogan {
    font-size: 14px;
    padding: 15px;
  }
}

