/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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
   ========================================================================== */

html, body {
    min-width: 100%;
    min-height: 100%;
    padding: 0px;
    margin: 0px;
}

body {
    background-color: #00c854;
}

#im-crazy {
    text-align: center;
}

#im-crazy img {
    width: 100%;
    max-width: 944px;
    margin: 100px auto 0px;
}

#im-crazy a {
    margin: 10px auto;
    display: block;
    width: 369px;
    height: 143px;
    background: url(../img/i-fucking-want-this.png) no-repeat bottom center;
    overflow: hidden;
    line-height: 8000;
}

#im-crazy a:hover {
    background-position: top center;
}

body.fucked-up {
    background: linear-gradient(137deg, #00601b, #cc00ff);
    background-size: 400% 400%;

    -webkit-animation: this-will-make-your-eyes-bleed 11s ease infinite;
    -moz-animation: this-will-make-your-eyes-bleed 11s ease infinite;
    -o-animation: this-will-make-your-eyes-bleed 11s ease infinite;
    animation: this-will-make-your-eyes-bleed 11s ease infinite;
}

@-webkit-keyframes this-will-make-your-eyes-bleed {
    0%{background-position:0% 15%}
    50%{background-position:100% 86%}
    100%{background-position:0% 15%}
}
@-moz-keyframes this-will-make-your-eyes-bleed {
    0%{background-position:0% 15%}
    50%{background-position:100% 86%}
    100%{background-position:0% 15%}
}
@-o-keyframes this-will-make-your-eyes-bleed {
    0%{background-position:0% 15%}
    50%{background-position:100% 86%}
    100%{background-position:0% 15%}
}
@keyframes this-will-make-your-eyes-bleed { 
    0%{background-position:0% 15%}
    50%{background-position:100% 86%}
    100%{background-position:0% 15%}
}

body.fucked-up #im-crazy{
    display: none;    
}

#fuck-this-shit {
    display: none;
}

body.fucked-up #fuck-this-shit  {
    display: block;
}

#fuck-this-shit {
    width: 100%;
    height: 100%;
}

#left-top-butt, #right-bottom-butt {
    position: fixed;
    width: 251px;
    height: 243px; 
    display: block;
}
#left-top-butt {
    top: 0px;
    left: 0px;
    background: url(../img/left-top-butt.png);
}

#right-bottom-butt {
    right: 0px;
    bottom: 0px;
    background: url(../img/right-bottom-butt.png);
}

.flex-video {
    position: relative;
    padding-top: 1.38889rem;
    padding-bottom: 67.5%;
    height: 0;
    margin-bottom: 0.88889rem;
    overflow: hidden;
}

.flex-video iframe, .flex-video object, .flex-video embed, .flex-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.row {
    max-width: 960px;
    clear: both;
    margin: 100px auto;
}

.columns {
    float: left;
}

.row.columns:last-child {
    float: right;
}

.large-12.columns {
    width: 99%; 
    text-align: center;
}
.large-4 {
    width: 32%;
    text-align: center;
}

.button {
    display: inline-block;
    overflow: hidden;
    line-height: 8000;
    width: 272px;
    height: 98px;
}

#butt-je {
    background: url(../img/buttons_left.png) no-repeat center bottom;
}

#butt-nespi {
    background: url(../img/buttons_center.png) no-repeat center bottom;
}

#butt-nikdy-nespi {
    background: url(../img/buttons_right.png) no-repeat center bottom;
}

#butt-je:hover, #butt-nespi:hover, #butt-nikdy-nespi:hover, #butt-spustit-zazrak:hover {
    background-position: center top;
}

#butt-spustit-zazrak {
    width: 340px;
    height: 122px;
    background: url(../img/miracle.png) no-repeat center bottom;
}

.bubbles > div {
    width: 168px; height: 168px;
    background-repeat: no-repeat;
    display: block;
    background-image: url(../img/faces.png);
    z-index: 999;
}

.bubbles .b-13,
.bubbles .b-14,
.bubbles .b-15,
.bubbles .b-16,
.bubbles .b-17,
.bubbles .b-18,
.bubbles .b-19,
.bubbles .b-20,
.bubbles .b-21,
.bubbles .b-22,
.bubbles .b-23,
.bubbles .b-24,
.bubbles .b-25,
.bubbles .b-26,
.bubbles .b-27 {
    background-image: url(../img/triad_two.png);
}

.b-2 { background-position: -840px 0px; }
.b-3 { background-position: -168px 0px; }
.b-4 { background-position: -336px 0px; }
.b-5 { background-position: -504px 0px; }
.b-6 { background-position: -672px 0px; }
.b-7 { background-position: 0px -168px; }
.b-8 { background-position: -168px -168px; }
.b-9 { background-position: -336px -168px; }
.b-10 { background-position: -504px -168px; }
.b-11 { background-position: -672px -168px; }
.b-12 { background-position:  -840px -168px; }

.b-24 { background-position:  0px 0px; }
.b-13 { background-position: -168px 0px; }
.b-14 { background-position: -336px 0px; }
.b-15 { background-position: -504px 0px; }
.b-16 { background-position: -672px 0px; }
.b-17 { background-position: -840px 0px; }
.b-18 { background-position: 0px -168px; }
.b-19 { background-position: -168px -168px; }
.b-20 { background-position: -336px -168px; }
.b-21 { background-position: -504px -168px; }
.b-22 { background-position: -672px -168px; }
.b-23 { background-position:  -840px -168px; }

.b-25 { background-position:  -1008px 0px; }
.b-26 { background-position:  -1008px -168px; }
.b-27 { background-position:  -1176px 0px; }

.bubbles {
    display: none;
}

.bubbles.show {
    display: block;
}




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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (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 {
        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;
    }
}
