@import "colors";
@import "mixins";

@media (min-width: 992px) {
  body.home {
    .im-home-nav {
      min-height: 112px;
      height: 112px;

      .bkc {
        display: none;
      }

      .logo-image {
        background: url("im_site_logo_hover.png");
        display: inline-block;
        height: 100px;
        width: 439px;
      }

      .logo-image:hover {
        background-position: 0 -100px;
      }

      .nav {
        margin-top: 40px;
      }
    }

  }
}

@media (min-width: 1400px) {
  body.home {
    .im-home-nav {
      .bkc {
        display: block;
        height: 100px;
        left: -128px;
        position: absolute;
        top: 12px;
      }
    }
  }
}

$block-link-width: 360px;
$block-link-icon-size: 128px;
$block-link-padding: 12px;

body.home {
  .main-content {
    white-space: nowrap;

    &>div, &>p, &>section {
      white-space: normal;
    }
  }

  .block-links {
    text-align: center;

    .block-link {
      background: $gray;
      border-radius: 6px;
      color: $white;
      display: inline-block;
      height: $block-link-icon-size;
      margin: $block-link-padding / 2;
      overflow: hidden;
      position: relative;
      width: $block-link-width;

      .block-link-icon {
        background: $dark-gray;
        @include transition-bg;

        display: block;
        float: left;
        height: $block-link-icon-size;
        padding: $block-link-padding;
        width: $block-link-icon-size;

        .block-link-icon-bg {
          background-image: url("block_links.png");
          
          display: block;
          height: $block-link-icon-size - ( $block-link-padding * 2 );
          width: $block-link-icon-size - ( $block-link-padding * 2 );

          &.countryviews {
            background-position: 0 0;
          }

          &.dashboard {
            background-position: -104px 0;
          }

          &.accesscheck {
            background-position: -208px 0;
          }
          
          &.research {
            background-position: 0 -104px;
          }

          &.data {
            background-position: -104px -104px;
          }

          &.bulletins {
            background-position: -208px -104px;
          }
        }
      }

      .block-link-body {
        display: block;
        float: left;
        height: $block-link-icon-size;
        overflow: hidden;
        padding: $block-link-padding;
        width: $block-link-width - $block-link-icon-size - 2px;

        .block-link-header {
          margin: 0;
          padding: 0;
          text-transform: uppercase;
        }
      }
    }

    a:hover .block-link {
      .block-link-icon {
        background-color: $violet;

        &.countryviews {
          background-color: $orange;
        }

        &.dashboard {
          background-color: $cyan;
        }

        &.accesscheck {
          background-color: $gold;
        }

        &.data {
          background-color: $violet;
        }

        &.bulletins {
          background-color: $cyan;
        }
      }

      .block-link-body {
        .block-link-header {
          text-decoration: underline;
        }
      }
    }
  }

  h2 {
    color: lighten( $gray, 10% );
    font-size: 1.8em;
    font-style: italic;
    font-weight: normal;
  }

  .blog-posts{
    display: inline-block;
    margin: 0 2em;
    padding-bottom: 5em;
    vertical-align: top;
    width: 55%;
    h4{
      margin: 0px;
    }

    .recent_post{
      margin-bottom: 1em;
      h1{
        margin-bottom: 0px;
      }
      time {
        font-size: 0.8em;
      }
    }
    a {
      color: #617085;
      font-weight: bold;
      text-decoration: none;
    }
  }

  section.twitter {
    border-left: 2px solid $light-gray;
    display: inline-block;
    margin: 0;
    padding: 0 0 5em 2em;
    vertical-align: top;
    width: 35%;

    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    li {
      color: $black;
      font-size: .9em;
      line-height: 1.5em;
      margin: 1.5em 0;
    }

    a, a:visited {
      color: $violet;
      text-decoration: none;

      &:hover {
        color: $orange;
      }
    }

    .follow {
      background: url("imon_logo_twitter.png") no-repeat right;
      display: inline-block;
      float: right;
      height: 32px;
      padding-right: 40px;
      padding-top: 8px;

      span {
        color: $gray;
        font-weight: bold;
        margin-right: .5em;
      }
    }
  }
}

