/* Copyright 2011 Brett Slatkin (brett@haxor.com) */

@import url(//fonts.googleapis.com/css?family=Junge);

html {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-image: url('/static/background.jpg');
  background-repeat: no-repeat;
  background-position: 200px 0px;
  margin: 0;
  padding: 0;
}
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
#container {
  margin: auto;
  width: 500px;
  font-family: "Junge", "Georgia", serif;
}
#primary {
  padding: 20px 10px;
}
#footer-container {
  width: 100%;
}

/* Common to all pages */
a,
a:link,
a:visited,
a:hover,
a:active {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.page-title {
  font-size: 138.5%;
}
.sub-title {
  font-size: 100%;
  color: #b0b0b0;
  margin-bottom: 10px;
}
.sub-heading {
  font-size: 108%;
  color: #000;
}
.clear {
  clear: both;
}

/* Common to forms */
.line-section,
.message-section,
.view-welcome-message-container,
.submit-section {
  margin-bottom: 10px;
}
.helptext {
  color: #999;
  font-size: 85%;
  display: block;
  margin-bottom: 2px;
}
.line-section input {
  font-size: 93%;
}

/* Edit page */
.view-link {
  font-size: 72.2%; /* 138.5% from .page-title * x == 100% */
  padding-left: 2em;
}
#welcome_message {
  width: 100%;
  height: 150px;
  font-size: 93%;
}
textarea,
input[type="text"],
#recaptcha_image {
  position: relative;
  padding: 4px;
  left: -4px;
  border: 1px solid #999;
  font-family: "Junge", "Georgia", serif;
  background-color: #fff;
}
#save-status {
  font-size: 93%;
  padding-left: 10px;
}
#save-status.error {
  color: #B07272;
}
.save-section div {
  line-height: 100%;
  vertical-align: middle;
}

/* View page */
.view-welcome-message + .website-link {
  margin: 10px 0 0 0;
}
#email_message {
  height: 200px;
  font-size: 93%;
  width: 100%;
  border: 1px solid #aaa;
}
.success #recaptcha_challenge {
  display: none;
}
#recaptcha_response_field {
  width: 294px;
  border: 1px solid #aaa;
}
#recaptcha_image {
  height: 57px;
  width: 300px;
  border: 1px solid #aaa;
  float: left;
  margin: 0 20px 10px 0;
}
#recaptcha_alternatives {
  float: left;
}
.recaptcha_only_if_audio {
  display: none;
}
.recaptcha_is_showing_audio .recaptcha_only_if_audio {
  display: block;
}
#send-status {
  font-size: 93%;
  padding-left: 10px;
  color: #b0b0b0;
}
#send-status.error {
  color: #B07272;
}
.thanks-message {
  display: none;
}
.success .thanks-message {
  display: block;
}
.submit-section {
  display: block;
}
.success .submit-section {
  display: none;
}
.anonymous-warning {
  margin-top: 8px;
}
.view-welcome-message-container {
  padding: 20px;
  border: 1px dashed #888;
  background-color: #FFE5E5;
}
.view-welcome-message {
  white-space: pre-wrap;
}
.message-text {
  display: block;
  color: #b0b0b0;
}
.message-text-confirm {
  white-space: pre-wrap;
}
.thanks-message {
  font-size: 116%;
  font-weight: bold;
}

a.btn-auth {
  position: relative;
  display: inline-block;
  height: 22px;
  padding: 0 1em;
  border: 1px solid #999;
  border-radius: 2px;
  margin: 0;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  color: #222;
  background: #fff;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  /* iOS */
  -webkit-appearance: none; /* 1 */
  /* IE6/7 hacks */
  *overflow: visible;  /* 2 */
  *display: inline; /* 3 */
  *zoom: 1; /* 3 */
}
a.btn-auth:hover,
a.btn-auth:focus,
a.btn-auth:active {
  color: #222;
  text-decoration: none;
}
a.btn-auth:before {
  content: "";
  float: left;
  width: 22px;
  height: 22px;
  background: url(google-icon.png) no-repeat;
  background-position: 2px;
}
a.btn-auth::-moz-focus-inner {
  border: 0;
  padding: 0;
}
a.btn-google {
  border-color: #3079ed;
  color: #fff;
  background: #4787ed;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed));
  background-image: -webkit-linear-gradient(#4d90fe, #4787ed);
  background-image: -moz-linear-gradient(#4d90fe, #4787ed);
  background-image: -ms-linear-gradient(#4d90fe, #4787ed);
  background-image: -o-linear-gradient(#4d90fe, #4787ed);
  background-image: linear-gradient(#4d90fe, #4787ed);
}
a.btn-google:hover,
a.btn-google:focus,
a.btn-google:active {
  color: #fff;
  background-color: #357ae8;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8));
  background-image: -webkit-linear-gradient(#4d90fe, #357ae8);
  background-image: -moz-linear-gradient(#4d90fe, #357ae8);
  background-image: -ms-linear-gradient(#4d90fe, #357ae8);
  background-image: -o-linear-gradient(#4d90fe, #357ae8);
  background-image: linear-gradient(#4d90fe, #357ae8);
}
a.btn-google:active {
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
a.btn-google:before {
  margin: 0 1em 0 -1em;
  background-color: #e6e6e6;
}

/* Nothing page */
.fourohfour {
  font-size: 393%;
  color: #B8C7CC;
}

/* Infobar at bottom */
#footer {
  color: #000;
  background-color: #FF5A5A;
  padding: 10px;
  margin: auto;
  width: 480px;
  font-family: "Junge", "Trebuchet MS", "Helvetica", sans-serif;
}
.explain-text {
  color: #000;
}
.explain-text p {
  margin-top: 10px;
}
#footer .page-title {
  color: #fff;
}
#footer .page-title,
.create-link {
  vertical-align: baseline;
  line-height: 30px;
}
.create-link {
  float: right;
  clear: both;
}
.uses-list li {
  list-style-type: none;
  list-style-position: inside;
  padding-left: 20px;
}
#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active {
  color: #fff;
}
.share-title {
  margin: 10px 0;
}
body > iframe {
  position: absolute;
  left: -9999px;
  top: -9999px;
}


/* Mobile tweaks */
@media only screen and
(min-device-width: 320px) and
(max-device-width: 800px) {
  html, body {
    overflow-x: hidden;
  }
  #container {
    width: 100%;
  }
  #recaptcha_alternatives {
    margin-bottom: 10px;
  }
  #recaptcha_alternatives div {
    display: inline;
  }
  #footer-container {
    overflow-x: hidden;
  }
  #footer {
    width: auto;
    margin: 0;
    padding: 10px;
  }
  .create-link {
    float: none;
    display: block;
  }
}
