@import url('https://fonts.googleapis.com/css?family=Merriweather|Dancing+Script');
/* Nunito */
body {
  max-width: 680px;
  _width:expression(this.scrollWidth > 680 ? "680px" : "auto");
  font-family: 'Merriweather', Helvetica, Arial, sans-serif;
  font-size: 16px; /* reset, specified in px so IE currentStyle works */
  background-color: #F7F4F1;
  color: rgba(0, 0, 0, 0.85);
  margin: 8px auto; 
  padding: 0 8px;
  -webkit-user-select: text; /* selectable text for Chrome app support */
}

a {
  /* colored underlined links for XULRunner support */
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

#text {
	line-height: 1.5;
}

#text img {
  max-width: 100%;
}

.statBar {
  background-color: #FFF;
  height: 2em;
  line-height: 2em;
  margin: 4px 0;
  width: 100%;
  color: #333;
  position: relative; /* to allow absolute positioned value */
  z-index: 0;
}
.opposed {
  background-color: #BBB;
}

table {
  margin-bottom: 1.5em;
}

.statText {
  margin-left: 2ex;
  text-indent: -1ex;
}

.statBar > span, .statLine > span {
  position: relative;
  z-index: 1; /* visible over stat value */
  white-space: nowrap; /* remain on single line so we can resize font based on width */
}

.statValue {
  background-color: #CCC;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: -1;
  /* width will be determined at runtime, 0-100% */
}

.choice {
	padding-left: 20px;
}

.choice label{
    line-height:20px;
    padding: 11px 8px 12px;
    display:block;
	border: 0 !important;
	cursor:hand;cursor:pointer;
	color: #555;
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 8px;
}

.saveGame>label {
  display:block;
}

.choice .disabled {
  color: gray;
}

input[type=password]:disabled {
  background-color: lightgray;
}

/* Reset for Firefox vs. Chrome */
input[type=email],input[type=password] {
  padding: 1px;
  margin: 2px 0;
}

.next {
    clear: both;
    display:block;
	float: right;
    font-size: 2rem;
    font-weight:bolder;
    font-family: sans-serif; /* reset, for Android */
    margin-bottom: 16px; /* reset button margin */
    -webkit-appearance: none; /* Safari, don't override my CSS styles */
    color: #777; /* Match background color */ 
    border: none;
    padding: 6px;
	font-family: 'Dancing Script', serif;
	background: none !important;
}

.next::after {
	content: "";display:table;
	float:none;clear:both;
}

.next:hover {
  color: #333;
}

h1 {
  font-size: x-large;
  font-weight: normal;
}

h2 {
  font-size: large;
  font-weight: normal;
}

#identity {
  float: right;
  display: none;
}

#identity > a {
  display: block;
  text-align: end;
}

#footer {
  margin:10px 0px 75px 0px;
}

#mobileLinks a img {
  border: 0;
}

.mobileBadges {
  margin: 0;
}

.spacedLink {
  margin-right:0.5em;
}

.spacedLink:last-child {
  margin-right:0;
}

#sharelist {
  margin: 0; /* Eliminate leading space before share links */
}

#sharelist li {
  line-height: 1cm; /* Don't let the links bunch up */
}

.alertify-cover {
  background-color: black;
  filter:alpha(opacity=50);
  opacity: 0.5;
}

#greybackground {
    position: fixed;
    width:100%;
    height:100%;
    background-color: black;
    filter:alpha(opacity=50);
    opacity: 0.5;
    top:0;
    left:0;
}

.savePassword {
  font-family: monospace;
  display: block;
}

.webOnly { /* We'll override this in JavaScript */
  display: none;
}

.alignleft {
  display: inline;
  float: left;
  margin-right: 1.625em;
  margin-bottom: 1em;
}
.alignright {
  display: inline;
  float: right;
  margin-left: 1.625em;
  margin-bottom: 1em;
}
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

#main form {
  clear: both;
}

@media only screen and (max-width: 480px) {
  .definition{
    display: none;
  }
  
  #headerLinks {
    line-height: 2; /* For tapability */
  }

  .gameTitle {
    display: none;
  }

  #advertisement {
    margin: -8px;
  }
  
  .mobileBadges {
    float: none;
  }
  
  #header {
    margin-top: 30px;
  }

  /** Floating images should leave enough room for text */
  #text .alignleft, #text .alignright {
    max-width: 45%;
  }
  

  
}

body {
	position: relative;
	padding-bottom: 200px;
}

body div p {
	position: absolute;
	bottom: -150px;
	right: 0;
	color: #333;
	padding-bottom: 100px;
}

body div p a, body div p a:visited {
	color: #CCC;
}

body div p a:hover {
	color: blue;
}

body div #text p {
	position: relative !important;
	padding: 0;
	bottom: 0;
	top: 0;
}

#header {
	padding-bottom: 10px;
}

#buttons {
	text-align: center;
	border-top: 1px dashed #CCC;
	border-bottom: 1px dashed #CCC;
	padding: 10px 0;
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 100%;
}

.gameTitle {
	font-style:italic;
	margin: 0;
	font-size:3rem;
	color: #CCC;
}

h1.gameTitle {
	font-family: 'Dancing Script', serif;
}

#author {
	margin:0;
	font-size:0.8rem;
	font-style:normal;
	float: right;
	color: #AAA;
	margin-top: -20px;
}

button {
  font-family: inherit;
  font-size: 100%;
  padding: .5em;
  color: #AAA;
  background: none !important;
  border: 0 !important;
  outline: 0;
  text-decoration: none;
  border-radius: 2px;
  cursor:hand;cursor:pointer;
}

button:hover, button:active {
  color: #333;
  outline: 0;
}

label:hover {
	background-color: #F7F4F1 !important;
	color: #111;
}

