@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:100,400,700');

#controls{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 400;
    width: 100%;
    height: 8rem;
    opacity: .5;
    transition: opacity 300ms ease-in-out;
}
#controls:hover{
    opacity: 1;
}
#closeMe, #replayMe, #speedMe, .pauseResume a{
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 3rem;
    height: 3rem;
    background: #554596;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    transition: all 300ms ease-in-out;
    cursor: pointer;
    box-shadow: 0 0 3rem rgba(0,0,0,.5);
}
#replayMe{left: 3rem;}
#speedMe{
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 11rem;
    border-radius: 1em;
    cursor: default;
    background: none;
    box-shadow: none;
    justify-content: normal;
}

/* styling select */

#speedMe select{
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.3;
    padding: .6em 1.6em .5em .8em;
    width: 6.5rem;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: none;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
    border-radius: .5em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #554596;
    background-image: url('../svg/down.svg');
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: 1em auto;
    box-shadow: 0 0 3rem rgba(0,0,0,.5);
    outline: none !important;
}
.select-css::-ms-expand {
    display: none;
}
.select-css:hover {
    border-color: #888;
}
.select-css:focus {
    border-color: #aaa;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #222;
    outline: none;
}
.select-css option {
    font-weight:normal;
}

#closeMe:hover, #replayMe:hover{
    transform: rotate(90deg);
    border-radius: 5%;
    background-color: #f9d900;
}

#closeMe svg, #replayMe *, .pauseResume *{
    width: 50%;
    transition: transform 400ms ease-in-out;
    opacity: 1;
}

#closeMe svg rect, #replayMe svg path, .pauseResume svg path{
    fill: #f9d900;
    transition: fill 600ms ease-in-out;
}

#closeMe:hover svg, #replayMe:hover svg{
    width: 60%;
    transform: scale(1.3) rotate(-180deg);
}

#closeMe:hover svg rect, #replayMe:hover svg path{
    fill: #fff;
}

.pauseResume{

}

.pauseResume a{
    top: auto;
    right: auto;
    margin-left: 1rem;
}

#resume{
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 40rem){
    #controls{
        opacity: 1;
    }
    #closeMe, #replayMe, #speedMe{
        top: 1rem;
    }
    #closeMe{
        right: 1rem;
    }
    #replayMe{
        left: 1rem;
    }

}