/*
 * Globals
 */

:root{
    --sbs-pink: rgb(234, 82, 245);
    --sbs-blue: rgb(113, 184, 250);
    --sbs-purple: rgb(129, 127, 228);
    --sbs-white: rgb(255, 255, 255);
    --sbs-blue-contrast: #242424;
    --sbs-purple-contrast: #0A0A0A;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #555;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    margin-top: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: var(--sbs-purple);
}


/*
 * Override Bootstrap's default container.
 */

@media (min-width: 1200px) {
    .container {
        width: 970px;
    }
}

/*
 * Masthead for nav
 */

.blog-masthead {
    background-color: var(--sbs-blue);
    -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
    box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}

/* Nav links */
.blog-nav-item {
    position: relative;
    display: inline-block;
    padding: 10px;
    font-weight: 500;
    color: var(--sbs-blue-contrast);
}
.blog-nav-item:hover,
.blog-nav-item:focus {
    color: var(--sbs-pink);
    text-decoration: none;
}

/* Active state gets a caret at the bottom */
.blog-nav .active {
    color: #fff;
}
.blog-nav .active:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -5px;
    vertical-align: middle;
    content: " ";
    border-right: 5px solid transparent;
    border-bottom: 5px solid;
    border-left: 5px solid transparent;
}

.blog-nav-dropdown {
    background-color: var(--sbs-purple);
}

/*
 * Blog name and description
 */

.blog-header {
    padding-top: 20px;
    padding-bottom: 20px;
}
.blog-title {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 60px;
    font-weight: normal;
}
.blog-description {
    font-size: 20px;
    color: #737373;
}


/*
 * Main column and sidebar layout
 */

.blog-main {
    font-size: 18px;
    line-height: 1.5;
}

/* Sidebar modules for boxing content */
.sidebar-module {
    padding: 15px;
    margin: 0 -15px 15px;
}
.sidebar-module-inset {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
    margin-bottom: 0;
}


/* Pagination */
.pager {
    margin-bottom: 60px;
    text-align: left;
}
.pager > li > a {
    width: 140px;
    padding: 10px 20px;
    text-align: center;
    border-radius: 30px;
}


/*
 * Blog posts
 */

.blog-post {
    margin-bottom: 60px;
}
.blog-post-title {
    margin-bottom: 5px;
    font-size: 40px;
}
.blog-post-meta {
    margin-bottom: 20px;
    color: #999;
}


/*
 * Footer
 */

.blog-footer {
    padding: 40px 0;
    color: var(--sbs-purple-contrast);
    text-align: center;
    background-color: var(--sbs-purple);
    border-top: 1px solid #e5e5e5;
}
.blog-footer p:last-child {
    margin-bottom: 0;
}


/*
 * tags
 */

.blog-tags-container, .blog-categories-container {
    margin-top: 30px;
    font-size: 20px;
}
.blog-tags-container span.glyphicon, .blog-categories-container span.glyphicon {
    margin-right: 20px;
}

/*
 * Blog name and description
 */

.blog-post-title-archive {
    margin-bottom: 5px;
    font-size: 25px;
}

.blog-archive-title {
    margin-bottom: 50px;
}

 /*
 * Font awesome colour brand overrides
 */ 

 .fa-twitter-square {
    color: #1DA1F2;
}
.fa-linkedin {
    color: #2867B2;
}
.fa-steam-square {
    color: #000;
}
.fa-github-square {
    color: #6e5494;
}
.fa-paw {
    color: #000;
}
.fa-bluesky {
    color: rgb(0, 133, 255);
}
.fa-tree {
    color: rgb(61, 231, 96);
}

.carousel-item {
    height: 500px;
  }
  .carousel img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: auto;
    height: 500px;
    max-width: none;
    object-fit: scale-down;
  }

  @media (max-width: 979px) {

    .carousel-item {
      height: 500px;
    }
    .carousel img {
      width: auto;
      height: 500px;
      object-fit: scale-down;
      overflow: hidden;
    }
  }

  @media (max-width: 767px) {

    .navbar-inner {
      margin: -20px;
    }

    .carousel {
      margin-left: -20px;
      margin-right: -20px;
    }
    .carousel-item {
      height: 300px;
    }
    .carousel img {
      height: 300px;
      object-fit: scale-down;
      overflow: hidden;
    }
    .carousel-caption {
      width: 65%;
      padding: 0 70px;
      margin-top: 100px;
    }

  }

  .sbs-tile-bg {
    background-image: url(../res/bg_trans.png);
    background-repeat: repeat;
  }

  body .modal-dialog { /* Width */
    max-width: 100%;
    width: auto !important;
    display: inline-block;
}
.modal {
    z-index: -1;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-open .modal {
    z-index: 1060;
}
