/*! 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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
}

/*w
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

*{
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale;
}

html{
    height: 100%;
}

body{
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #191919;
    position: relative;
    background: url(bg.jpg) no-repeat center top #333;
    background-size: 100% 100%;
}


#page{
    width: 90%;
    margin: 0 auto;
    padding: 0 5%;
}

#page .wrap{
    margin-top: 15px;
}

.topper{

}

#page.inpopup{
    padding: 0 3% 25px;
}

.topper{
    position: relative;
}

.slogan {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px 0 0;
}

#page.inpopup .slogan {
    position: relative;
    top: 0;
    right: 0;
    display: block;
    margin: 5px auto 20px;
}

#logo{
    width: 201px;
    margin: 25px auto 30px;
    display: block;

    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.inpopup #logo{
    margin: 0 auto 15px;
}

#logo:hover{
    transform: scale(1.1);
}

#audio{
    display: none;
}

#player,
#player2 {
    position: relative;
    width: 157px;
    height: 157px;
    margin: 0 auto;
    cursor: pointer;
    margin-top: -15px;
}

#player .level0,
#player .glow,
#player .button,
#player2 .button ,
#player2.glow ,
#player2 .level0  {
    position: absolute;
    width: 157px;
    height: 157px;
    top: 0;
    left: 0;

    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#player .level0,
#player2 .level0{
    background: url(l0.png) no-repeat center center;
    z-index: 1;
}


#player .glow,
#player2 .glow{
    background: url(glow.png) no-repeat center center;
    z-index: 2;
    opacity: 0;


    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    transition: all 2s ease-in-out;
}


#player .button,
#player2 .button{
    background: url(btn.png) no-repeat center center;
    z-index: 3;
    opacity: 0.85;
}

#player .button span,
#player2 .button span{
    position: absolute;
    width: 50px;
    height: 112px;
    top: 22px;
    left: 54px;
    background: url(playpause.png) no-repeat center -80px;
}


#player.playing .button span{
    background: url(playpause.png) no-repeat center 39px;
}

#player.playing .glow{
    opacity: 1;
}

#player .button:hover,
#player2 .button:hover{
    opacity: 1;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

#player.playing .button:hover{
    -webkit-transform: scale(1);
    transform: scale(1);
}

#player.playing .button{
    opacity: 1;
}

#player.playing .glow{

    -webkit-animation: glowAnimation 3s 1s linear infinite;
    -moz-animation: glowAnimation 3s 1s linear infinite;
    -ms-animation: glowAnimation 3s 1s linear infinite;
    -o-animation: glowAnimation 3s 1s linear infinite;
    animation: glowAnimation 3s 1s linear infinite;
}


@keyframes glowAnimation {
  from {
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
  }
}
@-webkit-keyframes glowAnimation /* Safari and Chrome */ {
  from {
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
  }
}

#newwindow{
    background: url("popup.png") no-repeat scroll left center;
    color: #fff;
    font-size: 16px;
    font-weight: 100;
    padding: 5px 0 5px 35px;
    text-decoration: none;
    line-height: 16px;
    display: inline-block;
}


#newwindow2{
    color: #fff;
    font-size: 16px;
    font-weight: 100;
    padding: 5px 0;
    text-decoration: none;
    line-height: 16px;
    margin-top: 5px;
    display: inline-block;
}

#newwindow:hover,
#newwindow2:hover{

      text-decoration: underline;
}


.share{
    display: block;
    width: 93px;
    margin: 0 auto;
}


.site{
    color: #fff;
    text-align: center;
    display: block;
    margin-top: 60px;
}

.inpopup .site{
    margin-top: 30px;
}

#c{
    margin: 0 auto;
    display: block;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}