/*
Theme Name: Sacf
Theme URI: http://040.se
Description: Sacf
Version: 1.0
Author: 040
Author URI: http://040.se
*/


/* BASICS ---------------- */
body {
  background-color: #fff;
}

a {
  color: #E51D20;
  text-decoration: none;
}

a:focus,
a:hover {
  text-decoration: underline;
}

a:focus {
  outline-color: transparent;
}

label {
}

input[type="text"],
input[type="password"],
textarea {
}

input[type="submit"],
button {
}

time {
  text-transform: lowercase;
  color: #979797;
  margin: 0px;
}

time + h2,
time + h3,
.legible time + h2,
.legible time + h3 {
  margin-top: 15px;
}

[disabled] {
  opacity: 0.7;
}

::-moz-selection {
  background: #b3d4fc;
  background: rgba(0, 0, 0, 0.2);
}

::selection {
  background: #b3d4fc;
  background: rgba(0, 0, 0, 0.2);
}

header, footer {
  background-color: #2d2d2d;
  color: #fff;
}

.page-content h1 {
  font-size: 21px;
  margin-bottom: 20px;
  font-weight: 700;
}

.site-name {
  display: block;
  background-color: #fff;
  padding: 10px;
}

.widget_sp_image a:hover,
.widget_sp_image a:focus,
.sacf-widgets-sponsors a:hover,
.sacf-widgets-sponsors a:focus,
.site-name:hover,
.site-name:focus {
  opacity: .7;
}


/**********
* Forms
*/
form {
  margin: 30px 0px;
}

button, input {
  padding: 5px;
}


/**********
* Header
**/
.page-header > * {
  position: relative;
  padding: 45px;
}

.page-header h1 {
  position: absolute;
  bottom: 45px;
}


/**********
* Mobile menu
**/

.mobile-menu,
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle {
  position: fixed;
  z-index: 20;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent url(img/mobile-menu-toggle.png) no-repeat center center;
  background-size: contain;
  text-indent: -9999em;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  opacity: .7;
  outline: 0;
}

.mobile-menu {
  position: fixed;
  z-index: 20;
  top: 100%;
  background: #2d2d2d;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  overflow-y: scroll;
  font-family: Arial, sans-serif;
  -webkit-transition: top 200ms ease-out 0s;
     -moz-transition: top 200ms ease-out 0s;
       -o-transition: top 200ms ease-out 0s;
          transition: top 200ms ease-out 0s;
}

html.mobile-menu-active,
html.mobile-menu-active body {
  overflow: hidden;
}

html.mobile-menu-active .mobile-menu {
  top: 70px;
}

.mobile-menu a {
  color: #fff;
  display: block;
  padding: 10px 20px;
  border-top: 1px solid #4c4c4c;
}

.mobile-menu .current-menu-item > a,
.mobile-menu a:hover,
.mobile-menu a:focus {
  background-color: #E51D20;
  text-decoration: none;
}

.mobile-menu .sub-menu a {
  font-weight: normal;
  font-size: 14px;
  border-top: 0;
  padding-left: 40px;
}


/**********
* Header menu
**/

.header-menu {
  list-style: none;
}

.header-menu li {
  position: relative;
  display: inline-block;
  margin-left: 35px;
}

.header-menu li:first-child {
  margin-left: 0;
}

.header-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.header-menu li:hover > a,
.header-menu li:focus > a {
  background: #2d2d2d;
}

.header-menu li:after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 100%;
  background: #fff;
  height: 1px;
  margin-top: -7px;
}

.header-menu li:hover:after,
.header-menu li:focus:after {
  display: none;
}

.header-menu li.current-menu-item:after,
.header-menu li.current-menu-ancestor:after {
  height: 3px;
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, .4);
}

.header-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #2d2d2d;
  z-index: 5;
  display: none;
  font-size: 14px;
}

.header-menu li:hover .sub-menu {
  display: block;
}

.header-menu .sub-menu li {
  display: block;
  margin-left: 0;
}

.header-menu .sub-menu li:after {
  display: none;
}

.header-menu .sub-menu a {
  display: block;
  font-weight: 400;
  padding: 10px;
  border-top: 1px solid #4c4c4c;
  white-space: nowrap;
}

.header-menu .sub-menu .current-menu-item a {
  font-weight: 800;
}

.header-menu .sub-menu a:hover,
.header-menu .sub-menu a:focus {
  background-color: #E51D20;
}

.header-menu .sub-menu .sub-menu {
  display: none;
}


/**********
* Sidebar
**/
.sidebar ul,
.sidebar ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li:last-child {
  margin-bottom: 0px;
}

.sidebar .widget {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #ccc;
}

.sidebar .widget:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.read-more {
  display: block;
  margin-top: 15px;
}

/**********
* Right sidebar
*
* TODO: Find a better way to deal with the height of the images for the sponsors;
*
**/

.right-sidebar ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.right-sidebar .sacf-widgets-sponsors:after {
  content: "";
  display: table;
  clear: both;
}

.right-sidebar .sacf-widgets-sponsors li {
  width: 50%;
  float: left;
  text-align: center;
  overflow: hidden;
  padding: 10px 10px;
}

.right-sidebar .sacf-widgets-sponsors li img {
  max-height: 85px;
}

.right-sidebar .widget:nth-child(3) {
  padding-bottom: 0;
  border: 0;
}

/**********
* Post preview
**/
.post.preview {
  display: block;
  border-bottom: 1px solid #ccc;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.post:after {
  content: "";
  display: table;
  clear: both;
}

.post.preview h2 {
  padding: 0px;
  margin: 10px 0px 15px 0px;
}

.post.preview:last-child {
  border-bottom: 0;
}

.post.preview p {
  margin-top: 0px;
}

.post.preview p:last-child {
  margin-bottom: 0px;
}

.post.preview:hover p {
  text-decoration: underline;
}

.post .attachment-post-thumbnail {
  float: left;
  max-width: 210px;
  margin: 0px 30px 15px 0px;
}

/*********
* page buttons
**/
.legible .page-buttons > *,
.page-buttons > * {
  float: left;
  display: block;
  width: 32%;
  margin-left: 2%;
  margin-top: 2%;
  background-color: #929292;
  color: #fff;
  padding: 35px 10px;
  border-radius: 5px;
  text-align: center;
  font-family: "Arial", Gadget, sans-serif;
  font-weight: normal;
}

.page-buttons > *:nth-child(3n+1) {
  margin-left: 0;
  clear: left;
}

.page-buttons > *:nth-child(-n+3) {
  margin-top: 0;
}

.legible .page-buttons > a,
.page-buttons > a {
  background-color: #E51D20;
}

.legible .page-buttons > a:hover,
.legible .page-buttons > a:focus,
.page-buttons > a:hover,
.page-buttons > a:focus {
  text-decoration: none;
  opacity: .7;
}
