/* Reset and general styles */
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Base styles */
/*body {*/
/*    font-family: 'Noto Sans', sans-serif;*/
/*    font-size: 24px;*/
/*    font-weight: 400;*/
/*    line-height: 1.5;*/
 
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

/* Layout styles */
figure {
    margin: 0;
    padding: 0;
}

p, ol {
    margin: 2.5% auto;
    padding-left: 20px;
}

p, ul {
    padding-left: 0;
}

/* Code styling */
pre, code {
    font-family: Monaco, Consolas, "Lucida Console", monospace;
    font-size: 16px;
    line-height: 2;
    overflow: auto;
    width: 75%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
}

code {
    padding: 5px;
    vertical-align: 3px;
    white-space: nowrap;
}

/* Link styling */
a {
    text-decoration: none;
}

/* Section styling */
section {
    padding: 7% 15%;
    width: 100%;
}

.first {
    background: url(../images/bg.jpg) no-repeat center center fixed;
    background-size: cover;
}

.first p {
    width: 50%;
    margin: 10% auto;
    text-align: center;
}

/* Button styling */
.buttons {
    list-style-type: none;
    text-align: center;
}

.buttons li {
    display: inline-block;
    margin: 0 25px;
    padding: 0;
}

.buttons li a {
    font-size: 30px;
    padding: 20px;
    background: #bc8542;
    border: 2px solid #bc8542;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.buttons li a:hover, .buttons li a:active, .buttons li a:focus {
    background: none;
    border: 2px solid #fff;
}

/* Section background colors */


.second h1 {
    color: #555;
}

.fourth {
    background: #bc8542;
}

.fourth pre, .fourth code {
    color: #251a0d;
    text-shadow: 0 1px 0 #bc8542;
    background: #a07138;
}

.fifth {
    background: #4892b5;
}

.fifth pre, .fifth code {
    color: #0e1c23;
    text-shadow: 0 1px 0 #4892b5;
    background: #3d7c9a;
}

.sixth {
    background: #bb4b79;
}

.sixth pre, .sixth code {
    color: #2a101b;
    text-shadow: 0 1px 0 #bb4b79;
    background: #a23d67;
}

/* Video styling */
.video {
    background: #fff;
    padding-bottom: 39px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
    width: 30% !important;
    margin: 1%;
    float: left;
    transition: all 0.5s ease;
    position: relative;
}

.video figure {
    height: 0;
    padding-bottom: 60%;
}

.video img {
    width: 100%;
    height: auto;
    opacity: 1;
}

.video img:hover, .video img:active, .video img:focus {
    opacity: 0.75;
}

/* Video Title styling */
.video-title {
    font-size: 2em;
    text-align: center;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive styles */
@media (max-width: 1366px) {
    .video {
        width: 31%;
    }
    
    .video-title {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    body {
        font-size: 20px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    p, ol {
        width: 90%;
    }
    
    pre, code {
        width: 100%;
        font-size: 14px;
    }
    
    .video {
        width: 31.333%;
    }
    
    .video-title {
        font-size: 1.6em;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 26px;
        text-align: center;
    }
    
    p, ol {
        width: 100%;
    }
    
    .buttons li {
        display: block;
        margin: 50px auto 0;
    }
    
    .buttons li a {
        padding: 15px;
        font-size: 22px;
    }
    
    .video {
        width: 48%;
    }
    
    .video figure {
        padding-bottom: 78% !important;
    }
    
    .video-title {
        font-size: 1.4em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 26px;
        text-align: center;
    }
    
    p, ol {
        width: 100%;
    }
    
    .buttons li a {
        font-size: 18px;
        padding: 10px;
    }
    
    .video {
        width: 96%;
        margin: 2%;
        float: none;
        display: contents !important;
    }
    
    .video figure {
        padding-bottom: 68%!important;
    }
    
    .video-title {
        font-size: 1.2em;
        text-align: center;
        padding: 8px;
    }
}

/* clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Fancybox styles */
.fancybox-wrap, .fancybox-skin, .fancybox-outer, .fancybox-inner, .fancybox-image, .fancybox-wrap iframe, .fancybox-wrap object, .fancybox-nav, .fancybox-nav span, .fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    vertical-align: top;
}

.fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8020;
}

.fancybox-skin {
    position: relative;
    background: #f9f9f9;
    color: #444;
    text-shadow: none;
    border-radius: 4px;
}

.fancybox-opened {
    z-index: 8030;
}

.fancybox-opened .fancybox-skin {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.fancybox-outer, .fancybox-inner {
    position: relative;
}

.fancybox-inner {
    overflow: hidden !important;
}

.fancybox-type-iframe .fancybox-inner {
    -webkit-overflow-scrolling: touch;
}

.fancybox-error {
    color: #444;
    font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.fancybox-image {
    max-width: 100%;
    max-height: 100%;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
    background-image: url("../images/fb/fancybox_sprite.png");
}

#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    background-position: 0 -108px;
    opacity: 0.8;
    cursor: pointer;
    z-index: 8060;
}

#fancybox-loading div {
    width: 44px;
    height: 44px;
    background: url("../images/fb/fancybox_loading.gif") center center no-repeat;
}

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

.fancybox-nav {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    cursor: pointer;
    background: transparent url("../images/fb/blank.gif");
    z-index: 8040;
}

.fancybox-prev {
    left: 0;
}

.fancybox-next {
    right: 0;
}

.fancybox-nav span {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 8040;
    visibility: hidden;
}

.fancybox-prev span {
    left: 10px;
    background-position: 0 -36px;
}

.fancybox-next span {
    right: 10px;
    background-position: 0 -72px;
}

.fancybox-nav:hover span {
    visibility: visible;
}

.fancybox-tmp {
    position: absolute;
    top: -99999px;
    left: -99999px;
    max-width: 99999px;
    max-height: 99999px;
    overflow: visible !important;
}

.fancybox-lock {
    overflow: hidden !important;
    width: auto;
}

.fancybox-lock body {
    overflow: hidden !important;
}

.fancybox-lock-test {
    overflow-y: hidden !important;
}

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 8010;
    background: url("../images/fb/fancybox_overlay.png");
}

.fancybox-overlay-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
}

.fancybox-lock .fancybox-overlay {
    overflow: auto;
    overflow-y: scroll;
}

.fancybox-title {
    visibility: hidden;
    font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    text-shadow: none;
    z-index: 8050;
}

.fancybox-opened .fancybox-title {
    visibility: visible;
}

.fancybox-title-float-wrap {
    position: absolute;
    bottom: 0;
    right: 50%;
    margin-bottom: -35px;
    z-index: 8050;
    text-align: center;
}

.fancybox-title-float-wrap .child {
    display: inline-block;
    margin-right: -100%;
    padding: 2px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    text-shadow: 0 1px 2px #222;
    color: #FFF;
    font-weight: bold;
    line-height: 24px;
    white-space: nowrap;
}

.fancybox-title-outside-wrap {
    position: relative;
    margin-top: 10px;
    color: #fff;
}

.fancybox-title-inside-wrap {
    padding-top: 10px;
}

.fancybox-title-over-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
}

/* Retina images */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
    #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
        background-image: url("../images/fb/fancybox_sprite@2x.png");
        background-size: 44px 152px;
    }

    #fancybox-loading div {
        background-image: url("../images/fb/fancybox_loading@2x.gif");
        background-size: 24px 24px;
    }
}
