/*

Theme Name: Kirkon Ulkomaanapu
Author: Frantic
_____________________________________________________

*/

/* MOBIILITOGGLE TEKSTI */
@media screen and (max-width: 760px) {
#main-nav-open:after {
    content: "MENU";
    position: absolute;
    right: 0;
    font-size: 12px;
    margin-top: 30px;
    margin-right: 10px;
    color: #9c3;
}
 }


@media screen and (max-width: 600px) {
  body.noScroll #wpadminbar {
      position: fixed;
  }
}

@media (pointer: coarse), screen and (max-width: 760px) {
#main-nav .nav-row li.menu-item-has-children:after,
#main-nav a {
  color: #020202 !important;
}

#main-nav > li {
  background: white;
  border-top: 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
.nav-row>li.active>a, .nav-row>li.current-menu-item>a, .nav-row>li.current-page-ancestor>a, .nav-row>li.current_page_item>a, .nav-row>li.current_page_parent>a {
  background: unset;
}
.nav .active>a, .nav .current-menu-item>a, .nav .current-page-ancestor>a, .nav .current_page_item>a, .nav .current_page_parent>a, .nav a:active, .nav a:hover {
  border-bottom: 0px;
}

#menu-main {
  display: none;
}

body.noScroll {
  overflow: hidden;
  position: absolute;
  height: 100%;
}

.search-wrap,
.search-wrap * {
  height: 70px;
}


.header-top--open #menu-utility {
  border-top: 2px solid #9c3;
  position: fixed;
  top: 70px;
  z-index: 100;
  background: white;
  height: calc(100% - 140px);
  overflow: scroll;
}

.customize-support .header-top--open #menu-utility {
  top: 116px;
  height: calc(100% - 186px);
}
body.noScroll.customize-support {
  height: calc(100% - 46px);
}

.header-top--open .header-right .nav.lang-nav {
  background: white;
  position: fixed;
  top: calc(100% - 70px);
  z-index: 1000;
  height: 70px;
  width: 100%;
  text-align: center;
}
#menu-utility.menu-utility--open {
  border-top: 2px solid #9c3;
}
#menu-utility li > a {
  margin-right: 40px;
  text-transform: uppercase;
}

#menu-utility li.menu-item-has-children:after {
  font-size: 1.5em;
  content: '\e600';
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

} 
#menu-utility li.menu-item-has-children.nav-open:after {
  content: '\ea0f';
  font-size: 0.8em;
}

#menu-utility .sub-menu {
  background: #eee;
}
#menu-utility .sub-menu .sub-menu a {
  text-transform: none;
}

}

@media (pointer: fine) and (min-width: 761px), screen and (min-width: 761px) {

  #menu-main {
    display: block;
  }
  .header-left .logo {
    height: 45px;
  }
  .header-logo {
      height: 61px;
  }

  .header-wrap,
  #header-wrap,
  #header-top {
    overflow: visible;
  }

  .header-center {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
    padding-top: 3px;
  }

  .nav-vertical ul:empty {
    border: 0;
  }

  .header-wrap .nav-wrap {
    /* margin-left: 2em; */
  }

  #searchform {
    position: relative;
    top: unset;
    right: unset;
  }
  #main-nav > .nav-row > li > .sub-menu {
    display: none;
    position: absolute;
    background-color: white;
    padding: 30px;
    //margin-top: 6px;
    left: 0;
    width: 100%;
    /*min-height: 80px; broke mega menu on ios */
    z-index: 10000;
  }
  /* Extend hitarea below sub-menu */
  #main-nav > .nav-row > li > .sub-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100px;
  }

  #main-nav > .nav-row > li:hover  .sub-menu {
    display: block;
  }

  #menu-main .sub-menu .menu-item,
  #menu-main .sub-menu .menu-item a {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    white-space: normal;
  }
  #menu-main > li {
    font-size: 16px;
    padding-top: 5px;
  }
  #menu-main li.menu-item-90563 {
      min-height: 4em; /* force to own column */
  }
  #menu-main > li > .sub-menu {
    column-count: 3;
    border-bottom: 2px solid #9c3;
  }
  #menu-main > li.three-column > .sub-menu {
    column-count: 3;
    padding: 30px 10vw;
  }
  #menu-main > li.two-column > .sub-menu {
    padding: 30px 10vw;
    column-count: 2;
  }
  .nav .current-menu-item > a,
  .nav .current-page-ancestor > a, 
  .nav .current_page_item > a, 
  .nav .current_page_parent > a {
    color: #020202;
  }
  .sub-menu .sub-menu a {
    font-weight: 400;
  }
  
  .nav .active > a, 
  .nav a:active, .nav a:hover,
  li.nav-open > a {
    border-bottom: none;
    color: #9c3 !important;
  }
  
  #menu-main > li > a {
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    font-size: 20px;
    display: inline-block;
  }
  #menu-main > li:hover > a,
  #menu-main > li.nav-open > a:hover,
  #menu-main > li.nav-open > a {
    color: #9c3 !important;
    border-bottom: 2px solid #9c3;
  }

  #menu-main .sub-menu .menu-item {
    margin-bottom: 10px;
    text-transform: uppercase;
    /* font-size: 0.95em; */
  }
  #menu-main .sub-menu .sub-menu .menu-item {
    margin-bottom: 5px;
  }
  #menu-main .sub-menu .sub-menu {
    margin-top: 5px;
    padding-left: 20px;
  }
  #menu-main .sub-menu .sub-menu .menu-item {
    text-transform: none;
  }

  .nav .current_page_item > a {
    border-bottom: 0px;
  }
}
@media (pointer: fine) and (min-width: 761px) and (max-width: 1000px), 
screen and (min-width: 761px) and (max-width: 1000px) {
  #searchform {
    /* width: 90%; */
    margin: 0;
  }
}
@media (pointer: fine) and (min-width: 1000px), screen and (min-width: 1000px) {
  #menu-main > li {
    font-size: 18px;
  }
  #menu-main > li > .sub-menu {
      column-count: 4;
  }
}
@media (pointer: fine) and (min-width: 1100px), screen and (min-width: 1100px) {
  #main-nav > .nav-row > li > .sub-menu {
    padding: 30px 15vw;
  }
  #menu-main > li.three-column > .sub-menu {
    padding: 30px 21vw;
  }
  #menu-main > li.two-column > .sub-menu {
    padding: 30px 30vw;
  }
  #menu-main > li.three-column > .sub-menu {
    padding: 30px 20vw;
  }
}
.tekstinosto {
  margin: 2em auto 1em auto;
}
.tekstinosto h2 {
  color: #99cc33;
  font-size: 2.75em;
  font-family: GTPressura,Verdana,sans-serif;
}
.tekstinosto p {
  font-size: 1.5em;
}

.block.green {
  background: #9c3;
  width: 100%;
  max-height: 525px;
  overflow: hidden;
}
@media screen and (max-width: 800px) {
  .block.green.maamenu {
    max-height: unset;
  }
}
.block.green figure {
  width: 100%;
  height: 525px;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-position: center;
}
.country figure {
  width: 100%;
  height: 525px;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-position: center top !important;
}
.country .block.green,
.country .block.green figure {
  height: 600px;
  max-height: 600px;
}
.block.green figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 1em;
  background: #9c3;
  color: white;
  font-size: 120%;
}

#maa-menu {
  display: flex;
  flex-direction: row;
  padding: 1em 0;
}
#maa-menu > li {
  flex: 1;
}
#maa-menu > li > a {
  font-size: 2em;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: default;
  pointer-events: none;
}
#maa-menu > li > a:hover {
  cursor: default;
  color: #000 !important;
}
#maa-menu > li > ul {
  display: block;
  padding-left: 0;
  margin-top: 1em;
}
#maa-menu > li > ul > li {
  margin-bottom: .5em;
}
#maa-menu > li > ul > li > a {
  color: white;
  font-size: 17px;
}
#maa-menu > li > ul > li > a:hover {
  color: #073a1b !important;
}
@media screen and (max-width: 760px) {
  #maa-menu {
    display: block;
  }
  #maa-menu > li {
    display: inline-block;
    width: 49%;
    vertical-align: top;
  }
  #maa-menu * {
    border: none;
  }
  #maa-menu li a {
    padding: 4px 0px;
  }
  #maa-menu li.menu-item-has-children::after {
    content: unset;
  }
  #maa-menu > li > ul {
    margin-top: 2px;
  }
}
@media screen and (max-width: 520px) {
  #maa-menu > li {
    width: 100%;
  }
  #maa-menu li a {
    text-align: center;
  }
}


.donation-promo-header,

.donationcontent {

    max-width: 1024px;

    margin: 0 auto;

    position: relative;
}

.nav-vertical>ul {
    border: none !important;
}

/*Kuva captionin teklstistä border pois */
.wp-caption p.wp-caption-text {
	border: none !important;
}

/* ARTIKKELIKUVAN KUVATEKSTI JOKA PAIKASSA VIHREÄLLÄ TAUSTALLA */
figcaption {
    padding: 1em;
    /*
    background: #9c3 !important;
    color: white !important;
    font-size: 120% !important;
   */
}

/* ARTIKKELEIDEN SIVUPALKKI */
.block .newslist-title {
/*	color: #9c3;
	padding: 30px; */
}
.newslist {
  padding: 20px;
}

.infobox h3 {
  color:#000000 !important;
}

.infobox {
  color:#000000 !important;
}

.infobox li {
  color:#000000 !important;
}

.infobox ul {
  color:#000000 !important;
}

.infobox p {
  color:#000000 !important;
}

.factbox a {
	color:#000000;
	text-decoration:underline;
}

/* ETUSIVUN BLOGOIBANNERIN KORKEUDEN KASVATUS */
.block.promo_donation.ajankohtaista.heroblock .hero--imageblock {
	background-position: 50% 50% !important;
}
@media screen and (min-width: 1700px) {
  .block.promo_donation.ajankohtaista.heroblock {
       min-height: 600px;
    }
  }
@media screen and (min-width: 2200px) {
  .block.promo_donation.ajankohtaista.heroblock {
       min-height: 800px;
    }
  }

/* YHTEYSTIEDOT VAIN SUOMI FOOTER */
.fi-footer:lang(en),
.fi-footer:lang(sv) {
	display: none;
}

/* KUAKU-114 */

@media screen and (min-width:900px) {
  .hero-video-container {
    height: 500px !important;
  }
}

/*KUAKU-92 LJN 20190119 mobiles > input field fix*/
#kirkonulkomaanapu-popup-email-input {
    max-width: calc(100% - 1em);
}
@media screen and (max-width: 400px) {
.kirkonulkomaanapu-popup .kirkonulkomaanapu-popup-email { 
	text-align:center !important;
    margin-left:initial !important;
    margin-bottom:10px !important;
}
#kirkonulkomaanapu-popup-email-input {
    width: 70% !important;
    position:relative !important;
    left:initial !important;
    bottom:initial !important;
}
.kirkonulkomaanapu-popup-button {
    position:relative !important;
    bottom:initial !important;
    right:initial !important;
	margin-bottom:25px !important;
}
}
/*END KUAKU-92 LJN 20190119 mobiles > input field fix*/
