/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
a {
    text-decoration: none;
    color: inherit;
}

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

.landing-section {
    position: static;
    height: 90vh;
    padding: 10vh;
    margin-top: -5vh;
    padding-bottom: 0vh;
    margin-bottom: 5vh;
    background-color: #fff;
}

.landing-section .centre-box {
    position: relative;
    width: 70%;
    margin: auto;
}

.logo-box {
    position: relative;
    margin: 0 5%;
}

.logo-box .logo {
    position: relative;
    height: 100%;
    width: 100%;
}

.location-date {
    position: relative;
    text-align: center;
    height: 4vh;
    width: 100%;
    margin: auto;
    font-size: 1.7vw;
}

.location-date .partition {
    position: relative;
    display: inline;
    border-right: 1px solid #333;
    height: 200%;
}

.location-date .date {
    position: relative;
    display: inline;
    margin-top: 0.5vh;
    color: #333;
    width: 49.5%;
}

.location-date .location {
    position: relative;
    display: inline;
    margin-top: 0.5vh;
    margin-left: 1vh;
    color: #333;
    width: 49.5%;
}

.dotted-underline:hover {
    border-bottom: 1px dotted #222;
}

/*
  TEAM heading
*/

.heading-box{
  margin-top: 3vw;
  margin-bottom: 2vw;
}

.heading-box .heading{
  width: 100%;
  margin: auto;  
  text-align: center;
  color: #3d3d3d;
  font-family: "Oswald";
  font-weight: 700;
  font-size: 2em;
  /*border-top: .1em solid;*/
  /*border-bottom: .1em solid;*/
}


/*
  Button Group Styling Starts
*/

.button-group {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  margin: 5vh auto 0vh auto;
  overflow: hidden;
  font-size: 1.2vw;
  clear:both;
  margin:auto;
}

#nav_bar{
    width: 100%;
    background-color: #fff;
}

.navbar-fixed {
    top: 0;
    z-index: 100;
    position: fixed;
    margin-left: -5.3vw;
}

.button {
    background-color: white;
    color: #333;
    text-align: center;
    margin: 1vh 5px;
    padding: 2vh 3vh;
    width: 7vw;
}

.button:hover {
  cursor: pointer;
}

.button a {
    display: block;
}

.btn1 {
    position: relative;
    display: inline-block;
    border: solid 2px #c22e5e;
}
.btn1:hover {
    background-color: #c22e5e;
    color: white;
}

.btn1.active {
    background-color: #c22e5e;
    color: white;
}

.btn2 {
    position: relative;
    display: inline-block;
    border: solid 2px #e13f2a;
}

.btn2:hover {
    background-color: #e13f2a;
    color: white;
}

.btn2.active {
    background-color: #e13f2a;
    color: white;
}

.btn3 {
    position: relative;
    display: inline-block;
    border: solid 2px #f5a71f;
}

.btn3:hover {
    background-color: #f5a71f;
    color: white;
}

.btn3.active {
    background-color: #f5a71f;
    color: white;
}

/*
  Button Group Styling Starts Ends
*/

#cardframe {
  text-align: justify;
  margin-left:5%;
  margin-right:5%;
  /*margin-top:12vw;*/
}

#cardframe .card,
#cardframe .gap {
  display: inline-block;
  width: 23%
  margin-left: 0%;
  height:50vh;
  /*padding-top: 0;*/
  /*border:1px solid black;*/
}

.card-overlay{
  background-color: rgba(0, 31, 63, 0.4);
  opacity: 0;
  height:100%;
  width: 100%;
  padding-top: 30%;
  color: #fff;
  font-size: 2.5em;
  -webkit-transition: opacity 0.5s;
}

.card-overlay .card-name{
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  /*border:1px solid black;*/
  margin-bottom:0vh;
}


.card:hover .card-overlay{
  opacity: 1;
}

/*
    Card Styling
*/

#cardframe .card {
  text-align: left;
  margin-bottom: 2%;
  border-radius: 1%;
  text-align: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

#cardframe .mix{
  display: none;
}

div.card.lazy {
  background-image:url(../images/grey.gif);
  background-size: cover;
}

.card p{
    color: rgba(70,76,62,0.4);
    font-weight: 1000;
    font-size: 2vw;
    font-family: 'Open Sans', sans-serif;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media all and (max-width: 2560px){
  #cardframe .card,
  #cardframe .gap{
    width: 23%;
    margin-left: 1%;
  }
}

@media all and (max-width: 1024px){
  #cardframe .card,
  #cardframe .gap{
    width: 32%;
    margin-left: 0%;
  }
}

@media all and (max-width: 979px){
  #cardframe .card,
  #cardframe .gap{
    width: 32%;
  }
}

@media all and (max-width: 767px){
  #cardframe .card,
  #cardframe .gap{
    width: 45%;
  }
}

@media all and (max-width: 639px){
  #cardframe .card,
  #cardframe .gap{
    width: 45%;
  }
}

@media (max-width: 30em) {
  body {
    zoom: 0.75;
  }
}

@media (max-width: 25em) {
  body {
    zoom: 0.5;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
