
/* ==========================================================================
   Summary

   1 = Basic Style
   2 = Copyright
   3 = Options
   4 = Upload
   5 = Terms of service
   6 = Install
   7 = Admin
   8 = Download page

   ========================================================================== */

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

body {
  background: #000000;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

#content {
  padding: 2em;
}

h1 a {
  display: block;
  background: url(whybe_logo.svg) no-repeat;
  background-size: 100%;
  text-indent: -9999px;
  width: 30vw;
  height: 30vw;
  max-width: 15rem;
  max-height: 16rem;
  margin: 0 auto;
  position: relative;
  left: 0.4em;
}

h2 {
  text-align: center;
  color: #ffffff;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  width: 60%;
  min-width: 30em;
  position: relative;
}

legend {
  padding: 0.5em 1em;
  color: #000000;
  font-size: 1.2em;
  display: block;
  min-width: 8em;
  text-align: center;
  display: none;
}

table a {
  color: #000;
}

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

input[type="submit"] {
  background: #000000;
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  cursor: pointer;
  margin: 10px;
  outline: none !important;
  border-radius: 2rem;
}

select,
input[type="text"],
input[type="password"] {
  border: 1;
  padding: 5px 5px;
  font-size: 1em;
  border: 1px solid #000;
}

select { width: 100%; }

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

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background: url(upload.svg) no-repeat center;
  background-size: 60px 60px;
  background-color: #ffffff;
  max-width: 40rem;
  min-height: 15em;
}

#upload:not(.file-selected) #file_select{
  width: 100% !important;
  height: 100vh !important;
  overflow: hidden;
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 2;
}

#drop.is-active{
  opacity: 1;
  height: 100vh;
}

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

#upload {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

#upload legend{
  display:none;
}

#upload p {
  margin: 0;
  text-align: center;
}

.login table,
#option_table,
.form.download table{
  margin: 0 auto;
}

#drop{
  width: 100%;
  height: 0vh;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 1;
  background: url(arrow_up.svg) no-repeat center;
  background-size: 60px 60px;
  background-color: rgb(0,0,0,0.7);
  opacity: 0;
}

#file_select {
  position: relative;
  width: 100%;
  height: 16em;
  cursor: pointer;
  opacity: 0;
}

#upload.file-selected #file_select {
  opacity: 1;
  height: 2em;
  display: none;
}

#upload.file-selected fieldset {
  background-image: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

form.form,
.tos{
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 50rem;
  margin: 0 auto;
}

form.form{
  text-align:center
}


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

#copyright {
  text-align: right;
  font-size: 0.7rem;
  color: #ffffff;
  margin: 1rem 2rem;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 4rem);
}

#copyright p {
  color: #ffffff;
  margin: 0;
}

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

#copyright a:hover,
#copyright a:focus {
  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%;
}

#option_table td:first-child {
}

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

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

#upload_finished,
#uploading,
.message,
.info,
.error {
  text-align: center;
  color: #000000;
  background-color:#ffffff;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  max-width:50rem;
}

#admin + .message{
  margin-top: 2rem;
}

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

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

#upload_finished > div{
  margin: 2rem auto;
}

#upload_finished div p code{
  display:none
}

#upload_finished div p button{
  background: url(copy.svg) no-repeat;
  color: transparent;
  background-size: contain;
  border: none;
  cursor: pointer;
}

#upload_finished div p#date{
  display:block
}

#upload_finished a {
  text-decoration: none;
  color: #ffffff;
  background-color:#000000;
  border-radius: 2em;
  padding: 0.5rem 1rem;
  -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
          transition: all 0.5s ease;
}

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

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

#upload_finished a:hover,
#uploading a:hover,
#upload_finished a:focus,
#uploading a:focus {
  background-color: blue;
}

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

#upload_link_email {
  margin-left: 10px;
  display:none;
}

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

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

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

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

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

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: 7px dashed #bcaaa4;
}

#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: #bcaaa4;
}

#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: #000;
  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;
}

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

#admin fieldset,
#admin + fieldset {
  width: auto;
  max-width: 60em;
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 50rem;
  margin: 0 auto;
}

#admin + fieldset{
  margin-top: 2rem;
}

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

#admin td,
#admin + fieldset td {
  padding: 0.5em 1em;
  border: 1px solid #EEE;
  border-bottom: 0;
  text-align: center;
}

#admin + fieldset table{
  border-bottom: 1px solid #eee;
}

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

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

#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: #000;
  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;
}

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

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