@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700);

:root {
  --icare-blue-647u: #236192;    /* var(--icare-blue-647u) */
  --icare-blue:      #4A7FAD;    /* var(--icare-blue) */
  --mac-red:         #ff3b30;	   /* var(--mac-red) */
  --mac-orange:      #ff9500;    /* var(--mac-orange) */
  --mac-yellow:      #ffcc00;    /* var(--mac-yellow) */
  --mac-green:       #1EB300;    /* var(--mac-green) */
  --mac-green2:      #4cd964;    /* var(--mac-green2) */
  --mac-teal:        #5ac8fa;    /* var(--mac-teal) */
  --mac-blue:        #007aff;    /* var(--mac-blue) */
  --mac-purple:      #5856d6;    /* var(--mac-purple) */
  --mac-pink:        #ff2d55;    /* var(--mac-pink) */
}

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

#content {
  padding: 2em;
}

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

h1 {
    font-size: 2.4em;
    font-weight: 300;
    margin-top: .5em;
    margin-bottom: .5em;
    color: black;
}

h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-top: .4em;
    margin-bottom: .4em;
    color: #2064b0;
    text-align: center;
}

h3 {
  text-align: center;
  font-size: 1.5em;
  font-weight: 300;
  margin-top: 1em;
  margin-bottom: 1em;
  color: #2064b0;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 0;
    text-decoration: none;
    color: #1b1c1d;
}

i { color: #2064b0; }

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  width: 20em;
  /* border: 2px dashed var(--mac-blue); */
  min-height: 15em;
  min-width: 30em;
  position: relative;
  background: #ffffff;

  border: solid 1px #cecece;
  margin: 0px auto 40px auto;
  width: 520px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  padding-bottom: 20px;


}

legend {
  padding: 0.5em 1em;
  background: #ececec;
  color: var(--icare-blue-647u);
  font-size: 1.2em;
  display: block;
  min-width: 8em;
  text-align: center;
}

table a {
  color: var(--mac-blue);
/*  color: #000;*/
}

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

input[type="submit"] {
/*  background: #0D9CB2;*/
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
/*  border-bottom: 5px solid #085B69;*/
  cursor: pointer;
  margin: 5px 0px;
/*  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;
  top: 5px;
  margin-bottom: 15px;
}*/

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background-color: white;
/*  background-image: url(upload.svg);*/
  background-image: url(upload.png);
  background-position: center;
  background-repeat: no-repeat;
  /*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 {
  background-color: white;
  /*border-color: var(--icare-blue-647u);*/
}

#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 {
  /* background: rgba(255, 255, 255, 0.5); */
  text-align: center;
  font-size: 0.8em;
  color: var(--icare-blue);
  margin: 3em auto;
}

#copyright p {
  font-size: 1.2em;
}

#copyright a {
  color: var(--icare-blue);
  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: var(--mac-blue);
  padding-left: 3em;
/*  background: #ffffff;*/
}

#upload_finished > p:nth-child(1) {
  color: var(--mac-blue);
  /*font-weight: bold;*/
}

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

#upload_finished a {
  text-decoration: none;
  color: var(--mac-blue);
}

#uploading a {
  /*font-weight: bold;*/
  text-decoration: none;
  color: var(--mac-blue);
}

#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,
.message p,
.error {
  color: var(--mac-red);
  /* color: #d55548; */
  font-style: italic;
  /* font-weight: bold; */
}

#upload_link_email {
  margin-left: 10px;
}

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

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

textarea[readonly="readonly"] {
  border: 0;
  color: var(--icare-blue-647u);
  font-family: Arial, sans-serif;
  background: none;
  margin: auto;
  display: block;
}

textarea[readonly="readonly"] + p,
textarea[readonly="readonly"] + p + p {
  text-align: center;
  color: var(--icare-blue-647u);
}

textarea[readonly="readonly"] + p a,
textarea[readonly="readonly"] + p + p a {
  font-weight: bold;
  text-decoration: none;
  color: var(--icare-blue-647u);
}

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: 80em;
  border: 1px dashed var(--mac-red);
}

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

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

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

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

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


/* ==========================================================================
   9 = MDS
   ========================================================================== */


input[type=text],
input[type=number],
input[type=password],
input[type=date],
input[type=search],
textarea
{
   font-family: 'Open Sans';
   font-size: .9em;
   margin-left: 5px;
   /*width:99.5%;*/
   padding: 5px;

   border: 1px solid #ccc;
   -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
           border-radius: 5px;
   /*	margin-top:8px;*/
}

.btn:hover,
input[type=submit]:hover,
input[type=button]:hover,
input[type=text]:hover,
input[type=password]:hover,
input[type=number]:hover,
input[type=date]:hover,
select:hover {
  border-color: var(--mac-blue);
}

select
{
  font-family: 'Open Sans';
  font-size: .9em;

  margin-top: 8px;
  /*width:99.5%;*/
  padding: 0;
  padding-left: 5px;

  border: 1px solid #ccc;
   -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
           border-radius: 5px;
}

.btn,
input[type=submit],
input[type=button]
{
  font-size: .9em;
  padding: 5px;
  color: #444;
  border: 1px solid #f4f4f4;
  border-radius: 5px;
  background: linear-gradient(to bottom, #fff 0px, #eee 100%) repeat-x scroll 0 0 rgba(0, 0, 0, 0);
}

fieldset {
}

fieldset label {
  width: 120px;
  margin-right: 20px;
  display: inline-block;
  text-align: right;
  color: #808080;
  font-size: 1em;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 10px;
  font-weight: 300;
}

#btn_red_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-red);
    background: #fff;
}
#btn_orange_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-orange);
    background: #fff;
}
#btn_yellow_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-yellow);
    background: #fff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_green_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-green);
    background: #fff;
}
#btn_tail_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-teal);
    background: #fff;
}
#btn_blue_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-blue);
    background: #fff;
}
#btn_purple_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-purple);
    background: #fff;
}
#btn_pink_mac
{
    font-size: .9em;
    padding: 5px;
    color: var(--mac-pink);
    background: #fff;
}

#btn_red_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-red);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_red_mac_plain:hover {
    border-color: #d52a20;
}
#btn_orange_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-orange);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_orange_mac_plain:hover {
    border-color: #de8406;
}
#btn_yellow_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-yellow);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_yellow_mac_plain:hover {
    border-color: #f0b401;
}
#btn_green_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-green);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_green_mac_plain:hover {
    border-color: #37ab4a;
}
#btn_tail_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-teal);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_tail_mac_plain:hover {
    border-color: #45b1e2;
}
#btn_blue_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-blue);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_blue_mac_plain:hover {
    border-color: #0650a1;
}
#btn_purple_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-purple);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_purple_mac_plain:hover {
    border-color: #3837a3;
}
#btn_pink_mac_plain
{
    font-size: .9em;
    padding: 5px;
    color: #ffffff;
    background: var(--mac-pink);
    border-color: #ffffff;
    -webkit-border-radius: 5px;
            border-radius: 5px;
}
#btn_pink_mac_plain:hover {
    border-color: #c71d3d;
}


#btn_white_mac
{
    font-size: .9em;

    padding: 5px;

    color: #777;
    border: 1px solid #999;
    -webkit-border-radius: 5px;
            border-radius: 5px;
    background: #fff;

    -webkit-appearance: none;
}

#btn_white_mac:hover
{
    color: #333;
    border-color: var(--mac-blue);
}


.panel {
    background: #ffffff;
    border: solid 1px #cecece;
    margin: 0px auto 40px auto;
    width: 400px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    padding-bottom: 20px;
}

#upload_link {
  font-size: 1.2em;
}
