body {
    font-family: 'Hind', sans-serif;
}

#logo {
    width: 500px;
    max-width: 100%;
    margin: 40px 0;
}

#bg {
    width: 100%;
}

ul.nav.navbar-nav {
    margin: 0;
}

.navbar-collapse {
    padding: 0;
}

nav ul li a {
    text-transform: uppercase;
}

nav.navbar-default {
    background: transparent;
}

nav #navbar ul li a {
    padding: 15px 20px;
}

nav #navbar ul li.active a,
nav #navbar ul li.active a:hover {
    background-color: #58598a;
    color: white;
}

nav #navbar ul li a:hover {
    background-color: #eee;
}

#welcome {
    background-color: #58598a;
    color: white;
    padding: 0;
    font-size: 14px;
}

#welcome .description {
    padding-top: 60px;
    padding-bottom: 60px;
}

#welcome .abstract {
    padding-top: 40px;
    padding-bottom: 40px;
}

#get-ra {
    margin: 2em 0 0 0;
}

.btn-ra {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    margin: 1em 0;
    font-size: 14pt;
    line-height: 2em;
    padding: 10pt 20pt 8pt;
}

.btn-ra:hover {
    background: white;
    color: #58598a;
}

.carousel-inner .btn-ra {
    font-size: 10pt;
    line-height: 1.5em;
    padding: 5pt 10pt 4pt;
}

h1 {
    font-weight: bold;
    margin-bottom: 1em;
}

.responsive {
    width: 100%;
    height: auto;
}

.btn-more {
    padding: 5pt 10pt 4pt;
}

.btn-more .glyphicon {
    top: -1px;
    margin-left: 0.5ex;
    vertical-align: middle;
}

#teespring {
    margin-bottom: 5em;
}

#features {
    padding: 30px 0;
}

#latestcores {
    padding: 30px 0;
}

#features-carousel,
#latestcores-carousel, {
    border-radius: 5px;
    overflow: hidden;
}

#features .item {
    height: 350px;
    padding: 3% 10%;
    color: white;
    font-size: 14px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    overflow: hidden;
}

#latestcores .item {
    font-size: 14px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    overflow: hidden;
}

#features .item h2 {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 5px;
    border-bottom: solid 1px white;
}

#latestcores .item h2 {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 5px;
    border-bottom: solid 1px black;
}

#latestcores .item img {
    width: 100%;
}

#latestcores .item .text {
    min-height: 20em;
}

.carousel-indicators {
    top: -2.4em;
    bottom: 0;
}

#features .carousel-indicators li,
#latestcores .carousel-indicators li {
    border-color: #505050;
}

#features .carousel-indicators li.active,
#latestcores .carousel-indicators li.active {
    background-color: #505050;
}

#features .item.v-178 {
    background-color: #536F97;
}

#features .item.interface {
    background-color: #336480;
}

#features .item.cross-platform {
    background-color: #996eab;
}

#features .item.customizable {
    background-color: #33454f;
}

#features .item.latency {
    background-color: #336480;
}

#features .item.cores {
    background-color: #00468d;
}

#features .item.joypad-autoconfig {
    background-color: #6c6db0;
}

#features .item.shaders {
    background-color: #0099FF;
}

#features .item.achievements {
    background-color: #000000;
}

#features .item.netplay {
    background-color: #216161;
}

#features .item.recording {
    background-color: #6441a4;
}

@media (min-width: 768px) {
    #features .item.v-178 {
        background-image: url(images/newversion.jpg);
    }
    
    #features .item.interface {
        background-image: url(images/interface.png);
    }

    #features .item.cross-platform {
        background-image: url(images/cross-platform.png);
    }
    
    #features .item.cores {
        background-image: url(images/cores.png);
    }

    #features .item.customizable {
        background-image: url(images/customizable.jpg);
    }
    
    #features .item.latency {
        background-image: url(images/latency.png);
    }

    #features .item.joypad-autoconfig {
        background-image: url(images/joypad-autoconfig.jpg);
    }

    #features .item.shaders {
        background-image: url(images/shaders.png);
    }
    
    #features .item.achievements {
        background-image: url(images/achievements.png);
    }

    #features .item.netplay {
        background-image: url(images/netplay.png);
    }
    
    #features .item.recording {
        background-image: url(images/recording.png);
    }
}

@media (min-width: 768px) {
    #latestcores .item h2 {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    #welcome {
        font-size: 16px;
    }

    #features .item {
        height: 400px;
        font-size: 16px;
    }

    #features .item h2 {
        font-size: 22px;
    }

    #latestcores .item {
        height: 400px;
        font-size: 16px;
    }

    #latestcores .item h2 {
        font-size: 22px;
    }

    .btn-ra {
        margin: 22px 0;
    }
}

@media (min-width: 1200px) {
    #welcome {
        font-size: 20px;
    }

    #features .item {
        height: 475px;
        font-size: 20px;
    }

    #features .item h2 {
        font-size: 30px;
    }

    #latestcores .item {
        height: 475px;
        font-size: 20px;
    }

    #latestcores .item h2 {
        font-size: 30px;
    }

    .btn-ra {
        margin: 30px 0;
    }
}

article {
    font-size: 16px;
    margin-bottom: 30px;
}

article .metadata {
    border-top: solid 2px #58598a;
    padding: 10px 0;
    margin: 15px 0;
    font-size: 14px;
    color: #888;
}

article .btn-more {
    border: 2px solid #58598a;
    color: #58598a;
}

article .btn-more:hover {
    background-color: #58598a;
    color: white;
}

#tutorial {
    background: #eee;
}

.video {
    margin-bottom: 30px;
}

footer {
    background-color: #111;
    padding: 20px;
}

footer h4 {
    font-weight: bold;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li a {
    display: block;
    padding: 5px;
    color: #ccc;
}

footer li a:hover {
    background: #222;
    color: #ddd;
    text-decoration: none;
}

footer .social a {
    display: inline-block;
    background: #222;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: #ccc;
    text-align: center;
    font-size: 20px;
}

footer .social a:hover {
    background-color: #333;
    color: #ddd;
}

.doc {
    font-size: 16px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.doc img {
    max-width: 100%;
}

.doc pre {
    background: #111;
    color: white;
    font-size: 16px;
    max-height: 265px;
    border: none;
}

.platform {
    background: #eee;
    border-radius: 3px;
    margin-top: 30px;
}

.platform img {
    width: 100%;
}

.platform h4 {
    font-weight: bold;
    text-align: center;
}

.platform a {
    display: block;
    padding: 5px 10px;
    border-top: 1px solid #ddd;
}

.imagegrid {
    margin-top: 30px;
}

.imagegrid img {
    margin-bottom: 30px;
}

.imagegrid h2 {
    margin-top: 0;
}

.faq-container .faq-section .question {
      display: block;
      font-weight: normal;
      font-size: 18px;
      margin-bottom: 10px;
}
.faq-container .faq-section a[aria-expanded="false"]:before,
.faq-container .faq-section a[aria-expanded="true"]:before {
      content: '\f055';
      font-family: FontAwesome;
      margin: 0 5px 0 0;
      color: #6E6F66;
}
.faq-container .faq-section a[aria-expanded="false"]:before {
      content: '\f055';
}
.faq-container .faq-section a[aria-expanded="true"]:before {
      content: '\f056';
}
.faq-container .faq-section .answer {
      padding: 0 0 25px 25px;
}
.faq-container .faq-section *:first-child {
      margin-top: 0;
}
.faq-container .faq-section *:last-child {
      margin-bottom: 0;
}
.faq-container.faq-w-bg {
      background: #ffffff;
      padding: 40px;
      width: 100%;
}
.faq-container.faq-w-bg .faq-section {
      background: #FFF;
      padding: 40px 70px;
      border: 1px solid #d2d2d2;
}

@media screen and (max-width: 696px) {
  .faq-container.faq-w-bg {
      padding: 20px 40px !important;
  }
  .faq-container.faq-w-bg .faq-section {
      padding: 20px !important;
      margin-bottom: 5px !important;
  }
}

@media screen and (max-width: 500px) {
  .faq-container.faq-w-bg .faq-section {
      padding: 15px !important;
      margin-bottom: 5px !important;
  }
  .faq-container.faq-w-bg {
      padding: 10px !important;
  }
}
