/*
Theme Name: UMAC Childtheme 2017
Description: A variation of the Twenty Seventeen theme for UMAC
Author: Jessica Masche
Author URI: -
Template: twentyseventeen
Version: 1.0
Tags:


Responsive breakpoints: 768px (xs/sm)

*/ 

/* ---------------------------------------------------------------------  */
/*      Customized CSS for UMAC 2017                                                      */
/* ---------------------------------------------------------------------  */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i,800,800i');

/* -----------------------  */
/*    ELEMENTS              */
/* -----------------------  */

body, button, input, select, textarea {
  font-family: "Open Sans", "Helvetica Neue", helvetica, arial, sans-serif;
}

b, strong {font-weight: 600;}

h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-weight: 600;
  margin: 25px 0 10px;
  padding: 0;
}
h1 {font-size: 24px ;}
h2 {font-size: 22px ;}
h3 {font-size: 18px ;}
h4 {font-size: 17px ;}
h5 {font-size: 16px ;}
h6 {font-size: 16px ;}

p {
  font-size: 18px;
  margin-bottom: 10px;
} 

ol, ul {
  padding: 0 0 0 25px;
  margin: 0 0 10px 0;
  font-size: 18px;  
}

li {margin-bottom: 5px;}

a {
  color: #004586;
  font-weight: 600;
  box-shadow: none !important;
}

a:hover, a:focus {
  color: #0078e8;
  box-shadow: none !important;
}

button, input[type="button"], input[type="submit"]{
  background-color: #004586;
  font-weight: 600;
}

button:hover, button:focus, 
input[type="button"]:hover, input[type="button"]:focus, 
input[type="submit"]:hover, input[type="submit"]:focus {
  background-color: #0078e8;
}

.hidden{
  display: none;
}

/* disabled text marking*/
.deselect ::selection {
    background: transparent;
    color: inherit;
}
.deselect ::-moz-selection {
    background: transparent;
    color: inherit;
}
.deselect {
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}


/* -----------------------  */
/*       META MENU          */
/* -----------------------  */
.meta-nav {
  position: absolute;
  width: 100%;
  background-color: transparent;
  z-index: 100;
  padding: 5px 10px;
}
.meta-nav ul {
  float: right;
  color: white;
  text-shadow: 0 0 4px black;
  margin: 0;
}

.meta-nav li { 
  display: inline;
  font-size: 85%;
  margin: 0 5px;
}

.meta-nav li a {  
  color: white;
  text-shadow: 0 0 4px black;
}

.meta-nav li a:hover { 
  color: #d4eaff;
}

/*li.meta-nav-searchbar {
  display: inline-block;
  width: 250px;
}

li.meta-nav-searchbar form input[type="search"] {
  font-size: 15px;
  padding: 3px 6px;
}
li.meta-nav-searchbar form button[type="submit"],
li.meta-nav-searchbar form label {
  display: none;
}*/

@media screen and (max-width: 506px) {
  .meta-nav{
    padding: 0 5px;
  }
  
  .meta-nav ul {
    padding: 0;
    font-size: 95%;
    float: none;
  }
  .meta-nav-searchbar {
    display: none !important;
  }
}

/* -----------------------  */
/*     LOGOS ON TOP         */
/* -----------------------  */

.logos-on-top {
  float:left; 
  margin:7px 0px
}  
.logos-on-top img {
    padding:5px; 
    background-color: rgba(255,255,255,0.6); 
    border-radius:2px
}


/* -----------------------  */
/*        HEADER            */
/* -----------------------  */

.custom-header-media{
  opacity: 0.9;
}
.has-header-image:not(.twentyseventeen-front-page):not(.home) .site-branding,
.has-header-video:not(.twentyseventeen-front-page):not(.home) .site-branding {
    padding-top: 150px;
}


.single-featured-image-header, img.featured-image {
  max-height: 320px !important
}

.custom-logo-link {
  width: 100% !important;
  padding: 0;
}

img.custom-logo {
  max-height: 100%;
  width: 100%;
  max-width: 100% !important;
  background-color: rgba(255,255,255,0.7);
}

/*.custom-logo-link:hover {
  color: white;
  background-color: #93aab6;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out ;
}*/

h1.site-title a {
  font-size: 40px;
  color: white !important;
  text-shadow: 0 0 15px black;
}

@media screen and (max-width: 506px) {
  h1.site-title a {
    font-size: 28px;
  }
}

.site-description {
  font-size: 22px;
  color: white !important;
  text-shadow: 0 0 15px black;
  opacity: 1 !important;
}
/* -----------------------  */
/*      NAVIGATION MENU     */
/* -----------------------  */
.navigation-top .wrap{
  width: 100%;
  max-width: 100%;
  padding: 0;
}
.navigation-top .menu-scroll-down {
  top: 0 !important; 
}

/* Appearance of Main Menu */
@media screen and (min-width: 768px) {
  .main-navigation ul#top-menu {
    text-align: center;
  }
}

.main-navigation a { 
  font-size: 15px !important;
}

.menu-item a, .sub-menu .menu-item a {
  color: #004586;
}
.menu-item a:hover {
  color: white;
  background-color: #93aab6;
}
.main-navigation li {
  margin-bottom: 0;
}
.main-navigation li li:hover,
.main-navigation li li:focus {
  background-color: #93aab6; 
}

.main-navigation ul li:hover > ul, 
.main-navigation ul li:focus > ul {
  left: 0;
}
.main-navigation ul li.menu-item-has-children::before, 
.main-navigation ul li.menu-item-has-children::after, 
.main-navigation ul li.page_item_has_children::before, 
.main-navigation ul li.page_item_has_children::after {
  border: none;
}

.navigation-top .current-menu-item > a, 
.navigation-top .current_page_item > a {
  color: #93aab6;  
}

.sub-menu .menu-item a:hover,
.current-menu-item > a:hover, 
.current_page_item > a:hover {
  color: white;
  background-color: #93aab6;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out ;
}

/* Appearance of main menu on mobile */
@media screen and (max-width: 768px) {
  
  .js .menu-toggle {
    width: 100%;
  }

  .js .main-navigation.toggled-on > div > ul {
    padding: 0;
  }
  .main-navigation li.menu-item > a {
    padding: 0.5em 20px;
  }
  .main-navigation li.menu-item > .dropdown-toggle {
    right: 0px;
    padding: 0.5em 1em;
  }
}


/* -----------------------  */
/*      FRONT PAGE          */
/* -----------------------  */
.page-one-column .panel-content .wrap {
    max-width: 1000px;
}
.panel-content .recent-posts  .entry-header {
  margin-bottom: 20px;
}

body.twentyseventeen-front-page.home .post-790 .entry-title,
body.twentyseventeen-front-page.home .post-794 .entry-title,
body.twentyseventeen-front-page.home .post-796 .entry-title{
  font-size: 50px;
  text-align: center;
  margin-top: 0;
}

@media screen and (max-width: 506px) {
  body.twentyseventeen-front-page.home .post-790 .entry-title,
  body.twentyseventeen-front-page.home .post-794 .entry-title,
  body.twentyseventeen-front-page.home .post-796 .entry-title {
    font-size: 34px;
  }
}

article.twentyseventeen-panel.post-942, 
article.twentyseventeen-panel.post-946 {
  display: none;
}

/* ---------------------------------------------------------------------  */
/*      PAGES & POSTS                                                     */
/* ---------------------------------------------------------------------  */

body:not(.home) #content.site-content{
  padding-top: 35px;
  margin-bottom: 40px;
  min-height: 500px;
}

body:not(.twentyseventeen-front-page):not(.home) #primary.content-area {
  margin: 0;
  max-width: 1000px;
}

body:not(.twentyseventeen-front-page):not(.home) header.entry-header {
  margin-bottom: 30px;
  padding: 0;
}


/* -----------------------  */
/*      POSTS               */
/* -----------------------  */

body.blog:not(.home) header.entry-header,
body.archive:not(.home) header.entry-header{
  margin-bottom: 15px;
}
body.blog:not(.home) h2.entry-title,
body.archive:not(.home) h2.entry-title {
  margin: 5px 0 10px 0;
  font-size: 24px; 
}

body.archive.page-one-column:not(.has-sidebar) .page-header {
  margin-bottom: 20px;
  margin-left: 0;
  max-width: inherit;
} 
body.blog:not(.home) .site-main{
  padding-top: 30px;
}

.prev.page-numbers, .next.page-numbers {
  background-color: transparent;
}

.prev.page-numbers:focus, .prev.page-numbers:hover, 
.next.page-numbers:focus, .next.page-numbers:hover {
  background-color: transparent;
  color: #0078e8;
}
.pagination, .comments-pagination {
  font-weight: 600;
}
.page-numbers, .page-numbers.current {
  font-size: 15px;
}
.pagination a:hover:not(.prev):not(.next) {
  color: #0078e8; 
}

.filter-button {
  font-weight: 500;
  background-color: #004586;
  padding: 1px 5px;
  margin: 4px 0; 
  color: white;
  display: inline-block;
}

.filter-button:hover  {
  background-color: #0078e8;
  color: white;
}
.filter-button:active  {
  background-color: #0078e8;
  color: white;
}
.news-filter-type {
  font-weight: 600;
}

input[type=checkbox]{
  display: none;
}

input[type=checkbox] + label {
  color: white;
  background-color: #004586;
  color: white;
  font-weight: normal;
  padding: 4px 8px 5px;
  display: inline-block;
}

input[type=checkbox]:checked + label{
  background-color: #d4eaff;
  color: #004586;
} 


/* -----------------------  */
/*    SINGLE POST           */
/* -----------------------  */


.event-post-date, .event-post-venue, time.entry-date, .byline {
  font-size: 14px;
  letter-spacing: initial;
  font-weight: 600;
  text-transform: initial;
}

.entry-content a {
  box-shadow: none !important;
  color: #004586;
  font-weight: 600;
}

.entry-content a:hover {
  color: #0078e8;
}

.entry-meta a, .entry-title a {
  box-shadow: none !important;
}

.entry-meta a:hover {
  color: #0078e8;
}

.entry-title a {
  color: #004586;
}
.entry-title a:hover {
  color: #0078e8;
}

a.more-link {
  color: #004586;
  box-shadow:none;
}
a.more-link:hover {
  color: #0078e8;
  box-shadow: none;
}

.post-navigation a > .nav-title{
  color: #004586;
  box-shadow:none !important;
}
.post-navigation a:hover > .nav-title,
.post-navigation a:focus .icon, 
.post-navigation a:hover .icon {
  color: #0078e8;
  box-shadow: none !important;
}

.page .panel-content .entry-title, .page-title, 
body.page:not(.twentyseventeen-front-page) .entry-title {
  font-size: 28px;
  font-weight: 600;
}

.page .panel-content .recent-posts .entry-title {
  font-size: 26px;
  font-weight: 600;
  margin: 5px 0 10px 0;
}


h2 .home.blog .entry-title, .page .panel-content .recent-posts .entry-title {
  font-size: 26px;
  margin: 5px 0 10px 0;
}

h1.tribe-events-single-event-title {
  font-size: 24px;
}

.entry-footer .edit-link a.post-edit-link {
  background-color: #004586;
  font-weight: 600;
}
.entry-footer .edit-link a.post-edit-link:hover {
  background-color: #0078e8;
}

/*Comments section*/
.logged-in-as a:focus, .logged-in-as a:hover{
  color: #0078e8; 
}

.comment-form label {
  font-size: 16px;
  font-weight: 600;
}

.comment-metadata a {
  color: #004586;
}
.comment-metadata a:hover,
.comment-reply-link:hover{
  color: #0078e8;
}
.comment-reply-link:hover .icon-mail-reply{
  color: #0078e8;
}

.comment-reply-link {
  font-size: 15px;
  font-weight: 600; 
  margin-left: 30px;
}
.comment-reply-link .icon {
    color: #004586;
    top: 4px;
}
 
/* Title on Single Post Page */
.single-post .entry-title, .page .entry-title {
  font-size: 28px;
}

.blog-link{
  margin-bottom: 15px;
}

tr { border: none; }

/* -----------------------  */
/*      SEARCH              */
/* -----------------------  */

@media screen and (min-width: 768px) {
  .main-site .search-submit {
    top: unset;
  }
}

/* ---------------------------------------------------------------------  */
/*        FOOTER                                                            */
/* ---------------------------------------------------------------------  */

.site-footer {
  margin-top: 0px;
  padding: 25px 0 10px 0;
  color: white;
  background-color: #263238;
  border: none;
}

.footer-wrap {
  max-width: 1000px;
}

.footer-title{
  font-size: 35px;
  padding: 7px 0px;
  font-weight: 600;
}
.footer-text {
  padding-right: 45px;
}

.widget-socmed {
  color: white;
}

.socmed-text {
  font-size: 22px;
  font-weight: 600;
  display: inline-block;
  width: 140px;
  float: left;
  margin-left: 5px;
}
.socmed-links {
  display: inline-block;
  height: 71px;
  margin-left: 20px;
}

.social-links{
  color: white;
  /* color: #004586;*/
  box-shadow: none !important; 
  margin: 15px;
}

@media screen and (max-width: 558px) {
  .widget-socmed {
    text-align: center;
  }

  .socmed-text{
    width: 100%;
  }
  .socmed-links {
    margin: 0;
  }
  .social-links{
    margin-bottom: 10px;
    margin-right: 10px;
  }
}

a.social-links:hover{
  color: #93aab6 !important;
  /*color: #0078e8 !important;*/
}

button.search-submit {
  background-color: #004586;
}

button.search-submit:hover {
  background-color: #0078e8 !important; 
}

.logos {
  display: inline-block;
  margin-left: 35px;
  width: 55%;
}

.umac-icom-logos {
  margin: 30px 10px;
}
.umac-icom-logos.umac {
  margin-top: 2px;
}

.umac-icom-logos > a > img {
  background-color: white;
}


.umac-db-logo {
  display: inline-block;
  float: left;
}

a.umac-db {
  display: inline-block;
  height: 140px;
  width: 140px;
  background-image: url("/wp-content/themes/twentyseventeen-umac-child/assets/images/UMAC_DB_1.png");
  background-size: 140px;
  background-repeat: no-repeat;
  background-position-x: center;
}

a.umac-db:hover {
  color: #93aab6 !important; 
  background-image: url("/wp-content/themes/twentyseventeen-umac-child/assets/images/UMAC_DB_3.png");
  transition: all 0.3ms ease-in-out !important;
}

@media screen and (max-width: 448px){
  .logos {
    text-align: center;
    margin: 0;
    width: 100%;
  }
  .umac-db-logo {
    width: 100%;
    float: none;
  }
  a.umac-db {
    text-align: center;
    display: block;
    width: 100%;
    background-position-x: center;
  }
}

@media screen and (max-width: 506px) {
  .footer-text {
    padding: 0;
  }
  
  .widget-socmed{
    margin-bottom: 55px;
  }
  
  .widget-socmed > p {
    font-size: 20px;
    text-align: center;
  } 
  .logos {
    text-align: center;
  }
  .umac-icom-logos {
    margin: 30px 0;
    width: 100%;
    text-align: center;
  }
  .umac-icom-logos > a > img {
    width: 95% !important;
  }
  
  a.umac-db-footer{
    font-size: 17px;
    text-align: center;
    padding: 0 0 180px 0;
    background-size: 185px;
    background-position: 50% 100%;
  }
}

/* Hide Site empty site info */
.site-info { display: none; }

@media screen and (max-width: 506px) {
  .fa-3x {
    font-size: 2.8em !important;
  }
}


/* --------------------------------  */
/* CSS for NEW DESIGN                */
/* --------------------------------  */

/* -----------------------  */
/*   PANELS ON PAGES        */
/* -----------------------  */

body.home .panel-page {
  display: none;
}

.panel-page {
  width: 100%;
  height: 200px;
  margin: 0;
  background: linear-gradient(rgba(170, 19, 128, 0.1), rgba(170, 19, 128, 0.8)), 
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 65px 0;
  font-size: 50px; 
}

/* different padding for pages with long titles */
@media screen and (max-width: 779px) {
  body.page-id-574 .panel-page {
    padding: 25px 0;
  }
}

@media screen and (max-width: 770px) {
 .panel-page {
    height: initial;
    font-size: 33px;
    padding: 30px 0;
  }
}

/*PANEL For Welcome to UMAC Pages in EN, FR, ES */
body.parent-pageid-790 .panel-page, 
body.parent-pageid-794 .panel-page, 
body.parent-pageid-796 .panel-page, 
body.page-id-790 .panel-page, 
body.page-id-794 .panel-page, 
body.page-id-796 .panel-page {
  background: linear-gradient(rgba(128,0,128, 0.1), rgba(128,0,128, 0.8)), 
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/*PANEL For Membership Pages in EN, FR, ES */
body.parent-pageid-40 .panel-page, 
body.parent-pageid-653 .panel-page, 
body.parent-pageid-663 .panel-page, 
body.page-id-40 .panel-page,
body.page-id-653 .panel-page,
body.page-id-663 .panel-page {
  background: linear-gradient(rgba(42, 179, 0, 0.1), rgba(42, 179, 0, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/*PANEL For Activites Pages in EN, FR, ES */
body.parent-pageid-78 .panel-page,
body.parent-pageid-655 .panel-page,
body.parent-pageid-665 .panel-page,
body.parent-pageid-68 .panel-page, 
body.page-id-655 .panel-page,
body.page-id-665 .panel-page,
body.page-id-68 .panel-page {
  background: linear-gradient(rgba(255,165, 0, 0.1), rgba(255,165, 0, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/*PANEL For UMAC Award Pages in EN, FR, ES */
body.parent-pageid-24 .panel-page, 
body.parent-pageid-599 .panel-page, 
body.parent-pageid-601 .panel-page, 
body.page-id-599 .panel-page,
body.page-id-601 .panel-page,
body.page-id-24 .panel-page {
  background: linear-gradient(rgba(185, 33, 1, 0.1), rgba(185, 33, 1, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/*PANEL For Governance Pages in EN, FR, ES */
body.parent-pageid-80 .panel-page, 
body.parent-pageid-659 .panel-page, 
body.parent-pageid-661 .panel-page, 
body.page-id-659 .panel-page,
body.page-id-661 .panel-page,
body.page-id-80 .panel-page {

  background: linear-gradient(rgba(45,109,163, 0.1), rgba(45,109,163, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/*PANEL For Resources Pages in EN */
body.parent-pageid-60 .panel-page, 
body.parent-pageid-48 .panel-page, 
body.page-id-48 .panel-page {
  background: linear-gradient(rgba(229,229,229, 0.1), rgba(229,229,229, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

/* -----------------------  */
/*   PANELS ON FRONTPAGE    */
/* -----------------------  */

body.home .post-1208 {
  display: none;
}

body.home .site-main {
  padding-top: 30px;
}

.twentyseventeen-panel {
  clear: both;
}

.panel-frontpage {
  height: 250px;
  padding: 5px;
  font-size: 45px;
  border: none;
  margin: 2px;
  width: 33%;
  float: left;
  clear: initial;
}

.panel-frontpage a {
  display: inline-block;
  width: 100%;
  height: 100%;
  color: white;
  padding: 86px 0;
  text-align: center;
}

#panel-news.panel-frontpage {
  border: 2px solid #004586;
}
#panel-news.panel-frontpage a{
  color: #004586;
}
#panel-news.panel-frontpage:hover, #panel-news.panel-frontpage a:hover{
  border-color: 1px solid #0078e8;
  color: #0078e8;
}

#panel1.panel-frontpage {
  background: linear-gradient(rgba(128,0,128, 0.1), rgba(128,0,128, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_Zoology.JPG");
  background-size: cover;
}

#panel2.panel-frontpage {
  background: linear-gradient(rgba(42, 179, 0, 0.1), rgba(42, 179, 0, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_pottery.jpg");
  background-size: 125%;
  background-position: center;
}

#panel3.panel-frontpage {
  background: linear-gradient(rgba(255,165, 0, 0.1), rgba(255,165, 0, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_phonograph_horn.jpg");
  background-size: cover;
}

#panel4.panel-frontpage {
  background: linear-gradient(rgba(185, 33, 1, 0.1), rgba(185, 33, 1, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_library-museum.jpg");
  background-size: cover;
}
#panel5.panel-frontpage {
  background: linear-gradient(rgba(45,109,163, 0.1), rgba(45,109,163, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_electronic-science-technology-museum.jpg");
  background-size: cover;
 
}
#panel6.panel-frontpage {
  background: linear-gradient(rgba(168,168,168, 0.2), rgba(168,168,168, 0.8)),
              url("/wp-content/themes/twentyseventeen-umac-child/assets/images/FP_museum-of-geology.jpg");
  background-size: cover; 
}


#panel1.panel-frontpage a:hover {
  color: #ffbbff;
}
#panel2.panel-frontpage a:hover {
  color: #c4ffc4;
}
#panel3.panel-frontpage a:hover {
  color: #ffeac4;
}
#panel4.panel-frontpage a:hover {
  color: #ff9d9d;
}
#panel5.panel-frontpage a:hover {
  color: #add8e6; 
}
#panel6.panel-frontpage a:hover {
  color: #d9d9d9; 
}


@media screen and (min-width: 510px) {
  body.page-id-794 #panel1.panel-frontpage a{
    padding: 53px 0;
  }
}

@media screen and (max-width: 1196px) {
  .panel-frontpage {
    margin: 2px;
    width: 32%;
  }
  .panel-frontpage a {
    font-size: 45px;
    padding: 86px 0px;
  }  
}


@media screen and (max-width: 1301px) {
#panel3.panel-frontpage a {
    padding: 52px 10px;
  }
}

@media screen and (max-width: 1240px) {
#panel4.panel-frontpage a {
    padding: 52px 10px;
  }
}

@media screen and (max-width: 1136px) {
#panel2.panel-frontpage a {
    padding: 52px 10px;
  }
}
@media screen and (max-width: 1056px) {
  #panel2.panel-frontpage a, #panel6.panel-frontpage a {
    padding: 52px 10px;
  }
}

@media screen and (max-width: 1000px) {
.panel-frontpage a {
    padding: 52px 10px;
  }
}

@media screen and (max-width: 928px) {
  .panel-frontpage a {
    font-size: 40px;
    padding: 52px 35px;
  }
}

/*viewport breakpoint */
@media screen and (max-width: 829px) {
  .panel-frontpage {
    margin: 2px;
    width: 49%;
  }
  
  #panel1.panel-frontpage a, 
  #panel2.panel-frontpage a, 
  #panel5.panel-frontpage a, 
  #panel6.panel-frontpage a {
   padding: 86px 0px; 
  }
  #panel3.panel-frontpage a, #panel4.panel-frontpage a {
    padding: 52px 35px;
  }
}

@media screen and (max-width: 690px) {
  .panel-frontpage a {
    font-size: 35px;
    padding: 87px 0;
  }
  #panel3.panel-frontpage a, #panel4.panel-frontpage a {
    padding: 52px 10px;
  }
}


@media screen and (max-width: 509px) {
  .panel-frontpage {
    margin: 2px;
    width: 99%;
    height: 150px;
  }
  .panel-frontpage a {
    font-size: 35px;
    padding: 41px 0;
  }
}
@media screen and (max-width: 582px) {
  #panel1.panel-frontpage a,  
  #panel2.panel-frontpage a,  
  #panel3.panel-frontpage a,  
  #panel4.panel-frontpage a,  
  #panel5.panel-frontpage a,  
  #panel6.panel-frontpage a  {
    padding: 40px 5px;
  }
}

@media screen and (max-width: 339px) {
  #panel3.panel-frontpage a, #panel4.panel-frontpage a {
    padding: 15px 7px;
  }
}


/* ---------------------------------------------------------------------  */
/*       STYLED PLUGINS                                                          */
/* ---------------------------------------------------------------------  */

/* --------------------------------  */
/* CSS for Font Awesome Icons        */
/* --------------------------------  */
.fa {
  padding: 0 1px 0 3px;
  position: relative;
  top: 1px;
}

/* --------------------------------  */
/* CSS for Ideal Interactive Map     */
/* --------------------------------  */

@media screen and (min-width: 1000px) {
  #mapdiv {
    width: 1000px;
    height: 700px;
    position: relative;
    left: -49px;
  }
}

@media screen and (max-width: 999px) {
  #mapdiv {
    height: 500px;
  }
}


/* Info Box for a selected location */
#desc_overlay {
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Open Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  z-index: 5;
}

#ico_close {
  top: 10px;
  width: 20px;
}

#overlay-content {
  font-size: 16px;
  text-shadow: none;
  overflow-y:auto !important;
}
#overlay-content p {
  text-shadow: none;
}
/* For small and handheld devices*/
@media screen and (max-width: 506px) {
  #mapdiv {
    height: 260px;
  }

  #desc_overlay {
    width: 85%;
  }
  .pop_desc_title{
    font-size: 20px;
  }
  #overlay-content {
    font-size: 14px;
  }

}

.phoca-flagbox {
  margin: 0 3px 6px 15px;
}

.phoca-flag{
  position: relative;
  border: 1px solid lightgray;
  box-shadow: 0 0 3px 2px #e1e1e1;
}
