/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

:root {
  --icon-background-color-1: #0A84FF;
  --icon-background-color-2: #008EA4;
  --icon-background-color-3: #ED00B5;
  --icon-background-color-4: #058B00;
  --icon-background-color-5: #A47F00;
  --icon-background-color-6: #FF0039;
  --icon-background-disabled-color: #737373;
  --body-text-disabled-color: #737373;
  --info-box-background-color: #D7D7DB;
  --info-box-border-color: #98979C;
  --study-status-active-color: #058B00;
  --study-status-disabled-color: #737373;
}

html,
body,
#app {
  height: 100%;
  width: 100%;
}

button > .button-box {
  padding-left: 10px;
  padding-right: 10px;
}

.about-studies-container {
  display: flex;
  flex-direction: row;
  font-size: 1.25rem;
  min-height: 100%;
  width: 100%;
}

#categories {
  flex: 0 0;
  margin: 0;
  min-width: 200px;
  padding: 40px 0 0;
}

#categories .category {
  align-items: center;
  display: flex;
  flex-direction: row;
}

.main-content {
  flex: 1;
}

.info-box {
  margin-bottom: 10px;
  text-align: center;
}

.info-box-content {
  align-items: center;
  background: var(--info-box-background-color);
  border: 1px solid var(--info-box-border-color);
  display: inline-flex;
  padding: 10px 15px;
}

.info-box-content > * {
  margin-right: 10px;
}

.info-box-content > *:last-child {
  margin-right: 0;
}

.study-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.study {
  align-items: center;
  border-bottom: 1px solid var(--in-content-border-color);
  display: flex;
  flex-direction: row;
  padding: 10px;
}

.study.disabled {
  color: var(--body-text-disabled-color);
}

.study .study-status {
  color: var(--study-status-active-color);
  font-weight: bold;
}

.study.disabled .study-status {
  color: var(--study-status-disabled-color);
}

.study:last-child {
  border-bottom: none;
}

.study > * {
  margin-right: 15px;
}

.study > *:last-child {
  margin-right: 0;
}

.study-icon {
  color: #FFF;
  flex: 0 0 40px;
  font-size: 26px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  text-transform: capitalize;
}

.study:nth-child(6n+0) .study-icon {
  background: var(--icon-background-color-1);
}

.study:nth-child(6n+1) .study-icon {
  background: var(--icon-background-color-2);
}

.study:nth-child(6n+2) .study-icon {
  background: var(--icon-background-color-3);
}

.study:nth-child(6n+3) .study-icon {
  background: var(--icon-background-color-4);
}

.study:nth-child(6n+4) .study-icon {
  background: var(--icon-background-color-5);
}

.study:nth-child(6n+5) .study-icon {
  background: var(--icon-background-color-6);
}

.study.disabled .study-icon {
  background: var(--icon-background-disabled-color);
}

.study-details {
  flex: 1;
  overflow: hidden;
}

.study-name {
  font-weight: bold;
  margin-bottom: 0.3em;
}

.study-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.study-description > * {
  margin-right: 5px;
}

.study-description > *:last-child {
  margin-right: 0;
}

.study-actions {
  flex: 0 0;
}
