/*This CSS is mobile-first. Adjustments for desktop users are applied at the end with media queries.*/
/*reset ------------------------------------------------*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
 margin:0;
 padding:0;
 border:0;
 outline:0;
 vertical-align:baseline;
 background:transparent;
}
body {
    line-height:1.3;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
 display:block;
}
ul {
 list-style:none;
}

/*basic css ------------------------------------------------*/
body, html {
    background-color: #f0f0f0;
    font-family: Raleway, Helvetica, Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 300;
    height: 100%;
    line-height: 1.5em;
    width: 100%;
    margin: 0;
}
.wrapper { /* prevents footer from appearing in middle of page when there is not enough content */
    min-height: 100%;
    margin-bottom: -6.5em;
    padding-bottom: 6.5em;
}
a {
    text-decoration: none;
    color: #C84526;
    font-weight: 600;
    transition: color 0.5s ease;
}
a:hover {
    color: #802211;
}
p {
    font-size: 1em;
    padding: 0 0 1em 0;
}
h1 {
    color: white;
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 2.8em;
    font-weight: 600;
    padding: 3em 0;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 4px #000000;
}
h2 {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.05;
    padding: 0 0 .25em 0;
}
h3 {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    padding: .2em 0 .4em 0;
}
.float-left {
    float: left;
}
section {
    padding: 2em;
}
/*nav ------------------------------------------------*/
#logo {
    display: block;
    margin: auto;
    padding: .65em 0 .2em;
}
nav {
    background-color: #000;
    height: 6.5em; /* same as .header */
}
nav ul {
    display: flex;
    justify-content: space-around;
}
nav ul li {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 1em;
    letter-spacing: .0825em;
    margin: 1em 0;
    text-transform: uppercase;
}
.nav-current {
    pointer-events: none;
    cursor: default;
    border-bottom: .125em solid #C84526;
}
nav li a {
    font-weight: 300;
    color: white;
}
nav li a:hover {
    color: white;
}
/* nav-bar.js by Osvaldas uses .header */
.header {
    width: 100%;
    height: 6.5em;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    
   -webkit-box-shadow: 0 0.063em 0.25em rgba( 37, 50, 55, .5 ); /* 1 4 */
    box-shadow: 0 0.063em 0.25em rgba( 37, 50, 55, .5 ); /* 1 4 */


    -webkit-transition-duration: .5s;
    transition-duration: .5s;

    -webkit-transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
    transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );


    -webkit-transition-property: -webkit-transform;
    transition-property: transform;
}
.header--hidden
{
    -webkit-transform: translateY( -100% );
    -ms-transform: translateY( -100% );
    transform: translateY( -100% );
}
/*hero and headers ------------------------------------------------*/
.hero {
    background-image: url("images/dash-landing.jpg");
    height: 100%; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-text {
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-logo {
    background-image: url("images/jfriso-logo.png");
    background-size: cover;
    height: 128px;
    width: 250px;
    margin: auto;
}
.hero-text h4 {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 1.35em;
    font-weight: 300;
    letter-spacing: .05em;
    color: white;
    
    padding-top: 2em;
}
#scroll-down {
    color: white;
    font-size: 4em;
    text-align: center;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* header images ------------------------------------------------*/
.header-img {
    height: 14em;
    width: 100%;
  /*  background-position: center;
    background-repeat: no-repeat;
    background-size: cover;*/
}
.contact {
    background: url("images/contact-header.jpg") center/cover no-repeat;
}
.dash {
    background: url("images/dash-header.jpg") center/cover no-repeat;
}
.glide {
    background: url("images/glide-header.jpg") center/cover no-repeat;
}
.platformation {
    background: url("images/platformation-header.png") center/cover no-repeat;
}
.om-master {
    background: url("images/om-master-header.jpg") center/cover no-repeat;
}
.puppet-master {
    background: url("images/puppet-master-header.jpg") center/cover no-repeat;
}
.tempurang {
    background: url("images/tempurang-header.jpg") center/cover no-repeat;
}
.happy24th {
    background: url("images/happy24th-header.png") center/cover no-repeat;
}
.ride-n-glide {
    background: url("images/ride-n-glide-header.jpg") center/cover no-repeat;
}
.ducttape {
    background: url("images/ducttape-header.png") center/cover no-repeat;
}
.lostwastedfound {
    background: url("images/lostwastedfound-header.jpg") center/cover no-repeat;
}
.alwaysbeemoving {
    background: url("images/alwaysbeemoving-header.png") center/cover no-repeat;
}

.rps {
    background: url("images/rps-header.png") center/cover no-repeat;
}
.rpm {
    background: url("images/rpm-header.jpg") center/cover no-repeat;
}
.esg {
    background: url("images/esg-header.jpg") center/cover no-repeat;
}
.visier {
    background: url("images/visier-header.png") center/cover no-repeat;
}
.hothead {
    background: url("images/hothead-header.png") center/cover no-repeat;
}
/* divs and sections ------------------------------------------------*/
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.flex-item-infographic {
    width: 100%;
    margin: 1em 0;
}
.flex-item-1-4, .flex-item-1-3, .flex-item-1-2, .flex-item-2-3 {
    width: 100%;
    margin: 1em 0;
}
.flex-item-1-3:empty {
    height: 0;
    margin: 0;
}
.flex-item-1-4:empty {
    height: 0;
    margin: 0;
}
.game-thumb {
    width: 100%;
    margin: 0 0 1em 0;
}
a.game-thumb {
   transition: opacity .5s ease;
}
a.game-thumb:hover {
    opacity: .6;
}
section.odd {
    background-color: #e5e5e5;
}
/* footer ------------------------------------------------*/
footer {
    background-color: #5c5c5c;
    color: #c8c8c8;
    padding: .5em 0 0 0;
    height: 6.5em;
}
footer a {
    color: #c8c8c8;
    transition: color .5s ease;
}
footer a:hover {
    color: #FFF;
}
#footer-social-icons {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1em;
}
#footer-social-icons .fa { /*icons from font awesome*/
    font-size: 1em;
    padding: 0 1em;
}
footer p {
    text-align: center;
    font-size: .8em;
}
/* page-specific ------------------------------------------------*/
#contact-social-icons {
    display: flex;
    flex-wrap: wrap;
}
#contact-social-icons i {
    font-size: 2em;
    padding: 0 .4em .5em 0;
}
#contact-social-icons a {
    color: #C84526;
    transition: color 0.5s ease;
}
#contact-social-icons a:hover {
    color: #802211;
}
#contact-social-icons li {
    width: 50%
}
.flex-item-1-2 .icon-big {
    font-size: 3em;
    padding: 0 1em 0 0;
}
.fa-envelope, .fa-phone {
    padding: 0 1em 0 0;
}
/* interactive ------------------------------------------------*/
.button-1 {
    background-color: #C84526;
    border: none;
    color: white;
    display: inline-block;
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: .9em;
    letter-spacing: .08em;
    margin: .5em 0;
    padding: 1.1em 2em 1em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .5s ease;
}
.button-1:hover {
    color: white;
    background-color: #d98a30;
}
iframe {
    width: 100%;
    height: 300px;
}
/* adjustments ------------------------------------------------*/
.center {
    text-align: center;
    margin: auto;
}
.padding-right {
    padding-right: 1em;
}
.width-100 {
    width: 100%;
}
.height-100 {
    height: 100%;
}
.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* lightbox ------------------------------------------------*/
* {
  box-sizing: border-box;
}
.still-thumb {
    width: 100%
}
.row {
      display: flex;
}
.row > .column {
  padding: 0 .5em;
}
.column {
  /*float: left;*/
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.8);
}

/* Modal Content */
.modal-content {
  margin: auto;
  padding: 0;
  width: 100%;
  max-width: 1200px;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);

}
.close {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    cursor: pointer;
}
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
img {
  margin-bottom: -4px;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
  cursor: pointer;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* OTHER -----------------------------------------------------*/
.phone-box {
    aspect-ratio: 6.5 / 4;
}
.tempurang-box {
    background: #d1f9f5;
}
.happy24th-box {
    background: url("images/happy24th-phone-bg.png") center/cover no-repeat;
}
.ride-n-glide-box {
    background: url("images/ride-n-glide-bg.jpg") center/cover no-repeat;
}
/* responsive ------------------------------------------------*/
@media only screen and (min-width: 700px) {
    .header {
        height: 3.5em;
    }
    nav {
        height: 3.5em;
    }
    nav ul {
        justify-content: flex-end;
    }
    #logo {
        float: left;
        margin: .5em 3em;
        padding: 0;
    }
    nav ul li {
        margin: 1.1em 2.2em 0 0;
    }
    nav li a::after {
    content: '';
    display: block;
    width: 0;
    height: .125em;
    background: #C84526;
    margin-top: .2em;
    transition: width .3s;
}
nav li a:hover::after {
    width: 100%;
    transition: width .3s;
}
    .hero-logo {
    background-image: url("images/jfriso-logo-l.png");
    height: 200px;
    width: 390px;
    }
    h1 {
        padding: 2.2em 0;
    }
    .tablet-no-wrap {
        flex-wrap: nowrap;
    }
    .flex-item-infographic {
        text-align: center;
    }
    .flex-item-1-4 {
        width: 22.5%;
    }
    .flex-item-1-3 {
        width: 30%;
    }
    .flex-item-1-2 {
        margin: 1em 0;
        width: 45%;
    }
    .flex-item-2-3 {
        width: 60%;
        margin: 1em 0;
    }
    .modal-content {
    top: 50%;
    }
}
@media only screen and (min-width: 1000px) {
    iframe {
        height: 450px;
    }
    .desktop-shrink {
        padding-left: 10%;
        padding-right: 10%;
    }
    .flex-item-1-3 {
        width: 30%;
    }
    section {
    padding: 4em;
    }
}