/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */
body {
  color: #333;
}

.no-mobile {
  display: none;
}

#logo-div {
  display: block;
  background: url(../../img/demologo.png);
  width: 48px;
  height: 48px;
  text-align: center;
  margin-top: -30px;
}

a {
  text-decoration: none;
  color: #1b98f8;
}

/*
 * -- HELPER STYLES --
 * Over-riding some of the .pure-button styles to make my buttons look unique
 */
.primary-button,
.secondary-button {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-radius: 20px;
}
.primary-button {
  color: #fff;
  background: #1b98f8;
  margin: 1em 0;
}
.secondary-button {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 0.5em 2em;
  font-size: 80%;
}

/*
 * -- LAYOUT STYLES --
 * This layout consists of three main elements, `#nav` (navigation bar), `#list` (email list), and `#main` (email content). All 3 elements are within `#layout`
 */
#layout, #nav, #list, #main, #topPanel {
  margin: 0;
  padding: 0;
}

/* Custom top panels */
#topPanel {
  background-color: rgba(155, 70, 255, 0.5);
}
#messagePanel {
  background-color: rgba(70, 70, 255, 0.5);
}
#userPanel {
  background-color: rgba(70, 255, 70, 0.5);
}


/* Make the navigation 100% width on phones */

#nav {
  width: 100%;
  height: 60px;
  position: relative;
  // background: rgb(37, 42, 58);
  background: #b7b7b7;
  background: -moz-linear-gradient(top,  #b7b7b7 0%, #e2e2e2 29%, #e2e2e2 67%, #ffffff 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b7b7b7), color-stop(29%,#e2e2e2), color-stop(67%,#e2e2e2), color-stop(100%,#ffffff));
  background: -webkit-linear-gradient(top,  #b7b7b7 0%,#e2e2e2 29%,#e2e2e2 67%,#ffffff 100%);
  background: -o-linear-gradient(top,  #b7b7b7 0%,#e2e2e2 29%,#e2e2e2 67%,#ffffff 100%);
  background: -ms-linear-gradient(top,  #b7b7b7 0%,#e2e2e2 29%,#e2e2e2 67%,#ffffff 100%);
  background: linear-gradient(to bottom,  #b7b7b7 0%,#e2e2e2 29%,#e2e2e2 67%,#ffffff 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b7b7b7', endColorstr='#ffffff',GradientType=0 );

  text-align: center;
}
/* Show the "Menu" button on phones */
#nav .nav-menu-button {
  display: block;
  top: 0.5em;
  right: 0.5em;
  position: absolute;
  color: #666;
}
/* Edijs sin gradiente linje */
.gradient-line {
  display: block;
  height: 3px;
  margin: 5px;
  background: -moz-linear-gradient(left,  rgba(255,255,255,0) 0%, rgba(102,102,102,0.5) 25%, rgba(102,102,102,0.6) 50%, rgba(102,102,102,0.5) 75%, rgba(237,237,237,0) 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(25%,rgba(102,102,102,0.5)), color-stop(50%,rgba(102,102,102,0.6)), color-stop(75%,rgba(102,102,102,0.5)), color-stop(100%,rgba(237,237,237,0)));
  background: -webkit-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(102,102,102,0.5) 25%,rgba(102,102,102,0.6) 50%,rgba(102,102,102,0.5) 75%,rgba(237,237,237,0) 100%);
  background: -o-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(102,102,102,0.5) 25%,rgba(102,102,102,0.6) 50%,rgba(102,102,102,0.5) 75%,rgba(237,237,237,0) 100%);
  background: -ms-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(102,102,102,0.5) 25%,rgba(102,102,102,0.6) 50%,rgba(102,102,102,0.5) 75%,rgba(237,237,237,0) 100%);
  background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(102,102,102,0.5) 25%,rgba(102,102,102,0.6) 50%,rgba(102,102,102,0.5) 75%,rgba(237,237,237,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ededed',GradientType=1 );

}

/* When "Menu" is clicked, the navbar should be 80% height */
#nav.active {
  height: 80%;
}
/* Don't show the navigation items... */
.nav-inner {
  display: none;
}

/* ...until the "Menu" button is clicked */
#nav.active .nav-inner {
  display: block;
  padding: 2em 0;
}

/*
 * -- NAV BAR STYLES --
 * Styling the default .pure-menu to look a little more unique.
 */
#nav .pure-menu {
  background: transparent;
  border: none;
  text-align: center;
}
#nav .pure-menu-link:hover,
#nav .pure-menu-link:focus {
  color: rgb(55, 60, 90);
}
.glyphicons.x2 {
  font-size: 30px;
  padding: 5px;
}

.clear {
  display: block;
  clear: right;
}
#nav .pure-menu-link {
  text-align: center;
  color: #666;
  margin: 0.1em;
  font-size: 12px;
  line-height: 24px;
  padding: 0.1em;
}
#nav .pure-menu-link.attention,
#nav .pure-menu-link.attention:hover,
#nav .pure-menu-link.attention:visited {
  color: #F00;
}
#nav .pure-menu-heading {
  border-bottom: none;
  font-size: 110%;
  color: rgb(75, 113, 151);
}

/*
 * -- EMAIL STYLES --
 * Styles relevant to the email messages, labels, counts, and more.
 */
.email-count {
  color: rgb(75, 113, 151);
}

.email-label-personal,
.email-label-work,
.email-label-travel {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 0.5em;
  border-radius: 3px;
}
.email-label-personal {
  background: #ffc94c;
}
.email-label-work {
  background: #41ccb4;
}
.email-label-travel {
  background: #40c365;
}

/* Email Item Styles */
.email-item {
  padding: 0.9em 1em;
  border-bottom: 1px solid #ddd;
  border-left: 6px solid transparent;
}
.email-avatar {
  border-radius: 3px;
  margin-right: 0.5em;
}
.email-name,
.email-subject {
  margin: 0;
}
.email-name {
  text-transform: uppercase;
  color: #999;
}
.email-desc {
  font-size: 80%;
  margin: 0.4em 0;
}

.email-item-selected {
  background: #eee;
}
.email-item-unread {
  border-left: 6px solid #1b98f8;
}

/* Email Content Styles */
.email-content-header, .email-content-body, .email-content-footer {
  padding: 1em 2em;
}
.email-content-header {
  border-bottom: 1px solid #ddd;
}

.email-content-title {
  margin: 0.5em 0 0;
}
.email-content-subtitle {
  font-size: 1em;
  margin: 0;
  font-weight: normal;
}
.email-content-subtitle span {
  color: #999;
}
.email-content-controls {
  margin-top: 2em;
  text-align: right;
}
.email-content-controls .secondary-button {
  margin-bottom: 0.3em;
}

.email-avatar {
  width: 40px;
  height: 40px;
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 40em) {
  .only-mobile {
    display: none;
  }
  .no-mobile {
    display: inline-block;
  }
  #logo-div {
    display: block;
    background: url(../../img/demologo.png) 50% 50% no-repeat;
    height: 176px;
    width: 100%;
    text-align: center;
    margin-top: 0px;
  }
  /* Move the layout over so we can fit the nav + list in on the left */
  #layout {
    padding-left:650px; /* "left col (nav + list)" width */
    position: relative;
  }

  /* These are position:fixed; elements that will be in the left 500px of the screen */
  #nav, #list {
    position: fixed;
    top: 0;
    bottom: 0;
    overflow: auto;
  }
  #list {
    top: 110px;
  }

  #topPanel {
    position: fixed;
    display: block;
    margin: 0px;
    margin-left: -350px;
    height: 110px;
  }
  #messagePanel {
    height: 80px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
  }
  #userPanel {
    height: 80px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
  }

  #nav {
    margin-left:-650px; /* "left col (nav + list)" width */
    width:300px;
    height: 100%;
  }

  /* Show the menu items on the larger screen */
  .nav-inner {
    display: block;
    padding: 0;
  }

  /* Hide the "Menu" button on larger screens */
  #nav .nav-menu-button {
    display: none;
  }
  #list {
    margin-left: -350px;
    width: 100%;
    height: 33%;
    border-bottom: 1px solid #ddd;
  }

  #main {
    position: fixed;
    top: 33%;
    right: 0;
    bottom: 0;
    left: 300px;
    overflow: auto;
    width: auto;
    margin-top: 110px;
    /* so that it's not 100% */
  }

}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 60em) {

  /* This will take up the entire height, and be a little thinner */
  #list {
    margin-left: -350px;
    width:350px;
    height: 100%;
    border-right: 1px solid #ddd;
  }
  #topPanel {
    width: 100%;
    display: block;
    margin: 0px;
    margin-left: -350px;
    height: 110px;
  }
  #messagePanel {
    height: 80px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
  }
  #userPanel {
    height: 80px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
  }
  /* This will now take up it's own column, so don't need position: fixed; */
  #main {
    position: static;
    margin: 0;
    margin-top: 110px;
    margin-left: -350px;
    padding: 0;
  }
}


#topPanel, #messagePanel, #userPanel, #lastmessagePanel {
  color: #FFF;
  background-color: #EEE;
}