/* --------------------------------------------------
    General
   -------------------------------------------------- */

body {
    padding: 0;
    margin: 0;
    background: #f2f2f2;
    min-width: 600px;
    height: calc(100vh - 30px);
}

hr {
    border: 1px solid #e65c00;
}

/* --------------------------------------------------
    Links
   -------------------------------------------------- */

a:link {
    color: #e65c00;
}

a:visited {
    color: #a52f0f;
}

a:active {
    color: #ffc62b;
}

a:hover {

}

/* --------------------------------------------------
    Branding
   -------------------------------------------------- */

#branding {
    clear: both;
}

#brandingC {
    background: #e65c00;
}

#title {
    color: #f2f2f2;
}

#loginForm {
    float: right;
    padding: 1em;
    padding-bottom: 0;
    line-height: 1.5em;
    text-align: right;
    font-size: 80%;
}

#loginForm input.text {
    width: 8em;
}

#loginText a:link {
    color: #f2f2f2;
}

#loginText a:visited {
    color: #f2f2f2;
}

#loginForm input[type=text] {
    padding: 5px 15px;
    box-sizing: border-box;
    border: 0px;
}

#loginForm input[type=password] {
    padding: 5px 15px;
    box-sizing: border-box;
    border: 0px;
}

#loginForm input[type=submit] {
    padding: 5px 15px;
    background: #f2f2f2;
    border: 0 none;
    cursor: pointer;
    -webkit-border-radius: 5px;
    border-radius: 0px
}

.join-header {
  font-size: 30pt;
  margin-left: 10px;
  text-decoration: none;
  color: #ffc62b !important;
}

/* --------------------------------------------------
    Breadcrumb
   -------------------------------------------------- */

#breadcrumb {
    font-weight: bold;
    font-size: 80%;
    color: #f2f2f2;
}

#breadcrumb a:link {
    color: #f2f2f2;
}

#breadcrumb a:visited {
    color: #f2f2f2;
}

#breadcrumb ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#breadcrumb li {
    display: inline;
}

#breadcrumb a {
    text-decoration: none;
}

/* --------------------------------------------------
    Columns
   -------------------------------------------------- */

#wrapper {
  background: #f2f2f2;
  min-height: 100%;
  margin-top: 10px;
}

#navigation {
  float: left;
  width: 300px;
  padding-top: 0.5em;
}

#content {
  float: right;
  width: calc(100% - 300px);
}

#primary {
  float: left;
  width: calc(100% - 400px);
}

#primaryC {
  padding-left: 20px;
  padding-right: 20px;
}

#secondary {
  float: right;
  width: 400px;
}

@media only screen and (max-width: 1080px) {
  #wrapper {
    margin-top: -5px;
    display: flex;
    flex-direction: column;
  }

  #navigation {
    order: 1;
    width: 100%;
    float: top;
  }

  #content {
    margin-top: 10px;
    order: 2;
    float: bottom;
    width: 100%;
  }

  #primary {
    float: none;
    width: 100%;
  }

  #secondary {
    float: none;
    width: 100%;
  }

  #footer {
    height: auto !important;
  }

  #branding {
    height: auto !important;
  }

  #logo {
    padding-right: 0;
  }

  #title h1 {
    margin-top: 20px;
    font-size: 12pt;
    padding-left: 0;
  }

  #breadcrumb li {
    display: block;
  }

  #loginForm {
    padding-top: 1em;
  }
}

/* --------------------------------------------------
    Menu
   -------------------------------------------------- */

#navigationC ul {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

/* --- Menu item */
#navigationC ul li a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.5em;
    font-size: 95%;
    color: #ffc62b;
    background: #e65c00;
    padding-left: 1em;
    margin-bottom: 2px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#navigationC ul li a:hover {
    background-color: #d45e08;
}

#navigationC ul li a.select {
    color: #fff0cd;
    border-bottom-right-radius: 0;
    -moz-border-radius-bottomright: 0;
}

/* --- Submenu item */
#navigationC ul ul li a {
    font-size: 80%;
    font-weight: normal;
    padding-left: 2em;
    background: #ffa405;
    color: #d45e08;
}

#navigationC ul li li a:hover {
    background-color: #e69200;
}

#navigationC ul ul li a.select {
    color: #fff0cd;
}

#navigationC ul li.lastsub a {
    display: block;
}

/* --------------------------------------------------
    Boxes
   -------------------------------------------------- */
div.cbb {
    padding: 1em;
    box-shadow: 3px 3px 5px #777;
    -moz-box-shadow: 3px 3px 5px #777;
    -webkit-box-shadow: 3px 3px 5px #777;
}

/* --------------------------------------------------
    Search box
   -------------------------------------------------- */

#search input.text {
    width: 100%;
}

#search .buttons {
    margin-top: 0.5em;
}

#search div.left {
    float: left;
}

#search input.submit {
    float: right;
    padding: 0;
}

/* --------------------------------------------------
    Valid box
   -------------------------------------------------- */

ul#valid {
    margin: 0;
    margin-left: 1em;
    margin-bottom: 0.3em;
    padding: 0;
}

/* --------------------------------------------------
    Footer
   -------------------------------------------------- */

#footer-fix {
    min-height: calc(100% - 16px);
}

#footer {
    background: #e65c00;
    height: 30px;
}

#footer p {
    text-align: center;
    padding-top: 5px;
}

/* --------------------------------------------------
    Content box (e.g. for news items)
   -------------------------------------------------- */

.box {
    background: #ffffff;
}

.box div.boxcontent {
    border: 2px solid #e65c00;
    border-top: 1px solid #e65c00;
    border-bottom: 1px solid #ffffff;
}

.box .boxhead a, .box .boxhead h2, .box .boxhead h3, .box .boxfoot p, .boxfoot a {
    color: #ffc62b;
}

.box .boxhead {
    background: #e65c00;
}

.box .hollowhead {
    background: #ffffff;
    border-top: 2px solid #e65c00;
    border-left: 2px solid #e65c00;
    border-right: 2px solid #e65c00;
    height: 5px;
    margin: 0;
    padding: 0;
}

.box .boxfoot {
    background: #e65c00;
}

.box .hollowfoot {
    background: #ffffff;
    height: 5px;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e65c00;
    border-left: 2px solid #e65c00;
    border-right: 2px solid #e65c00;
}

/* --------------------------------------------------
    Error box
   -------------------------------------------------- */

.error {
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}

.error div.errorcontent {
    background: #ffffff;
    border: 2px solid #ff0000;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    -moz-border-radius-bottomleft: 7px;
    -moz-border-radius-bottomright: 7px;
    padding-bottom: 0.5em;
}

.error .errorhead h3 {
    color: #ffffff;
}

.error .errorhead {
    background: #ff0000;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    -moz-border-radius-topleft: 7px;
    -moz-border-radius-topright: 7px;
}

.errorbar, .navbar, .infobar {
    margin: 0.5em 0 0 0;
    font-size: 80%;
    border-radius: 7px;
    -moz-border-radius: 7px;
    padding: 0.2em 0.5em;
}

.errorbar {
    background: #ff0000;
    color: #ffffff;
    margin-right: 0.5em;
}

.infobar {
    background: #e76808;
    color: #ffffff;
    margin-right: 0.5em;
}

.infobar a {
    color: #ffc62b;
}

.infobar a:active {
    color: #ffffff;
}

.navbar {
    background: #e76808;
}

.navbar a {
    color: #ffc62b;
    font-weight: bold;
    text-decoration: none;
}

/* --------------------------------------------------
    Dialog box
   -------------------------------------------------- */

.dialog {
    text-align: center;
    margin: auto;
    width: 20em;
}

/* --------------------------------------------------
    Tables
   -------------------------------------------------- */

table.border th {
    background: #e65c00;
    color: #ffc62b;
}

table.border td {
    background: #ffffff;
}

table.border a:link {
    color: #d45e08;
}

/* --------------------------------------------------
    Edit toolbar
   -------------------------------------------------- */

.edit {
    margin-top: 1em;
    border-top: 2px solid #e76808;
    font-size: 80%;
    text-align: right;
}

.edit ul {
    margin: 0;
}

.edit li {
    display: inline;
    float: right;
    padding-left: 1em;
}

form.admin {
    float: left;
}

/* --------------------------------------------------
    Hacks to work around inadequacies of TinyMCE
   -------------------------------------------------- */

.tt {
    font-family: monospace;
}

/* --------------------------------------------------
    Forms
   -------------------------------------------------- */

fieldset {
    border: 2px dotted #e76808;
}
