* {
  -webkit-box-sizing:border-box;
     -moz-box-sizing:border-box;
          box-sizing:border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #333;
}
a {
  text-decoration: none;
}
.cf:before,
.cf:after {
    content:" ";
    display:table;
}
.cf:after {
    clear:both;
}
.cf {
    *zoom:1;
}

p {
  white-space:pre-wrap;
}

.rtl,
.rtl input {
  text-align: right;
}

.container {
  margin: 3em auto;
  max-width: 50em;
}
.content {
  line-height: 1.6em;
}
code {
  background: white;
  padding: 5px;
  border-radius: 3px;
}

#version {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  color: #999;
}

/* form */
.submission-form {}
input, textarea {
  width: 100%;
  padding: 1em;
  font-size: 1em;
  color: #333;
  background: white;
  border: 1px solid #999;
  margin-bottom: 1em;
}
textarea {
  height: 200px;
}
input[type=submit] {
  width: 200px;
}
input[type=file] {
  background: #ddd;
  border: none;
}
input.robot {
  display: none;
  visibility: hidden;
}

.button {
  display: inline-block;
  border: none;
  color: white;
  cursor: pointer;
  margin-top: 1em;
  background: #333;
  padding: 1em;
}
.button.add {
  background: #33c377;
  color: white;
}
.button.remove {
  font-size: 0.7em;
  background-color: #f6b7b7;
  color: #fff;
  font-weight: 900;
  width: auto;
}
.button.remove:hover {
  background-color: #f74e4e;
}
.button.add:hover {
  background: #269561;
}
.remove-form {
  display: inline-block;
}
.button-red {
  background-color: #da8c83;
}
.button-blue {
  background-color: #0074D9;
}

.translation {
  text-transform: uppercase;
  /*font-weight: bold;*/
  padding: 5px;
  font-size: 0.7em;
  margin-right: 5px;
  opacity: 0.5;
}
.translation:hover {
  opacity: 1;
}
.translation .flag {
  margin-right: 3px;
}

/* judges */
.admin-list {
  margin: 0 0 1em 0;
  padding: 0;
  list-style-type: none;
}
.admin-list li {
  padding: 1px 1em;
  background: #f6f6f6;
  display: block;
  margin-bottom: 2px;
}
.admin-list li p {
  display: inline-block;
  width: 200px;
}
.admin-list li span {
  font-family: monospace;
  font-size: 0.8em;
  color: #000;
}
.admin-list .remove-form {
  float: right;
}
.admin-stat {
  width: 32%;
  display: inline-block;
  text-align: left;
  -webkit-box-sizing:border-box;
     -moz-box-sizing:border-box;
          box-sizing:border-box;
}
.admin-stat p {
  font-family: monospace;
  margin: 0;
}
.admin-stat span {
  font-size: 4em;
  font-weight: 900;
}

/* alerts */
.message {
  padding: 1em;
  margin-bottom: 1em;
  background: white;
  color: #444;
}
.message.success {
  color: white;
  background: #b4d074;
}
.message.info {
  color: white;
  background: #0074D9;
}
.message.error {
  color: white;
  background: #da8c83;
}

/* success */
.submission-info {
  background: #f6f6f6;
  padding: 1px 1em;
}
.story {
  white-space: pre-wrap;
  font-size: 1em;
}

/* submissions listing */
.submissions {}
.submission {
  background: white;
  width: 100%;
  padding: 1px 1em;
  margin-bottom: 1em;
  color: #555;
}

/* entries */
.entry {
  transition: .3s;
  padding: 3em 0;
  border-top: 1px solid #c0c0c0;
  font-size: 0.8em;
  display: block;
  font-family: Inconsolata, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.entry:before {
  position: absolute;
  left: -1.5em;
  top: 3px;
  font-size: 1.3em;
  font-family: "FontAwesome";
  content:"\f056";
  opacity: 0.3;
  color: #0074D9;
}
.entry:hover:before {
  opacity: 1;
}
.entry-title {
  font-size: 2.6em;
  text-transform: capitalize;
  font-weight: bold;
  color: steelblue;
}
.entry-description {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.4em;
  white-space: wrap;
}
.entry .entry-expand {
  display: none;
  cursor: pointer;
  margin-left: 10px;
  color: #999;
}

/* completed entry */
.entry.entry-complete {
  opacity: 0.5;
  font-size: 0.5em;
}
.entry.entry-complete .entry-description {
  /*font-size: 0.8em;*/
}
.entry.entry-complete:before {
  color: #2ECC40;
  content:"\f058";
  opacity: 1;
}
.entry.error {
  background: #FF4136;
  opacity: 1;
  color: #FF4136;
  border: none;
}
.entry.error:before {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 1em;
  font-weight: 900;
  content: "Uh oh, something went wrong and we were unable to save your data.";
}
.entry.entry-complete .entry-expand {
  display: inline-block;
}

/* entry form */
.entry-form {
  margin-top: 20px;
  transition: .3s;
}
.entry-form.thinking .form-btn {
  opacity: 0.1;
}
.entry-form.thinking:before {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 1em;
  font-weight: 900;
  content: "Saving your score ...";
}
.form-btn {
  border: none;
  padding: 1em 1.1em;
  display: inline-block;
  margin-right: 0.2em;
  background: #e5e5e5;
  font-weight: 900;
  color: #444;
  cursor: pointer;
  font-size: 0.9em;
}
.form-btn:hover {
  background: #c5b9eb;
}
.form-btn.selected {
  background: #7753eb;
  color: white;
}

.story,
.design,
.aiuse {
  margin-bottom: 0;
}

.story-length,
.design-length,
.aiuse-length {
  margin-bottom: 1em;
  text-align: right;
}
