/*
Theme Name: Tobaksbarn.se v.1.0
Description: Wordpress theme for Tobaksbarn
Version: 1.0.0
Author: Romas Mazeika
Author URI: http://mazeika.lt
*/

/*
Wordpress theme for Tobaksbarn [http://www.tobaksbarn.se]

Coded by Romas Mazeika [romas@mazeika.lt]
Comissioned by Patrick Gustavsson, Empinars
2013
*/

/*
 * Fonts
 */

@font-face {
    font-family: 'museo_sans';
    src: url('fonts/MuseoSans_300-webfont.eot');
    src: url('fonts/MuseoSans_300-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/MuseoSans_300-webfont.woff') format('woff'), url('fonts/MuseoSans_300-webfont.ttf') format('truetype'), url('fonts/MuseoSans_300-webfont.svg#museo_sans_300regular') format('svg');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'museo_sans';
    src: url('fonts/MuseoSans_500-webfont.eot');
    src: url('fonts/MuseoSans_500-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/MuseoSans_500-webfont.woff') format('woff'), url('fonts/MuseoSans_500-webfont.ttf') format('truetype'), url('fonts/MuseoSans_500-webfont.svg#museo_sans_500regular') format('svg');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'museo_sans';
    src: url('fonts/MuseoSans_900-webfont.eot');
    src: url('fonts/MuseoSans_900-webfont.svg#museo_sans_900regular') format('svg'), url('fonts/MuseoSans_900-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/MuseoSans_900-webfont.woff') format('woff'), url('fonts/MuseoSans_900-webfont.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'thirsty_script';
    src: url('fonts/thirstyscriptregular-webfont.eot');
    src: url('fonts/thirstyscriptregular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/thirstyscriptregular-webfont.woff') format('woff'), url('fonts/thirstyscriptregular-webfont.ttf') format('truetype'), url('fonts/thirstyscriptregular-webfont.svg#thirsty_script_regularregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/*! normalize.css 2012-07-07T09:50 UTC - http://github.com/necolas/normalize.css */

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

/*
 * Corrects `block` display not defined in IE6/7/8/9 & FF3.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block;
}

/*
 * Corrects `inline-block` display not defined in IE6/7/8/9 & FF3.
 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

/*
 * Prevents modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/*
 * Addresses styling for `hidden` attribute not present in IE7/8/9, FF3, S4.
 * Known issue: no IE6 support.
 */

[hidden] {
    display: none;
}

/* ==========================================================================
   Base
   ========================================================================== */

/*
 * 1. Corrects text resizing oddly in IE6/7 when body `font-size` is set using
 *    `em` units.
 * 2. Prevents iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
    height: 100%;
    font-size: 100%;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
    -ms-text-size-adjust: 100%;
    /* 2 */
}

/*
 * Addresses `font-family` inconsistency between `textarea` and other form
 * elements.
 */

html,
button,
input,
select,
textarea {
    font-family: sans-serif;
}

/*
 * Addresses margins handled incorrectly in IE6/7.
 */

body {
    margin: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

/*
 * Addresses `outline` inconsistency between Chrome and other browsers.
 */

a:focus {
    outline: thin dotted;
}

/*
 * Improves readability when focused and also mouse hovered in all browsers.
 * people.opera.com/patrickl/experiments/keyboard/test
 */

a:active,
a:hover {
    outline: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/*
 * Addresses font sizes and margins set differently in IE6/7.
 * Addresses font sizes within `section` and `article` in FF4+, Chrome, S5.
 */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

/*
 * Addresses styling not present in IE7/8/9, S5, Chrome.
 */

abbr[title] {
    border-bottom: 1px dotted;
}

/*
 * Addresses style set to `bolder` in FF3+, S4/5, Chrome.
 */

b,
strong {
    font-weight: bold;
}

i,
em {
    font-style: italic;
}

blockquote {
    margin: 1em;
}

/*
 * Addresses styling not present in S5, Chrome.
 */

dfn {
    font-style: italic;
}

/*
 * Addresses styling not present in IE6/7/8/9.
 */

mark {
    background: #ff0;
    color: #000;
}

/*
 * Addresses margins set differently in IE6/7.
 */

p,
pre {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

/*
 * Corrects font family set oddly in IE6, S4/5, Chrome.
 * en.wikipedia.org/wiki/User:Davidgothberg/Test59
 */

code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

/*
 * Improves readability of pre-formatted text in all browsers.
 */

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/*
 * Addresses CSS quotes not supported in IE6/7.
 */

q {
    quotes: none;
}

/*
 * Addresses `quotes` property not supported in S4.
 */

q:before,
q:after {
    content: '';
    content: none;
}

small {
    font-size: 75%;
}

/*
 * Prevents `sub` and `sup` affecting `line-height` in all browsers.
 * gist.github.com/413930
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ==========================================================================
   Lists
   ========================================================================== */

/*
 * Addresses margins set differently in IE6/7.
 */

dl,
menu,
ol,
ul {
    margin: 1em 0;
}

dd {
    margin: 0 0 0 40px;
}

/*
 * Addresses paddings set differently in IE6/7.
 */

menu,
ol,
ul {
    padding: 0 0 0 40px;
}

/*
 * Corrects list images handled incorrectly in IE7.
 */

nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Removes border when inside `a` element in IE6/7/8/9, FF3.
 * 2. Improves image quality when scaled in IE7.
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

img {
    border: 0;
    /* 1 */
    -ms-interpolation-mode: bicubic;
    /* 2 */
    max-width: 100%;
    height: auto;
}

/*
 * Corrects overflow displayed oddly in IE9.
 */

svg:not(:root) {
    overflow: hidden;
}

/* ==========================================================================
   Figures
   ========================================================================== */

/*
 * Addresses margin not present in IE6/7/8/9, S5, O11.
 */

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

/*
 * Corrects margin displayed oddly in IE6/7.
 */

form {
    margin: 0;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    /* 1 */
    padding: 0;
    white-space: normal;
    /* 2 */
    *margin-left: -7px;
    /* 3 */
}

button,
input,
select,
textarea {
    font-size: 100%;
    /* 1 */
    margin: 0;
    /* 2 */
    vertical-align: baseline;
    /* 3 */
    *vertical-align: middle;
    /* 3 */
}

button,
input {
    line-height: normal;
}

button,
html input[type="button"],
    /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    /* 2 */
    cursor: pointer;
    /* 3 */
    *overflow: visible;
    /* 4 */
}

button[disabled],
input[disabled] {
    cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
    *height: 13px;
    /* 3 */
    *width: 13px;
    /* 3 */
}

input[type="search"] {
    -webkit-appearance: textfield;
    /* 1 */
    -moz-box-sizing: content-box;
    /* 2 */
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    /* 1 */
    vertical-align: top;
    /* 2 */
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font: normal 300 16px/20px 'museo_sans' sans-serif;
    color: #333;
}

a {
    color: inherit;
}

a:hover {
    color: #47a795;
}

.bold {
    /*font-family: 'museo_sans';*/
    /* According to the new design - older one had weight 700 */
    font-weight: 500;
}

/*
 * Layout
 */

.wrapper {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

/*
 * Wordpress image alignment
 */

.align-left {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}

.align-right {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}

.align-center {
    display: block;
    margin: 0 auto;
}

.page-header {
    background: #fff;
    overflow: visible;
    left: 0;
    /*height: 110px;*/
    z-index: 10000;
    position: fixed;
    width: 100%;
    text-align: center;
    top: 0;
}

.site-title {
    float: left;
    margin-left: 5px;
    margin-bottom: -100px;
    z-index: 10000;
    max-width: 30%;
}

.site-title-span {
    display: none;
}

.nsg-logo {
    float: right;
    margin-right: 20px;
    margin-top: 15px;
    max-width: 40%;
}

.site-nav {
    padding: 0 20px;
    position: relative;
    display: inline-block;
    font: normal normal 20px/20px 'thirsty_script', serif;
    margin: 35px 0 20px;
    float: left;
    /*margin-bottom: 20px;*/
}

.site-nav:before {
    content: '';
    position: absolute;
    bottom: 56%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #807f7f;
    z-index: 999;
}

.site-nav:after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #807f7f;
}

.site-nav ul {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    display: inline-block;
    margin: 0 16px;
    padding: 0 0 8px;
}

.site-nav li.page-item-10 {
    margin-top: 6px;
}

.site-nav li:hover {
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
}

article {
    padding-top: 110px;
    overflow: hidden;
}

.post-6 {
    color: #47a795;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
}

.gallery-bgr {
    background: #2c4322;
}

.post-6 .gallery {
    max-width: 960px;
    margin: 0 auto;
}

.post-10 .gallery {
    margin-bottom: 20px;
}

.post-10 .gallery img {
    display: block;
    background: url(img/imgframe_shadow.png) 50% top no-repeat;
    background-size: cover;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    padding: 11px 11px 35px;
    max-width: 95%;
    height: auto;
}

.post-6 .section-title {
    display: none;
}

.section-title {
    width: 280px;
    margin: 14px auto;
    padding: 38px 0 0;
    border-top: 1px solid #202020;
    text-align: center;
    font: normal normal 30px/30px 'thirsty_script', serif;
}

.page-header,
.page-footer,
section {
    clear: both;
    margin: 0;
    padding: 0;
}

section {
    padding-top: 15px;
}

section:first-of-type {
    padding-top: 0;
}

section h3 {
    /*border-top: 1px solid #828282;*/
    text-align: center;
}

.column {
    float: left;
    width: 50%;
    padding: 0 2.5%;
}

.column.span_3 {
    width: 25%;
}

.column.span_9 {
    width: 75%;
}

.column.span_12 {
    clear: both;
    width: 100%;
    padding: 0 2.5%;
}

article .subsection p > img {
    display: block;
    background: url(img/imgframe.png) 50% 50% no-repeat;
    background-size: cover;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    padding: 11px;
    max-width: 100%;
    height: auto;
}

article .subsection {
    padding-bottom: 25px;
    margin-bottom: 1em;
    background: url(img/line_dots_green.png) 0 100% repeat-x;
    overflow: hidden;
}

.social-link {
    display: inline-block;
    width: 48px;
    height: 48px;
    text-indent: -10000em;
    overflow: hidden;
    text-decoration: none;
    margin: 3px;
}

.social-link-facebook {
    background: url('img/icon_facebook.png') 50% 50% no-repeat;
}

.social-link-facebook:hover {
    background: url('img/icon_facebook-hover.png') 50% 50% no-repeat;
}

.social-link-twitter {
    background: url('img/icon_twitter.png') 50% 50% no-repeat;
}

.social-link-twitter:hover {
    background: url('img/icon_twitter-hover.png') 50% 50% no-repeat;
}

.download-link {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    line-height: 14px;
    padding-top: 48px;
    text-decoration: none;
    width: 90px;
    background: url('img/icon_download_black.png') 50% 0 no-repeat;
    margin-top: -15px;
}

.subsection-title {
    text-align: center;
    position: relative;
    margin-bottom: 1em;
}

.subsection-title:before {
    position: absolute;
    content: '';
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #807f7f;
    z-index: 0;
}

.subsection-title-span {
    display: inline-block;
    font-weight: 900;
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
    display: inline-block;
    margin: 0 auto;
    text-transform: uppercase;
    z-index: 10;
    line-height: 1.5em;
}

.instagram-feed {
    background: #a8cccb;
    overflow: hidden;
    padding-bottom: 3em;
}

.sponsors .section-title,
.instagram-feed .section-title {
    border-top: none;
    padding: 0.5em;
}

#instafeed {
    background: #fff;
    overflow: hidden;
    padding: 0px;
}

.instagram-item {
    display: block;
    float: left;
    padding: 5px;
}

.sponsors {
    padding-bottom: 3em;
}

.carousel {
    position: relative;
}

.carousel .slides {
    margin: 0;
    padding: 0 50px;
    list-style: none;
}

.carousel .slide {
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-content {
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    overflow: hidden;
    padding: 1em 0;
}

.footer-content p,
.page-footer .subsection {
    margin-bottom: 2em;
}

.page-footer .subsection:last-child,
.footer-content p:last-child {
    margin-bottom: 0em;
}

.page-footer .subsection h3 {
    font: normal normal 16px/20px 'thirsty_script', serif;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links li {
    padding: 0 0 0 9px;
    margin: 0 0 0 9px;
    border-left: 1px solid #fff;
    display: inline-block;
}

.social-links li:first-child {
    padding: 0;
    margin: 0;
    border-left: none;
    display: inline-block;
}

.sn-link {
    display: block;
    overflow: hidden;
    text-indent: -10000em;
    height: 21px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    text-decoration: none;
}

.sn-link-facebook {
    width: 10px;
    background-image: url('img/snicon_facebook.png');
}

.sn-link-twitter {
    width: 24px;
    background-image: url('img/snicon_twitter.png');
}

.sn-link-instagram {
    width: 20px;
    background-image: url('img/snicon_instagram.png');
}

.sn-link-youtube {
    width: 54px;
    background-image: url('img/snicon_youtube.png');
}

.colophon {
    background: url(img/line_dots_white.png) 0 0 repeat-x;
    padding-top: 1.5em !important;
    text-align: center;
}

/* FlexSlider
*********************************/

.flexslider {
    margin: 0;
    padding: 0;
    position: relative;
    zoom: 1;
}

.flexslider .slides {
    zoom: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
    margin: 0;
    padding: 0;
}

/* Hide the slides before the JS is loaded. Avoids image jumping */

.flexslider .slides img {
    width: 100%;
    display: block;
}

.flex-pauseplay span {
    text-transform: capitalize;
}

.slides:after {
    content: "\0020";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

html[xmlns] .slides {
    display: block;
}

* html .slides {
    height: 1%;
}

.no-js .slides > li:first-child {
    display: block;
}

.flex-direction-nav {
    list-style: none;
}

.flex-direction-nav a {
    display: block;
    position: absolute;
    top: 50%;
    z-index: 10;
    overflow: hidden;
    opacity: 1;
    cursor: pointer;
    text-indent: -10000em;
}

.post-6 .flex-direction-nav .flex-prev {
    width: 31px;
    height: 60px;
    margin: -30px 0 0;
    left: 10px;
    background: url('img/maingal_nav_left.png') 50% 50% no-repeat;
}

.post-6 .flex-direction-nav .flex-next {
    width: 31px;
    height: 60px;
    margin: -30px 0 0;
    right: 10px;
    background: url('img/maingal_nav_right.png') 50% 50% no-repeat;
}

.post-10 .flex-direction-nav .flex-prev {
    width: 47px;
    height: 47px;
    margin: -23px 0 0;
    left: 15px;
    background: url('img/galnav_left.png') 50% 50% no-repeat;
}

.post-10 .flex-direction-nav .flex-next {
    width: 47px;
    height: 47px;
    margin: -23px 0 0;
    right: 15px;
    background: url('img/galnav_right.png') 50% 50% no-repeat;
}

.carousel .flex-direction-nav .flex-prev {
    width: 50px;
    height: 100%;
    margin: 0;
    left: 0;
    top: 0;
    background: #fff url('img/nav_arrow_sponsors_left.png') 50% 50% no-repeat;
}

.carousel .flex-direction-nav .flex-next {
    width: 50px;
    height: 100%;
    margin: 0;
    right: 0;
    top: 0;
    background: #fff url('img/nav_arrow_sponsors_right.png') 50% 50% no-repeat;
}

.flex-control-nav {
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.flex-control-nav li {
    margin: 0 6px;
    display: inline-block;
    zoom: 1;
    *display: inline;
}

.flex-control-paging li a {
    width: 11px;
    height: 11px;
    display: block;
    background: #fff;
    cursor: pointer;
    text-indent: -9999px;
    -o-border-radius: 20px;
    border-radius: 20px;
}

.flex-control-paging li a.flex-active {
    background: #b5c240;
    cursor: default;
}

.post-6 .flex-control-nav {
    top: 10px;
    right: 10px;
}

.post-6 .flex-control-paging li a {
    background: #fff;
}

.post-6 .flex-control-paging li a.flex-active {
    background: #b5c240;
}

.post-10 .flex-control-nav {
    bottom: -10px;
    left: 0;
    width: 100%;
    text-align: center;
}

.post-10 .flex-control-paging li a {
    background: #d7dcde;
}

.post-10 .flex-control-paging li a.flex-active {
    background: #47a795;
    text-indent: 0;
    color: #fff;
    font-size: 12px;
    line-height: 25px;
    width: 25px;
    height: 25px;
}

/* Karol => Design and content update from 08/09 2014 */
.icon-download-pdf {
    display: block;
    margin: 50px auto 10px;
}

.inner-column {
    float: left;
    width: 50%;
}

/*
*   Form for submitting to action
*/
.submit-action-form {
    padding: 0 5px 0 12px;
}

.submit-action-form input {
    font-family: "museo_sans", sans-serif;
}

.submit-action-form input[type="text"] {
    border: 1px solid #47a795;
    color: #47a795;
    height: 29px;
    line-height: 29px;
    max-width: 100%;
    padding: 0.5em;
}

.submit-action-form input[type="submit"] {
    background: #47a795;
    border: none;
    color: #fff;
    height: 30px;
    line-height: 30px;
    text-align: center;
    width: 100%;
}

.submit-wrapper {
    position: relative;
}

p.submit-wrapper img.ajax-loader {
    background: none;
    position: absolute;
    left: 50%;
    margin-left: -19px;
    height: 13px;
    width: 13px;
    top: 0;
}

.subsection a {
    color: #47a795;
}

span.wpcf7-not-valid-tip {
    font-size: 0.75em;
}

::-webkit-input-placeholder {
    color: #47a795;
}

:-moz-placeholder { /* Firefox 18- */
    color: #47a795;
}

::-moz-placeholder {  /* Firefox 19+ */
    color: #47a795;
}

:-ms-input-placeholder {
    color: #47a795;
}

/*
*   Section with videos
*/
.videos-section .subsection {
    background: none;
}

.videos-section .full-section {
    padding: 0 2.5%;
    width: 100%;
}


.videos-section .full-section .subsection {
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
}

.videos-wrapper .column {
    margin-bottom: 15px;
}

.video-title {
    display: block;
    font-size: 0.8em;
    margin-bottom: 6px;
    text-align: center;
}

.loaded-news-wrapper {
    display: none;
}

.news-wrapper {
    float: left;
    padding-top: 20px;
    width: 100%;
}

.news-post {
    clear: none;
    display: inline-block;
    font-size: 0.8em;
    margin-bottom: 30px;
    padding-right: 15px;
    width: 24.5%;
}


.news-post p {
    line-height: 1.33em;
}

.news-post header {
    color: #a0a0a0;
}

.news-post .news-content {
    cursor: pointer;
}

.news-post footer {
    color: #47a795;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    padding-top: 2px;
    text-decoration: underline;
}

#get-news-trigger {
    color: #47a795;
    cursor: pointer;
    margin: 20px auto;
    text-align: center;
    text-decoration: underline;
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
*   Form messages
*/
div.wpcf7-mail-sent-ok {
    background: #47a795;
    border: none;
    color: #fff;
}

div.wpcf7-mail-sent-ng,
div.wpcf7-validation-errors {
    background: #a74759;
    border: none;
    color: #fff;
}

div.wpcf7-response-output {
    margin: 0;
    text-align: center;
}

/*
Styling colorbox
*/
.colorbox-news-wrapper {
    padding: 30px 40px;
}

.colorbox-news-wrapper h2 {
    font-weight: 500;
    font-size: 1.3em;
    margin-bottom: 14px;
}

.colorbox-news-wrapper a {
    color: #47a795;
}

#cboxClose{
    background: url('img/colorbox_close.png') no-repeat center;
    height: 25px;
    right: 10px;
    right: 23px;
    top: 10px;
    width: 25px;
}

#colorbox, #cboxWrapper, #cboxLoadedContent, #cboxContent {
    max-height: 100%;
    max-width: 100%;
    width: 780px;
}

#colorbox {
    z-index: 99999;
}

#cboxOverlay {
    background: #333;
    opacity: 0.5 !important;
}

.menu-button {
    clear: both;
    display: none;
    font-family: "thirsty_script", sans-serif;
    float: right;
    padding: 5px 20px 10px;
}

@media screen and (max-width: 860px) {
    .flex-direction-nav .flex-prev {
        opacity: 1;
        left: 10px;
    }

    .flex-direction-nav .flex-next {
        opacity: 1;
        right: 10px;
    }
}

@media screen and (max-width: 643px) {
    .column {
        width: 100% !important;
        float: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .post-6 .wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .news-post {
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding: 13px 20px;
    }
}

@media screen and (min-width: 527px) and (max-width: 885px) {
    .site-nav {
        display: block;
        width: 45%;
        margin: 0 auto 20px;
    }

    article {
        padding-top: 140px;
    }
}

@media screen and (max-width: 526px) {
    article {
        padding-top: 180px;
    }
}

/* PATRICK'S CUSTOM CSS */

@media screen and (max-width: 479px) {
    .site-title {
        margin-left: 5px;
        margin-top: 5px;
        max-width: 30%;
    }

    .nsg-logo {
        margin-right: 10px;
        margin-top: 10px;
        max-width: 25%;
    }

    .site-nav li {
        display: inline-block;
        margin: 0 10px;
        padding: 0 0 8px;
    }

    article {
        padding-top: 140px;
    }
}

/* Karol media queries */

@media screen and (max-width: 960px) {
    .site-title {
        margin-bottom: 0;
    }

    article {
        padding-top: 78px;
    }

    .site-nav:before,
    .site-nav:after {
        display: none;
    }

    .site-nav {
        clear: both;
        float: right;
        margin-top: -77px;
        width: 100%;
    }

    .news-posts-wrapper {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {

    .menu-button {
        display: block;
    }

    .site-nav {
        display: none;
        margin: 0;
    }

    .site-title {
        margin-bottom: -30px;
    }

    .site-nav li {
        clear: both;
        float: left;
        margin-top: 5px;
        width: 100%;
        text-align: center;
    }

    .site-nav li:hover {
        border-color: #fff;
    }

    .site-nav li.page-item-10 {
        margin-top: 0;
    }
}


/* Video Upload styles */
/*#wordpress_file_upload_block_1,
.wfu_container,*/
#wordpress_file_upload_block_1 > div.file_div_clean {
    display: none;
}

#wordpress_file_upload_block_1 > div.file_div_clean:last-of-type {
    display: table;
}

.feedback-outer-wrapper,
.buttons-outer-wrapper,
.buttons-wrapper {
    float: left;
    position: relative;
    width: 100%;
    overflow: visible;
}

.buttons-wrapper {
    text-align: center;
}

.buttons-wrapper a {
    display: inline-block;

    outline: none;
    position: relative;
}

.action-video-upload {
    cursor: default;
    margin-left: 22px;
    opacity: 0.3;
    position: relative;
}

.action-video-upload.active {
    opacity: 1;
    cursor: pointer;
}

.feedback-outer-wrapper {
    display: none !important;
    overflow: hidden;
    visibility: hidden;
}

.upload-feedback {
    background: #b5c240;
    color: #fff;
    font-size: 14px;
    padding: 20px 10px;
    position: relative;
    text-align: center;
    width: 100%;
}

#wfu_messageblock_subheader_1_1 td,
label.file_messageblock_filesubheader_messagelabel {
    border: none;
    font-size: 14px;
    position: relative;
    text-align: center;
    width: 100%;
    color: #fff;
}

label.file_messageblock_filesubheader_messagelabel {
    padding: 0;
}

#wordpress_file_upload_block_1 {
    margin: 0 auto;
}

.upload-feedback:before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 13px 35px 13px;
    border-color: transparent transparent #b5c240 transparent;
    content: '';
    position: absolute;
    top: -34px;
    left: 50%;
    margin-left: 57px;
}

.upload-feedback a {
    float: none;
    color: #fff;
}

.upload-feedback a:hover {
    text-decoration: none;
}

@-webkit-keyframes rotating-forever {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating-forever {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.loading-spinner {
    -webkit-animation: rotating-forever 1s linear infinite;
    animation: rotating-forever 1s linear infinite;
    height: 36px;
    width: 36px;
    border: 4px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -18px;
  margin-top: -18px;
}

/* Animation for spinner */
.uploading-video .loading-spinner {
    display: inline-block;
}

.video-uploaded.video-uploaded .loading-spinner {
    display: none;
}

.wfu_container:hover div.wfu_overlay_editor,
#wfu_messageblock_1_1 {
    display: none !important;
}

#wfu_messageblock_subheader_1_1 {
    display: block !important;
}

.upload-feedback,
.upload-feedback-success,
.upload-feedback-failed {
    display: none;
    visibility: hidden;
}

.upload-failed.upload-failed .upload-feedback-success,
.upload-feedback-failed {
    display: none;
    visibility: hidden;
}

.video-uploaded .upload-feedback,
.upload-failed .upload-feedback,
.video-uploaded .feedback-outer-wrapper,
.upload-failed .feedback-outer-wrapper,
.video-uploaded .upload-feedback-success,
.upload-failed .upload-feedback-failed {
    display: block !important;
    visibility: visible;
    overflow: visible !important;
}

/* Video uploads fields */

.upload-video-fields-wrapper {
    margin-left: -10px;
    margin-right: -10px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 20px;
}

.upload-video-field {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 18px;
    float: left;
}

.upload-video-field input {
    width: 100%;
    border: 0;
    background: #f6f6f6;
    border: 1px solid #f6f6f6;
    padding: 12px 18px;
    color: #333;
    font-family: 'museo_sans';
    font-weight: 500;
    font-size: 14px;
    box-sizing: border-box;
}

.upload-video-field input:focus {
    outline: 0;
    border: 1px solid #ccc;
}

.upload-video-field input.input-error {
    border: 1px solid #FA8072;
}

.upload-video-field input::-webkit-input-placeholder {
   color: #999;
}

.upload-video-field input:-moz-placeholder {
   color: #999;
}

.upload-video-field input::-moz-placeholder {
   color: #999;
}

.upload-video-field input:-ms-input-placeholder {
   color: #999;
}

@media screen and (min-width: 644px) {
    .upload-video-field {
        width: 50%;
    }
}

/* youtube banner */

.youtube-wrapper {
    display: table;
    width: 100%;
    padding-top: 10px;
}

.youtube-text {
    display: table-cell;
    vertical-align: top;
}

.youtube-text p {
    margin-bottom: 0;
}

.youtube-logo {
    display: table-cell;
    vertical-align: middle;
    width: 145px;
}

.youtube-logo img {
    float: right;
}






/* CUSTOM TEMP MENU */

.site-nav:before {
    bottom: 46%;
}