/* ==========================================================================
   Nick Bostrom.com styles
   ========================================================================== */

/**
 * Body
 */

body {
  padding-bottom: 50px;
}

/**
 * Typography
 */

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1 {
  margin-top: 0;
  font-size: 2.25rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h3:first-child,
h3:first-child {
  margin-top: 0 !important;
}

h4 {
  font-size: .93rem;
  margin-bottom: 0.1rem;
  line-height: 1.1;
}

/* Horizontal dividing rule */
hr {
  border-top: 1px solid #000;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Body text */

html {
  font-size: 14px;
}


@media screen and (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}

body {
  /*font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana, 'sans-serif';*/
  /*font-family: 'Times New Roman', Times, serif;*/
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-size: 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-white {
  color: #fff;
}

.lead {
  font-size: 1.25rem;
}

/* Blockquote */

blockquote {
  border-left: none;
  margin-bottom: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}

blockquote,
blockquote p {
  font-size: 0.9rem;
}

/* Lists */
.no-bullet {
  list-style: none;
  padding-left: 0;
}

ul {
  padding-left: 1.25rem;
}

/* Definition lists */

dt {
  font-weight: 700;
}

/* Links */

a {
  text-decoration: underline;
}

/**
 * Images
 */

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

/**
 * Layout components
 */

.site-header {
  margin-top: 15px;
  /*background-color: #5D5D5D;*/
  background-color: #3E3E3E
}

.col-site-header__title {
  padding-top: 15px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 15px;
  letter-spacing: 0.25px;

  font-family: sans-serif;
}

.site-header__affiliations {
  margin-bottom: 15px;
  display: none;
}

.site-header__affiliation-logo {
  width: 75px;
  margin-top: 10px;
  height: auto;
  float: left;
}

.site-header__affiliation-logo + .site-header__affiliation-logo {
  margin-left: 10px;
}

@media screen and (min-width: 1200px) {
  .site-header__affiliations {
    display: inline-block;
    float: right;
  }
}

@media screen and (min-width: 768px) {
  .col-site-header__title {
    padding-top: 0;
    margin-left: 50%;
    height: 100%;
    position: absolute;
  }

  /* Vertically align site header text */
  .site-header > .row {
    position: relative;
  }

  .site-header__title {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding-left: 15px;
    padding-right: 45px;
  }

  .site-header__job-title {
    margin-top: 1.5rem;
	line-height: 150%;
  }
}
@media screen and (min-width: 992px) {
  .col-site-header__title {
    margin-left: 33.33333333%;
  }

  .site-header__title {
    padding-left: 30px;
    padding-right: 60px;
	color: white;
  }
}

.nick-bostrom-portrait {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url(../nick-bostrom.jpg);
  background-size: cover;
  background-position: center center;
}

.updates {
  padding-bottom: 1.5rem;
}

.updates h3 {
  padding-top: 1.5rem;
}

.updates {
  padding-left: 15px;
  padding-right: 15px;
}

.section-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.selected-papers {
  padding-bottom: 3rem;
}

.selected-papers h3,
.everything-else h3,
.about h3 {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.everything-else {
  padding-top: 3rem;
}

article {
  margin-bottom: 1rem;
  display: block;
  overflow: hidden;
}

article p + footer {
  margin-top: -6px;
}

article footer {
  color: #aaa;
}

@media screen and (min-width: 1200px) {
  article footer {
    font-size: 0.85rem;
  }
}

.book__cover,
.header__image {
  display: inline-block;
  float: left;
  width: 25%;
  margin-right: 15px;
  margin-bottom: 15px;
}

.header__image {
  width: auto;
  margin-right: 10px;
  margin-bottom: 5px;
}

.book__cover img,
.header__image img {
  width: 100%;
  height: auto;
}

/* Responsive video embeds */
.embed-responsive {
  margin-bottom: 0.5rem;
}

/* Wells */

.well {
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 12px;
}

.well:last-child {
  margin-bottom: 0 !important;
}

/**
 * Helper classes
 */

.bg-gray {
  background-color: lightgray;
}

.bg-gray-light {
  background-color: #E5E5E5;
}

.bg-gray-lighter {
  background-color: #fafafa;
}

/*
 * The about section panels need some special treatment so that
 * all three columns have the same height.
 */

@media only screen and (min-width : 992px ) {

  .about > .row > div {
    padding-left: 0;
    padding-right: 0;
  }

  .about .well {
    margin-bottom: 2%;
  }

  .well-bio,
  .well-crucial-considerations {
    width: 96%;
    margin-left: 2%;
  }

  .well-background,
  .well-contact {
    position: relative;
    width: 96%;
    height: 100%;
    top: 0;
    left: 2%;
  }

  .wrap-well-background,
  .wrap-well-contact {
    position: relative;
    width: 100%;
    height: 100%;
  }
}

/*
 * Make a Bootstrap row behave like a table, so that all
 * the columns are forced to the same height.
 */

@media only screen and (min-width : 992px ) {
  .row-table {
    display: table;
  }

  .row-table [class*="col-"] {
    float: none;
    display: table-cell;
    vertical-align: top;
  }
}

/**
 * Dashed borders on center column and headings in the "Selected papers"
 * and "Everything else" sections.
 */

.selected-papers h3:not(:first-child),
.everything-else h3:not(:first-child) {
  border-top: 1px dashed #aaa;
  padding-top: 3px;
  display: inline-block;
}

@media only screen and (max-width : 992px ) {
  .selected-papers .col-md-4:not(:first-child) h3 {
    border-top: 1px dashed #aaa;
    padding-top: 3px;
    display: inline-block;
  }
}

/* Center align the bordered section headings (which are inline-block elements). */
.selected-papers .col-md-4,
.everything-else .col-md-4 {
  text-align: center;
}

.selected-papers article,
.selected-papers blockquote,
.everything-else article,
.everything-else blockquote {
  text-align: left;
}

@media only screen and (min-width : 992px ) {
  .selected-papers .col-md-4:nth-child(2),
  .everything-else .col-md-4:nth-child(2) {
    border-left: 1px dashed #aaa;
    border-right: 1px dashed #aaa;
  }
}

/**
 * Add breakpoints for larger screens
 */

@media screen and (min-width: 1400px) {
  .container {
    width: 1370px;
  }
}

@media screen and (min-width: 1600px) {
  .container {
    width: 1570px;
  }
}
