/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require_tree .
 */

/* apply a natural box layout model to all elements */
/* http://paulirish.com/2012/box-sizing-border-box-ftw/ */
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

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

@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700|Oswald);

html {
  color: $black;
  font-size: 10px;
}

// Formats debug_dump box 
.debug_dump {
  clear: both;
  float: left;
  width: 100%;
  margin-top: 45px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

body {
  background: $white;
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  margin: 0;
  padding: 0;
}

/* since we don't have bootstrap on this site yet */

a {
  text-decoration: none;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.sm-hidden {
  display: none;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    width: 100%;
  }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }

  .sm-hidden {
    display: inline-block;
  }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.navbar {
  border: 1px solid transparent;
  min-height: 50px;

  .navbar-container {
    margin-left: 1em;
  }
}

.navbar-default {
  background-color: $vlight-gray;
  border-color: #e7e7e7;
}

.navbar-header {
  display: inline-block;
}

.navbar-brand {
  color: $gray;
  font-size: 18px;
  margin-left: -15px;
  padding: 7px 15px;
  height: 50px;

  .bkc {
    height: 36px;
    margin-right: 1em;
  }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .navbar-brand {
    display: inline;
  }
}

.navbar-collapse {
  display: inline-block;
  float: right;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-collapse {
    float: none;
    position: absolute;
    right: 0;
  }
}

.navbar-right {
  float: right;
}

.nav {
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;

  li {
    display: block;
    float: left;
    position: relative;

    a {
      color: #777;
      padding: 15px;
      position: relative;
      text-decoration: none;
    }
  }
}

/* IM main navigation */

.im-nav {
  background-color: #444;
  height: 41px;
  margin-bottom: 0px;
  min-height: 41px;

  .im-nav-links {
    margin: 0;
    padding: 0;
    white-space: nowrap;

    li {
      display: inline-block;
      list-style: none;
      margin: 0;
      overflow: hidden;
      text-align: center;
      width: 33%;

      &.active {
        background: #555;
      }

      &:nth-child(1):hover {
        background: #f15c23;
      }

      &:nth-child(2):hover {
        background: #5ec1a5;
      }

      &:nth-child(3):hover {
        background: #aaa04e;
      }

      a {
        color: $white;
        display: block;
        font-family: "Oswald";
        font-size: 1.3em;
        height: 40px;
        padding-top: 0.3em;
        text-decoration: none;
        width: 100%;
      }
    }
  }
}

/* IM Home navigation */

.navbar .container {
  position: relative;
  white-space: nowrap;
}

.im-home-nav {
  margin: 0;
  .logo-image {
    background: url("imon_site_logo_small.png");
    display: inline-block;
    height: 36px;
    margin-top: 8px;
    width: 232px;
  }

  .logo-image:hover {
    background-position: 0 -36px;
  }
  
  .nav {
    margin-top: 12px;

    li {
      a {
        font-size: 1.2em;

      }
    }
  }

}

h2.expandable {
  cursor: pointer;
  user-select: none;
}

h2.expandable:after, .data-nav-countries:after {
  content: "►";
  display: inline-block;
  margin-left: 2px;

  @include transition-transform;
}

h2.expandable.expanded:after, .data-nav-countries.expanded:after {
  transform: rotate(90deg);
}

/* Other content */

h1, h2, h3 {
  font-family: 'Roboto Condensed', sans-serif;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.6em;
}

h3 {
  font-size: 1.2em;
}

h4 {
  text-decoration: underline;
}

h1.head-banner, h1#body_content_title {
  color: $white;
  font-size: 2.5em;
  font-weight: normal;
  line-height: 2em;
  margin: 0;
  padding: .25em 1em;
}

.main-content {
  background: $white;
  padding: 0;
}

.sub-content {
  padding: .5em 1em;
}

footer {
  background: $dark-gray;
  margin: 0;
  padding-bottom: 4px;
  position: relative;

  .footer-logo {
    height: 32px;
    left: 8px;
    top: 4px;
    position: absolute;
  }

  a.berkman-link {
    display: inline-block;
    left: 56px;
    height: 32px;
    top: 4px;
    position: absolute;
  }

  nav {
    text-align: center;

    ul {
      display: inline-block;
      margin: 0;

      li {
        color: #fefefe;
        display: inline-block;
        font-size: .6em;
        font-weight: bold;
        list-style-type: none;
        margin: 0 2em 0 0;
        text-transform: uppercase;

        a, a:visited {
          color: #fefefe;
          text-decoration: none;
        }

        a:hover {
          color: #F15C23;
        }
      }
    }
  }

  .cc {
    color: $white;
    display: block;
    font-size: .7em;
    padding: 0;
    text-align: center;

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

    a:hover {
      color: #F15C23;
    }
  }
}
