/* A piece of Taffy is composed of 3 parts:
    1 - Player Button
    2 - The Signals
    3 - Timecode
*/

:root {
    --bg-wrap-margin: 2rem;

    --player-height: 34px;
    --input-height: 3rem;
    --border-radius: 8px;
    --login-height: 45vh;
    --navbar-height: 4rem;
    --navbar-margin-bottom: 1rem;
    --navbar-min-height: 60px;
    --active-tool-width: 5px;
    --taffy-views-component-height: 2rem;

    --text: #EEE8E8;
    --text-dim: #D8D2D2;
    --taffy-text-color: #25181E;
    --pink: #c91292;
    --pink-lite: #F74F9E;
    --pink-litest: #FEF6FC;
    --danger: #DD0000;

    /* Global Colors */
    --page-background: #151515;
    --input-background-color: #282828;
    --navbar-background-color: #20232E;
    --btn-group-background-color: #3D4358;

    /* Control the widths of the 3 components in taffy */
    --player-box-w: 15rem;
    --button-box-w: 34px;
    --timecode-box-w: 1.5rem;

    --player-padding: 1.5rem;
    --signals-box-w: calc(
        100% - var(--button-box-w) - var(--timecode-box-w) - var(--player-padding)
    );
}


html {
    overflow-y: scroll;
}

.disabled {
    opacity: 0.2;
    user-select: none;
    pointer-events: none;
}


/* Login Page
--------------------------------*/

/*
    The two vertical flex containers that contain
    all content in the page.
*/
.title-box {
    display: flex;
    flex: 1;
}
.form-box {
    display: flex;
    flex: 2.3;
    justify-content: space-between;
    flex-direction: column;
}


.login-prewrap {
    height: 100vh;
    width: 100%;
}
.login-bg-wrap {
    font-family: "Rubik", sans-serif;
    font-weight: 100;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    max-width: 350px;
    width: 80%;
    height: var(--login-height);
    max-height: 421px;
    margin: auto;
    top: calc(50vh - var(--login-height) / 2);
}
.login-bg-wrap div {
    display: flex;
    flex-direction: column;
}

label {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.title {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
}

/* Message that sits in the form */
.error-msg {
    color: var(--danger);
    font-style: italic;
    margin-left: 4px;
}


/* The text blobs that you can create in the canvas */
.text {
    display: block;
    color: var(--text);
    margin: auto;
    font-family: "Sansita";
    font-size: 1.5rem;
    border: 0px solid red;
    background-color: rgba(0,0,0,0);
    resize: none;
}


button.primary {
    height: var(--input-height);
    background-color: var(--pink-lite);
    color: var(--taffy-text-color);
    outline: 0px solid red;
    border: 0px solid red;
    border-radius: var(--border-radius);
    letter-spacing: calc(1rem * 0.08);
    font-size: 1.25rem;
    padding: 0.5rem;
    font-family: "Lobster", cursive;
    cursor: pointer;
    transition: 0.22s;
}
button.primary:hover {
    box-shadow: 4px 4px 0 black;
}

button#submit {
    background: linear-gradient(270deg, var(--pink), var(--pink-lite));
    transform: translateY(0);
    transition: 0.5s;
    outline: 1px solid var(--pink);
}
button#submit:hover {
    transform: translateY(3px);
    outline: 1px solid var(--text);
}


input {
    height: calc(var(--input-height) - 1rem);
    border-radius: var(--border-radius);
    border: 0px solid #999;
    font-family: "Rubik", sans-serif !important;
    font-size: 1rem;
    padding: 0.5rem;
    outline: 0px solid red;
    background-color: var(--input-background-color);
    color: var(--text);
}

.outer-wrap {
    width: 100%;
    margin: auto;
}

.bg-wrap {
    margin: auto;
    width: 100%;
    max-width: 1500px;
}

body {
    font-family: 'Rubik', sans-serif;
    font-weight: 100;
    font-size: 16px;
    margin: 0;
    padding: 0;
    user-select: none !important;
    background-color: var(--page-background);
}


/* Nav bar
--------------------------------*/

.navbar {
    height: var(--navbar-height);
    min-height: var(--navbar-min-height);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: space-between;
    background: var(--navbar-background-color);
    color: #FAFAFA;
    cursor: default;
    margin-bottom: var(--navbar-margin-bottom);
}
.navbar-behind {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.2);
}

.navbar .toolbar {
    font-family: 'Rubik';
    padding-right: 0.5rem;
}
.navbar .navbar-title {
    font-family: 'Sansita';
    flex: 7;
    font-size: 1.5rem;
    text-align: center;
}
.navbar .controls {
    font-family: 'Rubik';
    padding-right: 0.5rem;
}
.navbar .controls * {
    padding: 0 0.5rem;
    background: rgba(0,0,0,0);
    border: 0;
    outline: 0;
    color: inherit;
    font-size: 1rem;
    text-decoration: none;
}
.navbar .controls *:hover {
    transition: 0.18s;
    color: var(--pink-lite);
}

.toolbar button {
    background: none;
    border: none;
    border-bottom: 5px solid rgba(0,0,0,0);
    color: #FAFAFA;
    height: var(--navbar-height);
    width: var(--navbar-height);
    font-size: 1rem;
    transition: 0.18s;
}
.toolbar button:hover {
    border-bottom: var(--active-tool-width) solid #999;
}
.toolbar button.active {
    border-bottom: var(--active-tool-width) solid #FAFAFA;
}

/* Views Panel
--------------------------------*/

/* Container that holds the view buttons */
.taffy-views-component {
    height: var(--taffy-views-component-height);
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: var(--btn-group-background-color);
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    outline: 0px solid rgba(0,0,0,0);
    border-radius: 1rem;
}

/* View Button changes the order of the taffy */
.taffy-views-component button.view, .taffy-views-component button.active-view {
    flex: 1;
    outline: 0px solid rgba(0,0,0,0);    
    border: 2px solid #2E3243;
    color: #1F1F1F;
    background-color: rgba(0,0,0,0);
    border-radius: 1rem;
    padding: 0 1rem;
    font-family: "Rubik";
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.taffy-views-component button.active-view {
    border: 2px solid var(--text);
    background-color: var(--page-background);
    color: var(--text);
}
.taffy-views-component button.view:not(.active-view):hover {
    border: 2px solid var(--text-dim);
    color: var(--text-dim);
}

/* Subscribe Icon
--------------------------------*/

.subscribe-icon {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    background-color: #4AD9C8;
    z-index: 9000;
}
.subscribe-icon button {
    background: none;
    border: none;
    border-bottom: 5px solid rgba(0,0,0,0);
    color: #FAFAFA;
    height: 50px;
    width: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.18s;
}
.subscribe-icon button:hover {
    opacity: 0.7;
}

.subscribe-icon button i {
    position: relative;
    display: inline-block;
    font-size: 25px;
    padding: 4px;
    color: var(--text);
}

/* Playlist of Taffy
--------------------------------*/

.playlist-container {
    position: relative;
    height: calc(
        100vh
        - var(--navbar-height)
        - var(--navbar-margin-bottom)
        - var(--taffy-views-component-height)
    );
}

.playlist {
    position: static;
    padding: 1rem;
    margin: 1rem;
    border-radius: 2px;
    flex-direction: column;
}


/* The piece of taffy
--------------------------------*/

.audio-player-box {
    position: absolute;
    border: 2px solid rgba(0,0,0,0);
    padding: 0.25rem;
    transition: 0.2s;
    border-radius: calc(var(--border-radius) / 2);
}

.audio-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius);
    background: linear-gradient(var(--pink), var(--pink-lite));
    width: var(--player-box-w);
    height: var(--player-height);
    box-shadow: 0 5px 5px rgba(61,0,29,0.3);
    padding: 0.7rem;
    margin-top: 0.1rem;
    transition: 0.05s;
    outline: 2px solid rgba(0,0,0,0);
}

.audio-player-box p {
    margin: 0;
}
.audio-player-box p.song-title {
    color: var(--text);
    font-family: "Rubik", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    padding-bottom: 0;
}
.audio-player-box p.song-description {
    color: #d0d3f1cc;
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    font-weight: 100;
    padding-bottom: 0;
}


/* 1. The player button box
--------------------------------*/
.player-button-box {
    width: var(--button-box-w);
    height: var(--player-height);
    display: inline-block;
}
.player-button-box button.play-button {
    margin: 0;
    padding: 0;
    outline: 0px solid red;
    border: 0px solid red;
    border-radius: var(--border-radius);
    height: 100%;
    width: 100%;
    font-size: 0.8rem;
    color: #2A2A2A;
    background: linear-gradient(var(--pink-litest), #FEA1C8);
    cursor: pointer;
    transition: 0.1s;
}
.player-button-box button.play-button:hover {
    opacity: 0.8;
}

.player-button-box button.play-button i.play-icon {
    font-size: 1.5em;
}

/* 2. The audio signals box
--------------------------------*/

.player-audiosignal-box {
    width: var(--signals-box-w);
    display: flex;
    position: relative;
    height: 100%;
    align-items: center;
    justify-content: space-around;
}
.player-audiosignal-box .audio-sample {
    background-color: #F2A6C9;
}
.player-audiosignal-box .audio-sample.isplayed {
    background-color: var(--taffy-text-color);
}

/* 3. The timecode container
--------------------------------*/
.timecode-box {
    width: var(--timecode-box-w);
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}
span.time {
    color: #2A2A2A;
    font-size: 1rem;
    font-family: "Rubik";
}

/* Animations and KeyFrames */

@keyframes gradient-animation {
  0% {
    background-position: 25% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 25% 50%;
  }
}

@keyframes static-gradient {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}