html,
body {
  width: 100%;
  height: 100%;
}

body {
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

}

a {
  color: #5433FF;
  -webkit-transition: all .35s;
  -moz-transition: all .35s;
  transition: all .35s;
}

a:hover, a:focus {
  color: #5433FF;
}

hr {
  max-width: 100px;
  margin: 0 auto 32px auto;
  border-width: 1px;
  border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
  border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins','Helvetica', 'Arial', 'sans-serif';
  line-height: 1.4;
}

p {
  font-size: 1.2em;
  line-height: 1.4;
  margin-bottom: 20px;
}

section {
  padding: 50px 0;
}

section h2 {
  font-size: 50px;
}

#main {
  background: transparent;
  border-color: rgba(34, 34, 34, 0.05);
  background-color: white;
  -webkit-transition: all .35s;
  -moz-transition: all .35s;
  transition: all .35s;
  font-family: 'Poppins','Helvetica', 'Arial', 'sans-serif';
  font-weight: 200;
}

#mainNav .navbar-brand {
  color: #fff;
  font-family: 'Poppins','Helvetica', 'Arial', 'sans-serif';
  font-weight: 200;
}

#mainNav .navbar-brand:hover, #mainNav .navbar-brand:focus {
  color:a #fcbd20;
}

#mainNav a.navbar-brand .logo-bg{
  transition: all .25s ease-in-out;
}
#mainNav a.navbar-brand:hover .logo-bg{
  transform: rotate(-90deg);
}

#mainNav .navbar-toggler {
  font-size: 1em;
  padding: 8px 10px;
  color: #ffffff;
}

/* Controls default color of the logo */
.logo-bg {
  fill: #fff;
  vertical-align: middle;
}
.logo-bg:hover {
  opacity: 1;
}
/* Control logo color on scroll */
#mainNav.navbar-shrink .navbar-brand .logo-bg{
  fill: #5433FF;
  opacity: 0.5;
  transition: all .25s ease-in-out;
}
#mainNav.navbar-shrink a.navbar-brand:hover .logo-bg{
  /*transform: rotate(-90deg);*/
}
#mainNav.navbar-shrink a:before, a:after{
background: transparent;
}

#mainNav.navbar-shrink a.navbar-brand:hover .logo-bg{
  opacity: 1 !important;
  transition: all .25s ease-in-out;
}
/* -------------- */

#mainNav .navbar-nav > li > a {
  font-size: 1em;
  font-family: 'Poppins','Helvetica', 'Arial', 'sans-serif';
}

#mainNav .navbar-nav > li > a.active {
  color: #5433FF !important;
  background-color: transparent;
  border-bottom: 2px solid #5433FF;
  transition: none;
}

#mainNav .navbar-nav > li > a.active:hover {
  background-color: transparent;
}

#mainNav .navbar-nav > li > a,
#mainNav .navbar-nav > li > a:focus {
  color: #222222;
}

#mainNav .navbar-nav > li > a:hover,
#mainNav .navbar-nav > li > a:focus:hover {
  color: #5433FF;
}

@media (min-width: 992px) {
  #mainNav {
    border-color: transparent;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right:0;
    z-index: 1030;
  }
  #mainNav .navbar-brand {
    color: fade(white, 70%);
  }
  #mainNav .navbar-brand:hover, #mainNav .navbar-brand:focus {
    color: white;
  }
  #mainNav .navbar-nav > li > a,
  #mainNav .navbar-nav > li > a:focus {
    color: rgba(255, 255, 255, 0.8);
  }
  #mainNav .navbar-nav > li > a:hover,
  #mainNav .navbar-nav > li > a:focus:hover {
    color: white;
  }
  #mainNav.navbar-shrink {
    border-color: rgba(34, 34, 34, 0.1);
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    box-shadow: rgba(0,0,0,0.08) 0px 0px 10px;
    transition: background .5s ease-in-out;
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #222222;
  }
  #mainNav.navbar-shrink .navbar-brand:hover, #mainNav.navbar-shrink .navbar-brand:focus {
    color: #5433FF;
  }
  #mainNav.navbar-shrink .navbar-nav > li > a,
  #mainNav.navbar-shrink .navbar-nav > li > a:focus {
    color: #222222;
  }
  #mainNav.navbar-shrink .navbar-nav > li > a:hover,
  #mainNav.navbar-shrink .navbar-nav > li > a:focus:hover {
    color: #5433FF;
  }
  /*Logo background */
  #mainNav.navbar-shrink.logo-bg {
    background: rgba(0,0,0,0.2);
    padding: 12px;
  }
  #mainNav.navbar-shrink .navbar-nav > .logo-bg{
  }
}

header.masthead {
  position: relative;
  width: 100%;
  padding-top: 150px;
  padding-bottom: 100px;
  color: #F2F1FF;
  background: #7b4397;
  /* Old hero background, no sharp line`
  background: -webkit-linear-gradient(to bottom right, #5433FF, #24DDF5);
  background: linear-gradient(to bottom right, #5433FF, #24DDF5);*/
  background-image: linear-gradient(135deg, #5433FF 0%, #31B0F8 90%, #369EF9 90%, #24DDF5 100%);
  background-image: linear-gradient(135deg, #6751FF 0%, #7769D8 88%, #8072E4 88%, #7769D8 100%);
}

header.masthead .header-content {
  max-width: 500px;
  margin-bottom: 100px;
  text-align: center;
}

header.masthead .header-content h1 {
  font-size: 30px;
}

header.masthead .device-container {
  max-width: 325px;
  margin-right: auto;
  margin-left: auto;
}

header.masthead .device-container .screen img {
  border-radius: 3px;
}

@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    min-height: 775px;
    padding-top: 0;
    padding-bottom: 0;
  }
  header.masthead .header-content {
    margin-bottom: 0;
    text-align: left;
  }
  header.masthead .header-content h1 {
    font-size: 2em;
    font-weight: 600;
  }
  header.masthead .device-container {
    max-width: 325px;
  }
}

section.download {
  position: relative;
  padding: 150px 0;
}

section.download h2 {
  font-size: 50px;
  margin-top: 0;
}

section.download .badges .badge-link {
  display: block;
  margin-bottom: 25px;
}

section.download .badges .badge-link:last-child {
  margin-bottom: 0;
}

section.download .badges .badge-link img {
  height: 60px;
}

@media (min-width: 768px) {
  section.download .badges .badge-link {
    display: inline-block;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {

}

section.work .section-heading {
  margin-bottom: 100px;
}

section.work .section-heading h2 {
  margin-top: 0;
}

section.work .section-heading p {
  margin-bottom: 0;
}

section.work .device-container,
section.work .feature-item {
  max-width: 325px;
  margin: 0 auto;
}

section.work .device-container {
  margin-bottom: 100px;
}

@media (min-width: 992px) {
  section.work .device-container {
    margin-bottom: 0;
  }
}

section.work .feature-item {
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
}

section.work .feature-item h3 {
  font-size: 30px;
}

section.work .feature-item i {
  font-size: 80px;
  display: block;
  margin-bottom: 15px;
  background: -webkit-linear-gradient(to left, #7b4397, #dc2430);
  background: linear-gradient(to left, #7b4397, #dc2430);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.cta {
  position: relative;
  padding: 250px 0;
  background-image: url("../img/bg-cta.jpg");
  background-position: center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

section.cta .cta-content {
  position: relative;
  z-index: 1;
}

section.cta .cta-content h2 {
  font-size: 50px;
  max-width: 450px;
  margin-top: 0;
  color: white;
}

@media (min-width: 768px) {
  section.cta .cta-content h2 {
    font-size: 80px;
  }
}

section.cta .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

section.contact {
  text-align: center;
}

section.contact h2 {
  margin-top: 0;
  margin-bottom: 25px;
}

section.contact h2 i {
  color: #dd4b39;
}

section.contact ul.list-social {
  margin-bottom: 0;
}

section.contact ul.list-social li a {
  font-size: 40px;
  line-height: 80px;
  display: block;
  width: 80px;
  height: 80px;
  color: white;
  border-radius: 100%;
}

section.contact ul.list-social li.social-twitter a {
  background-color: #1da1f2;
}

section.contact ul.list-social li.social-twitter a:hover {
  background-color: #0d95e8;
}

section.contact ul.list-social li.social-facebook a {
  background-color: #3b5998;
}

section.contact ul.list-social li.social-facebook a:hover {
  background-color: #344e86;
}

section.contact ul.list-social li.social-google-plus a {
  background-color: #dd4b39;
}

section.contact ul.list-social li.social-google-plus a:hover {
  background-color: #d73925;
}

footer {
  padding: 32px 0 16px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

footer p {
  font-size: 12px;
  margin: 0;
}

.bg-primary {
  background: #2A1980;
  background: -webkit-linear-gradient(150deg,#2A1980, #126E7A);
  background: linear-gradient(150deg,#2A1980, #126E7A);
}

.text-primary {
  color: #5433FF;
}

.no-gutter > [class*='col-'] {
  padding-right: 0;
  padding-left: 0;
}

.btn-outline {
  color: white;
  border: 1px solid;
  border-color: white;
}

.btn-outline:hover, .btn-outline:focus, .btn-outline:active, .btn-outline.active {
  color: white;
  border-color: #5433FF;
  background-color: #5433FF;
}

.btn {
  border-radius: 300px;
  font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-xl {
  font-size: 11px;
  padding: 15px 45px;
}

/* ------ Custom by Eamonn ------- */

/* Typography */

body {
  color: #1E1E1E;
  -webkit-font-smoothing:antialiased;
}

h1,h2{
  font-weight: 600;
}
.masthead h2 {
  font-size:1.625em;
  margin-bottom: 32px;
}
h2 {
  font-size:2.5em;
}

h3 {
  font-size:1.625em;
  font-weight: 600;
  margin:50px 0 10px 0;
}
h4{
  font-size: 1.375em;
  font-weight:600;
}

.masthead h2{
  font-weight: 200;
  font-size: 2em;
  font-style: italic;
}
section h2{
  font-size: 3em !important;
}

/* Internal page */
.masthead.internal {
  min-height: 300px;
  padding-top:150px;
  max-height: 350px;
}

.legend {
  margin: 16px 0;
  color: #393939;
  display: block;
  font-size: 0.875em;
}

.bg-light{
  background: #F1F1F1;
}
.border-light{
  border-color: #E6E6E6 !important;
}

header.masthead.red {
  background: #1A64F3;
  background: -webkit-linear-gradient(to bottom right, #1A64F3, #AF1A70);
  background: linear-gradient(to bottom right, #1A64F3, #AF1A70);
}

.bg-light-blue{
  background: #e1f2fc;
  transition: 0.3s;
}

.bg-light-blue:hover{
  background: #daeaf4;
}

.bg-light-red{
  background: #FEEEEE;
  transition: 0.3s;
}

.bg-light-red:hover{
  background: #F1E1E1;
}

.shadow{
  box-shadow: rgba(0,0,0,0.1) 0 0 25px;
}
.shadow:hover{
  box-shadow: rgba(0,0,0,0.12) 0 10px 35px;
  transform: translateY(-2px);
  transition: box-shadow 0.15s, transform 0.1s;
}
.shadow-strong{
  box-shadow: rgba(0,0,0,0.1) 0 0 25px;
}
.shadow-strong:hover{
  box-shadow: rgba(0,0,0,0.1) 0 14px 51px;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* links */
a{
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 6px 0;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

a:hover{
  text-decoration: none;
}

a:before, a:after{
  content: '';
  background: #5433FF;
  position: absolute;
  width: 0;
  height: 1px;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

a:before{
  top: 0;
  left: 0;
}

a:after{
  top: 100%;
  right: 0;
}

a:hover:before, a:hover:after{
  width: 100%;
}

.text-white a {
  color: #ffffff;
}
.text-white a:before, .text-white a:after{
  background:#fff;
}

#mainNav .navbar-nav > li > a:before, #mainNav .navbar-nav > li > a:after{
  background: #fff;
}
#mainNav.navbar-shrink .navbar-nav > li > a:before, #mainNav.navbar-shrink .navbar-nav > li > a:after{
  background: #5433FF;
}

a.no-effect:before, a.no-effect:after {
  background: none;
}
/* Case study image */
a.dark img{
  transition: all 0.5s;
}
a.dark img:hover{
  transform: scale(1.02);
}

#mainNav {
  font-weight: normal;
}

.analytics-bg{
    background: url('../img/projects/analytics/analytics-background.png') no-repeat top;
    background-size: contain;
    padding: 8%;
}
.kobo-bg{
    background: url('../img/projects/kobo-library/kobo-background.png') no-repeat top;
    background-size: contain;
    padding: 8%;
}
.rocket-bg{
    background: url('../img/projects/rocket/rocket-background-3x.png') no-repeat top;
    background-size: contain;
    padding: 8%;
}


/* No border on mobile menu button */
.navbar-light .navbar-toggler{
  border: none;
}

/* reset for image zoom*/
img {
  max-width: 100%;
}
/* Ensure zoom image appears above navbar*/
.medium-zoom-image--open {
  z-index: 1050;
}

.medium-zoom-overlay {
  z-index: 1040;
}
.medium-zoom-overlay img{
  min-height: 100% !important;
  min-width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
  .masthead h1, .masthead h2, .masthead .label {
    text-align:center !important;
  }
  .ea-bg-contained {
    border-radius: 0 !important;
  }
}
@media (max-width: 575.98px) {
  .masthead h1, .masthead h2 {
    text-align:center !important;
    font-size: 1.5em;
  }
  img.profile{
    max-width: 70%;
  }
  #mainNav .navbar-nav > li > a,
  #mainNav .navbar-nav > li > a:focus {
    color: #ffffff;
  }


}
@media (max-width: 991px) {
    .fixed-top {
      position: absolute;
      top: auto;
    }
    #mainNav{
      /*background-color: rgba(255,255,255,0.5);*/
      background: transparent;
      z-index: 1000;
    }

    #navbarResponsive ul li {
      text-align: right;
      padding-right: 1rem;
    }
}

/* Large spacing */
.m-10 {
  margin:8rem;
}
.my-10 {
  margin-top:8rem;
  margin-bottom:8rem;
}
.mt-10 {
  margin-top:8rem;
}
.mb-10 {
  margin-bottom:8rem;
}
/* External link icon */
.nav-link .external-link{
  opacity: 0;
  transition: 0.1s;
  position: absolute;
  right: -20px;
}
.nav-link:hover .external-link{
  opacity: 0.6;
}

::selection {
  /* purple unused background: rgba(84,51,255,0.5);*/
  background: #09E1C0;
  color:#1E1E1E;
}

/* Masthead label, used for Case Study prefix */
.label{
  font-family: 'Poppins','Helvetica', 'Arial', 'sans-serif';
  font-size: 1em;
  font-weight: 500;
  width: 100%;
}

a.article-link {
  border: none;
  color: black;
  border-radius: 12px;
}
a.article-link p {
  margin: 0;
}
a.article-link:hover {
  background: rgba(84, 51, 255,0.08);
  border: none !important;
  transform: scale(1.015);
  transition: 0.15s;
}
a.article-link:before,a.article-link:after {
  background: none;
}
.blur{
  filter: blur(80px) grayscale(100%);
}

.ea-bg{
  background-color: #0D0D44;
  color: #fff;

}

.ea-bg-contained {
  background: url(../img/projects/EA/bg2.jpg) right no-repeat #0D0D44;
  background-size: cover;
  color: #fff;
  border-radius: 16px;
  min-height: 600px;
}
