/* foundtion overwrites */
.row {
  max-width: 65rem;
}

.column, .columns {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem; }

[type='search'] {
  -webkit-box-shadow: none;
          box-shadow: none; }

ul.pagination {
  background: #DDD;
  display: inline-block; }
  ul.pagination a {
    padding: 0.6em 1em;
    text-decoration: none; }
  ul.pagination .active a {
    color: #e6e6e6;
    background: #0a0a0a; }

h1 a, h2 a, h3 a {
  text-decoration: none; }

p.meta {
  font-size: 90%;
  color: #666; }

@media print, screen and (min-width: 40em) {
  h1, h2 {
    margin-bottom: 2rem; }
  img {
    margin: 0 auto;
    max-width: 80%;
    display: block; } }

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


/* Default styling */
a:hover { color: #31a529; }
h2 { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: "Arial Black", Arial, Helvetica, sans-serif; font-weight: 900; }


/*** global background ***/
body {
  background: #ffffff url(../images/sn_assets/dirt_background.jpg) 50% 0 repeat;
}

/**
 * Header
 */
header {
  background: transparent url('../images/sn_assets/header-blad.jpg') 50% 0 repeat;
  background-size: 110% 100%;
  height: 255px;
}

.headerphoto {
  position: relative;
  margin-top: 25px;

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 140px;
}
header .logo {
  position: absolute;
  left: 30px;
  top: 12px;
}

/**
 * Menu
 */
.top-bar {
  padding: 0;
  background: linear-gradient(to bottom, #dddddd 0%,#fafafa 100%);
}
.top-bar div > ul,
.top-bar .search {
  background: inherit;
}
.main-menu li {
  min-height: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 0.9rem;

  border-left-style: solid;
  border-left-color: #C6C6B4;
  border-left-width: 1px;
}
.main-menu .submenu a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
}
.menu > li {
  padding: 0;
}
.menu > li a {
  color: #1A368D;
  text-decoration: none; }
.menu > li.active > a {
  background-color: #fb0000;
  color: #fff;
}
.dropdown.menu.medium-horizontal > li.is-dropdown-submenu-parent.active > a:after { border-color: #fff transparent transparent; }

.widgetholder .widget {
  margin: 1.5em 0; }


/**
 * Search
 */
header .row {
  position: relative;
}
.top-bar .search {
  position: absolute;
  right: 10px;
  top: 120px;
}
.top-bar .search [type="search"] {
  padding: 0;
  height: inherit;
  border-radius: 10px;
  font-size: 0.8rem;
  padding: 0.2rem 1rem;
}
.top-bar .search button {
  position: relative;
  right: 20px;
  top: -2px;
  font-size: 0.8rem;
  cursor: pointer;
}
.top-bar .search button:hover {
  color: #f00;
}
.top-bar .search [type="submit"] em {
  display: none;
}

/**
 * Footer
 */
footer {
  background: transparent url(../images/sn_assets/footer-blad.jpg) 50% 0 repeat;
  height: 149px;
  color: #fff;
}
footer .row > div {
  margin-top: 30px;
}
footer ul {
  margin-left: 0;
}
footer li {
  float: left;
  list-style-type: none;
}

/* left col */
footer .scout-logos ul {
  margin-top: 0.3rem;
}
footer .scout-logos a {
  display: block;
  background-image: url("../images/sn_assets/mainbody_sprite.png");
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  margin-right: 10px;
}
footer .scout-logos em {
  display: none;
}
footer .scout-logos .WAGGGS a {
  background-position: 0 -400px;
}
footer .scout-logos .WAGGGS a:hover {
  background-position: 0 -300px;
}
footer .scout-logos .SCNL a {
  background-position: 0 -425px;
  width: 43px;
  height: 40px;
}
footer .scout-logos .SCNL a:hover {
  background-position: 0 -325px;
}
footer .scout-logos .WSF a {
  background-position: 0 -465px;
}
footer .scout-logos .WSF a:hover {
  background-position: 0 -365px;
}

/* Center col */
.footer-content {
  font-size: 0.9rem;
}
.footer-content p {
  margin-bottom: 0;
}
.footer-content .menu a {
  color: #ddd;
  text-decoration: underline;
  padding: 0 0.3rem;
  margin-top: 0.5rem;
  border-right: 1px solid #ddd;
}
.footer-content .menu a:hover {
  color: #ff0;
}
.footer-content .menu a.last {
  border-right: none;
}
.footer-content .menu a.first {
  padding-left: 0;
}

/* Homepage */
.newsitem img { float: left; margin-right: 10px; }
.newsitem { width: 50%; float: left;}
.headline { width: 66%; }
.newsitem.odd { clear: left; padding-right: 5px;}
.newsitem.even { padding-left: 5px;}
.newsitem .meta { margin: 0; line-height: 1em; font-size: 0.8em; color: #666; }

/* main-cta block */
.cta-block { float:right; width: 33%; padding: 20px 20px 16px; margin-top: 35px; background-color: #f00; color: #fff;  }
.cta-block p { margin-bottom: 0.8rem; }
.cta-block .button-container { margin: -32px 0 0 0; }
.cta-yellow {
  display: block;
  background-image: url(../images/sn_assets/mainbody_sprite.png);
  background-position: 0 -920px;
  color: #1a368d;
  padding: 18px 40px 12px 22px;
  cursor: pointer;
}

.cta-blue {
  display: block;
  background-image: url(../images/sn_assets/mainbody_sprite.png);
  background-position: 0 -999px;
  background-repeat: no-repeat;
  color: #fff;
  padding: 18px 40px 12px 22px;
  cursor: pointer;
  font-weight: bold;
}
.cta-blue:hover {
  background-position: 0 -920px;
}
/* news detail page */
.newsimg img {  width: 100%; max-width: none; }
.newsimg { width: 45%; }
.img-right { float: right; padding-left: 10px; }
.img-left { float: left; padding-right: 10px; }

.readmore {
  display:inline-block;
  font-family:"Arial Black", Arial, Helvetica, sans-serif;
  font-size:0.8em;
  font-weight:900; }
.readmore:after, .readmore a { background-image: url(../images/sn_assets/mainbody_sprite.png); }
.readmore:after {
  background-position: -3px -3px;
  background-repeat: no-repeat;
  content: "";
  display: inline-block;
  height: 20px;
  position: relative;
  width: 20px; }
.readmore a {
  background-repeat:repeat-x; background-position:0 -155px;
  color: #1A368D;
  line-height: 20px;
  padding-bottom: 4px;
  text-align: left;
  vertical-align: top; }
.readmore a:hover {
  color: #3399CC;
  background-position: 0 -180px; }
.readmore:hover:after {
  background-position: -3px -1646px; }

.readall { clear: both; float: right; display: block; font-size: 1em; }

/* Facebook posts */
.fb-content { clear: both; height: 250px; overflow: hidden; }
.fb-content h2 img { display: inline; margin: -3px 5px 0 0; }
.fb-content h2  { font-size: 1rem;}
.fb-content h2 a { font-size: 1rem;}

#fb-wrap { position: relative; }
#fb-wrap .buttons { position: absolute; top: 90px; display: block; width: 20px; height: 30px; text-indent: -9999px; background: transparent url("../images/facebook_posts/ico-nav.png") no-repeat scroll; }
#fb-wrap .next { right: 10px; background-position: -19px 0; }
#fb-wrap .next:hover { background-position: -19px -29px; }
#fb-wrap .prev { left: 10px; }
#fb-wrap .prev:hover { background-position: 0 -29px; }

.fb-posts { padding: 0; margin: 0; width: 9999px; }
.fb-posts > li { float: left; position: relative; list-style-type: none; padding: 0; margin: 0 10px 10px 0; }
.fb-posts p { margin: 0; margin: 0; max-height: 36%; }
.fb-posts .message { position: absolute; bottom: 0; padding: 5px 10px; color: #ccc; text-align: justify; background-color: #000; font-size: 13px; overflow: hidden; background: transparent url("../images/facebook_posts/bg-overlay.png") repeat scroll; }
.fb-posts img { display: block; height: 200px; max-width: 100%; margin: 0; }
.fb-posts .photos { position: absolute; top: 5px; right: 5px; padding-left: 25px; color: #ccc; background: rgba(80,80,80, 0.5) url("../images/facebook_posts/ico-gallery_20.png") no-repeat; }
.fb-posts li:hover p,
.fb-posts li:hover .photos { color: #fff; }


/* Agenda */
.agenda { border-spacing: 0; }
.agenda td, .agenda th { line-height: 20px; text-align: left; vertical-align: top; border-top: 1px solid #ddd; }

/* Responsive table: https://codepen.io/andornagy/pen/EVXpbR */
table { max-width: 900px; border-collapse: collapse; }
tr { margin-bottom: 10px; }
tr:nth-of-type(odd) { background: #eee; } /* Zebra striping */
th { background: #3498db; color: white; font-weight: bold; }
td, th { padding: 10px; border: 1px solid #ccc; text-align: left; font-size: 18px; }

/* Speltakken "table" */
.speltakken { max-width: 600px; clear: both; }
.speltakken dt, .speltakken dd { float: left; width: 25%; }
.speltakken dt { clear: left; }

/* Leiding "table" */
.leiding { max-width: 700px; clear: both; }
.leiding dt { float: left; width: 100%; font-size: 1.8em; }
.leiding dt:not(:first-child) { border-top: 1px solid #ccc; padding-top: 40px; margin-top: 20px }
.leiding dd { float: left; width: 50%; }
.leiding img { float: left; width: 125px; height: 167px; margin-right: 10px; }
.leiding span { display: block; }
.leiding .name { margin-top: 10%; }
.leiding .function { font-style: italic; }
@media screen and (max-width: 39.9375em) {
  .leiding dd { width: 100%; }
}

/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

  table {
    width: 100%;
  }

  /* Force table to not be like tables anymore */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr { border: 1px solid #ccc; }

  tbody td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    /* Label the data */
    content: attr(data-column);

    color: #000;
    font-weight: bold;
  }

}

/* Right col*/
.social-links {
  padding-bottom: 0;
}
.social-links h3 {
  font-size: 1.1rem;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
}
.social-links a {
  color: #fff;
  margin-right: 1rem;
}
.social-links a:hover {
  color: #ff0;
}


/* Mobile menu */
@media screen and (max-width: 39.9375em) {
  .no-js .top-bar {
    display: none;
  }

  header { height: auto; }
  .logo img { width: 80%; }
  .headerphoto {
    margin-top: 0;
  }

  .title-bar { background: #31a529; }
  .top-bar .top-bar-right { position: relative; top: 0; right: 0; padding-bottom: 10px; border-left: 1px #C6C6B4 solid; border-bottom: 1px #C6C6B4 solid; }

  header .logo { position: relative; left: 0; right: 0; width: 125px; margin: auto; }

  .headline, .newsitem, .cta-block { width: 100%; }

  .top-bar .search {
    position: relative;
    left: 5px;
    top: 0;
  }
}

/* Desktop menu */
@media print, screen and (min-width: 40em) {

  .no-js .title-bar {
    display: none;
  }
}

/*  Groepskamp pagina */
.clearfix { clear: both; }

table.groepskamp {
  max-width: 400px;
}

table.groepskamp td,
table.groepskamp th{
  font-size: inherit;
  color: #000;
  padding: 2px;
  border: none;
  background: none;
}
table.groepskamp th { width: 100px; }

table.groepskamp tbody {
	border: none;
}

.text2image {
    display: inline-block;   /* of inline */
}
