/** Main body styles (background, fall-back fonts, etc) **/
body {
  background: url('default_background.jpg');
  margin:0;
  padding:0;
  text-align: center;
  line-height: 1.5em;
  font:x-small Trebuchet MS, Verdana, Arial, Sans-serif;
  color: #444;
  font-size: small;
}

em { font-style: italic; }
img { image-orientation: from-image; }

/** Used to wrap the entire website for dynamic width **/
#outer-wrapper {
  min-width: 780px;
  max-width: 1002px; /* Should be the size of the main content div you would like + 322px */
  margin: 20px;
  margin-top: 50px;
  margin-bottom: 100px;
  padding-bottom: 20px;
  font: Trebuchet MS, Verdana, Arial, Sans-serif;
  z-index: 1;
}

/** The main navigation bar **/
#navbar {
  width: 100%;
  min-width: 1044px;
  background: #333333;
  border-bottom: 1px solid #000000;
  border-top: 1px solid #000000;
  font-size: 10pt;
  color: #AAAAAA;
  overflow: visible;
  position: fixed;
  top:0px;
  z-index: 9999;
}

/** The div that drops down when clicking more in the navbar **/
#more {
  width: 100%;
  background: #333;
  border-bottom: 1px solid #000;
  font-size: 10pt;
  color: #AAA;
  overflow: hidden;
  position: fixed;
  top: 32px;
  z-index: 9999;
  display: none;
  text-align: left;
  padding-bottom: 10px;
}

/** Div used to center content elements in more dropdown **/
#more-center {
  width: 700px;
  margin: auto;
  padding: 10px;
}

/** Content elements used in the more dropdown **/
.more-content {
  width: 325px;
  float: left;
  border: 1px solid #555;
  border-radius: 5px;
  background: #777;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px;
}

/** The title of elements in the more dropdown **/
h3 {
  font-size: 110%;
  color: #aee;
}

/** Header of collapsable sections **/
.section-header {
  padding: 5px;
  background: #eee;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size: 110%;
  cursor: hand;
  cursor: pointer;
}

/** Body of collapsable sections **/
.section-body {
  padding: 10px;
  border: 2px solid #eee;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
  display: none;
}

/** Div that aligns modals' positions **/
#modal-wrapper {
  width: 100%;
  z-index: 100;
  position: fixed;
  top: 100px;
}

/** Actual modal content container **/
.modal {
  background: #aee;
  width: 400px;
  margin: auto;
  z-index: 100;
  padding: 20px;
  color: #444;
  border: 1px solid #8cc;
  box-shadow: 3px 3px 3px #666;
  border-radius: 5px;
  overflow: hidden;
}

/** Buttons in modals need a different hover since they would otherwize be the same color as the background **/
.modal .button:hover {
  background: #eee;
  color: 555;
}

/** Validation errors wrapper **/
.errors {
  background: #c45e54;
  color: #444;
  border: 1px solid #9c4a43;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
}

/** Contains the logo and title **/
#header-wrapper {
  background: #ccff55;
  margin-top:20px;
  margin-right:auto;
  margin-bottom: 0px;
  margin-left:auto;
  padding-top:0px;
  padding-right:0;
  padding-bottom:0px;
  padding-left:5px;
  color:#444;
  text-align: left;
  border: 1px solid #80bb00;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  overflow: hidden;
}
#header-wrapper a, #header-wrapper a:hover {
  color: #444;
  text-decoration:none
}

/** Blog Title **/
h1 {
  margin-top: 17px;
  margin-bottom: 17px;
  font-weight: bold;
  font-size: 2em;
}

/** Contains all main content **/
#main-wrap {
  font-size:100%;
  text-align:left;
  line-height:1.5em;
  word-wrap: break-word;
  overflow: hidden;
  z-index: 1;
}

/** The primary content div **/
.content {
  background:#dddddd;
  margin-top: 20px;
  margin-bottom: 0px;
  padding: 20px;
  color: #444;
  font-size:100%;
  text-align:left;
  line-height:1.5em;
  border: 1px solid #bbbbbb;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  word-wrap: break-word;
  overflow: hidden;
  z-index: 1;
}

/** Required in webkit and blink. **/
a:visited .content {
  border: 1px solid #bbb;
}

/** The inner title div used with .content **/
.content-header {
  padding: 10px;
  border-radius: 5px;
  background: #eee;
  font-family: verdana;
  font-size: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

/** For very important messages. Changes text red. **/
.danger {
  color: #DD5950;
}

/** Small header used for date & time **/
.content h1 {
  margin-top:0;
  padding-top:0;
  color: #00cccc;
  font-variant: small-caps;
  font-size: 95%;
}

/** Main post header */
.content h2 {
  color: #000000;
  font-size: 130%;
  font-weight: normal;
}

/** Modal header **/
#modal h2 {
  font-size: 130%;
}

.photo-caption {
  float: left;
  width: 150px;
  margin: 5px;
}

.photo-caption-img-wrap {
  width: 150px;
  height: 150px;
  margin: 0px;
  padding: 0px;
  text-align: center;
}

.photo-caption img {
  max-width: 150px;
  max-height: 150px;
}

.photo-caption input {
  width: 150px;
}

.photo {
  max-width: 100%;
  max-height: 400px;
  cursor: zoom-in;
}

.image-zoom {
  max-width: 960px;
  max-height: 500px;
}

/** Avatar class for post header **/
.avatar-post {
  float: left;
  margin-right: 10px;
}

/** Hover label for avatars **/
.avatar-hover {
  background: #333;
  border-radius: 5px;
  padding: 3px;
  color: #777;
}

/** The small author div used at the bottom of .content divs. **/
.author {
  margin-top: 20px;
  padding: 0px 0px;
  color: #aaaaaa;
  background: #333333;
  border: 1px solid #000000;
  border-radius: 5px;
}

/** The main comment area **/
.comments {
  background: #ccc;
  border: 1px solid #bbb;
  border-top-width: 0px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

/** Each comment within the comments div **/
.comment {
  background: #eee;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

/** Timestamp for comments **/
.timestamp {
  float: right;
  position: relative;
  bottom: 6px;
  font-size: 10px;
  color: #bbb;
}

.small {
  font-size: 11px;
  color: #777;
}

/** Default styles for textareas (these are changed into the wysiwyg editors) **/
textarea {
  width: 100%;
}

/** Navbar buttons **/
#navbar a.but:link, #navbar a.but:visited, #navbar span.but{
  color: #bbbbbb;
  display: block;
  width: auto;
  padding:0px 5px;
  height: 20px;
  margin:5px 5px;
  background: #777;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  -webkit-border-radius: 5px;
}

/** Hover style for navbar buttons **/
#navbar a.but:hover, #navbar a.but:active, #navbar span.but:hover {
  color: #444;
  background: #aaeeee;
  text-decoration: none;
}

/** Small navbar button images **/
#navbar .but-small-image {
  margin-top:5px;
  margin-right:5px;
}

/** A wrapper required for small navbar button images that float left (ie the friends icon) **/
#navbar .but-small {
  margin-left:5px;
}

/** Each item in the navbar is a list item **/
#navbar ul {
  list-style-type:none;
  padding:0;
  margin:auto;
  overflow:hidden;
}
#navbar li {
  float:left;
  cursor: pointer;
}

/** The search bar in the navbar **/
#search {
  float:right;
  padding-top: 0px;
  padding-left: 3px;
  background: #ddd;
  height:30px;
}

/** Submit button for the search bar **/
input.search_button {
  color: #444;
  background: #ddd;
  height: 30px;
  border:0;
  padding-top:0px;
  margin:0;
}
input.search_button:hover {
  text-decoration: underline;
  cursor: pointer;
}

/** The dropdown div **/
#dropdown {
  display: none;
  background: #333333;
  z-index: 9999;
  border: 1px solid #000000;
  border-top: none;
  font-size: 10pt;
  color: #AAAAAA;
  position: fixed;
  top: 32px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.icon {
  float: left;
  width: 64px;
  height: 64px;
  margin-right: 10px;
}

.vote-button, .vote-button-selected {
  float:left;
  font-weight:normal;
  width: 32px;
  height: 32px;
  border-style:none;
  display: block;
  margin-right:10px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  padding: 3px;
  background: #999;
  color: #ddd;
  line-height: 20px;
  cursor: hand;
  cursor: pointer;
}

.vote-button-selected {
  background-color: #aee;
  color: black;
}

.vote-option-title {
  float:left;
  font-size: 18px;
  margin-right: 5px;
}

.vote-title {
  font-size: 18px;
  text-align: center;
}

#post-dropdown {
  display: none;
  background: #eee;
  z-index: 999;
  border: 1px solid #bbb;
  color: #aaa;
  position: absolute;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  top: 29px;
  left: -1px;
  width: 125px;
  font-size: 13px;
  padding: 0px;
  text-align: left;
}

.post-dropdown-option {
  padding: 5px;
  padding-left: 20px;
  color: #888;
}
.post-dropdown-option:hover {
  background: #aee;
  color: #444;
}

#notifications-wrapper {
  top: 32px;
  min-width: 400px;
  position: fixed;
}

#notifications_dropdown {
  display: none;
  min-width: 400px;
  left: -150px;
  position: relative;
}

#notifications {
  background: #333333;
  border: 1px solid black;
  border-radius: 5px;
  z-index: 999;
  font-size: 10pt;
  color: #aaa;
}

/** For each notification in the dropdown menu **/
.notification {
  overflow: hidden;
  padding: 5px;
  border-radius: 5px;
}
.notification:hover {
  background: #aee;
  color: #444;
  text-decoration: none;
}

.arrow-up {
  width: 0px;
  height: 0px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #333;
  z-index: 1000;
  position: relative;
  top: 1px;
  left: 177px;
}

/** main loft logo styles **/
.logo {
  float:left;
  padding:3px;
  padding-right:10px;
}

/** Link styles **/
a:link, a:visited {
  text-decoration: none;
  color: #80bb00;
}
a:hover, a:active {
  text-decoration: underline;
  color: #80bb00;
  cursor: pointer;
}

/** Class for links that shouldn't be underlined on hover **/
a.plain {
  text-decoration: none;
  color: inherit;
}

a.plain:hover, a.plain-green:hover {
  color: inherit;
}

/** Class for .content divs that should have a hover color **/
.jump:hover {
  background-color: #aaeeee; 
  border: 1px solid #99dddd; 
}

/** Standard hr that is used in .content divs. **/
hr {
  color: #bbb;
  background-color: #bbb;
  height: 1px;
  border: 0;
  width: 90%; 
}

/** hr that is used in sidebar divs. **/
hr.blue {
  color: #9dd;
  background-color: #8cc;
}

/** hr that is used in any green divs **/
hr.green {
  color: #be4 ;
  background-color: #be4;
}

/** Standard button styling **/
.button, a.button, select {
  float:left;
  font-weight:normal;
  min-width: 75px;
  border-style:none;
  display: block;
  min-height: 20px;
  margin:5px 5px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  padding: 3px;
  background: #999;
  color: #ddd;
  line-height: 20px;
  cursor: hand;
  cursor: pointer;
}
.button:hover, a.button:hover {
  color: #444;
  background: #aaeeee;
  text-decoration: none;
}

/** Small button styling (ie edit/delete on post and comments) **/
.button-small, a.button-small {
  border-style: none;
  float: left;
  font-weight: normal;
  height: 22px;
  margin: 0px 0px 0px 5px;
  padding: 1px 3px 1px 3px;
  display: block;
  background: #bbb;
  color: #ddd;
  border-radius: 5px;
  cursor: hand;
  cursor: pointer;
}
.button-small:hover, a.button-small:hover {
  background: #aee;
  color: #555;
  text-decoration: none;
}
button.button-small {
  height: 24px;
}

.joined-button-center-wrapper {
  margin: auto;
  width: 230px;
  text-align: center;
}

a.joined-button-left, a.joined-button-center, a.joined-button-right {
  display: block;
  min-height: 20px;
  margin: 5px 0px;
  text-align: center;
  padding: 3px;
  background: #999;
  color: #ddd;
  line-height: 20px;
  cursor: hand;
  cursor: pointer;
  float: left;
  text-decoration: none;
}

a.joined-button-left:hover, a.joined-button-center:hover, a.joined-button-right:hover {
  text-decoration: none;
  color: inherit;
  background: #aee;
}

a.joined-button-active {
  background: #777;
  color: #bbb;
}

.joined-button-left {
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}

.joined-button-right {
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
}

/** Small inline button that can be stacked on the right. **/
.inline-button-right {
  margin: 0px;
  border-left: 1px solid black;
  padding: 0px 5px;
  float: right;
  color: #ccc;
}

/** Small inline button that can be stacked on the left. **/
.inline-button-left {
  margin: 0px;
  border-right: 1px solid black;
  padding: 0px 5px;
  float: left;
  color: #ccc;
}

/** Both styles of inline button hover blue. **/
.inline-button-left:hover, .inline-button-right:hover {
  background: #aee;
  color: black;
}

/** The options of a dropdown selection box. **/
select option {
  color: black;
}

/** Wrapper for flash messages to appear from bottom of screen **/
#flash-wrapper {
  bottom: 0px;
  display: none;
  position: fixed;
  width: 100%;
  z-index: 100;
}

/** Actual flash message content **/
#flash {
  background: #aee;
  border-top: 1px solid #9dd;
  padding: 20px;
  font-size: 130%;
  z-index: 100;
}

/** Sidebar wrapper **/
.side-bar {
  float:right;
  width:280px;
}

/** Sidebar content div **/
.side-content {
  text-align:left;
  float:right;
  background-color: #aaeeee;
  width: 218px;
  border: 1px solid #99dddd;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  padding: 20px;
  margin-left: 20px;
  margin-top: 20px;
  color: #444444;
  overflow:hidden;
}

/** Some special styles for the twitter sidebar. **/
.twitter {
  padding: 5px;
  width: 250px;
}

/** styles for links in sidebar divs **/
.side-content a {
  color: #5aa;
}

a.chat-link {
  color: #444;
  text-decoration: underline;
}

/** Text input field for loft chat **/
#chat_message {
  width: 100%;
}

.chat-date {
  float: right;
  font-size: 10px;
  color: #8cc;
}

/** Clear div - modifications not suggested. **/
.clear {
  width: 100%;
  overflow: hidden;
}

/** Used for centering icons (such as delete) in line with fields **/
.field-remove-icon {
  margin-left: 10px;
  margin-top: 10px;
}
.field-remove-icon:hover {
  cursor: hand;
  cursor: pointer;
}

/** Simple label for above fields (not beside) **/
.field-label {
  font-size: 110%;
  font-weight: bold;
  margin-left: 15px;
}

/** The label div for field lists **/
.field-list-label {
  float: left;
  width: 100px;
  padding-right: 25px;
  text-align: right;
  min-height: 50px;
  border-right: 1px solid #999;
  margin-right: 25px;
  font-size: 110%;
}

/** For empty label divs (for the submit button) **/
.field-list-empty-label {
  float: left;
  width: 100px;
  padding-right: 25px;
  height: 50px;
  margin-right: 25px;
}

/** ==== TABS ==== **/
.tab-button, .tab-button-active, .tab-button-small {
  float: left;
  font-size: 110%;
  text-align: center;
  min-width: 75px;
  padding: 5px;
  border: 1px solid #bbb;
  border-bottom: none;
  border-left: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.tab-button-first { border-left: 1px; }
.tab-button-small { min-width: 30px; font-size: 120%; }

.tab-button-active {
  font-weight: bold;
  background: #aee;
  border: 1px solid #9dd;
  border-bottom: none;
  border-left: none;
}

.tab-button:hover, .tab-button-small:hover {
  cursor: hand;
  cursor: pointer;
  background: #eee;
}

.tab-body {
  border: 1px solid #bbb;
  border-radius: 5px;
  border-top-left-radius: 0px;
  padding: 5px;
  overflow: hidden;
}

/** ==== IN FIELD LABELS === **/
.in-p {
  position: relative;
  margin: auto;
  width: 300px;
  float: left;
}
.in-label {
  position: absolute;
  top: 0;
  left: 0;
  color: #8cc;
  font-family: Helvetica, Arial;
  font-size: 12pt;
  display: block;
  width: 280px;
  margin: 5px 5px 5px 6px;
  padding: 0px;
  text-align: left;
}
.in-br {
  display: none;
}
.in-input {
  font-family: Helvetica, Arial;
  font-size: 12pt;
  display: block;
  padding: 4px;
  width: 300px;
  margin: 0px;
  border-radius:5px;
  border: 1px solid #8cc;
  background: #aee;
}

.green {
  color: #80bb00;
}

.curve-right {
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
}

.curve-left {
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}

.float-right {
  float: right !important;
}

.float-left {
  float: left !important;
}

.no-margin {
  margin: 0px !important;
}

.center {
  text-align: center;
}

.highlight {
  color: black;
  background-color: #cf5;
  border-top: 1px solid #80bb00;
  border-bottom: 1px solid #80bb00
}

.emphasize {
  color: #ddd;
  font-weight: bold;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/** === TinyMCE styles === **/
.mce-panel {
  background-image: none !important;
  background-color: #eee !important;
}

.mce-widget {
  background-image: none !important;
}

.mce-active {
  background-color: #aee !important;
}

.mce-first {
  border-radius-bottom-left: 5px !important;
  border-radius-top-left: 5px !important;
}

.mce-last {
  border-radius-bottom-right: 5px !important;
  border-radius-top-right: 5px !important;
}

.mce-content-body {
  background: transparent !important;
}

.mce-menu-item:hover {
  background-image: none !important;
}

.mce-tab {
  border-left: 1px solid #ccc !important;
}

.mce-primary {
  background-color: #aee !important;
  color: black !important;
}

/** == Date&Time Picker == **/
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
