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

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

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

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

/* Webfont definitions */
@font-face {
   font-family: Visje;
   src: url('https://www.jeroenvandersande.nl/layout/fonts/goodfish.ttf');
}
@font-face {
   font-family: Visje;
   font-weight: bold;
   src: url('https://www.jeroenvandersande.nl/layout/fonts/goodfisb.ttf');
}
@font-face {
   font-family: Visje;
   font-style: italic;
   src: url('https://www.jeroenvandersande.nl/layout/fonts/goodfisi.ttf');
}
@font-face {
   font-family: Visje;
   font-weight: bold;
   font-style: italic;
   src: url('https://www.jeroenvandersande.nl/layout/fonts/goodfisc.ttf');
}


body {

  background-color: #A666A6; /* purple (#800080) */
  margin: 40px auto;
  font-family: Visje, Goodfish, serif;
  font-size: 11pt;
  letter-spacing: 1px;
  line-height: 1.4em;
  color: black;

  background: -o-linear-gradient(left, #A666A6, #660066);
  background: -moz-linear-gradient(left, #A666A6, #660066);
  background: -webkit-linear-gradient(left, #A666A6, #660066);
  background: linear-gradient(left, #A666A6, #660066);
}



#content {
  margin: 1em;
  /* outline: 1px green dashed; background-color: green; */
}

h1,
fieldset,
legend,
#copyright,
#tos, #tos_contact, #tos_license,
form.logout,
#upload_finished,
#uploading,
#content > h2,
.message, .error {
    display: block;
    max-width: 600px;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid purple;
    border-radius: 10px;
    box-shadow: 6px 6px 5px #330033;
    padding: 20px;
    background-color: #A6FFA6;
    color: black;
}

h1 {
    font-size: 20pt;
    text-align: center;
    /* width: 20em; */
}
h1 a {
    text-decoration: none;
    color: black;
}
h2 {
    font-size: 15pt;
    text-align: center;
}
h3, legend {
    text-align: center;
}
h1, h2, h3, legend {
    text-shadow: #880088 2px 2px 4px;
    letter-spacing: 2px;
}
h1, h2, h3, p, legend {
    margin-top: .7em;
    margin-bottom: .7em;
}
h2 + p, h3 + p, p + p {
    margin-top: 3px;
}

#content > h2 + h2 {
    margin-top: -35px;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

form.logout {
  margin-top: -15px;
  border-top-style: dotted;
  font-size: 80%;
  padding-top: 5px;
  padding-bottom: 5px;
}
form.logout input[type="submit"] {
    background-image: url(exit_green.svg);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 10px center;
    text-indent: 16px;
}

form.login input[type="submit"] {
    background-image: url(door_green.svg);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 10px center;
    text-indent: 16px;
}

fieldset {
    /* width: 20em; */
    /* border: 7px dashed purple; */
    /* min-height: 15em; */
    /* min-width: 30em; */
}

legend, #copyright {
    padding: 0.5em 1em;
}

legend {
    margin-left: 0;
    margin-right: 0;
}




table a {
  color: #000;
}

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

select { width: 100%; }

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

/* LOGIN / LOGOUT */
input[type="submit"] {
  margin: 10px;
  border: 2px solid #660066;
  border-radius: 10px;
  box-shadow: 6px 6px 5px #330033;
  padding: 0.4em 2.2em;
  background-color: #864686;
  color: #FFF;
  font-size: 1.1em;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
  background-color: #660066;
  border-color: #A666A6;
  box-shadow: 6px 6px 5px #864686;
}


.inner {
  margin-top: 3em;
}

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

/* LOGOUT */


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

  background-image: url('logo-jirafeau.svg');
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 50px 50px;
  height: 50px;
}
#copyright p {
    margin-left: 90px;
    text-align: left;
}

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

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

#jyraphe {
    background-image: url('logo-jirafeau.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px 200px;
    height: 220px;
    width: 240px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: -9999;
}



/* ==========================================================================
   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 {
}

/* id="send" */
#options input[type="submit"]#send {
  margin: 1em auto;
  padding: 1.0em calc(3.2em + 45px) 1.0em 3.2em;
  background-image: url(biking_green.svg);
  background-repeat: no-repeat;
  background-size: 35px 35px;
  background-position: calc(100% - 15px) center;

  font-size: 15pt;
  font-weight: bold;
  font-family: Visje, Goodfish, serif;
  letter-spacing: 1px;
}

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

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

#upload_finished > p:nth-child(1),
#uploading > p:nth-child(1) {
  margin-bottom: 2.4em;
  font-weight: bold;
  font-size: 15pt;
}

#upload_finished div p:nth-child(1) {
  margin-top: 1.2em;
  text-align: left;
  font-weight: bold;
}

#upload_finished div p:nth-child(2) {
  margin-bottom: 0.8em;
  text-align: left;
  text-indent: 30px;
}

#upload_finished code {
    font-size: 90%;
}
#upload_finished button {
    float: left;
    border: 1px outset #A6FFA6;
    border-radius: 3px;
    /* box-shadow: 2px 2px 1px #330033; */
    background-color: #A6FFA6;
    color: #FFF;
    padding: 3px 10px;
}

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

#upload_validity {
    margin-top: 2.4em;
}
#upload_validity #date {
    /* */
}

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

#uploaded_percentage {
  font-size: 2em;
  font-weight: bold;
}
#uploaded_speed {
  /* */
}
#uploaded_time {
  /* */
}

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

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

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

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

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

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
   ========================================================================== */

/* >>> TODO <<< install CSS not yet adapted */

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

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

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