body {
  font-family: 'Source Sans Pro';
  background: #f5f5f5 url('/background.jpg') fixed;
  color: #5a5a5a;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.25em;
}

p {
  margin-top: .5ex;
  margin-bottom: 1ex;
  font-size: 1em;
}

blockquote {
  border-left: 2px solid #ccc; 
  padding-left: .5em;
}

h1, h2, h3, h4, h5, h6 { margin-top: 5px;}

h1 { font-size: 1.4em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.15em; }
h6 { font-size: 1.1em; }

hr {
  border: solid #ddd;
  clear: both;
  border-width: 1px 0 0;
  height: 0;
  margin-bottom: .9em;
}

#screen {
  position: absolute;
  top: 40px; 
  right: 0; 
  left: 0; 
  bottom: 0;
}

#scroller {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

@media only screen and (max-width: 480px) {
  #screen { top: 57px; right: 5px; left: 5px; }
}
 
.right { float: right;}

.banner {height: 10px; }

.message, .profile {
  border: 1px solid #ddd;
  background: white;
  padding: .3em .5em;
}

.message {
  margin-top: .5em;
  border-radius: 5px;
}

#scroller:last-child { margin-bottom: 10em; }

.message, .message > *, .navbar, .navbar > *, #ad, #ad > *, #viewer > * {
  animation: fadein .5s;
}

#ad, #pm {
  background: white;
  font-size: .8em;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: fixed;
  padding: .3em .5em; 
  bottom: 5px;
  width: 250px;
}

#ad {
  left: 5px;
}

#pm {
  right: 5px;
}

#ad button, #pm button {
  font-size: .8em;
  margin: 0;
  padding: 0;
  padding-left: 5px; padding-right: 5px;
  position: absolute;
  bottom: 2px; right: 2px;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.submessage {
  margin-left: 2em;
}


img {
  max-width: 100%;
}

img.small {
  vertical-align: top;  
  width: 25px;
  height: 25px;
  margin-right: .2em;
  border-radius: 3px;
}

a {
  color: #0088cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

pre {
  color: #dd1144;
  width: 100%;
  display: block;
}

code {
  display: inline-block;
  vertical-align: bottom;
}

code, pre {
  overflow: auto;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre;
  white-space: -moz-pre-wrap;
  white-space: pre-wrap;
  white-space: pre\9;
}

textarea, input {
  font-family: 'Source Sans Pro';
  font-size: 1em;
  background: #f5f5f5;
  padding: .5em;
  color: #5a5a5a;
  border: none;
  border-radius: 5px;
}

textarea:active, textarea:focus {
  background: white;
}

textarea {
  width: 100%;
}

.navbar {
  background: #333;
  border-bottom: 1px solid #222;
}

.navbar {
  width: 100%;
  position: fixed;
  z-index: 1000;
  margin: 0;
  padding-top: .4em;
  padding-bottom: .3em;
  left: 0; right: 0;
  top: 0;
}

.navbar .internal {
  max-width: 97%;
  margin-left: auto;
  margin-right: auto;
}

.navbar li {
  margin-top: .15em;
  float: left;
  margin-right: .6em;
  margin-left: .3em;
  list-style-type: none;
}

form.search, input.search {
  width: 175px;
  float: right;
  margin: 0;
  padding: 0;
  padding-left: .1em;
  color: #f5f5f5;
  background: #444;
  border-radius: 3px;
}

form.search {
  margin-top: .20em;
}

.navbar li.right {
  padding-left: .4em;
  padding-right: .4em;
  margin-top: .3em;
  margin-right: 1.7em;
  float: right;
  list-style-type: none;
  border-radius: 100%;
}

.navbar a {
  color: #999;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.navbar a:hover, .navbar a:focus {
  color: #fff;
  text-decoration: none;
}

.profileAvatar { width: 95px; height: 95px; vertical-align: top; border-radius: 5px; object-fit: cover; margin-right: .25em; margin-bottom: .25em;}
.avatar { width: 25px; height: 25px; vertical-align: middle; object-fit: cover; border-radius: 5px; margin-right: .5em; }

.image { width: 75px; height: 75px; object-fit: cover; margin-right: .2em; border-radius: 5px; cursor: pointer;}

#viewer {position: fixed; left: 2em; top: 3em; background: white; padding: .5em; border: 1px solid #ddd; border-radius: 5px;}

#viewer img { border-radius: 5px; margin-left: auto; margin-right: auto; cursor: pointer;}

button {
  display: inline-block;
  *display: inline;
  padding: 4px 12px;
  margin-top: 5px;
  margin-bottom: 0;
  *margin-left: .3em;
  font-size: 14px;
  line-height: 20px;
  color: #333333;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  vertical-align: middle;
  cursor: pointer;
  background-color: #f5f5f5;
  *background-color: #e6e6e6;
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  border: 1px solid #cccccc;
  *border: 0;
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  border-bottom-color: #b3b3b3;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

button:hover,
button:focus,
button:active,
button[disabled] {
  color: #333333;
  background-color: #e6e6e6;
  *background-color: #d9d9d9;
}

button:active {
  background-color: #cccccc \9;
}

button:first-child {
  *margin-left: 0;
}

button:hover,
button:focus {
  color: #333333;
  text-decoration: none;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
     -moz-transition: background-position 0.1s linear;
       -o-transition: background-position 0.1s linear;
          transition: background-position 0.1s linear;
}

button:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

button:active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}


