/*
Theme Name:   Frederiksberg Gymnasium
Theme URI:    https://wordpress.org/themes/bootstrap-basic/
Description:  Bootstrap Basic Child Theme created for Frederiksberg Gymnasium 2016
Author:       Supertusch
Author URI:   http://supertusch.dk
Template:     bootstrap-basic
Version:      1.0.0
Text Domain:  frberg-gym
*/

/* FONTS */
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,400,400i,700|Open+Sans:300,400,400i,600,700');

/* GENERAL */
* {
  font-family: 'Open Sans', sans-serif;
}

html, body {
    overflow-x: hidden;
}

a,
a:hover,
a:focus,
a:visited {
  outline: 0;
  text-decoration: none;
  color: #444444;
}
#content a {
  font-weight: 700;
}
#content a div {
  font-weight: 400;
}
a {
  color: #444444;
}
a:hover {
  color: #000000 !important;
  text-decoration: underline;
}
h1 {
  font-family: 'Merriweather', serif;
  font-size: 25px;
  font-weight: 700;
  color: #444444;
  line-height: 35px;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 19px;
  font-weight: 700;
  color: #444444;
  line-height: 30px;
}
body:not(.home) article h2 {
  margin-top: 40px;
}
button:focus {
  outline:0 !important;
}
h3 {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  color: #444444;
  margin-top: 40px;
  line-height: 25px;
}
hr {
  margin: 15px 0 15px 0;
  border: solid 1px #444444;
  width: 56px;
}
img {
  max-width: 100%;
  height: auto;
}
p {
  font-family: 'Open Sans' sans-serif;
  font-size: 14px;
  color: #444444;
  line-height: 25px;
}
select {
  text-shadow: 0 0 0 #000000;
  border-radius: 0;
  outline: none !important;
}
select:focus,
option:focus,
select::-moz-focus-inner,
option::-moz-focus-inner {
  outline: none !important;
  border: none !important;
}
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
.arrow {
  text-align: right;
  margin-bottom: 10px;
  margin-top: 30px;
}
.arrow img {
  width: 25px;
  height: 25px;
}
.no-text-decoration {
  text-decoration: none !important;
}
.page-header {
  padding: 0 10px;
}
.widget_nav_menu .menu {
  list-style: none;
}

ul {
    line-height: 25px;
}

/* BREADCRUMBS */
.breadcrumbs {
  padding: 10px;
  font-size: 10px;
}
.breadcrumbs a {
  color: #444444;
}
.breadcrumbs a:hover{
  text-decoration: underline;
}

/* SUPPRESS BOOTSTRAP STYLING */
.navbar-default {
  background: none;
  border: none;
  box-shadow: none;
}
#main-column .post,
#main-column .page {
  border: none;
}
#site-footer {
  border: none;
  background-color: #444444;
}
.page-header {
  border: none;
}
.container-fluid {
  padding: 0;
}
.row {
  margin: 0;
}

/* HEADER */
.site-logo {
  width: 220px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
  top: 30px;
  left: -5px;
}
.site-logo img {
  max-width: 220px;
}
.pull-right > div {
  float: left;
}
@media screen and (max-width: 481px) {
  .widget_search {
    display: none;
  }
}
@media screen and (orientation: landscape) and (max-width: 736px) {
  .widget_search {
    display: none;
  }
}

/* SEARCH FORM */
.widget_search {
  max-width: 250px;
}
#form-search-input {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  color: #444444;
}
.search-form .btn-default {
  background-color: transparent;
  border: none;
  background-image: none;
  box-shadow: none;
}
.search-form .btn-default img {
  min-width: 20px;
}
::-webkit-input-placeholder {
  color: #444444 !important;
}
::-moz-placeholder {
  color: #444444 !important;
}
:-ms-input-placeholder {
  color: #444444 !important;
}

/* NAVIGATION */
#menu-utility {
  list-style: none;
  margin-top: 5px;
}
#menu-utility li {
  display: inline;
  padding: 20px;
}
#menu-utility li a {
  font-family: 'Open Sans' sans-serif;
  font-size: 12px;
  color: #383838;
}
.navbar-primary-collapse {
  float: right;
  margin-top: 50px;
  margin-right: -45px;
}
ul > li > .mega-menu-link {
  font-family: 'Merriweather', serif !important;
}
.mega-no-title > a {
  visibility: hidden !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 12px;
  text-transform: none;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link:focus {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 12px;
}
@media screen and (max-width: 601px) {
  #menu-utility li {
    padding: 5px;
  }
  .header-col {
    padding: 0;
  }
  .site-branding > div {
    padding: 0;
  }
  .site-logo {
    width: 230px;
    height: 60px;
  }
  .navbar-primary-collapse {
    float: none;
    margin-bottom: 20px;
    margin-right: 0px;
  }
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    font-size: 12px;
  }
}
@media screen and (min-width: 600px) and (max-width: 801px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    font-size: 12px;
    padding: 0px 5px 0px 5px;
  }
  .site-logo {
    width: 220px;
    height: 80px;
  }
}
@media screen and (min-width: 802px) and (max-width: 1025px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    font-size: 13px;
    padding: 0px 20px 0px 20px;
  }
}

/* VIDEO */
.header-video {
    height: 500px;
    background-color: #444444;
    overflow: hidden;
    position: relative;
    top: -20px;
}
video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* FRONT PAGE */
.home #main-column {
  margin-top: 0px;
}
.page-links {
    margin-top: -30px;
    margin-bottom: 70px;
    position: relative;
    top: -20px;
}
.page-links a:hover {
  text-decoration: none;
}
.page-links a:hover .page-link,
.link-box-widget a:hover .link-box {
    background-color: #eaeaea;
}
.page-link {
  background-color: #f8f8f8;
  padding: 10px 20px;
  margin-bottom: 20px;
  transition: .2s;
}
.link-box-widget .link-box {
    transition: .2s;
}
.page-links a,
.page-links a div {
  width: 100%;
}
.page-link p {
  width: 85%;
}
.page-link .arrow {
  margin-top: -10px;
}
.news {
  margin-top: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.news a:hover {
    text-decoration: none;
}
.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0!important;
}
.news-image {
  width: 100%;
  height: 130px;
  background-position: center center;
  background-repeat: no-repeat;
}
.news p {
  width: 90%;
}
.news .arrow {
  margin-top: -10px;
}
.news-item .arrow {
    margin: auto 0 3em!important;
}
.all-news-link {
  text-align: right;
}
.home h1 {
  margin-top: 100px;
  text-align: center;
  font-size: 23px;
}
.news-category {
  display: inline-block;
  padding: 5px 10px;
  background-color: #e8e8e8;
  color: #444444;
  top: -10px;
  position: absolute;
}
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.studies {
  margin-top: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.study-link {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
            flex-direction: column;
}
.study-link h2 {
    margin-bottom: 0px;
}
.study-link a:hover {
  text-decoration: none;
}
.study-link .arrow {
  margin-top: -10px;
  margin-top: auto;
  margin-bottom: 3em;
}
.study a:hover {
    text-decoration: none;
}
.study-link > img {
    max-height: 167px;
}
.instagram-header:before {
  background-image: url('/wp-content/themes/frberg-gym/assets/images/instagram.png');
  background-size: 40px 40px;
  display: inline-block;
  width: 40px;
  height: 40px;
  content:"";
  margin-right: 10px;
  vertical-align: bottom;
}
.wdi_load_more {
  display: none;
}

@media screen and (max-width: 736px) {
  .page-links {
    margin-bottom: 30px;
  }
  .home h1 {
    margin-top: 0;
  }
  .all-news-link {
    margin-bottom: 30px;
  }
  .studies {
    margin-bottom: 30px;
  }
  .news-item,
  .home .study {
    margin-bottom: 30px;
  }
}

/* CONTENT PAGES */
.header-image img {
  margin-top: -30px;
  width: 100%;
}
#main-column {
  margin-top: 40px;
}
.page-template-default #sidebar-right {
  margin-top: 40px;
}

/* SUBJECT PAGES */
.header-image-subject:before {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: calc(100% + 30px);
    background: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.2));
    content: '';
    z-index: 0;
}
.header-image-subject img {
  margin-top: -30px;
  width: 100%;
}
.subject-page-header,
.subject-quote-box,
.header-image-subject {
  position: relative;
}
.subject-page-header .row {
  position: absolute;
  width: 100%;
  top: -20em;
}
.subject-quote:before {
  content: '“';
  font-family: 'Merriweather', serif;
  font-size: 55px;
  font-weight: 700;
  margin-right: 20px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.subject-quote {
  font-family: 'Merriweather', serif;
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 40px;
}
.subject-quoter {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: right;
}
.page-template-page-subject #sidebar-right {
  margin-top: -80px;
}
.subheading {
  font-family: 'Merriweather' serif;
  font-size: 16px;
  font-style: italic;
  margin-bottom: 40px;
}
.teachers h2 {
  margin-bottom: 30px;
}
.teachers .row {
  display: flex;
  flex-wrap: wrap;
}
.teachers-flex {
  display: flex;
  flex-wrap: wrap;
}
.teacher {
  text-align: center;
  margin-bottom: 40px;
}
.portrait img {
  border-radius: 50%;
}
.subjects {
    min-height: 20px;
}
.subject {
  text-transform: lowercase;
}

.subject:first-child {
  text-transform: none;
}
.subject:after {
  content: ', ';
}
.subject:last-child:after {
  content: '';
}
@media screen and (max-width: 1024px) {
  .subject-page-header .row {
    top: -15em;
  }
}
@media screen and (max-width: 768px) {
  .page-template-page-subject #sidebar-right {
    margin-top: 0;
  }
  .subject-page-header .row {
    top: -11em;
  }
}
@media screen and (max-width: 736px) {
  .subject-page-header .row {
    display: none;
  }
}

/* SEARCH RESULT */
.search #sidebar-right {
  margin-top: 70px;
}

/* POSTS */
.single #sidebar-right {
  margin-top: 70px;
}
.single .entry-meta {
  font-family: 'Merriweather' serif;
  font-size: 16px;
  font-style: italic;
  margin-bottom: 40px;
}

/* ARCHIVES */
.archive #sidebar-right,
.page-template-archive-news #sidebar-right {
  margin-top: 70px;
}
.news-column {
  padding: 10px;
}
.news-column a:hover {
  text-decoration: none;
}
.teachers {
  margin-bottom: 50px;
}

/* STUDY CHOOSER */
.study-selector {
  margin-bottom: 50px;
}
.study-selector h2,
.study-result h2 {
  margin-bottom: 30px;
}
.study-selector select {
  width: 100%;
  background-color: #f8f8f8;
  border: none;
  font-size: 13px;
  padding: 10px;
  margin-bottom: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 1px;
  text-overflow: '';
  cursor: pointer;
}
.subject-selector-header,
.subject-selector {
  display: none;
}
.study-result {
  margin-top: 40px;
  margin-bottom: 50px;
}
.result-container {
  width: 100%;
  display: none;
  padding: 0 30px 20px;
  border-left: 2px solid #444444;
}
.result {
  width: 100%;
}
.result th {
  font-family: 'Merriweather', serif;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}
.result td {
  border: 2px solid white;
}
.result td .box {
  margin: 5px;
  border: 1px solid #ccc;
  height: 40px;
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.result td.mandatory .box {
  background-color: #23447c;
  color: #ffffff;
}
.reset.button {
  background-color: #404040;
  color: #ffffff;
  width: 100%;
  border-radius: 0;
  border: none;
  height: 40px;
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: none;
  margin-top: 80px;
}
.print.button {
  background-color: #404040;
  color: #ffffff;
  width: 100%;
  border-radius: 0;
  border: none;
  height: 40px;
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: none;
  margin-top: 10px;
}
.access.button {
  background-color: #404040;
  color: #ffffff;
  width: 100%;
  border-radius: 0;
  border: none;
  height: 40px;
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: none;
  margin-top: 10px;
}
.access-description {
  display: none;
  margin-top: 10px;
}
.area-toggle {
  cursor: pointer;
}
.area-toggle:after {
  background-image: url('/wp-content/themes/frberg-gym/assets/images/minus.png');
  background-size: 25px 25px;
  display: inline-block;
  width: 25px;
  height: 25px;
  content:"";
  margin-left: 10px;
  vertical-align: bottom;
}
.area-toggle.open:after {
  background-image: url('/wp-content/themes/frberg-gym/assets/images/plus.png');
  background-size: 25px 25px;
  display: inline-block;
  width: 25px;
  height: 25px;
  content:"";
  margin-left: 10px;
  vertical-align: bottom;
}
.popup {
  display: none;
  position: absolute;
  line-height: 22px;
  z-index: 10;
  max-width: 500px;
  background-color: #ffffff;
  margin-top: -50px;
  padding: 20px;
  border: 1px solid #ccc;
  cursor: default;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.3);
}
.filled {
  cursor: pointer;
}
.close {
  cursor: pointer;
  opacity: 1;
  margin-top: -5px;
}
.close:hover {
  opacity: 1;
}
.close img {
  width: 15px;
  margin-left: 10px;
}

@media screen and (max-width: 801px) {
  .result-container {
    padding: 0;
    border: none;
  }
}
@media screen and (max-width: 601px) {
  .box {
    font-size: 12px;
  }
}
@media screen and (max-width: 321px) {
  .box {
    font-size: 9px;
    max-width: 85px;
    margin: 0 !important;
  }
}

/* ERROR */
.error404 #sidebar-right {
  margin-top: 70px;
}

/* SIDEBARS */
#sidebar-right .widget {
  border: none;
  margin-bottom: 0px;
}

/* CUSTOM WIDGETS */
.link-box {
  background-color: #f8f8f8;
  padding: 10px 20px;
}
.link-box h2 {
  margin-top: 20px;
}
.link-box-widget a:hover {
  text-decoration: none;
}
.quote {
  font-family: 'Merriweather', serif;
  font-size: 19px;
  font-weight: 300;
}
.quote:before {
  content: '»';
  font-weight: 700;
}
.quote:after {
  content: '«';
  font-weight: 700;
}
.quoter {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}
.news-header a {
  font-family: 'Merriweather', serif;
}
.news-box-widget a:hover {
  text-decoration: none;
}
.news-box-widget .col-md-12 {
  padding: 0;
  margin-top: 15px;
}
.news-item h2 {
  margin: 15px 0 0;
}
.news-item p {
  /*margin-top: 20px;*/
  width: 90%;
}
.news-item .arrow {
  /*margin-top: -20px;*/
}
.study-box h3 {
  margin-top: 10px;
}
.study-box .menu {
  list-style: none;
  margin-left: -20px;
}
.study-box .menu li a {
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .news-box-widget .col-md-12 {
    margin-top: 25px;
  }
}

/*STANDARD WIDGETS*/

.textwidget {
    line-height: 25px;
}

/* FOOTER */
#site-footer {
  margin-top: 30px;
}
#footer-content * {
  color: #ffffff;
}
#footer-content .widget_nav_menu .menu {
  list-style: none;
  margin-left: -40px;
}
#footer-content .widget_nav_menu .menu li a {
  font-size: 14px;
}
#footer-content .widget_nav_menu .menu li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
#footer-content {
  margin-bottom: 50px;
}
#footer-content .col-md-15 {
  height: 200px;
}
img.attachment-full.alignleft {
    width: 150px;
}
#footer-content .widget_sp_image {
  height: 100%;
  align-items: center;
  margin-top: 30px;
}
#footer-content .textwidget p {
  line-height: 18px;
  padding-top: 3px;
}
@media screen and (max-width: 736px) {
  #footer-content {
    padding-top: 30px;
  }
  #footer-content .col-md-15 {
    height: auto;
    margin-bottom: 30px;
  }
}

/* 5 COLUMNS */
.col-xs-15,
.col-sm-15,
.col-md-15,
.col-lg-15 {
  position: relative;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
}
.col-xs-15 {
  width: 20%;
  float: left;
}
@media (min-width: 768px) {
  .col-sm-15 {
    width: 20%;
    float: left;
  }
}
@media (min-width: 992px) {
  .col-md-15 {
    width: 20%;
    float: left;
  }
  .row.page-links,
  .row.page-links > div,
  .row.page-links > div > * {
     display: -webkit-box;
     display: -ms-flexbox;
     display: flex;
  }
}
@media (min-width: 1200px) {
  .col-lg-15 {
    width: 20%;
    float: left;
  }
}

/* PRINT */
@media print {
  header,
  .header-image,
  .breadcrumbs,
  .study-selector,
  .basic-course-page-link,
  footer {
    display: none;
  }
  .result-container {
    padding: 0;
    border: none !important;
  }
  .results {
    display: block !important;
  }
  .box {
    height: 30px !important;
  }
}


.header-col {
    z-index: 100;
}


#mega-toggle-block-1 {
    background: #e8e8e8;
}

#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-right {
    margin-right: 0!important;
    padding-right: 6px;
}

@media only screen and (max-width: 736px) {
    #mega-menu-wrap-primary #mega-menu-primary {
        background: #e8e8e8;
    }
}

/* Contact form */
.wpcf7 .wpcf7-submit {
  background-color: #404040;
  color: #ffffff;
  width: 200px;
  border-radius: 0;
  border: none;
  height: 40px;
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10px;
}
.wpcf7-list-item-label {
  font-weight: 400;
  margin-left: 5px;
}


.wpcf7 input, .wpcf7 textarea {
  border: 2px solid #444444;
  padding: 5px;
  outline: none;
  resize: none;
  margin-top: 5px;
  width: 100%;
  font-weight: 400;
}

.wpcf7 input {
  margin-bottom: 10px;
}

.wpcf7 form {
  max-width: 450px;
}

.wpcf7 label {
  width: 100%;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-list-item label {
  display: flex;
}

.wpcf7 .wpcf7-list-item input {
  width: 20px;
}

    width: 20px;



/* FRONTPAGE BOXES; SAFARI FIX */
.flex-fix:before,
.flex-fix:after {
    content: normal; /* IE doesn't support `initial`*/
}
