/* PMA Junket Link Creator. © PMA Film & TV 2021. All rights reserved.
@potatoad   _     _
           /o\---/o\
         ,'    |    `.
        |      |      |
        <`-----------'>
       / `. `-----' ,' \
      /    `-------'    \
     :  |   _______   |  :
     |  `.,'       `.,'  |
    ,`.   \    o    /   ,'.
   /   `.  `.     ,'  ,'   \
 ^^^^----^^^^-----^^^^----^^^^ */

html {
  background-color: #eee;
}

.logout {
  margin-right: 1em;
}

#chosen-directory {
  padding-bottom: 0.5em;
}

.back-button {
  cursor: pointer;
  display: inline-block;
  font-size: 1.5em;
  line-height: 0;
  transform: scale(-1, 1);
  transition: transform 0.1s;
}

.back-button:hover {
  transform: scale(-1, 1) translateX(5px);
}

.folder-name {
  text-decoration: underline;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-name {
  display: block;
}

.x-icon {
  font-weight: bold;
  display: flex;
  padding-right: 0.25em;
}

.x-icon:hover {
  color: red;
  cursor: pointer;
}

.folder-name:after {
  display: inline-block;
  content: '▸';
  font-size: 0;
  opacity: 0;
  transition: opacity 0.1s, transform 0.1s ease;
}

.folder-name:hover:after {
  font-size: inherit;
  opacity: 1;
  transform: translateX(5px);
}

h4.film-title,
h4.film-date,
h4.film-talent,
div.form div.level,
div.checkboxes {
  margin-block-end: 0.5rem !important;
}

div.form h4:not(:first-child) {
  margin-block-start: 0.6rem;
}

div.checkboxes {
  padding-left: 1rem;
  padding-right: 1rem;
}

div.checkboxes div {
  text-align: center;
}

input.survey_options {
  margin-bottom: 0.5rem;
}

#add_more_fields {
  padding-left: 0.5rem;
}

#remove_fields {
  padding-right: 0.5rem;
}

table#output-table,
table#existing-file-requests {
  table-layout: fixed;
  width: 100%;
}

table#output-table thead {
  font-weight: bold;
}

tbody#request-links tr td {
  overflow-wrap: break-word;
}

table#existing-file-requests tbody tr td {
  overflow: hidden;
  vertical-align: middle;
  padding: 0.2em 0.3em;
}

table#existing-file-requests tbody tr td {
  font-size: 0.75em;
}

table#existing-file-requests thead tr th:nth-child(3),
table#existing-file-requests thead tr th:nth-child(4),
table#existing-file-requests thead tr th:nth-child(5),
table#existing-file-requests tbody tr td:nth-child(3),
table#existing-file-requests tbody tr td:nth-child(4),
table#existing-file-requests tbody tr td:nth-child(5) {
  text-align: center;
}

table#existing-file-requests tbody tr td:nth-child(3),
table#existing-file-requests tbody tr td:nth-child(4),
table#existing-file-requests tbody tr td:nth-child(5) {
  font-size: 1em;
}

table#existing-file-requests tbody tr:hover {
  font-weight: bold;
}

table#existing-file-requests thead tr th:nth-child(3),
table#existing-file-requests tbody tr td:nth-child(3),
table#existing-file-requests thead tr th:nth-child(4),
table#existing-file-requests tbody tr td:nth-child(4),
table#existing-file-requests thead tr th:last-child,
table#existing-file-requests tbody tr td:last-child {
  width: 5rem;
}

.btn-delete,
.btn-active-true,
.btn-active-false {
  cursor: pointer;
}

.btn-active-true {
  color: #00bb00;
}

.btn-active-false {
  color: #cc0000;
}

.btn-active-true:hover {
  color: #00ff00;
}

.btn-active-false:hover {
  color: #ff0000;
}

.btn-delete:hover {
  color: #cc0000;
}

.pmafooter {
  font-size: 0.8rem;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: white;
  color: #333333;
  text-align: center;
  box-shadow: 0 0 1em -0.125em rgba(10, 10, 10, 0.1),
    0 0 0 1px rgba(10, 10, 10, 0.02);
  display: block;
  padding: 0.5rem;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 40px;
}
.lds-ellipsis div {
  position: absolute;
  top: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #bbc;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
