@font-face {
	font-family: "Comfortaa";
	src: url("/css/fonts/comfortaa/comfortaa.eot"); /* IE9 Compat Modes */
	src: url("/css/fonts/comfortaa/comfortaa.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("/css/fonts/comfortaa/comfortaa.otf") format("opentype"), /* Open Type Font */
		url("/css/fonts/comfortaa/comfortaa.svg") format("svg"), /* Legacy iOS */
		url("/css/fonts/comfortaa/comfortaa.ttf") format("truetype"), /* Safari, Android, iOS */
		url("/css/fonts/comfortaa/comfortaa.woff") format("woff"), /* Modern Browsers */
		url("/css/fonts/comfortaa/comfortaa.woff2") format("woff2"); /* Modern Browsers */
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
pre {
    /*font-family: monospace;*/
    font-family: "Comfortaa";
    color: #333;
}

html, body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    text-align: center;
    vertical-align: bottom;
    overflow: hidden;
/*    transform: rotate(180deg);*/
    background-position: center center;
}

.no-cursor {
    cursor: none;
}

#overlay {
    display: flex;
    background-color: rgba(0, 0, 0, .42);
    /* padding: 0; */
    /* padding-top: 2vh; */
    /* padding-bottom: 3vh; */
    height: 100vh;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
    height: 146vh;
    width: 146vw;
    background-color: #000;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1);
}

#gif, .media-block {
    position: fixed;
    top: 15vh;
    left: 20vw;
    width: 60vw;
    height: 70vh;
    cursor: pointer;
    background-image: url('/gif/snoop_dogg.gif');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(10px 10px 6px #0000008f);
    display: unset;
    transition-property: all;
    transition-duration: 0.3s;
    transition-delay: 0.2s;
    transition-timing-function: cubic-bezier(1,-0.21, 0.58, 1);
}

.hidden {
    display: none;
}

#play {
    background-image: url('/gif/play.gif');
}

#playstart {
    background-image: url('/gif/play.gif');
}

#pause {
    background-image: url('/gif/pause.gif');
}

@keyframes fade-out {
    0% { opacity: .8; }
    100% { opacity: 0; transform: scale(3,3); }
}

@keyframes fade-in {
    0% { opacity: 0; transform: scale(2, 2); }
    100% { opacity: .8; }
}

.width-in {
    width: 52.33vw;
    height: 68.42vh;
    opacity: 0;
    animation: width-in 0.33s cubic-bezier(0.42, 0, 0.85, 0.17) forwards;
    animation-delay: 0.33s;
}

@keyframes width-in {
  from {
    opacity: 0;
    width: 50vw;
    height: 60vh;
  }
  to {
    opacity: 1;
    width: 60vw;
    height: 70vh;
  }
}


.popup {
    position: fixed;
    width: 30vw;
    height: 30vh;
    top: 35vh;
    left: 35vw;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    pointer-events: none; 
}

#play.popup {
    animation: fade-out .4s ease-out forwards;
}
#play.pause-popup {
    animation: fade-in .4s ease-out forwards;
}
#playstart.popup { opacity: .8; }
#playstart.hidden {
	display: block!important;
    animation: fade-out .4s ease-out forwards;
}

#pause.popup {
    animation: fade-in .4s ease-out forwards;
}

.controls {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
    height: 14vh;
    width: 100vw;
    left: 0;
    text-align: center;
    opacity: 0;
    transition: 1s opacity;
}

.controls.bottom {
    bottom: 0;
}

.controls.top {
    top: 0;
    background: rgba(0,0,0,0.5);
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
}

.controls:hover {
    opacity: 1;
    transition: 1s opacity;
}

@media screen and (max-width: 768px) {
    .controls {
        opacity: .8!important;
    }
    .controls a{
        opacity: .8!important;
    }
    .controls span {
        font-size: 1.1em!important;
        width: 65vw;
    }
    .controls a:hover {
        opacity: .8!important;
        transform: scale(1.00)!important;
        transition: .4s all;
    }
    .controls a:active {
        transform: scale(1.337, 1.337)!important;
        transition: .1s all;
    }
}

.controls::before, .controls::after {
    content: " ";
    width: 0;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
}

.controls a {
    display: inline-block;
    vertical-align: middle;
    width: 10vh;
    height: 10vh;
    background-image: url('/gif/next.gif');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 10vw;
    margin-right: 10vw;
    cursor: pointer;
    opacity: .6;
    transition: .4s all;
}

.controls span {
    align-items: center;
    display: flex;
    justify-content: center;
    /*font-family: monospace;*/
    font-family: "Comfortaa";
    vertical-align: middle;
    color: white;
    font-size: 1.2em;
    text-transform: lowercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
    word-wrap: normal;
}

.controls a:hover {
    opacity: .8;
    transform: scale(1.05);
    transition: .4s all;
}

.controls a:active {
    transform: scale(1.337, 1.337);
    transition: .1s all;
}

.controls #prev {
    background-image: url(/gif/prev.gif);
}

.controls #prev:active {
    transform: scale(1.337, 1.337);
    transition: .1s all;
}

.pointer-fade {
    opacity: 1;
    transition: .6s opacity;
}
/* Pulse Grow */
@-webkit-keyframes hvr-pulse-grow {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@keyframes hvr-pulse-grow {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
.hvr-pulse-grow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-pulse-grow:hover, .hvr-pulse-grow:focus, .hvr-pulse-grow:active {
  -webkit-animation-name: hvr-pulse-grow;
  animation-name: hvr-pulse-grow;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
}

@keyframes drop-shadow-share {
	0% { filter: drop-shadow(0px 0px 0px white); }
	50% { filter: drop-shadow(0px 0px 7px white); }
	100% { filter: drop-shadow(0px 0px 0px white); }
}

.drop-shadow-share {
	animation: drop-shadow-share 1s ease-in-out;
}

@keyframes spin-share {
	0% { transform: translateY(-50%) rotate(0turn); }
	100% { transform: translateY(-50%) rotate(1turn); }
}

.spin-share {
	animation: spin-share .5s linear infinite;
	transform-origin: center center;
}
