body {
  margin: 0;
  font-family: "Helvetica", "Arial", sans-serif;
  color: rgb(70%,70%,70%);
  background-color: black;
  font-size: 12px;
  padding: 12px;
}

@media screen and (max-device-width: 480px) { 
  body {
    font-size: 15px;
  }
}

#user_system {
  position: absolute;
  top: 12px;
  right: 12px;
}

@media screen and (max-device-width: 480px) { 
  #user_system {
    position: static;
    padding-top: 1em;
    margin-top: 1em;
    border-top: 1px dotted rgb(70%,70%,70%);
    font-weight: bold
  }
}

a:link, a:visited {
  color: white;
}
a:link img, a:visited img {
  border: none;
}

#banner {
  vertical-align: middle;
  width: 100%;
}

#logo, h1#logotype {
  position: absolute;
  left: 12px;
  font-weight: bold;
  text-align: center;
  width: 128px;
}
#header {
  display: table;
  /*position: relative;*/
  margin: 0 0 0 128px;
  padding-left: 2em;
  height: 128px;
}
#header > div {
  display: table-cell;
  vertical-align: middle;
  font-size: 1.2em;
}
#logo {
  top: 12px;
}
h1#logotype {
  top: 144px; /* 12+128+4 */
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5em;
}
h1 small, h2 small {
  display: block;
  margin-top: -0.5ex;
  font-variant: small-caps;
  text-transform: lowercase;
  font-size: 0.7em;
  letter-spacing: 0.15ex;
}
.notice {
  text-align: center;
  vertical-align: middle;
  margin-left: 128px;
  padding: 1em;
}

@media screen and (max-device-width: 480px) {
  #logo {
    width: 56px;
    height: 56px;
  }
  h1#logotype {
    text-align: left;
    top: 12px;
    left: 72px; /* 12+56+4 */
    height: 56px;
    width: 66%;
    font-size: 2em;
    font-weight: bold;
    padding-left: 1ex;
  }
  #header {
    margin: 72px 0 0 0; /* 56+12+4 */
    padding-left: 0;
    padding-top: 1ex;
    height: auto;
  }
  #header > div {
    font-size: 1em;
  }
  .notice {
    margin-left: 72px;
  }
}

#body {
  clear: both;
  margin-top: /*5em*/ 3em;
  /*border-top: 1px dotted rgb(70%,70%,70%);*/
  padding-top: 2em;
  
  font-size: 1.2em;
}

@media screen and (max-device-width: 480px) {
  #body {
    margin-top: 2em;
    padding-top: 1em;
    font-size: 1em;
  }
}

#body h2, #body h3 {
  color: white;
  font-variant: small-caps;
  font-weight: bold;
}
#body h2 {
  text-align: center;
}
#body h3 {
  margin-bottom: 0;
}

ul.applist {
  margin-left:  0;
  padding-left: 0;
  list-style-type: none;
}

ul.applist li {
  border: 1px solid black;
  width: 100px;
  height: 5.8em;
  float: left;
  margin: 0;
  padding: 6px;
  text-align: center;
  overflow: hidden;
}
ul.applist li.current {
  color: white;
}

@media screen and (max-device-width: 480px) {
  ul.applist li {
    padding: 4px;
    width: 64px; /* 56+6*2 */
    font-size: 0.80em;
    overflow: visible;
  }
}

label {
  display: block;
  font-weight: bold;
}

label.radio_label, label.checkbox_label {
  display: inline;
  font-weight: normal;
  padding-right: 2em;
}

input[type=text], input[type=email], input[type=password], textarea {
  width: 43%;
}

.half-width input[type=text], .half-width input[type=email], .half-width input[type=password], .half-width textarea {
  width: 98%;
}

.notice, ul.applist li.current, /*ul#screenshots,*/ input, textarea, ul#twitter_update_list li, .import-button {
  border: 1px solid rgb(30%,30%,30%);
  background-color: rgb(15%,15%,15%);
  color: rgb(70%,70%,70%);
}
input.error-field, textarea.error-field {
  border-color: rgb(30%,0,0);
  background-color: rgb(15%,0,0);
}

input[type=submit], input[type=button] {
  font-weight: bold;
  color: white;
}
input[type=submit]:active, input[type=button]:active {
  background-color: rgb(30%,30%,30%);
}

#ad {
  clear: all;
  display: block;
  
  position: relative;
  padding: 12px;
  padding-left: 140px;
  height: 104px;
  margin: 0 -12px 2em;
  
  color: rgb(13,9,86);
  background-color: rgb(79,133,217);
  /*background-image: url(../images/banners/bankofme-background.png);*/
  
  font-size: 1.15em;
}
#ad img {
  display: block;
  
  position: absolute;
  top: 0;
  height: 128px;
}
#ad img#ad-icon {
  left: 0;
}
#ad img#ad-slice {
  right: 0;
}
#ad strong {
  display: block;
  
  font-size: 2em;
  font-weight: bold;
  z-index: 5;
  position: relative;
}
#ad span, #ad a.ad-button {
  z-index: 5;
  position: relative;
}
#ad a {
  color: inherit;
  text-decoration: inherit;
}
#ad a.ad-button {
  display: block;
  float: left;
  
  margin: 1ex;
  padding: 0.25ex;
  
  width: 150px;
  height: 33px;
  line-height: 33px;
  
  background: url(../images/banners/button.png) transparent center center no-repeat;
  text-align: left;
  padding-left: 16px;
  
  font-weight: bold;
  color: white;
}
#ad a.ad-button.first-button {
  margin-left: 0;
}

@media screen and (max-device-width: 480px) {
  #ad {
    height: 72px;
    padding-left: 104px;
    font-size: 1.1em;
  }
  #ad img {
    height: 96px;
  }
  #ad img#ad-slice {
    display: none;
  }
}