@keyframes SlideInFromRight {
    from {
        transform: translateX(+100%);
    }

    80% {
        transform: translateX(-2%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes SlideInFromLeft {
    from {
        transform: translateX(-150%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes ReallyBadIntroWithBackframes {
    from {
        transform: translateY(-150%);
    }

    80% {
        transform: translateY(4%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes ReallyBadIntro {
    from {
        transform: translateY(-150%);
    }

    to {
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
}

p, h1, h2, h3 {
    animation: 0.5s 0s ease ReallyBadIntro;
}

body {
    font-family: "Verdana", sans-serif;
}

.musicplayer {
    animation: 0.5s 0s ease ReallyBadIntroWithBackframes;
    border: 4px solid black;
    background-image: linear-gradient(to bottom, darkblue, blue);
    color: white;
    font-family: "Comic Sans MS", sans-serif;
    font-weight: bold;
    width: 400px;
    height: 7em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.titleholder {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
}

.controlholder {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-left: 15px;
    margin-right: 15px;
}

.musichandler {
    height: 100%;
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.musicplayer .title {
    font-size: large;
}

#songtitle{
    font-size: small
}

.playlistbutton {
    cursor: pointer;
    display: inline;
    width: 40px;
    height: 100%;
    background-color: rgb(25,25,25);
    color: white;
    font-weight: bold;
    transition: background-color 0.1s ease;
}

.playlistbutton:hover {
    background-color: rgb(40,40,40);
}

.playlistbutton:active {
    background-color: rgb(50,50,50);
}

#leftbutton {
    border-right: 4px solid black;
    border-left: none;
    border-top: none;
    border-bottom: none;
}

#rightbutton {
    border-left: 4px solid black;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.musicbutton {
    width: 40px;
    height: 30px;
    background-color: aliceblue;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
    cursor: pointer;
}

.musicbutton:hover {
    background-color: white;
    transform: scale(105%);
}

/* Firefox */
    /* Background */
    progress {
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;

        width: 100%;
        height: 100%;
        border-radius: 4px;
        border: none;
        background-color: aliceblue;
    }

    /* Value */
    progress::-moz-progress-bar {
        background-color: darkcyan;
        border-radius: 4px;
    }

/* Chrome, Edge, Safari, Opera*/
    /* Background */
    progress::-webkit-progress-bar {
        appearance: none;
        height: 100%;
        border-radius: 4px;
        border: none;
        background-color: aliceblue;
    }

    /* Value */
    progress::-webkit-progress-value {
        border-radius: 4px;
        background-color: darkcyan;
    }

.progresscontainer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 60%;
}

.timebutton {
    background-color: aliceblue;
    border: none;
    border-radius: 4px;
    height: 100%;
    margin-left: 4px;
    margin-right: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.timebutton:hover {
    transform: scale(105%);
    background-color: white;
}

.tooltip {
    opacity: 0;
    width: 90px;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

button {
    position: relative;
    display: inline-block;
}

button:hover .tooltip {
    opacity: 1;
}

#leftbutton {
    z-index: 5;
}

#pausebutton {
    z-index: 4;
}

#mutebutton {
    z-index: 3;
}

#rewindbutton {
    z-index: 2;
}

#forwardbutton {
    z-index: 1;
}

#musicholder {
    display: flex;
    float: left;
    width: 35%;
    align-items: center;
    justify-content: space-between;
}

#distraction {
    animation: 0.5s 0s ease-out SlideInFromRight;
    transition: transform 0.4s ease-out;
    border-radius: 4px;
    border: 4px solid black;
    float: right;
    cursor: pointer;
}

#distraction:hover {
    transform: scale(200%) translate(-30%, 15%);
}

#foxy {
    display: none;
    position: fixed;
    z-index: 10;
    margin: 0;
    padding: 0;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
}

.gameplayholder {
    animation: 1s 0s ease SlideInFromLeft;
    width: 60%;
    display: block;
    margin-top: 200px;
    padding: 20px;
    border: 4px solid black;
    background-image: linear-gradient(to bottom, darkblue, blue);
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
}

.videohud {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.videobutton {
    width: 40px;
    height: 30px;
    background-color: aliceblue;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 4px;
    margin-right: 4px;
}

.videobutton:hover {
    background-color: white;
    transform: scale(105%);
}

.videocontrols {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
}

.gameplayholder .progresscontainer {
    width: 100%;
    margin-top: 12px;
}

.gameplayholder progress {
    width: 100%;
    height: 12px;
}

#videotime {
    font-family: 'Comic Sans MS';
    width: 120px;
}