
/* ==========================================================================
   1 = Basic Style
   ========================================================================== */

body {
  background: #F5F6F8;
  font-family: Arial, sans-serif;
  color: #1B2A4A;
  margin: 0;
  line-height: 1.5;
}

#content {
  padding: 2em;
}

h1 a {
  display: block;
  background: url(logo-yona.png) no-repeat center;
  background-size: contain;
  text-indent: -9999px;
  width: 220px;
  height: 100px;
  margin: 1.5em auto;
}

h2 {
  text-align: center;
  color: #1B2A4A;
  font-weight: 600;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  width: 20em;
  border: 3px solid #D0D8E8;
  min-height: 15em;
  min-width: 30em;
  position: relative;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);
}

legend {
  padding: 0.5em 1em;
  background: #FFFFFF;
  color: #1B2A4A;
  font-size: 1.2em;
  font-weight: 600;
  display: block;
  min-width: 8em;
  text-align: center;
}

table a { color: #1B2A4A; }

table a:hover,
table a:focus {
  color: #E8490F;
  text-decoration: none;
}

input[type="submit"] {
  background: #E8490F;
  border: 0;
  padding: 0.5em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  border-bottom: 4px solid #B33508;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px;
  transition: background 0.2s;
}

select,
input[type="text"],
input[type="password"] {
  border: 1px solid #D0D8E8;
  padding: 6px 8px;
  font-size: 1em;
  border-radius: 4px;
  color: #1B2A4A;
  background: #F5F6F8;
}

select { width: 100%; }

input[type="submit"]:hover,
input[type="submit"]:focus {
  border: 0;
  position: relative;
  background: #B33508;
  border-bottom: 4px solid #E8490F;
  margin-bottom: 10px;
}

.inner { margin-top: 3em; }

#upload fieldset {
  background: url(upload.svg) no-repeat center;
  transition: all 0.3s ease;
}

#upload fieldset:hover { border-color: #E8490F; }

#upload > form { text-align: center; }

#upload p { margin: 0; }

#file_select {
  position: relative;
  width: 100%;
  height: 16em;
  cursor: pointer;
  opacity: 0;
}
  #upload.file-selected #file_select {
    opacity: 1;
    height: 2em;
  }
  #upload.file-selected fieldset {
    background-image: none;
  }

/* ==========================================================================
   2 = Copyright
   ========================================================================== */

#copyright {
  text-align: center;
  font-size: 0.8em;
  color: #6B7A99;
  margin: 3em auto;
}

#copyright a {
  color: #6B7A99;
  text-decoration: none;
}

#copyright a:hover,
#copyright a:focus {
  color: #E8490F;
  text-decoration: underline;
}

/* ==========================================================================
   3 = Options
   ========================================================================== */

#options {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 90%;
}

#options tr { height: 2.7em; }

#option_table tr:first-child { width: 100%; height: 100%; }

#options input[type="submit"] {
  position: relative;
  margin: 1em auto;
}

/* ==========================================================================
   4 = Upload
   ========================================================================== */

#upload_finished,
#uploading,
.message,
.info,
.error {
  text-align: center;
  color: #1B2A4A;
  padding-left: 3em;
}

#upload_finished > p:nth-child(1) {
  color: #E8490F;
  font-weight: bold;
}

#upload_finished div p:nth-child(1) { font-weight: bold; }

#upload_finished a {
  text-decoration: none;
  color: #1B2A4A;
}

#uploading a {
  font-weight: bold;
  text-decoration: none;
  color: #1B2A4A;
}

#uploaded_percentage {
  font-size: 2em;
  font-weight: bold;
  color: #E8490F;
}

#upload_finished a:hover,
#uploading a:hover,
#upload_finished a:focus,
#uploading a:focus {
  text-decoration: underline;
  color: #E8490F;
}

.message,
.error {
  color: #E8490F;
  font-style: italic;
  font-weight: bold;
}

#upload_link_email { margin-left: 10px; }

#upload_image_email {
  padding-left: 20px;
  padding-bottom: 15px;
  background: url(email.png) no-repeat;
}

/* ==========================================================================
   5 = Terms of service
   ========================================================================== */

textarea[readonly="readonly"] {
  border: 0;
  color: #1B2A4A;
  font-family: Arial, sans-serif;
  background: none;
  margin: auto;
  display: block;
}

textarea[readonly="readonly"] + p,
textarea[readonly="readonly"] + p + p {
  text-align: center;
  color: #1B2A4A;
}

textarea[readonly="readonly"] + p a,
textarea[readonly="readonly"] + p + p a {
  font-weight: bold;
  text-decoration: none;
  color: #E8490F;
}

textarea[readonly="readonly"] + p a:hover,
textarea[readonly="readonly"] + p + p a:hover,
textarea[readonly="readonly"] + p a:focus,
textarea[readonly="readonly"] + p + p a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   6 = Install
   ========================================================================== */

#install fieldset,
#install + fieldset {
  width: auto;
  max-width: 50em;
  border: 3px solid #D0D8E8;
}

#install table,
#install + fieldset table {
  width: 100%;
  border-collapse: collapse;
}

#install td,
#install + fieldset td {
  padding: 0.5em 1em;
  border-bottom: 0;
}

#install td:empty { width: 13.1em; }

#install table form:nth-child(odd),
#install + fieldset tr:nth-child(odd) { background: #EEF1F7; }

#install fieldset > form {
  margin-top: 2em;
  text-align: center;
}

#install form { display: table; width: 100%; }

#install td:last-child { text-align: left; }
#install .info { width: 19em; }
#install input[type="submit"] { min-width: 10.5em; }

#install + fieldset table { font-size: 0.9em; }

#install + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #1B2A4A;
  font-weight: bold;
  border-bottom: 0;
}

#install + fieldset td:first-child input[type="submit"]:hover,
#install + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
  color: #E8490F;
}

/* ==========================================================================
   7 = Admin
   ========================================================================== */

#admin fieldset,
#admin + fieldset {
  width: auto;
  max-width: 60em;
  border: 3px solid #D0D8E8;
}

#admin table,
#admin + fieldset table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #D0D8E8;
}

#admin td,
#admin + fieldset td {
  padding: 0.5em 1em;
  border: 2px solid #F5F6F8;
  border-bottom: 0;
}

#admin td:empty { width: 13.1em; }

#admin table form:nth-child(odd),
#admin + fieldset tr:nth-child(odd) { background: #EEF1F7; }

#admin fieldset > form {
  margin-top: 2em;
  text-align: center;
}

#admin form { display: table; width: 100%; }
#admin td:last-child { text-align: left; }
#admin .info { width: 19em; }
#admin input[type="submit"] { min-width: 10.5em; }

#admin + fieldset table { font-size: 0.9em; }

#admin + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #1B2A4A;
  font-weight: bold;
  border-bottom: 0;
}

#admin + fieldset td:first-child input[type="submit"]:hover,
#admin + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
  color: #E8490F;
}

/* ==========================================================================
   8 = Download page
   ========================================================================== */

#self_destruct {
  font-weight: bold;
  color: #E8490F;
  background-image: url('pixel_bomb.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  padding-left: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}
