/**
 * @fileoverview Handles Countdown Page styles for JustinMJimenez.com
 * @module public/css/justin.countdown
 * @author Justin Jimenez <justin@justinmjimenez.com> 🍵
 * @copyright ©️2018 Justin Jimenez. All Rights Reserved.
 * @version 1.3.6
 */


/* @import url('https://fonts.googleapis.com/css?family=Barlow+Condensed|Questrial'); */
@import url('https://fonts.googleapis.com/css?family=Bungee+Hairline|Bungee+Outline|Oxygen:700|Questrial');

#countdown header,
#countdown footer {
    display: none;
}

.page_content {
    width: calc(100% - 40px);
    height: auto;
    color: #fff;
    margin: 0 auto;
    margin-top: 100px;
}

#countdown-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: #fff;
    /* background: #EA6083 url(../images/justin/Justin-Jimenez-Portrait-Hollow-3c3c3c.svg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover; */
    /* background: linear-gradient(270deg, #EA6083, #59ABF7);
    background-size: 1600% 1600%;
    -webkit-animation: BackgroundChange 5s ease infinite;
    -moz-animation: BackgroundChange 5s ease infinite;
    -o-animation: BackgroundChange 5s ease infinite;
    animation: BackgroundChange 5s ease infinite; */
}

.page_header {
    width: 100%;
    height: 100px;
}

.site_logo {
    width: 50%;
    height: 100%;
    float: left;
    clear: left;
}

.site_logo img {
    margin-left: 20px;
}

.ctrl_wrapper {
    width: 90px;
    height: 35px;
    float: right;
    margin-right: 20px;
    margin-top: calc(65px / 2);
}

#mute {
    width: 35px;
    height: 35px;
    float: right;
    outline: none;
    cursor: pointer;
    border-radius: 90px;
    -moz-border-radius: 90px;
    -webkit-border-radius: 90px;
    transition-duration: .35s;
    transition-property: background, border;
    transition-timing-function: ease-out;
}

#mute[data-status="muted"] {
    border: 2px solid #ffffff;
    background: url(../images/icons/ui/muted-on.svg) no-repeat;
    background-size: 18px;
    background-position: center;
}

#mute[data-status="unmuted"] {
    border: 2px solid #3c3c3c;
    background: url(../images/icons/ui/muted-off.svg) no-repeat;
    background-size: 18px;
    background-position: center;
}

#play-pause {
    width: 35px;
    height: 35px;
    max-width: 35px;
    max-height: 35px;
    float: left;
    clear: left;
    outline: none;
    padding: 0;
    cursor: pointer;
    border-radius: 90px;
    -moz-border-radius: 90px;
    -webkit-border-radius: 90px;
    transition-duration: .35s;
    transition-property: background, border;
    transition-timing-function: ease-out;
}

#play-pause[data-status="paused"] {
    border: 2px solid #3c3c3c;
    background: url(../images/icons/ui/play-gray.svg) no-repeat;
    background-size: 16px;
    background-position: 10px center;
}

#play-pause[data-status="playing"] {
    border: 2px solid #ffffff;
    background: url(../images/icons/ui/pause.svg) no-repeat;
    background-size: 16px;
    background-position: center;
}

.audio_player {
    width: 50%;
    height: 100%;
    float: left;
}

#audio {
    height: 54px;
    float: right;
    margin-top: 23px;
    margin-right: 20px;
}

.main_wrapper {
    width: 100%;
    height: auto;
    margin-top: 150px;
}

.countdown_header {
    width: 100%;
    height: auto;
}

.countdown_header h2 {
    color: #fff;
    font-size: 68px;
    text-align: center;
    /* letter-spacing: .1em; */
    text-transform: uppercase;
    /* font-family: 'Questrial', sans-serif; */

    /* font-family: 'Khula', sans-serif; */
    /* font-family: 'Bungee Outline', cursive; */
    font-family: 'Bungee Hairline', cursive;
}

.clock_wrapper {
    width: calc(100% - 40px);
    height: 100px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

#clock {
    width: 100%;
    height: 100%;
    color: #EA6083;
    font-size: 100px;
    text-align: center;
    font-weight: normal;
    /* font-family: 'Oxygen', sans-serif; */
    font-family: 'Questrial', sans-serif;
}

#clock .cd_num {
    font-size: 100px;
    font-weight: 900;
}

#clock .cd_label {
    font-size: 68px;
    font-weight: 900;
}

.num_tile {
    width: 25%;
    height: 100%;
    float: left;
}

.num_tile:first-child { clear: left; }

.text_wrapper {
    width: calc(100% - 40px);
    height: auto;
    margin: 0 auto;
    margin-top: 10px;
}

.text_wrapper time {
    color: #fff;
    display: block;
    font-size: 28px;
    margin-top: 20px;
    font-weight: 900;
    text-align: center;
    font-family: 'Bungee Hairline', cursive;
}

/* .text_wrapper p {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
} */

.text_wrapper p {
    color: #000;
    font-size: 30px;
    margin-top: 20px;
    font-family: 'Barlow Condensed', sans-serif;
}

/*  LOADER  */

#loader-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 10;
    position: fixed;
    background: #EA6083;
    transition-duration: .35s;
    transition-property: opacity;
    transition-timing-function: ease-out;
}

#loader-wrapper[data-status="opaque"] {
    opacity: 0;
}

#loader-wrapper .loader {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    margin-top: 150px;
    border: none;
    outline: none;
    background: url(../images/icons/ui/loader.svg) no-repeat;
    background-size: 250px;
    background-position: center;
    -webkit-animation:spin 3s linear infinite;
    -moz-animation:spin 3s linear infinite;
    animation:spin 3s linear infinite;
}

#loader-wrapper p {
    color: #fff;
    font-size: 80px;
    font-weight: 900;
    padding-top: 50px;
    text-align: center;
    text-transform: uppercase;
    animation: flash .5s infinite;
	-moz-animation: flash .5s infinite;
	-webkit-animation: flash .5s infinite;
	animation-direction: alternate-reverse;
	-moz-animation-direction: alternate-reverse;
	-webkit-animation-direction: alternate-reverse;
    font-family: 'Bungee Hairline', cursive;
}

/*  END: LOADER  */

/*  FOOTER  */

.page_footer {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
}

.page_footer small {
	float: left;
    color: #fff;
    font-size: 12px;
	line-height: 50px;
	margin-left: 20px;
    display: inline-block;
    font-family: 'Questrial', sans-serif;
}

.social_media {
    width: 242px;
	height: 100%;
	float: right;
	margin-right: 20px;
}

.page_footer .social_link,
.page_footer .social_link:link,
.page_footer .social_link:visited {
	width: 32px;
	height: 32px;
	float: left;
	margin-top: 9px;
	margin-left: 10px;
	text-decoration: none;
	transition-duration: .35s;
    transition-property: background;
    transition-timing-function: ease-out;
}

.page_footer .social_link:first-child {
	clear: left;
	margin-left: 0;
	margin-right: 0;
}

.page_footer .social_link:last-child {
	float: right;
	margin-left: 0;
	margin-right: 0;
}

.page_footer .social_link.instagram_link,
.page_footer .social_link.instagram_link:link,
.page_footer .social_link.instagram_link:visited {
	background: url(../images/icons/social/instagram-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.instagram_link:hover {
	background: url(../images/icons/social/instagram-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.linkedin_link,
.page_footer .social_link.linkedin_link:link,
.page_footer .social_link.linkedin_link:visited {
	background: url(../images/icons/social/linkedin-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.linkedin_link:hover {
	background: url(../images/icons/social/linkedin-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.github_link,
.page_footer .social_link.github_link:link,
.page_footer .social_link.github_link:visited {
	background: url(../images/icons/social/github-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.github_link:hover {
	background: url(../images/icons/social/github-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.twitch_link,
.page_footer .social_link.twitch_link:link,
.page_footer .social_link.twitch_link:visited {
	background: url(../images/icons/social/twitch-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.twitch_link:hover {
	background: url(../images/icons/social/twitch-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.twitter_link,
.page_footer .social_link.twitter_link:link,
.page_footer .social_link.twitter_link:visited {
	background: url(../images/icons/social/twitter-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.twitter_link:hover {
	background: url(../images/icons/social/twitter-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.facebook_link,
.page_footer .social_link.facebook_link:link,
.page_footer .social_link.facebook_link:visited {
	background: url(../images/icons/social/facebook-circle-solid-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

.page_footer .social_link.facebook_link:hover {
	background: url(../images/icons/social/facebook-circle-white.svg) no-repeat;
    background-position: center;
    -webkit-background-size: 32px;
    -moz-background-size: 32px;
    -o-background-size: 32px;
    background-size: 32px;
}

/*  END: FOOTER  */


@media (max-width: 500px) {

    #countdown-wrapper {
        background-position: center bottom;
        -webkit-background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        background-size: contain;
    }

    #loader-wrapper .loader {
        margin-top: 125px;
    }

    #loader-wrapper p {
        font-size: 48px;
    }

    .main_wrapper {
        margin-top: 25px;
    }

    .countdown_header h2 {
        font-size: 34px;
        font-weight: 900;
        padding-top: unset;
    }

    .clock_wrapper {
        height: 50px;
        margin-top: 15px;
    }

    #clock {
        font-size: unset;
        line-height: 50px;
    }

    #clock .cd_num {
        font-size: 42px;
        font-weight: 900;
    }

    #clock .cd_label {
        font-size: 24px;
    }

    .page_header {
        height: 135px;
    }

    .site_logo {
        width: 100%;
        height: 100px;
    }
    
    .site_logo img {
        margin-left: unset;
        margin: 0 auto;
        display: block;
    }

    .audio_player {
        width: 100%;
        height: 35px;
    }

    .ctrl_wrapper {
        float: unset;
        margin-right: unset;
        margin: 0 auto;
    }

    /* #mute {
        float: unset;
        margin-right: unset;
        margin-top: unset;
        margin: 0 auto;
        display: block;
        transition-duration: unset;
        transition-property: unset;
        transition-timing-function: unset;
    }

    #play-pause {
        width: 35px;
        height: 35px;
        max-width: 35px;
        max-height: 35px;
        float: left;
        clear: left;
        outline: none;
        padding: 0;
        cursor: pointer;
        border-radius: 90px;
        -moz-border-radius: 90px;
        -webkit-border-radius: 90px;
        transition-duration: .35s;
        transition-property: background, border;
        transition-timing-function: ease-out;
    } */

    .text_wrapper p {
        font-size: 18px;
    }

    .text_wrapper p a {
        font-size: 18px;
        text-decoration: underline;
    }

	.page_footer {
		height: 100px;
		background: none;
	}

	.page_footer small {
		line-height: unset;
	}

	#copyright {
		width: 100%;
		height: 50px;
		line-height: 50px;
		text-align: center;
	}

	.social_media {
		width: 100%;
		height: 50px;
		margin-right: 0;
	}

	.page_footer .social_media .social_link {
		width: 16.66%;
		height: 50px;
		margin-top: 0;
		margin-left: 0;
	}

	.page_footer small {
		float: unset;
		margin-left: 0;
	}

}

@media only screen and (max-width: 850px) and (orientation : landscape) {

    #countdown-wrapper .main_wrapper {
        width: calc(100% - 40px);
        height: 75px;
        margin-top: unset;
        margin: 0 auto;
    }

    .countdown_header {
        width: 25%;
        height: 75px;
        float: left;
        clear: left;
    }

    .countdown_header h2 {
        font-size: 32px;
        text-align: left;
    }

    .clock_wrapper {
        width: 75%;
        height: 75px;
        float: left;
    }

    #clock {
        line-height: 75px;
    }

    #clock .cd_num {
        width: 50%;
        height: 100%;
        float: left;
        clear: left;
        font-size: 50px;
        display: block;
        text-align: right;
        /* line-height: 75px;
        float: left;
        clear: left;
        display: block;
        margin: 0 auto; */
    }
    
    #clock .cd_label {
        width: calc(50% - 10px);
        height: 100%;
        float: left;
        font-size: 28px;
        text-align: left;
        display: block;
        margin-left: 10px;
        text-transform: uppercase;
        /* line-height: 75px;
        text-align: right;
        display: inline-block;
        float: right; */
    }

    .text_wrapper time {
        text-align: right;
    }

    #loader-wrapper .loader {
        width: 150px;
        height: 150px;
        margin-top: 50px;
        background-size: 150px;
    }
    
    #loader-wrapper p {
        font-size: 80px;
        padding-top: unset;
        /* padding-top: 50px; */
        text-align: center;
    }

}