
.dialog.project-list {
  width: 80%;
  min-width: 500px;
  max-height: calc(100vh - 30px);
  min-height: 600px;
  max-width: 900px;
  text-align: left;
  overflow-y: hidden;
  color: #555;
  padding: 0.5em 1.5em;
  --filter-color: #403A60;
  margin: 0px 40px 0 40px;
}

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

.dialog.project-list .header-row {
  display: flex;
  padding-bottom: 0.3em;
  justify-content: space-between;
  flex-direction: row;
  border-bottom: 1px solid #ccc;
}

.dialog.project-list .dialog-button-row {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
}

.dialog.project-list .project-count {
  flex: 1;
}

.dialog.project-list .sort-menu {
  text-align: left;
  font-size: 13px;
  color: #999;
  line-height: 2em;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.dialog.project-list .project-count-container {

  align-self: flex-end;
}

.dialog.project-list .search-sort {
  width: 50%;
}


.dialog.project-list .search-container {
  border-bottom: 1px solid #0003;
  margin-right: 50px;
  margin-bottom: 25px;
}

.dialog.project-list .search-container i.fas {
  font-size: 60%;
  color: #999;
}

.dialog.project-list .search-container input {
  height: 2em;
  border: none;
  width: 80%;
  background-color: transparent;
  outline: none;
  font-family: var(--main-font);
}

.dialog.project-list .search-container input::placeholder {
  color: #aaa;
}

.dialog.project-list .sort-menu:hover {
  text-decoration: underline;
}

.dialog.project-list .sort-menu i {
  margin-left: 4px;
}

.dialog.project-list .sort-menu .drop-menu {
  left: unset;
  right: 0;
  top: 15px;
}

.dialog.project-list .header-row h2 {
  font-size: 13px;
  margin: 0;
  line-height: 2em;
  color: #999;
}

.dialog.project-list .search-results {
  overflow-y: auto;
  height: 55vh;
}

.project-listing {
  list-style: none;
  padding: 0;
  font-size: 15px;
  font-weight: normal;
  font-family: var(--main-font);
  color: #777;
}
.project-item {
  position: relative;
  margin-bottom: 1.5em;
}
.project-summary {
  display: flex;
  line-height: 30px;
  white-space: nowrap;
  border-radius: 2px;
  padding: 3px;
  transition: .25s all;
}
.project-summary:hover {
  background-color: rgb(220, 220, 220);
}
.project-item .project-icon {
  min-width: 35px;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  margin: 0 1em 0 0;
  line-height: 50px;
  font-size: 120%;
  color: transparent;
  padding-left: 3px;
  padding-top: 1px;
  text-align: center;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('../images/project_art.svg');
}
.project-item .project-icon .play-icon.hidden {
  display: none;
}
.project-item .project-action-items{
  display: none;
}

.project-item .connector{
  display: none;
}

@keyframes spin {
  from { transform:rotate(0deg); }
  to { transform:rotate(360deg); }
}
.project-item .project-icon.loading {
  background-image: none;
  padding-left: 0;
  color: white;
  animation: spin 1s infinite;
}
.project-item .project-icon.playable.playing { padding-left: 0; background-image: none; color: white; }
.project-item:hover .project-icon.playable { background-image: none; color: white; }
.project-item:hover .project-icon.playable:hover { color: #fffb; }
.project-item:hover .project-icon.playable:active { color: #fff9; }

.project-item .project-name {
  font-weight: bold;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.3em;
  user-select: none;
  flex: 1;
}

.project-item .project-name { text-decoration: none; }
.project-item .project-name:hover { text-decoration: underline; }

.project-item .project-privacy {
  position: absolute;
  color: var(--piano-color);
  font-weight: bold;
  font-size: 11px;
  margin-left: 2em;
  top: 22px;
  left: 49px;
}
.project-item .project-privacy.private {
  color: var(--bass-color);
}
.project-item .project-privacy.public {
  color: var(--sequencer-color);
}

.project-item .project-privacy.hidden { display: none; }

.project-item .sort-criteria {
  width: 5em;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin-right: 0.8em;
  flex: 1;
}

.project-item .project-details.hidden { display: none; }

.project-details li {
  line-height: 150%;
}

.project-details li.description {
  font-weight: bold;
}

.project-details li a { text-decoration: underline; color: #555; }
.project-details li a:hover { text-decoration: underline; color: black; }

.dialog .project-summary button {
  height: 32px;
  background-color: transparent;
  color: #888;
  border: none;
  outline: none;
  font-size: 15px;
  margin: 0 0.3em;
}
.dialog .project-summary button:hover {
  color: black;
  background-color: transparent;;
  box-shadow: none;
}


.dialog .project-summary button.edit-button {
  border: 1px solid #888;
  width: 75px;
}
.dialog .edit-button:hover { background-color: #eee; }
.dialog .edit-button:active { background-color: #ddd; }


.project-badge {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 5px;
  margin-bottom: 50px;
  color: #333;
  font-size: 16px;
  text-align: left;
}

.project-list .project-badge{
  padding: 10px 5px;
  background-color: rgb(70, 85, 114, 0.075);
  border-radius: 4px;
}
.project-list .project-badge .left-column {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 10px;
}

.project-list .project-badge .artwork{
  width: 175px;
  height: 175px;
}

.project-list .project-badge .music-info{
  margin-top: 5px;
  bottom: unset;
  left: unset;
  font-weight: 700;
  position: unset;
}

.project-badge .right-column {
  flex: 1;
  padding-left: 15px;
  max-width: 100%;
}
.project-badge h1.name {
  margin: 0;
  line-height: 120%;
  font-size: 1.2em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 98%;
}
.project-badge h3.author, .project-badge h3.created {
  margin: 0;
  line-height: 120%;
  font-size: 0.9em;
  font-weight: normal;
  max-width: 185px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-badge h3.author a, .project-badge h3.created a {
  text-decoration: none;
  color: #333;
}

.project-badge h3.author a:hover, .project-badge h3.created a:hover {
  text-decoration: underline;
}

.project-badge p.summary {
  font-size: 1em;
  max-width: 185px;
  max-height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.project-badge .artwork {
  width: 200px;
  height: 200px;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('../images/project_art.svg');
}
.project-badge .music-info {
  line-height: 100%;
  font-size: 14px;
  margin: 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: normal;
}
.project-badge .created {
  line-height: 120%;
  font-size: 0.8em;
  font-weight: normal;
}
.project-badge ul.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
}
.project-badge ul.tags li {
  display: inline;
  color: white;
  font-size: 14px;
  font-weight: bold;
  background-color: var(--bass-color);
  padding: 0.1em 0.5em;
  margin: 0 10px 10px 0;
  line-height: 150%;
}
.project-toolbar {
  position: absolute;
  right: 10px;
  bottom: 15px;
}
.dialog .project-toolbar button {
  font-size: 12px;
  font-weight: 700;
  padding: 0.8em;
  color: #333;
  height: auto;
  width: 6em;
  margin: 1px;
  background-color: #ccc;
  transition: all 0.25s;
  border: 1px solid #BBB;
}
.dialog .project-toolbar button:hover { background-color: #bbb; box-shadow: var(--main-box-shadow); }
.dialog .project-toolbar button:active { background-color: #ddd; }

@media only screen and (max-width:600px){
  .dialog.project-list{
    min-width: 300px;
    min-height: 250px;
    padding: 5px 15px;
    height: 85vh;
  }
  .dialog.project-list .header-row h2{
    line-height: 1em;
  }
  .dialog.project-list .search-sort{
    width: 90vw;
    display: flex;
    flex-direction: column;
  }
  .dialog.project-list .search-container{
    margin-right: 25px;
  }
  .project-item .sort-criteria{
    display: none;
  }
  .dialog.project-list .search-results{
    height: 50vh;
  }
}

@media only screen and (max-width:320px){
  .dialog.project-list .search-results{
    height: 45vh;
  }
  .dialog.project-list .dialog-button-row{
    margin-top: 0;
  }
  .dialog-button-row button.confirm-button{
    font-size: 14px;
    font-weight: 600;
  }
}