/**
 * IEEE Academic 2014
 */

body {
  background: url('./img/background.jpg') repeat fixed;
  font-family: "Noto Sans", "Noto Sans Bengali", "Noto Nastaliq Urdu", "Harmattan", sans-serif;
  line-height: 150%;
}
body[data-type=home] {
  background: url('./img/background-inv.jpg') repeat fixed;
}

a:hover {
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
}

#IEEEsites {
  background-color: #ababab;
  color: black;
  display: block;
  font-size: 80%;
  margin-bottom: 0;
  text-align: center;
}
#IEEEsites li {
  display: inline;
}
#IEEEsites li:not(:first-child):before {
  content: ' | ';
}
#IEEEsites a {
  color: #5a5a5a;
}

#banner-logo {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 15px;
}
#banner-logo img {
  max-width: 200px;
  min-width: 150px;
  width: 26vw;
  vertical-align: text-bottom;
}

#logo {
  display: inline-block;
  max-width: 350px;
}
#logo img {
  vertical-align: text-bottom;
}


[role="banner"] {
  margin: 0 0 25px 0;
  padding: 15px 20px 0 20px;
}
[role="banner"].global {
  background: url('./img/background.jpg') repeat fixed;
  color: #1c1c1c;
}
[role="banner"].local, .breadcrumb {
  background: #eee;
  background: rgba(170, 170, 170, .2);
}
[role="banner"] .nav li {
  font-size: small;
  text-transform: uppercase;
}
[role="banner"] nav {
  float: right;
  margin-top: -10px;
}
[role="banner"] .nav-tabs {
  border: none;
}
[role="banner"] .nav-tabs > li > a:hover {
  border: 1px solid transparent
}
[role="banner"] .nav-tabs a {
  color: #1c1c1c;
}
[role="banner"] .nav-tabs a:hover {
  background-color: inherit;
  color: #f8c620;
}
[role="banner"] nav form {
  padding-top: 7px;
  padding-bottom: 15px;
}

#whybeta {
  margin-right: -4.6em;
  margin-top: 20%;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}
#whybeta:hover {
  margin-right: -4em;
}
#whybeta a {
  background-color: #5c5c5c;
  background-color: rgba(0, 0, 0, .639);
  color: #eac539;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
#whybeta a:hover {
  background-color: #ababab;
  background-color: rgba(135, 135, 135, .7);
  border-color: #64696d;
  color: #2a6496;
}

main {
  line-height: 180%;
  padding-left: 30px;
  padding-right: 30px;
}
main:after {
  clear: both;
  content: " ";
  display: table;
}

h2 {
  line-height: 140%;
  text-align: center;
}

.breadcrumb {
  border-radius: 0;
  margin: 5px 0;
  padding: 5px;
  text-align: center;
}

.well {
  background: rgba(230, 230, 230, .4);
}

main[data-type="home"] div {
  text-align: center;
}

main[data-type="error"] div {
  font-size: 100%;
  line-height: 180%;
  margin-top: 50px;
  text-align: center;
}
main[data-type="error"] div button {
  margin-top: 40px;
}

main[data-type="search"] article {
  padding-bottom: 15px;
  padding-top: 15px;
}

main[data-type="initiatives"] div div {
  padding-bottom: 15px;
  padding-top: 15px;
  text-align: center;
}
main[data-type="initiatives"] a:not(:hover) {
  -moz-opacity: .9;
  -webkit-opacity: .9;
  opacity: .9;
}
main[data-type="initiatives"] .inactive {
  -moz-opacity: .4;
  -webkit-opacity: .4;
  opacity: .4;
}

main[data-type="contents"] section h3 {
  margin: 0;
  text-align: center;
}
main[data-type="contents"] section h4 {
  color: gray;
  font-size: 120%;
  text-align: center;
}
main[data-type="contents"] section li, section[data-type="contents"] li {
  display: block;
}
main[data-type="contents"] section ul, section[data-type="contents"] ul {
  margin: inherit;
  padding-left: 0;
}

main[data-type="book"] {
  counter-reset: chapter;
}
main[data-type="book"] .metadata {
  text-align: center;
}
main[data-type="book"] h3:before {
  content: counter(chapter) ". ";
  counter-increment: chapter;
}
main[data-type="book"] h3 {
  counter-reset: item;
  text-align: center;
}
main[data-type="book"] li {
  display: block;
}
main[data-type="book"] li:before {
  content: counter(chapter) "." counter(item) ". ";
  counter-increment: item;
}

main[data-type="chapter"] {
  counter-reset: item;
}
main[data-type="chapter"] .metadata {
  text-align: center;
}
main[data-type="chapter"] article {
  padding-bottom: 15px;
  padding-top: 15px;
}
main[data-type="chapter"] h3:before {
  content: counter(item) ". ";
  counter-increment: item;
}

main[data-type="module"] .metadata {
  text-align: center;
}
main[data-type="module"] div.row {
  padding-bottom: 15px;
  padding-top: 15px;
}

main[data-type="contactus"] {
  margin-bottom: 60px;
  margin-top: 60px;
}

main[data-type="contactus"], main[data-type="whybeta"] .buttons, main .buttons {
  text-align: center;
}

.logoflex {
  -ms-flex-line-pack: start;
      align-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  margin: 0 -30px;
}
.logoflex.row {
  -ms-flex-pack: distribute;
      justify-content: space-around;
}
.logoflex div {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 10vw;
          flex: 0 1 10vw;
  max-width: 50vw;
}

img.logo {
  max-height: 120px;
  max-width: 180px;
  margin: 30px;
}

.paginator {
  text-align: center;
}

.snippet {
  max-height: 9em;
  overflow: hidden;
  position: relative;
}
.snippet .fader {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(30%, rgba(255, 255, 255, 0)), color-stop(90%, white));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 30%, white 90%);
  height: 100%;
  position: absolute;
  width:100%;
  z-index: 1;
}
.snippet .fader div {
  bottom: 0;
  position: absolute;
}
.snippet h3 {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.social-media-icons a {
  word-spacing: 18px;
}

.video-container {
  height: 0;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 56.25%;
}
.video-container iframe, .video-container video {
  left: 0;
  height: 100%;
  padding: 0 15px;
  position: absolute;
  top: 0;
  width: 100%;
}
.video-container img {
  margin-top: -9.375%;
  width: 100%;
}
.bleed, .bleed .video-container iframe {
  padding: 0;
}

.table-striped > tbody > .level-fatal:nth-child(2n+1) > td,
.table-striped > tbody > .level-fatal:nth-child(2n+1) > th  {
  background-color: #fcc;
}
.level-fatal {
  background-color: #fdd;
}
.table-striped > tbody > .level-error:nth-child(2n+1) > td,
.table-striped > tbody > .level-error:nth-child(2n+1) > th  {
  background-color: #fdb;
}
.level-error {
  background-color: #fec;
}
.table-striped > tbody > .level-warn:nth-child(2n+1) > td,
.table-striped > tbody > .level-warn:nth-child(2n+1) > th  {
  background-color: #ffc;
}
.level-warn {
  background-color: #ffd;
}

.copyright {
  margin: 30px;
  text-align: center;
}

footer.row {
  background-color: #1c1c1c;
  font-size: 85%;
  margin: 20px 0 0;
  padding-bottom: 0;
  text-align: center;
}
footer h2 {
  color: #eee;
  font-size: 200%;
}
footer ul {
  padding: 0;
}
footer li {
  list-style-type: none;
}
footer a {
  color: #f8c620;
}
footer a:hover {
  color: #2a6496;
}
footer a:hover .btn {
  color: #2a6496;
  background-color: #ababab;
}
footer button {
  background-color: #5c5c5c;
}
footer .social-media-icons {
  text-align: left;
}
footer a .icon-3x:not(:hover) {
  color: #eee;
}


/* Dashboard and marketing */

#headlight {
  margin: 100px 0 50px;
}

.head-title {
  color: #f8c620;
  line-height: 180%;
}

.head-subtext {
  color: #d6d6d6;
  font-size: 140%;
  line-height: 180%;
  margin-bottom: 30px;
}

.nav-table {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 0;
}
.nav-table * {
  margin-bottom: 5px;
  margin-top: 5px;
}

.nav-table a {
  color: #1c1c1c;
}
.nav-table a .btn {
  background-color: #f8c620;
}
.nav-table > span {
  color: #8d8d8d;
  padding: 0 1em;
  text-transform: uppercase;
}
.nav-table .input-lg {
  height: 46px;
  font-size: 14px;
}
.nav-terms {
  color: #b9b9b9;
  font-size: 8pt;
  height: 0;
  line-height: 140%;
  margin: 0px 2px;
  overflow: visible;
  text-align: left;
}

#dashboard {
  color: #eee;
  padding-bottom: 60px;
  margin: 60px 0;
}
#dashboard h2 {
  font-size: 160%;
  margin: 0;
}
#dashboard p {
  color: #8d8d8d;
}

#marketing {
  background: url('./img/background.jpg') repeat fixed;
  padding: 40px 30px 50px;
}
#marketing u {
  border-bottom: solid 4px #f8c620;
  text-decoration: none;
}
#marketing h3 {
  margin-bottom: 0;
  margin-top: 0;
}
#marketing p {
  font-size: 120%;
  line-height: 30px;
}
#marketing section {
  margin-bottom: 60px;
}

#marketing-first h2 {
  margin-top: 0;
  text-align: left;
}

#marketing-featured h2 {
  margin-bottom: 20px;
  margin-top: 0;
  text-transform: uppercase;
}
#marketing-featured p {
  font-size: 80%;
  line-height: 30px;
}
#marketing-featured .author, #marketing-featured .language {
  color: gray;
  margin: 0;
}

.nav-browsemore {
  margin-top: 20px;
  margin-bottom: 20px;
}
.nav-browsemore .btn {
  background-color: #f8c620;
  color: #1c1c1c;
}

#marketing-browsemore {
  background: url('./img/background-inv.jpg') repeat fixed;
  color: #d6d6d6;
  margin-left: -30px;
  margin-right: -30px;
  padding-left: 30px;
  padding-right: 30px;
  text-align: center;
}

#marketing-impressions {
  text-align: center;
}

.authorimage {
  border-radius: 50%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 250px;
  overflow: hidden;
}
.authorimage img {
  height: auto;
  width: 100%;
}

main[data-type=home] ~ .copyright {
  color: #b9b9b9;
}

footer h2, footer ul {
  text-align: left;
}

.footer_desc {
  color: #eee;
  margin-top: 20px;
  text-align: left;
}
.footer_desc img {
  margin-bottom: 10px;
  max-width: 200px;
  width: 26vw;
}


/* Animated Search */

nav form[role=search] {
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#regular_navigation form[role=search] {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}
#mobile_navigation form[role=search] {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
  max-width: 80vw;
  padding-left: 16px;
  padding-right: 16px;
  width: 350px;
}

nav form[role=search] .icon-search {
  color: #777;
  font-size: 120%;
  line-height: 180%;
  margin-right: -24px;
  pointer-events: none;
  z-index: 2;
}
.nav-table form[role=search] .icon-search {
  margin-left: 16px;
  margin-right: -16px;
  width: 0;
}

nav input::-webkit-search-decoration,
nav input::-webkit-search-cancel-button {
  display: none;
}

nav form[role=search] input[type=search] {
  outline: none;
  -webkit-appearance: textfield;
  -webkit-box-sizing: content-box;
  font-family: inherit;
  font-size: 100%;

  background: #ededed;
  border: solid 1px #ccc;
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
  padding: 6px 0px 6px 32px;
}
header form[role=search] input[type=search] {
  width: 0;
  border-radius: 10em;

  -webkit-transition: all .5s;
  transition: all .5s;
}
.nav-table form[role=search] input[type=search] {
  padding: 6px 12px 6px 40px;
}
nav form[role=search] input[type=search]:focus {
  background-color: #fff;
  border-color: #eac539;
  -webkit-box-shadow: 0 0 10px rgba(248, 198, 32, .5);
  box-shadow: 0 0 10px rgba(248, 198, 32, .5);
  width: 100%;
}

nav input:-moz-placeholder {
  color: #999;
}
nav input::-webkit-input-placeholder {
  color: #999;
}


/* Hamburger menu */

#menuToggle {
  position: relative;
  right: 15px;
  top: 15px;

  z-index: 1;

  -webkit-user-select: none;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
}

#menuToggle > input {
  position: absolute;

  display: block;
  height: 32px;
  left: -5px;
  top: -7px;
  width: 40px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

#menuToggle span {
  position: relative;

  display: block;
  height: 4px;
  margin-bottom: 5px;
  width: 33px;

  background: #cdcdcd;
  border-radius: 3px;

  z-index: 1;

  -webkit-transform-origin: 4px 0px;
          transform-origin: 4px 0px;

  -webkit-transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              opacity 0.55s ease,
              -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);

  transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              opacity 0.55s ease,
              -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              opacity 0.55s ease;

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
              opacity 0.55s ease,
              -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menuToggle span:nth-of-type(1) {
  -webkit-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
}
#menuToggle span:nth-of-type(3) {
  -webkit-transform-origin: 0% 100%;
          transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  background: #232323;
  opacity: 1;
  -webkit-transform: rotate(45deg) translate(-2px, -1px);
          transform: rotate(45deg) translate(-2px, -1px);
}
#menuToggle input:checked ~ span:nth-of-type(2) {
  opacity: 0;
  -webkit-transform: rotate(0deg) scale(0.2, 0.2);
          transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-of-type(3) {
  -webkit-transform: rotate(45deg) translate(0, -1px);
          transform: rotate(45deg) translate(0, -1px);
}
#menuToggle input:checked ~ ul {
  -webkit-transform: scale(1.0, 1.0);
          transform: scale(1.0, 1.0);
  opacity: 1;
}

#menu {
  position: absolute;

  right: -35px;
  margin: -100px 0 0 -350px;
  padding: 125px 50px 50px;
  max-width: 100vw;

  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased; /* to stop text flickering in safari */

  -webkit-transform-origin: 100% 0%;
          transform-origin: 100% 0%;
  -webkit-transform: scale(0.0, 1.0);
          transform: scale(0.0, 1.0);

  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
#menu li {
  padding: 0;
  width: 100%;
}
