/*
 * Main page layout, navigation bars, and footer
 */

:root {
  --main-bg-color: #E8E8E8;
  --hero-color: rgb(52, 68, 88);
  --hero-highlight: #F18B05;
  --hero-orange: #fd974f;
  --active-color: #279DDB;
  --piano-color: #2f9aef;
  --guitar-color: #f0c229;
  --marimba-color: #f6843f;
  --sequencer-color: #f6843f;
  --bass-color: #ec5eb2;
  --drum-color: #86c44e;
  --drum-color-hover: rgba(134, 196, 78, 0.75);
  --sound-color: lightseagreen;
  --text-color: #30acac;
  --definitions-color: #996dd9;
  --header-bg-color: #2e303f;
  --mixer-track-pad: 10px;
  --error-color: #da575d;
  --main-font: 'Nunito', sans-serif;
  --title-font: 'Nunito Sans', sans-serif;
  --impact-font: 'Alegreya Sans', sans-serif;
  --impact-font-alt: 'Oleo Script', cursive;
  --nav-color: #414251;
  --alt-nav-color: #575A6D;
  --warning-color: #2f9aef;
  --warning-flash-color: #4bf;
  --main-box-shadow: 0px 15px 5px -10px rgb(50 50 93 / 25%), 0 30px 65px -30px rgb(0 0 0 / 0%);
  --project-box-shadow: 0px 15px 5px -10px rgb(50 50 93 / 25%), 0 30px 65px -30px rgb(0 0 0 / 0%);
  --background-pattern:radial-gradient(circle at top left, rgb(235,235,235) 0%, rgb(235,235,235) 10%, rgb(229, 229, 229) 10%, rgb(229, 229, 229) 18%, rgb(222, 222, 222) 19%, rgb(222, 222, 222) 21%, rgb(216, 216, 216) 22%, rgb(216, 216, 216) 23%, transparent 23%), radial-gradient(circle at top left,rgb(209, 209, 209) 23%, rgb(209, 209, 209) 66%,rgb(205, 205, 205) 67%, rgb(205, 205, 205) 75%,rgb(200, 200, 200) 78%, transparent 78%), radial-gradient(circle at top left,rgb(195, 195, 195) 79%, rgb(195, 195, 195) 84%,rgb(77,126,126) 84%,rgb(77,126,126) 86%,rgb(70,85,114) 93%, rgb(70,85,114) 100%);
  --alt-background-pattern: radial-gradient(circle at bottom right, rgb(235,235,235) 0%, rgb(235,235,235) 10%, rgb(229, 229, 229) 10%, rgb(229, 229, 229) 18%, rgb(222, 222, 222) 19%, rgb(222, 222, 222) 21%, rgb(216, 216, 216) 22%, rgb(216, 216, 216) 23%, transparent 23%), radial-gradient(circle at bottom right,rgb(209, 209, 209) 24%, rgb(209, 209, 209) 66%,rgb(205, 205, 205) 67%, rgb(205, 205, 205) 75%,rgb(200, 200, 200) 74%, rgb(200, 200, 200) 75%,transparent 75%), radial-gradient(circle at bottom right,rgb(195, 195, 195) 74%, rgb(195, 195, 195) 84%,rgb(190, 190, 190) 85%, rgb(190,190,190) 85%,rgb(77,126,126) 85%,rgb(77,126,126) 86%,rgb(70,85,114) 93%, rgb(70,85,114) 100%);
  --gray-background-pattern: radial-gradient(circle at 60% 60%, rgb(250, 250, 250) 0%, rgb(247, 247, 247) 6%,rgb(242, 242, 242) 6%, rgb(242, 242, 242) 15%,rgb(240, 240, 240) 15%, rgb(240, 240, 240) 47%,rgb(235, 235, 235) 47%, rgb(235, 235, 235) 54%,rgb(232, 232, 232) 54%, rgb(232, 232, 232) 56%,rgb(229, 229, 229) 56%, rgb(229, 229, 229) 90%,rgb(223, 223, 223) 90%, rgb(223, 223, 223) 100%);
}

*, *:after, *:before {
  /* box-sizing: border-box; */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}


html, body { height: 100%; }

body {
  background-color: var(--main-bg-color);
  font-family: var(--main-font);
  font-weight: 200;
  margin: 0;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.tracks {
  height: fit-content;
  position: relative;
}

main {
  padding-top: 80px;
  padding-left: 60px;
  min-height: 100%;
  background-image: var(--gray-background-pattern);
}

section#code-tab {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
}

/*
 * MASTER BUTTON STYLES
 */
.button {
  padding: 0.5em;
  color: white;
  background-color: var(--active-color);
  border: 2px solid white;
  border-radius: 5px;
  font-weight: bold;
  font-family: var(--main-font);
  font-size: 15px;
  outline: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  width: 200px;
}

.button:hover {
  color: var(--active-color);
  background-color: white;
  border: 2px solid var(--active-color);
}

.dialog.help {
  width: 80%;
  margin-top: 50px;
  height: calc(100vh - 120px);
  max-height: unset;
  text-align: left;
}

.dialog.help iframe {
  width: calc(100% - 15px);
  height: 90%;
  border: none;
  outline: none;
}

section.hidden {
  display: none !important;
}

/*
 * LEFT SIDE NAV BAR
 */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 65px;
  height: 100%;
  background-color: #414251;
  z-index: 950;
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: 0.175s all;
}

.side-nav.hide {
  transform: translateX(-65px);
}

.side-nav .tunepad-logo {
  width: 65px;
  height: 55px;
  margin-top: 2px;
  /* margin-bottom: 30px; */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 140%;
  background-image: url('../images/logo_light.svg');
}

.side-nav #profile-button {
  position: relative;
  margin-top: 30px;
}

.side-nav #profile-button .drop-menu {
  top: 0px;
  left: 62px;
}

.side-nav #mini-view-drawer{
  width: 45px;
  height: 50px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 65px;
  top: 60px;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  background-color: rgba(65, 66, 81, 0.85);
  color: #DEDEDE;
  box-shadow: var(--main-box-shadow);
  visibility: hidden;
}
.side-nav #mini-view-drawer:hover{
  cursor: pointer;
  color: #FFF;
}
/*
 * TOP NAVIGATION BAR
 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  color: #414251;
  background-color: #fdfdfd;
  z-index: 900;
  /* box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1); */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 8px 20px 8px 80px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.top-nav .expander { flex: 1; }

.top-nav .menu-button {
  color: #999;
  font-size: 14px;
  font-family: var(--main-font);
  font-weight: 600;
  margin: 0 7px;
  padding: 8px 14px;
  border-radius: 5px;
  line-height: 100%;
}

.top-nav .menu-button:hover{cursor: pointer;}

.top-nav #project-name {
  flex: 2;
  min-width: 160px;
  max-width: 550px;
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 700;
  color: #414251;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px;
  margin-left: 5px;
  }

.top-nav #project-name:hover {
  border: 1px solid #0007;
  background-color: #f7f7f7;
}

.top-nav .separator {
  border-left: 2px solid #bbc;
  height: 65%;
  margin: 0 10px 0 10px;
}

/* consider styling collaborative contexts slightly differently
.top-nav:after{
  position: absolute;
  content:"";
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(49, 31, 85, 0.5) 0%, 31.237525%, rgba(91, 43, 117, 0.5) 62.47505%, 81.237525%, rgb(72, 138, 235) 100%);
  left: 0;
  bottom: 0;
}*/

#bpm, #time-signature, #key-base, #bars {
  color: #414251;
  font-size: 18px;
}


#music-settings, #music-settings-inner {
  display: flex;
align-items: center;justify-content: center;}

#music-settings.collapsed {

}

#music-settings .settings-icon {
  display: none;
  color: #414251;
  font-size: 14pt;
}

#music-settings .settings-icon:hover {
  opacity: 0.8;
  cursor: pointer;

}

#change-bpm,
#change-time-signature,
#change-key {
  position: relative;
  border-radius: 5px;
  transition: 0.25s all;
  width: 90px;
  text-align: center;
  white-space: nowrap;
}

#change-bars{
  border: 2px solid #414251;
}

#change-bpm:hover,
#change-time-signature:hover,
#change-key:hover,
#change-bars:hover {
  cursor: pointer;
  text-decoration: none;
  background-color: #E4E4E4;
}

#change-bpm:active,
#change-time-signature:active,
#change-key:active,
#change-bars:active {
  color: #2f9af0;
  /* text-decoration: underline; */
}

#change-bpm:active #bpm,
#change-time-signature:active #time-signature,
#change-key:active #key-base,
#change-bars:active #bars {
  color: #2f9af0;
}


nav.side-nav .side-button {
  text-align: center;
  color: #fff9;
  font-size: 130%;
  font-family: var(--main-font);
  background-color: transparent;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  margin: 10px 0;
}
nav.side-nav .side-button:hover { color: #fff; cursor: pointer; }
nav.side-nav .side-button:active { color: #fff; }
nav.side-nav .side-button.hidden { display: none; }

nav.side-nav .readonly #share-button { display: none; }

.side-nav .side-button span {
  display: block;
  width: 100%;
  font-size: 11px;
  margin: 4px auto;
  text-align: center;
  font-weight: bold;
}

span.custom-label{
  margin-top: 40px !important;
}

#profile-button.photo {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: 40px;
  background-position: center;
  margin: 10px 6px 30px 7px;
}

#profile-button.photo i {
  opacity: 0;
}

#library-button {
  position: relative;
  height: 55px;
}

/*using a pseudo class to set the background image and its opacity*/
#library-button::before {
  content: "";
  background-image: url('../images/library.svg');
  background-repeat: no-repeat;
  background-size: 38px;
  background-position: top center;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  opacity: 0.7;
}

#library-button:hover::before{
  opacity: 1.0;
}

#library-button:hover { opacity: 1.0; }

#library-button span {
  opacity: 1.0;
}
.readonly #library-button {
  display: none;
}

.readonly #recorder-button {
  display: none;
}

#userlist {
  margin: 15px 0;
  list-style: none;
  padding: 0;
  width: 100%;
}

#userlist li, .collaborators li {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 170%;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50%;
  background-origin: content-box;
  transition: box-shadow linear 0.15s;

  line-height: 35px;
  font-weight: bold;
  color: #2e303f;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none; 
  user-select: none; 
}

.collaborators li {
  width: 35px;
  height: 35px;
  margin-left: 5px;
}

#userlist li {
  width: 40px;
  height: 40px;
  margin: 15px auto;
  background-size: 40px;
}

#userlist li:hover, .collaborators li:hover {
  box-shadow: 0 0 6px #ffffff8b;
  transition: box-shadow linear 0.15s;
}

li.collaborator img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
} 


#userlist li.known, .collaborators li.known{
  font-size: 18px;
  font-family: monospace;
  cursor: pointer;
}

.collaborators li.known {
  font-size: 16px;
}

#userlist li.known i, .collaborators li.known i {
  opacity: 0;
  display: none;
}

#userlist .collaborator.additional {
  font-weight: bold;
  border-radius: 50%;
  line-height: 40px;
}

.collaborators {
  display: flex;
  list-style: none;
}


.collaborators .collaborator i.fas {
  font-size: 25px;
  line-height: 35px;
}

#master-clock {
  font-family: monospace;
  font-size: 16px;
  color: #999;
  display: none;
}

.top-nav .tabs {
  display: flex;
  margin: 0 30px;
}

.top-nav .tabs.hidden {
  display: none;
}

.top-nav .tabs button {
  flex: 1;
  color: #999;
  padding: 8px 14px;
  margin: 0 7px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--main-font);
  font-weight: 600;
  background-color: transparent;
  width: 5em;
  transition: all 0.25s;
}
.top-nav .tabs button.selected,
.top-nav .tabs button:hover {
  background-color: #414251;
  color: #fdfdfd;
  cursor: pointer;
}
.top-nav .tabs button:active {
  background-color: #2f9af0;;
  color: #fdfdfd;
}

.top-nav .code-transport-buttons, .top-nav .daw-transport-buttons{
  margin-left: auto;
  width: 100px;
}

.top-nav .transport-button {
  color: #414251;
  padding: 8px 14px;
  border: none;
  outline: none;
  background-color: transparent;
  font-size: 14px;
}
.top-nav .transport-button:hover { color: #888; cursor: pointer; }
.top-nav .transport-button:active { color: #2f9af0; }

.tempo-menu, .time-menu, .bars-menu {
  width: 220px;
  top: 45px;
  left: 0px;
  text-align: center;
  padding: 1em 1em 2em 1em;
  color: var(--nav-color);
}

.top-nav .tempo-menu h1,
.top-nav .time-menu h1,
.top-nav .bars-menu h1 {
  font-weight: 600;
  font-size: 110%;
  margin: 0 0 10px 0;
}

.tempo-menu .tempo-up,
.tempo-menu .tempo-down,
.bars-menu .bars-up,
.bars-menu .bars-down {
  background-color: transparent;
  border: none;
  outline: none;
  width: 35px;
  height: 35px;
  cursor: pointer;
  background-color: #E4E4E4;
  border-radius: 50%;
}

.tempo-menu .tempo-up:hover,
.tempo-menu .tempo-down:hover,
.bars-menu .bars-up:hover,
.bars-menu .bars-down:hover {
  opacity: 0.8;
}

.tempo-menu .tempo,
.time-menu .numerator,
.time-menu .denominator,
.bars-menu .bar-count {
  width: 5em;
  height: 2.5em;
  border-radius: 7px;
  outline: none;
  border: 2px solid #ccc;
  font-size: 120%;
  padding: 0.5em;
  text-align: center;
  margin: 0 0.5em;
}

.time-menu .numerator,
.time-menu .denominator {
  width: 3em;
}


/*
* DropIn and Share button container
 */
#dropin-share-wrapper {
  position: fixed;
  bottom: 10px;
  right: 20px;
  margin: 0px;
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  z-index: 95;
  background-color: rgba(240,240,240,0.95);
  border-radius: 35px;
  /* box-shadow: var(--main-box-shadow); */
  border: 1px solid rgba(200,200,200,0.95);
}

/*
 * SHARE BUTTON
 */
#share-button {
  width: 120px;
  height: 33px;
  font-family: var(--main-font);
  font-weight: bold;
  background-color: var(--active-color);
  outline: none;
  border: none;
  border-radius: 18px;
  color: white;
  transition: all 0.175s ease-in-out;
  user-select: none;
  margin-right: 10px;
}
#share-button i{margin-right: 5px;}
#share-button:hover {
  cursor: pointer;
  background-color: rgb(36 140 223 / 80%);
  box-shadow: 0px 15px 5px -10px rgb(50 50 93 / 25%), 0 30px 65px -30px rgb(0 0 0 / 0%);
}
#share-button:active { opacity: 0.8; }
#share-button.hidden { display: none; }

/*
 * CELL NAVIGATION BAR
 */
#nav-wrapper{
  position: relative;
}
nav.cell-nav {
  width: 220px;
  position: fixed;
  top: 115px;
  min-height: 250px;
  max-height: calc(100% - 200px);
  height: 100%;
  right: 0;
  background-color: #fdfdfd;
  color: #414251;
  box-shadow: var(--main-box-shadow);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding-bottom: 40px;
  z-index: 90;
  /* transition: 0.15s width ease-in-out; */
}

nav.cell-nav .button-row{
  display: flex;
  position: relative;
  justify-content: flex-start;
  width: 220px;
  height: 55px;
  box-sizing: border-box;
  border-bottom: 1px solid #0002;
}

nav.cell-nav.mini {
  width: 70px;
  border-top-left-radius: 0;
  top: 168px;
  max-height: calc(100% - 250px);
}

nav.cell-nav.mini .cell-list{
  width: 70px;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
}

nav.cell-nav.mini .shortcut-drag-handle,
nav.cell-nav.mini .shortcut-cell-name,
nav.cell-nav.mini .shortcut-play-button,
nav.cell-nav.mini .shortcut-pause-button{
  display: none;
}

nav.cell-nav.mini #add-cell-button{
  width: 70px;
  padding-left: 0;
  padding-right: 0;
}
nav.cell-nav.mini #add-cell-button:hover{
  background-color: transparent;
}
nav.cell-nav.mini #add-cell-button i{
  transition: all .15s ease-in-out;
}
nav.cell-nav.mini #add-cell-button i:hover{
  box-shadow: var(--main-box-shadow);
  transform: translateX(2px);
}

nav.cell-nav.mini .gadget-icon{
  margin-right: 0;
  transition: all .15s ease-in-out;
}

nav.cell-nav.mini .gadget-icon:hover{
  cursor: pointer;
  transform: translateX(2px);
  box-shadow: var(--main-box-shadow);
}

nav.cell-nav.mini .cell-list li{
  padding: 0.75em 0.5em 0.5em 0.5em;
  margin: 0 auto;
}

nav.cell-nav.mini #add-cell-button .fas{
  margin-right: 0;
  text-align: center;
  padding: 12px;
  background-color: #EFEFEF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

nav.cell-nav #cell-nav-micro-drawer{
  width: 45px;
  height: 50px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 0px;
  top: -105px;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  background-color: rgba(253, 253, 253, 0.95);
  color: #DEDEDE;
  box-shadow: var(--main-box-shadow);
  visibility: hidden;
}

#add-cell-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;
  padding-left: 10px;
  padding-right: 124px;
  text-align: left;
  height: 55px;
  background-color: transparent;
  /* border-bottom: 1px solid #0002; */
  font-size: 12px;
  color: #666;
  box-sizing: border-box;
  margin: 0;
  font-weight: 700;
  transition: background-color 0.25s;
  -webkit-user-drag: none;
}
#add-cell-button .fas {font-size: 16px;margin-right: 0.7em;}
#add-cell-button:hover {background-color: #efefef;cursor: pointer;border-top-left-radius: 8px;}
#add-cell-button:active { color: var(--active-color); }
.cell-nav .cell-list.insertion:before {content:""; height:50px; background-color: #ddd; }
nav.cell-nav.readonly #add-cell-button {
  display: none;
}
#resize-nav-wrapper{
  width: 52px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-sizing: content-box;
  position: absolute;
  left: 165px;
  top: 2px;
  background-color: #fdfdfd;
}
nav.cell-nav.mini #resize-nav-wrapper{
  top: -55px;
  left: 0;
  width: 70px;
  height: 54px;
  border-top-left-radius: 8px;
  border-bottom: 1px solid #0002;
}
#resize-nav-button{
  width: 42px;
  height: 42px;
  color: rgba(87, 90, 109, 0.25);
  border: none;
  font-size: 20px;
  background-color: transparent;
  transition: transform .15s ease-in-out;
}

#resize-nav-button:hover{
  cursor: pointer;
  transform: translateX(2px);
  color: var(--alt-nav-color);
}

#resize-nav-button:active{
  color: var(--active-color);
}

#compact-layout-toggle{
  width: 100%;
  height: 30px;
  border-top: 1px solid #DEDEDE;
  border-bottom: 1px solid #DEDEDE;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  position: absolute;
  bottom: 10px;
  user-select: none;
  visibility: hidden;
}
#compact-layout-toggle:hover{
  cursor: pointer;
  background-color: #DEDEDE;
}
#compact-layout-toggle i{
  font-size: 15px;
}
#compact-layout-toggle.on i { color: var(--active-color); }

#compact-layout-toggle .icon{
  display: none;
}

.cell-list {
  list-style: none;
  padding-left: 0;
  overflow-y: auto;
  margin-top: 0;
  max-height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
nav.cell-nav.readonly .cell-list {
  height: calc(100% - 10px);
}
.cell-list li {
  display: flex;
  border-bottom: 1px solid #0002;
  padding: 0.6em 1em 0.6em 0em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  box-sizing: content-box;
  position: relative;
}
.cell-list li:last-child{
}
.cell-list li.dragging {
  position: absolute;
  background-color: #f2f2f2;
  width: 100%;
  z-index: 100;
  margin-left: -5px;
  box-shadow: 5px 1px 6px #0002;
  cursor: grabbing;
}
.cell-list li.insertion {
  border-bottom: 3em solid #ddd;
}
.shortcut-drag-handle {
  width: 25px;
  margin-left: 5px;
  background-image: url(../images/grab_texture.svg);
  background-repeat: no-repeat;
  background-position: 5px center;
  background-size: 20px;
  cursor: grab;
}
.cell-list li.dragging .shortcut-drag-handle {
  cursor: grabbing;
}
nav.cell-nav.readonly .shortcut-drag-handle {
  display: none;
}
.shortcut-cell-name {
  border-left: 7px solid #2f9af0;
  height: 2.2em;
  line-height: 2.2em;
  padding-left: 1em;
  padding-top: 2px;
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.175s ease-in-out;
}
.shortcut-cell-name:hover{
  text-decoration: none!important;
  cursor: pointer;
  transform: translateX(5px)
}
nav.cell-nav.readonly .shortcut-cell-name {
  margin-left: 25px;
}
.shortcut-cell-name.guitar { border-left-color: var(--guitar-color); }
.shortcut-cell-name.bass { border-left-color: var(--bass-color); }
.shortcut-cell-name.marimba { border-left-color: var(--marimba-color); }
.shortcut-cell-name.piano { border-left-color: var(--piano-color); }
.shortcut-cell-name.drums,
.shortcut-cell-name.drumkit { border-left-color: var(--drum-color); }
.shortcut-cell-name.text { border-left-color: var(--text-color); }
.shortcut-cell-name.definitions { border-left-color: var(--definitions-color); }
.shortcut-cell-name:hover { text-decoration: underline; }
.shortcut-cell-name:active { color: #2f9aef; }

.shortcut-play-button,
.shortcut-pause-button {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 10px 10px 10px 15px;
}
.shortcut-play-button:hover,
.shortcut-pause-button:hover {
  color: #888;
  cursor: pointer;
}
.shortcut-play-button:active,
.shortcut-pause-button:active {
  color: #2f9aef;
}
.cell-nav-item.text .shortcut-play-button,
.cell-nav-item.text .shortcut-pause-button,
.cell-nav-item.definitions .shortcut-play-button,
.cell-nav-item.definitions .shortcut-pause-button {
  display: none;
}


.shortcut-error {
  font-size: 25px;
  line-height: 1.4em;
  color: #da575d;
  margin-left: 0.5em;
  position: absolute;
  right: 20px;
  background-color: #fdfdfd;
}


.dialog.welcome-dialog {
  margin: 50px 40px !important;
  height: auto;
}

.welcome-dialog h1.dialog-title {
  font-size: 20px;
}

.welcome-dialog .shared-status {
  font-weight: bold;
}

.welcome-dialog .project-badge {
  margin: 1.5em 0 1.5em 0;
  padding: 1em;
  color: #333;
  border-radius: 8px;
  box-shadow: var(--project-box-shadow);
  background-color: #FEFEFE;
  max-width: 80vw;
}

.welcome-dialog .project-badge .music-info {
  font-size: 14px;
  font-weight: 700;
  padding-left: 1em;}

.welcome-dialog .project-badge .artwork {
  width: 250px;
  height: 250px;
}

.welcome-dialog .project-badge h1.name {
  font-size: 17px;
  margin-bottom: 0.3em;
  white-space: normal;
  max-width: 185px;
}

.welcome-dialog .project-badge p.summary {
  line-height: 160%;
  margin-top: 0.8em;
  overflow-y: auto;
  -webkit-line-clamp: unset;
}

.welcome-dialog .dialog-button-row {
  margin-top: 0;
}

.welcome-dialog.dialog p {
  margin-top: 0;
  font-size: 15px;
}

.add-track.dialog {
  padding-bottom: 1em;
  height: 200px;
  width: unset;
}
.add-track.dialog h1.dialog-title {
  font-size: 18px;
}
.add-track.dialog button.add-button {
  background-color: transparent;
  font-size: 14px;
  color: #333;
  height: 100px;
  font-weight: 700;
  font-family: var(--main-font);
  padding: 0 9px;
}
.add-track.dialog button.add-button:hover {
  text-decoration: underline;
  box-shadow: none;
}
.add-track.dialog button.add-button .badge {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  margin: 5px auto;
}
.add-track.dialog button.add-button:hover .badge { opacity: 0.75; }
.add-track.dialog button.add-button:active .badge { opacity: 0.9; }

.add-track.dialog button[data-instrument="bass"] .badge {
  background-color: var(--bass-color);
  background-image: url(../images/instruments/bass.svg);
}
.add-track.dialog button[data-instrument="piano"] .badge {
  background-color: var(--piano-color);
  background-image: url(../images/instruments/piano.svg);
}
.add-track.dialog button[data-instrument="guitar"] .badge {
  background-color: var(--guitar-color);
  background-image: url(../images/instruments/guitar.svg);
}
.add-track.dialog button[data-instrument="drums"] .badge {
  background-color: var(--drum-color);
  background-image: url(../images/instruments/drums.svg);
}
.add-track.dialog button[data-instrument="sequencer"] .badge {
  background-color: var(--sequencer-color);
  background-image: url(../images/instruments/sequencer.svg);
}
.add-track.dialog button[data-instrument="text"] .badge {
  background-color: var(--text-color);
  background-image: url(../images/instruments/text.svg);
}
.add-track.dialog button[data-instrument="lyrics"] .badge {
  background-color: var(--text-color);
  background-image: url(../images/instruments/lyrics.svg);
}
.add-track.dialog button[data-instrument="definitions"] .badge {
  background-color: var(--definitions-color);
  background-image: url(../images/instruments/definitions.svg);
}

.sharing.dialog {
  width: 810px;
  max-width: 96%;
  max-height: unset;
  height: auto;
}

.project-details-form{
  display: flex;
  font-size: 15px;
  justify-content: center;
  min-height: 360px;
  overflow-y: auto;
  margin-top: 15px;
}
.project-details-form .left-column {
  display: flex;
  flex-direction: column;
  height:  100%;
}
.project-details-form .right-column {
  display: flex;
  flex-direction: column;
  padding: 0 0 0 15px;
  height: 100%;
  max-width: 430px;
}
.project-details-form .right-column {
   flex-grow: 1;
}
.project-details-form .right-column div,
.project-details-form .right-column span,
.project-details-form .right-column textarea {

}
#project-details-artwork {
  width: 340px;
  height: 340px;
  background-color: #555;
  margin-bottom: 0.5em;
  background-image: url(../images/project_art.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-details-form label{
  font-weight: bold;
  margin: 1em 0 0 0;
}
.project-details-form input,
.project-details-form select,
.project-details-form textarea {
  padding: 5px;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--main-font);
  background-color: rgb(235, 235, 236);
  font-size: 100%;
  flex: 1;
  resize: none;
  height: 35px;
}
.project-details-form .hint {
  font-size: 85%;
  margin-top: 10px;
  margin-bottom: 1em;
}
.project-details-form .hint ul {
  padding: 1em;
}
#project-details-description{
  min-height: 100px;
  resize: none;
}
#project-share-url{
  border-radius: 5px;
}

.outer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 300px;
  margin-top: 5px;
}

.content-wrapper{
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 0 0 5px 0;
  width: 100%;
  min-height: 100%;
}

.content-wrapper .button-wrapper{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
}

.visibility-label-wrapper{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 20px;
  margin-bottom: 5px !important;
  margin-top: 15px !important;
}

.visibility-label-wrapper .visibility-label{
  font-size: 15px !important;
  user-select: none;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 20px;
}

.visibility-label-wrapper .visibility-info-btn{
  display: none;
  font-size: 15px !important;
  line-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.content-wrapper button.project-access {
  margin: 0;
  border-radius: 0;
  font-weight: bold;
  font-size: 13px;
  min-width: 78px;
  width: 50%;
  height: 35px;
  background-color: #E4E4E4;
  transition: all 0.25s;
  color: var(--nav-color);
}

.content-wrapper button.project-access.private{
  border-top-left-radius: 5px;
}

.content-wrapper button.project-access.shareable {
  border-top-right-radius: 5px;
}

.project-details-form #access-details {
  font-weight: 500 !important;
  line-height: 1.5;
  height: auto;
  text-align: left;
  margin-top: 5px;
  padding: 5px 10px;
}
.project-details-form #access-details.hidden {
  display: none;
}
.project-details-form #access-details #private-img{
  width: 50px;
  height: 70px;
  background-image: url(../images/privacy-lock.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 0;
  margin: 45px auto;
}

.content-wrapper button.project-access:hover {
  background-color: var(--nav-color);
  opacity: 0.7;
  color: #E4E4E4;
}
.content-wrapper button.project-access.selected {
  background-color: var(--nav-color);
  color: white;
}

.project-details-form .share-buttons {
  margin-top: 15px;
  display: flex;
}
.project-details-form .share-buttons button.button {
  flex: 1;
  height: 2.5em;
  background-color: var(--active-color);
  border: 2px solid var(--active-color);
  margin-right: 8px;
  margin-left: 0;
}
.project-details-form .share-buttons button.button:hover {
  opacity: 0.9;
  color: white !important;
}
.project-details-form .share-buttons button.button:active {
  background-color: transparent;
  color: var(--active-color) !important;
}
.project-details-form .share-buttons button.button:disabled {
  opacity: 0.5;
}

.project-details-form .share-link-wrapper, .project-details-form .audio-preview-wrapper {
  width: 100%;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin-top: 10px;
}

.project-details-form .share-link-wrapper.hidden {
  visibility: hidden;
}

.project-details-form .audio-preview-wrapper{
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 58px;
  padding: 0 5px;
}

.project-details-form .url-wrapper{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
}

.project-details-form .info-text, .project-details-form .collab{
  margin: 5px 0;
  line-height: 100%;
  color: var(--nav-color);
  font-size: 14px;
}

#public-rec {
  opacity: 0.75;
}
#copy-share-link {
  margin: 0 8px;
  width: 70px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  height: 35px;
}
#copy-share-link:hover { opacity: 0.7; }
#copy-share-link:active { opacity: 1.0; }

.copy-sound-wrapper input {
  padding: 5px;
  outline: none;
  border: 1px solid #999;
  border-radius: 3px;
  font-family: var(--main-font);
  background-color: #aeaeae75;
  flex: 1;
  color: #2e2d2d;
  max-width: 75%;
  height: 30px;
  cursor: not-allowed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-sound-wrapper {
  display: flex;
  align-items: flex-start;
  align-content: center;
  width: 85%;
  margin-top: 25px;
}

#copy-sound-link {
  margin: 0 8px;
  width: 70px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  height: 30px;
border: 1px solid #999;}

#copy-sound-link:hover { background-color: #D8D8D9; }
#copy-sound-link:active { opacity: 1.0; }

.dialog .preview-btn, .dialog button.preview-cancel-btn{
  margin: 10px 5px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.toggle-set {
  display: flex;
  margin-bottom: 0px;
  font-size: 15px;
  margin-top: 20px;
  padding: 5px;
}
.toggle-set div {
  margin-left: 17px;
  line-height: 33px;
  font-weight: 500;
  font-size: 15px;
}

#project-remix-url {
  font-weight: bold;
  color: var(--piano-color);
}
#project-artwork-upload-button {
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  top: unset;
  color: white;
  font-size: 30px;
  text-align: center;
  padding: 0;
  line-height: 50px;
  background-color: transparent;
  border: none;
  outline: none;
  border-radius: unset;
  text-shadow: 2px 2px 2px black;
}
#project-artwork-upload-button:hover {
  opacity: 0.8;
}
#project-artwork-upload-button:active {
  opacity: 1.0;
}
.readonly #project-artwork-upload-button {
  display: none;
}
#artwork-file-input {
  display: none;
}

.dialog .preview-wrapper{
  position: absolute;
  width: 41%;
  height: 41%;
  background-color: rgba(50,50,50,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 40px;
  color: #DDD;
  top: unset;
  right: unset;
  padding: unset;
  margin: unset;
}

.dialog .preview-wrapper:hover{
  cursor: pointer;
  background-color: rgba(50,50,50,0.35);
  color: #BBB;
}

.dialog .preview-wrapper.hidden{
  display: none;
}

/* CSS for posting to TunePad community */
#community-post-dialog, #community-post-preview-dialog {
  width: 600px;
  max-height: 95%;

height: auto;overflow-x: hidden;overflow-y: auto;}
.post-details-form{
  display: flex;
  font-size: 15px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.post-details-form div{
  font-size: 14px;
  line-height: 20px;
  width: 100%;
  color: #aaa;
}
.post-details-form textarea{
  padding: 5px;
  outline: none;
  border: 1px solid #999;
  border-radius: 3px;
  font-family: var(--main-font);
  background-color: #f0e6e144;
  font-size: 100%;
  flex: 1;
  resize: none;
  width: 100%;
  margin-top: 15px;
  height: 110px;
}
.post-details-form .tag-container{
  display: flex;
  flex-direction: row;
  margin-top: 5px;
  align-items: center;
  min-height: 35px;
}
.tags {
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 35px;
  min-height: 20px;
  flex-wrap: wrap;
}
.tag-container .tags li{
  text-decoration: none;
  height: 25px;
  list-style-type: none;
  padding: 2px 7px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 13px;
  margin: 2px 0 2px 5px;
  line-height: 19px;
  border: 2px solid var(--alt-nav-color);
  user-select: none;
}

.post-details-form #tunepad-post-button,
#community-post-preview-dialog #tunepad-post-button {
  width: 280px;
  height: 2.5em;
  margin: 10px;
  background-color: var(--active-color);
}
.post-details-form #tunepad-post-button:hover,
#community-post-preview-dialog #tunepad-post-button:hover{
  opacity: 85%;
  color: #fff;
}
.post-details-form #tunepad-post-button.inactive,
#community-post-preview-dialog #tunepad-post-button.inactive {
  background-color:#ccc;
}
.post-details-form #tunepad-post-button.inactive:hover,
#community-post-preview-dialog #tunepad-post-button.inactive:hover {
  background-color:#ccc;
  border-color: #ccc;
  color: #fff;
  cursor: not-allowed;
}
.post-details-form #tunepad-post-button:active,
#community-post-preview-dialog #tunepad-post-button:active {
  background-color: var(--active-color);
  opacity: 0.95;
}

#post-text-wrapper{
  position: relative;
  font-size: 15px;
}
#post-text-wrapper #post-text-info{
  margin-top: 15px;
  text-align: left;
  font-size: 13px;
  color: #888;
}
#post-text-wrapper #max-char-limit{
  position: absolute;
  bottom: -15px;
  left: 0;
  font-weight: 600;
  font-size: 12px;
  color: #aaa;
  text-align: right;
}


.post-item {
  position: relative;
  width: 385px;
  min-width: 220px;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
  background-color: rgba(215, 215, 215, 0.2);
  background: white;
  box-shadow: 0px 10px 5px -10px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0);
  margin: 10px auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.post-item .post-description {
  color: rgba(52, 68, 88, 0.9);
  min-height: 25px;
  max-height: 100px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  line-height: 17px;
  font-size: 11.5pt;
  font-weight: normal !important;
  margin-top: 17px;
  text-align: left;
}

.post-item .post-description #post-tag {
  font-weight: bold;
  color: var(--bass-color);
}

.post-item:hover {
  box-shadow: 0px 15px 5px -10px rgba(50, 50, 93, 0.25), 0 30px 65px -30px rgba(0, 0, 0, 0);
}

.post-item .expand-button {
  display: none;
}

.post-item .post-icon {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url(../images/project_art.svg);
}

.post-item .post-icon {
  width: 510px;
  max-width: 100%;
  height: 0 !important;
  padding-bottom: 100% !important;
}

.post-icon-art {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  position: relative;
}

.post-item .post-icon-art {
  width: 510px;
  height: 510px;
}

#post-project-artwork {
  width: 100%;
  z-index: 500;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  background: white;
  height: 100%;
  border-radius: 5px;
}

.post-item .post-icon:hover #post-play-icon,
.post-item .post-icon:hover #post-pause-icon {
  visibility: visible;
  opacity: 0.5;
  color: white;
}

.post-item .post-icon #post-play-icon,
.post-item .post-icon #post-pause-icon {
  visibility: hidden;
  background-color: #0009;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 3px 3px 5px #000a;
  outline: none;
  border: none;
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding: 150px;
  background-color: #0009;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 60pt;
  z-index: 1000;
}

.post-item .post-details {
  display: block;
}

.post-item .post-details.hidden {
  visibility: hidden;
}

.post-item .post-body {
  font-weight: bold;
  color: #333;
  font-size: larger !important;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.3em;
  user-select: none;
  flex: 1;
  margin-bottom: 15px;
}

.post-item .post-body {
  font-size: xx-large !important;
  padding-top: 8px;
}

.music-info.author {
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.3em;
  user-select: none;
  flex: 1;
}

.music-info.author a {
  color: rgba(52, 68, 88, 0.5);
}

.post-item .post-body {
  text-decoration: none;
}


.music-info {
  visibility: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  bottom: 45px;
  left: 10px;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 5px;
  color: rgba(52, 68, 88, 0.5);
}

.post-item .post-header {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  max-width: 350px;
  height: 35px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 5px;
  color: rgba(52, 68, 88, 0.5);
  overflow: visible;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  margin: 3px 0;
}

.post-item .post-header a {
  color: rgba(52, 68, 88, 0.5);
}

.post-item .post-header .project-link {
  width: 100%;
}

.post-item .post-header .header-line {
  width: 100%;
  display: block;
  text-align: left;
  line-height: 1.2;
}

/* ipad style toggle switches */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  min-width: 60px;
  height: 32px;
  margin: 0px !important;
}

/* Hide default HTML checkbox */
.toggle-switch input {
  opacity: 0;
  width: 20px;
  height: 20px;
}

/* The slider */
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 5px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--active-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--active-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.toggle-switch .slider.round {
  border-radius: 34px;
}

.toggle-switch .slider.round:before {
  border-radius: 50%;
}

@media only screen and (max-width: 1000px) {
  #music-settings {
    width: 20px;
  }
  #music-settings .settings-icon {
    display: flex !important;
    align-items: center;
  }
  #music-settings.collapsed #music-settings-inner {
    display: none;
  }
  #music-settings #music-settings-inner {
    display: flex;
    position: absolute;
    bottom: -135px;
    background-color: #fdfdfd;
    box-shadow: 0px 3px 5px #0005;
    z-index: 800;
    border-radius: 8px;
    padding: 15px 5px 10px 5px;
    flex-direction: column;
    justify-content: center;
  }

  #music-settings #music-settings-inner::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 11px 11px 11px;
    box-shadow: var(--main-box-shadow);
    border-color: transparent transparent #fdfdfd transparent;
    position: absolute;
    /* right: 50%; */
    top: -11px;
    margin: auto;
  }
  #music-settings .drop-menu {
    width: 200px;
    right: 0;
    top: 3em;
    left: unset
  }
}

@media only screen and (max-width: 800px) {
  .top-nav {
    padding-right: 5px;
  }

  .top-nav .tabs{
    margin-right: 5px;
  }

  .top-nav .code-transport-buttons, .top-nav .daw-transport-buttons{
    min-width: 100px;
  }

  .sharing.dialog{
    max-width: 90vw;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .project-details-form{
    flex-wrap: wrap;
    overflow: unset;
  }
  .project-details-form .left-column{
    max-width: 85vw;
    width: 420px;
    justify-content: center;
    align-items: center;
  }
  .project-details-form .right-column{
    max-width: 85vw;
    width: 420px;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: unset;
    margin-top: 15px;
  }
  .project-details-form .right-column .outer-wrapper{
    max-width: 85vw;
    width: 420px;
    height: unset;
    margin-bottom: 20px;
  }
  .project-details-form .right-column .outer-wrapper .content-wrapper{
    min-height: 240px;
  }
  #project-details-description, #project-details-artwork{
    width: 420px;
    max-width: 85vw;
  }
}

@media only screen and (max-width: 600px) {
  main{
    padding-left: 0;
  }
  .top-nav{
    max-width: 100vw;
    padding: 0;
  }
  .top-nav .tabs{
    display: none;
  }
  .side-nav #mini-view-drawer{
    visibility: visible;
  }
  .side-nav.hide {
    transform: translateX(-65px);
  }
  nav.cell-nav.mini{
    width: 60px;
    min-height: 55px;
    max-height: 55px;
  }
  nav.cell-nav.mini .cell-list{
    width: 60px;
  }
  nav.cell-nav.mini .cell-list.hide{
    transform: translateX(60px);
  }
  nav.cell-nav .button-row{
    width: 60px;
  }
  nav.cell-nav #add-cell-button{
    padding-right: 0;
    margin: 0 auto;
    min-width: 220px;
    justify-content: flex-start;
  }
  nav.cell-nav.mini #add-cell-button{
    min-width: auto;
    justify-content: center;
    border-bottom: 0;
  }
  nav.cell-nav #resize-nav-button{
    margin-right: 25%;
  }
  .welcome-dialog .project-badge {
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    margin: 0.5em 0;
  }
  .welcome-dialog .project-badge .artwork{
    width: 200px;
    height: 200px;
  }
  .project-badge .right-column{
    padding-left: 0 !important;
  }
  .add-track.dialog{
    height: 300px;
  }
  .music-info{
    bottom: 30px;
  }
  .dialog.help{
    min-width: 300px;
    min-height: 400px;
    padding: 5px 15px;
    height: 85vh;
    max-height: unset;
  }
  .dialog.help iframe{
    width: 100%;
    height: 82%;
  }
  .project-badge .right-column{
    justify-content: center;
  }
  .welcome-dialog .project-badge p.summary{
    max-width: unset;
  }
  .edu-content .tab{
    padding-top: 50px !important;
  }
  .edu-content nav.cell-nav{
    top: 154px;
  }
  .edu-content nav.cell-nav.mini{
    top: 208px;
  }
  .edu-content #dropin-share-wrapper{
    right: 40px;
  }
}

@media only screen and (max-width: 320px) {
  .welcome-dialog .project-badge h1.name{
    margin-top: 0.35em;
  }
  .welcome-dialog .project-badge h1.name,
  .welcome-dialog .project-badge h3.author,
  .welcome-dialog .project-badge h3.created,
  .welcome-dialog .project-badge p.summary{
    max-width: 100%;
  }
  .welcome-dialog .project-badge{
    margin-bottom: 0.35em;
    padding: 1em 0.75em;
  }
  .welcome-dialog .project-badge .music-info{
    max-width: 50%;
    height: 32px;
    white-space: unset;
    bottom: 9px;
  }
  .welcome-dialog .project-badge p.summary{
    line-height: 120%;
    max-height: 80px;
  }
  #dropin-share-wrapper{
    display: none;
  }
}

@media only screen and (min-width: 1352px){
  #compact-layout-toggle{
    visibility: visible;
  }

  .cell-nav.mini #compact-layout-toggle .icon{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cell-nav.mini #compact-layout-toggle .text{
    display: none
  }
}
