/*
Theme Name: Kampus CAD Theme
Theme URI: http://sketch-sketch.com
Description: Custom theme matching the original Kampus CAD Blogger design
Version: 1.0
Author: Kampus CAD
*/

/* Roboto Font */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(//fonts.gstatic.com/s/roboto/v15/CWB0XYA8bzo0kSThX0UTuA.woff2) format('woff2'), url(//fonts.gstatic.com/s/roboto/v15/2UX7WLTfW3W8TclTUvlFyQ.woff) format('woff');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url(//fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOFtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'), url(//fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOD8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #64707a;
  line-height: 1.5em;
  margin: 0;
  text-decoration: none;
  background: #FFF;
}

a, a:link, a:visited, a:active {
  color: #1daced;
  text-decoration: none;
}

a:hover {
  color: #ff6600;
}

.left { float: left; }
.right { float: right; }
.clear { clear: both; }

h2.date-header { display: none; }

/* Header wrapper */
#wrapper {
  background: #fff;
  position: relative;
  width: 1010px;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
}

#header-wrapper {
  margin: 0 20px 10px;
  padding: 0 0 50px;
  word-wrap: break-word;
  border-bottom: 1px solid #ebeeef;
}

#header-left {
  padding: 0;
  margin: 0;
  width: 100%;
  float: left;
  position: relative;
}

#header h1 {
  color: #1daced !important;
  margin: auto;
  text-align: center;
  padding: 12px 0 7px;
  font-size: 260% !important;
  line-height: 1.2em;
  font-weight: bold;
}

#header h1 a, #header h1 a:hover {
  color: #1daced;
}

#header .description {
  margin: auto;
  text-align: center;
  color: #64707a;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 16px;
  padding-bottom: 10px;
}

/* Logo Menu Search */
.page_menu_wrapper {
  background: rgba(255, 255, 255, .98);
  max-width: 100%;
  margin: 0 20px;
  border-bottom: 1px solid #ebeeef;
  padding: 20px 0 6px;
}

.page-menu ul li {
  list-style: none;
  display: inline-block;
  transition: all 400ms ease-in-out;
}

.page-menu {
  float: left;
  width: auto;
  height: auto;
  padding: 0 !important;
  margin: 0;
  font-size: 100%;
  font-weight: 400;
}

.page-menu ul {
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 3em;
}

.page-menu ul li a:hover {
  color: #1daced !important;
}

.page-menu ul li a {
  color: #64707a !important;
  padding: 0 20px 0 0;
  text-decoration: none;
}

.page-menu ul li a img {
  vertical-align: middle !important;
}

/* Main wrapper */
#main-wrapper {
  background: #fff;
  width: 68.3%;
  float: left;
  padding: 0;
  margin: 0 auto;
  word-wrap: break-word;
  overflow: hidden;
}

/* Post styles */
.post {
  margin: 8px 0 25px 20px;
  padding: 0;
  width: 45.6%;
  height: 310px;
  float: left;
  position: relative;
}

.post h2 {
  margin: auto;
  padding: 0 0 5px;
  text-align: center;
  font-size: 115%;
  letter-spacing: 0.5px;
}

.post h2 a {
  color: #64707a;
  text-decoration: none;
  font-weight: bold !important;
  line-height: 1.2em;
}

.post:hover a, .post h2 a:hover, .post:hover .post-info {
  color: #1daced !important;
}

.post-body {
  padding: 0;
  margin: 0;
}

.post-snippet {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.post-thumbnail {
  float: left;
  margin: 0 0 10px;
  padding: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
}

/* Post info */
.post-info {
  display: block;
  position: relative;
  margin: auto;
  text-align: center;
  padding: 5px 0 10px;
  letter-spacing: 0.5px;
  color: #64707a !important;
  overflow: hidden;
  font-size: 13px !important;
}

/* Post body for single posts */
.single-post-body {
  margin: 0 20px;
  line-height: 1.6em;
  padding: 0;
}

.single-post-body ul {
  margin: 5px 0 5px 10px;
  padding: 0 0 0 20px;
  list-style-type: inherit;
}

.single-post-body ol {
  margin: 5px 0 5px 10px;
  padding: 0 0 0 20px;
  list-style-type: decimal;
}

.single-post-body img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.single-post-body table td {
  border: 1px solid #e9e9e9;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.single-post-body table th {
  border: 1px solid #3d548f;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  background: #2b427d !important;
  color: #fff;
}

.single-post-title {
  margin: 0 20px 10px;
  padding: 0;
}

.single-post-title h1 {
  color: #1daced;
  font-size: 180%;
  font-weight: bold;
  line-height: 1.3em;
}

.single-post-title h1 a, .single-post-title h1 a:hover {
  color: #1daced;
}

.single-post-meta {
  margin: 0 20px 15px;
  padding: 0 0 10px;
  border-bottom: 1px solid #ebeeef;
  color: #64707a;
  font-size: 13px;
}

/* Separator / images */
.separator {
  float: none;
  max-width: 100%;
  height: auto;
  width: auto;
  padding: 0;
  margin: 20px auto 10px;
  text-align: center !important;
  overflow: hidden;
}

table img, .separator img, .separator a img {
  max-width: 100% !important;
  height: auto;
  width: auto !important;
  margin: 0;
  padding: 0;
  text-align: center !important;
}

/* Sidebar wrapper */
#sidebar-wrapper {
  max-width: 300px;
  float: right;
  word-wrap: break-word;
  overflow: hidden;
  margin-top: 8px;
  margin-right: 20px;
  list-style: none;
}

#sidebar-wrapper h2, #sidebar-wrapper h3, #sidebar-wrapper h4 {
  letter-spacing: 1px;
  font-size: 20px !important;
  font-weight: bold;
  position: relative;
  padding: 0 0 10px;
  margin: 0;
  color: #1daced;
  border-bottom: 1px solid #ebeeef;
}

#sidebar-wrapper .widget-content {
  margin: 0 auto 20px;
  padding: 0;
}

#sidebar-wrapper .Label ul {
  list-style: none !important;
  margin: 15px 0 0;
  padding: 0;
  width: 100%;
}

#sidebar-wrapper .Label li {
  position: relative;
  background: #f5f5f5;
  color: #444;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 100%;
  font-size: 90%;
  transition: all .3s ease-out;
}

#sidebar-wrapper .Label li:nth-child(even) {
  background-color: #fff;
}

#sidebar-wrapper .Label li:hover {
  background: #fff;
  color: #cf4d35;
}

#sidebar-wrapper .Label li:before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background: #1daced;
  transition: all .2s ease-in-out;
}

#sidebar-wrapper .Label li:hover:before {
  width: 100%;
}

#sidebar-wrapper .Label li a {
  padding: 0 0 0 10px;
  border-left: 5px solid #1daced;
  display: block;
  position: relative;
  line-height: 42px;
  color: #787878;
  text-decoration: none;
  transition: all .3s ease-out;
}

#sidebar-wrapper .Label li a:hover {
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 100%;
  overflow: hidden;
  padding: 0 0 10px;
  position: relative;
  border-bottom: 1px solid #ebeeef;
  color: #ccc;
  margin: 0 20px 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.breadcrumbs a {
  color: #768187;
  font-size: 13px;
  font-weight: normal;
}

.breadcrumbs a:hover {
  color: #333;
}

/* Nextprev pagination */
#blog-pager {
  text-align: center;
  padding: 20px 0 0;
  margin: 0 20px 5px;
}

#blog-pager a {
  display: block;
  border: 1px solid #1daced;
  margin: 15px 0 20px;
  padding: 4px 12px;
  line-height: 25px;
  color: #1daced;
  font-weight: 400;
  z-index: 999;
}

#blog-pager a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #1daced;
}

#blog-pager a.blog-pager-older-link {
  float: right !important;
  padding: 4px 12px;
}

#blog-pager a.blog-pager-newer-link {
  float: left !important;
}

/* Post hover effect */
.post:hover .post-thumbnail {
  filter: url("data:image/svg+xml; utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'></feColorMatrix></filter></svg>#grayscale");
  -webkit-filter: grayscale(1);
  filter: gray;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
  width: 100%;
  margin: 1.5em auto;
}

/* Footer wrapper */
#footer-wrapper {
  background: #30363d;
  margin: 30px auto 0;
  padding: 10px 0 20px;
  width: 100%;
  text-align: center;
  color: #fafafa;
  font-size: 12px;
}

#footer-wrapper a {
  color: #fff;
  list-style: none;
}

#menu {
  margin: 0 auto;
  padding: 0;
  position: relative;
}

#menu ul {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

#menu ul li {
  display: inline-block;
  margin: 12px 0 5px;
}

#menu ul li a {
  display: block;
  color: #fff;
  padding: 0 7px;
  font-size: 15px;
}

#footer-wrapper a:hover, #menu ul li a:hover {
  color: #4588f3;
}

/* Responsive */
@media screen and (max-width: 992px) {
  #sidebar-wrapper { display: none; }
}

@media screen and (max-width: 880px) {
  #wrapper { width: 95%; }
  #main-wrapper { width: 60%; }
  #header h1 { font-size: 190%; }
  .page-menu { width: 100%; margin: 0; }
  .page-menu ul li { width: 33.3%; float: left; }
  .page-menu ul li:first-child { width: 100%; float: none; box-sizing: border-box; margin-top: 10px; }
  .page-menu ul li, .search-box { text-align: center; }
  .page-menu ul li a { margin: 0 auto; padding: 0; }
}

@media screen and (max-width: 768px) {
  #sidebar-wrapper { width: 100%; margin: auto; padding: 25px 0 0; float: none; }
  #header-left, #main-wrapper { width: 100%; }
}

@media screen and (max-width: 600px) {
  #header-wrapper, .page_menu_wrapper { margin: 0 15px; }
  #header h1 { font-size: 185% !important; }
  #menu ul { padding-bottom: 8px; }
  #menu ul li { margin: 8px 0 0; }
  .post { width: 45.5%; height: 230px; margin: 8px 0 25px 15px; }
  .post-thumbnail { height: 160px; }
  .post-thumbnail img { height: auto; }
}

@media screen and (max-width: 568px) {
  .post { height: auto; width: 100%; margin-left: 0; }
  .post-thumbnail, .post-thumbnail img { width: 100%; min-height: auto; height: auto; }
  .post-hentry-fleksibel { padding: 0 30px; margin: auto; }
}

@media screen and (max-width: 480px) {
  .page-menu ul { line-height: 2em; }
  #header h1 { font-size: 170% !important; }
  .post-hentry-fleksibel { padding: 0 15px; }
}

@media screen and (max-width: 414px) {
  .breadcrumbs { margin: 15px 15px 3px; }
}

@media screen and (max-width: 320px) {
  .post h1 { font-size: 140% !important; }
}

@media screen and (max-width: 240px) {
  .page-menu ul li { width: 50% !important; }
  #header h1 { font-size: 120%; }
}

/* Post outer - disable text selection like original */
.post-outer {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.post blockquote, .post pre, .post code {
  -webkit-touch-callout: text;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -ms-user-select: text;
  -moz-user-select: text;
}

ul, ol {
  list-style: none;
}

/* Print style */
@media print, handheld {
  * { display: none; }
}
