
/* ==========================================================================
   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: #f4f7fa;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
}

#content {
  padding: 2em;
}

h1 a {
  display: block;
  background: url(logo-delfrate.png) no-repeat;
  background-size: 100% 100%;
  text-indent: -9999px;
  width: 194px;
  height: 185px;
  margin: 1em auto;
  position: relative;
  left: 0.4em;
}

h2 {
  text-align: center;
  color: #41566a;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  width: 20em;
  border: 7px dashed #c8d5df;
  min-height: 15em;
  min-width: 30em;
  position: relative;
}

legend {
  padding: 0.5em 1em;
  background: #f4f7fa;
  color: #003D73;
  font-size: 1.2em;
  display: block;
  min-width: 8em;
  text-align: center;
}

table a {
  color: #000;
}

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

input[type="submit"] {
  background: #00589C;
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  border-bottom: 5px solid #003D73;
  cursor: pointer;
  margin: 10px;
}

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

select { width: 100%; }

input[type="submit"]:hover,
input[type="submit"]:focus {
  border: 0;
  position: relative;
  background: #003D73;
  border-bottom: 5px solid #00589C;
  margin-bottom: 10px;
}

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background: url(upload.svg) no-repeat center;
  -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;
}

#upload fieldset:hover {
  border-color: #003D73;
}

#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: #41566a;
  margin: 3em auto;
}

#copyright a {
  color: #41566a;
  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: #41566a;
  padding-left: 3em;
}

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

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

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

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

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

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

.message,
.error {
  color: #d55548;
  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;
}

#show_password {
  flex: 1 1 auto;
  position: absolute;
  right: 0%;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 30%;
}
#show_password:hover {
  opacity: 100%;
}

.passwordcolumn {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
}

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

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

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

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

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 #c8d5df;
}

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

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

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

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

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

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

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

/* ========================================================================== 
   DEL FRATE custom layer - Jirafeau 4.7.2
   ========================================================================== */

:root {
  --df-blue: #003d73;
  --df-blue-2: #00589c;
  --df-blue-soft: #eaf2f8;
  --df-orange: #f2a12b;
  --df-ink: #23384a;
  --df-muted: #65798a;
  --df-line: #d7e0e7;
  --df-bg: #f4f7fa;
  --df-panel: #ffffff;
  --df-danger: #b42318;
  --df-success: #18794e;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 88, 156, 0.08), transparent 34rem),
    var(--df-bg);
  color: var(--df-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

#content {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 20px 36px;
}

h1 { margin: 0; }

h1 a {
  width: min(360px, 82vw);
  height: 146px;
  margin: 8px auto 22px;
  left: 0;
  background: url(logo-delfrate.png) center / contain no-repeat;
}

h2 {
  color: var(--df-blue);
  font-weight: 650;
}

a,
table a,
#upload_finished a,
#uploading a,
textarea[readonly="readonly"] + p a,
textarea[readonly="readonly"] + p + p a {
  color: var(--df-blue);
}

fieldset,
#install fieldset,
#install + fieldset,
#admin fieldset,
#admin + fieldset {
  width: min(100%, 720px);
  min-width: 0;
  min-height: 0;
  padding: 26px;
  border: 1px solid var(--df-line);
  border-radius: 14px;
  background: var(--df-panel);
  box-shadow: 0 12px 32px rgba(35, 56, 74, 0.09);
}

legend {
  min-width: 0;
  padding: 7px 16px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: var(--df-panel);
  color: var(--df-blue);
  font-weight: 650;
}

#upload fieldset {
  min-height: 340px;
  border: 2px dashed #a9bccb;
  background-color: var(--df-panel);
  background-position: center 78px;
  background-size: 190px auto;
  box-shadow: 0 12px 32px rgba(35, 56, 74, 0.08);
}

#upload fieldset:hover {
  border-color: var(--df-orange);
}

#file_select {
  height: 190px;
}

#upload.file-selected #file_select {
  height: 42px;
}

#options {
  height: auto;
}

#option_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#option_table td {
  padding: 5px 8px;
  vertical-align: middle;
}

select,
input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b9c8d4;
  border-radius: 8px;
  background: #fff;
  color: var(--df-ink);
}

select:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  outline: 3px solid rgba(0, 88, 156, 0.14);
  border-color: var(--df-blue-2);
}

input[type="submit"] {
  min-height: 42px;
  margin: 10px;
  padding: 9px 22px;
  border: 1px solid var(--df-blue);
  border-bottom: 3px solid #002b51;
  border-radius: 9px;
  background: var(--df-blue);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 10px rgba(0, 61, 115, 0.17);
}

input[type="submit"]:hover,
input[type="submit"]:focus {
  margin-bottom: 10px;
  border: 1px solid #00589c;
  border-bottom: 3px solid var(--df-orange);
  background: var(--df-blue-2);
}

#show_password {
  right: 8px;
  color: var(--df-blue);
  opacity: .55;
}

#show_password:hover { opacity: 1; }

#upload_finished,
#uploading,
.message,
.info,
.error {
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  color: var(--df-ink);
}

#uploading,
#upload_finished,
.message,
.info,
.error {
  padding: 18px 22px;
  border-radius: 12px;
  background: #fff;
}

#upload_finished {
  border: 1px solid #a9d5bf;
  background: #f2fbf6;
}

#upload_finished > p:nth-child(1) {
  color: var(--df-success);
}

.error {
  border: 1px solid #f0b4ae;
  background: #fff5f4;
  color: var(--df-danger);
}

.message {
  border: 1px solid #b8d6ea;
  background: #f1f7fb;
}

#uploaded_percentage {
  color: var(--df-blue);
}

#copyright {
  margin: 34px auto 8px;
  color: var(--df-muted);
}

#copyright a { color: var(--df-blue); }

textarea[readonly="readonly"] {
  width: min(100%, 780px);
  min-height: 420px;
  padding: 16px;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  background: #fff;
  color: var(--df-ink);
}

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

#install td,
#install + fieldset td,
#admin td,
#admin + fieldset td {
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #e5ebf0;
}

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

.form.login fieldset {
  max-width: 430px;
  text-align: center;
}

.form.login table { width: 100%; }
.form.login .label,
.form.login .field,
.form.login .nav { padding: 7px 0; }

.form.logout {
  text-align: center;
  margin: 18px auto 0;
}

#self_destruct {
  color: var(--df-danger);
}

@media (max-width: 680px) {
  #content { padding: 15px 12px 28px; }
  h1 a { height: 112px; margin-bottom: 12px; }

  fieldset,
  #install fieldset,
  #install + fieldset,
  #admin fieldset,
  #admin + fieldset {
    padding: 18px 14px;
    border-radius: 11px;
  }

  #upload fieldset {
    min-height: 300px;
    background-size: 150px auto;
  }

  #option_table,
  #option_table tbody,
  #option_table tr,
  #option_table td {
    display: block;
    width: 100%;
  }

  #option_table tr { margin-bottom: 8px; }
  #option_table td { padding: 3px 0; }

  input[type="submit"] {
    width: auto;
    max-width: 100%;
  }

  #admin,
  #install { overflow-x: auto; }

  #admin table,
  #install table { min-width: 560px; }
}
