/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

/* ========================================================================
   Use this file to add custom CSS easily
 ========================================================================== */

/* Logo footer */
.tm-footer .tm-logo-footer { margin-top: -10px; }



/* fix display mode for logo on tablet & mobile */
a.tm-logo-small {
  display: inline-block;
}


/* center footer properly */
.tm-footer .uk-subnav {
  width: 100%;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex; 
  margin-left: 0;
  justify-content: center;
}

.tm-subnav-footer > li {
  width: 33.3333%;
}

/* blog search button */
#searchsubmit {
  width: auto;
  margin: 0;
  border: none;
  overflow: visible;
  background-color: #2196f3 ;
  color: #ffffff ;
  display: inline-block;
  box-sizing: border-box;
  padding: 0 9px;
  vertical-align: top;
  line-height: 33px;
  min-height: 33px;
  font-size: 12px !important;
  font: inherit;
  text-decoration: none;
  text-align: center;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 400 !important;
  text-transform: uppercase;
  border-radius: 40px;
}


/* TABLET STUFF */

@media (min-width: 768px) and (max-width: 959px) {
  a.tm-logo-small {
    margin-left: -52px;
    position: relative;
    top: -10px;
  }
  
  a.tm-logo-small img {
    width: 140px;
    height: auto;
  }  
  
  nav.tm-navbar .uk-navbar-content {
    height: 100px;
  }
  
  .tm-grid-divider > div:nth-child(3) {
    clear: both;
  }
  
  .tm-grid-divider > div {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 0;
  }
  
  .tm-grid-divider > div:nth-child(2n+1) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .tm-grid-divider > div:nth-child(1n+3) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }  
}

/* MOBILE STUFF */

@media (max-width: 480px) {
  .uk-article .uk-margin h1 {
      font-size: 30px;
      line-height: 36px;
  }
  div#tm-main h2 {
    font-size: 26px;
    line-height: 30px;
  }
  
  div#tm-main h3 {
    font-size: 22px;
    line-height: 24px;
  }  
}

/* tablet & mobile */

@media (max-width: 959px) {
  
  .tm-toolbar {
    height: auto;
  }
  
  .tm-grid-divider > div:nth-child(n+2):not(.uk-width-1-1) {
    border-left: none;
    padding-top: 20px;
  }
  
  #wp-wrapper {
    margin: 0;
    padding: 0;
  }
  
  #wp-content {
    margin: 0;
  }
  
  #wp-content img {
    max-width: 100%;
  }
  
  #primary, 
  #secondary {
    float: none;
    width: 100%;
  }
}