body {
  background: #0f0f23;
  color: #cccccc;
  font-family: "Source Code Pro", monospace;
  font-size: 1em;
  min-width: 80vw;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
}

#screen {
  padding: 50px;
}

#cytoscape {
    height: 100%;
    min-height: 50vh;
    display: block;
    border: 1px solid white;
    background: #10101a;
}

button, .button {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  color: #33AFFF;
  cursor: pointer;
  text-shadow: 0 0 5px #33AFFF;
  text-decoration: underline;
}

btn-simple {
  border: 0;
}

nav a {
  text-decoration: none;
  margin-right: 0.5em;
}

.highlight {
  text-shadow: 0 0 5px currentColor !important;
}

.good {
  color: #08ec00;
  text-shadow: 0 0 5px #08ec00;
}

.bad {
  color: #F22E28;
  text-shadow: 0 0 5px #F22E28;
}

.escaper {
  color: #FFC733;
  text-shadow: 0 0 5px #FFC733;
}

.shine {
  color: #a44fff;
  text-shadow: 0 0 5px #6e00fd;
}

.night {
  color: #666666;
  text-shadow: 0 0 5px #666666;
}

label {
  margin-right: 0.5em;
}

.field {
  margin-bottom: 1.0em;
}

.form-control,.form-select {
  background-color: #10101a;
  border: 1px solid #666666;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' stroke='%23222' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-control:focus {
  background: #10101a;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

input[type="password"], input[type="text"], input[type="number"] {
  color: #cccccc;
  border: 1px solid #666666;
  background: #10101a;
  font-family: inherit;
  font-size: inherit;
}

.form-control:disabled {
  background-color: #10101a;
  border-color: #666666;
}

.field .file_label {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  color: #33AFFF;
  cursor: pointer;
}

.field input[type="file"] {
  display: none;
}

button:disabled, button[disabled] {
  color: gray;
  cursor: not-allowed;
}

button[type="submit"]::before {
  content: "[";
}
button[type="submit"]::after {
  content: "]";
}

button.delete {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0.1em 1em;
  color: #ff3344;
  cursor: pointer;
  text-shadow: 0 0 5px #ff3344;
  text-decoration: none;
}

button.add, a.add {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0.1em 1em;
  color: #08ec00;
  cursor: pointer;
  text-shadow: 0 0 5px #08ec00;
  text-decoration: none;
}

figure figcaption {
  text-align: center;
}

img.profile {
  max-height: 40px;
  max-width: 40px;
}

img.preview {
  min-width: 100px;
  max-width: 200px;
  min-height: 100px;
  max-height: 200px;
}

img.icon {
  max-width: 50px;
  max-height: 50px;
  border-radius: 50%;
}

img.cover {
  /* min-width: 200px; */
  max-width: 25vw;
  /* min-height: 200px; */
  max-height: 45vh;
}

.hint {
  font-size: small;
}

.error {
  color: #F22E28;
  text-shadow: 0 0 5px #F22E28;
  font-size: small;
}

.success {
  color: #08ec00;
  text-shadow: 0 0 5px #08ec00;
  font-size: small;
}

table {
  border-spacing: 2em 0.3em;
}

table td.hcontent {
  width: 100%;
}

select > option {
  font-family: "Source Code Pro";
}

*:focus {
  border: 1px solid #FFC733;
}

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

ul.tab-list > li {
  display: inline-block;
  margin-right: 20px;
}

ul.tab-list > li > a.highlight {
  text-shadow: -2px 2px 3px #FFC733;
}

.tab {
  display: none;
}

.story-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: space-around;
  align-items: baseline;
}
.story-preview {
  display: flex;
  flex-direction: column;
  min-width: 15vw;
  max-width: 20vw;
  margin: 10px;
  text-align: center;
  overflow: hidden;
}
.story-preview-cover {
  max-height: 50vh;
  max-width: 100%;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  transition: .5s ease;
}
.story-preview-info {
  display: flex;
  margin-top: 10px;
}
.icon.story-preview-author_icon {
  display: block;
  margin-right: 10px;
}
.story-preview-footer {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  text-align: left;
  overflow: hidden;
}
.story-preview-title {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-preview-author {
  margin: 0;
  text-decoration: none;
}
.story-preview-author::before {
  content: "@";
}
.story-preview-hover {
  position: relative;
}
.story-preview-hover:hover img.story-preview-cover {
  opacity: 0.3;
}
.story-preview-hover:hover .story-preview-overlay {
  opacity: 1;
}
.story-preview-overlay {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: space-around;
  align-items: center;
  opacity: 0;
  transition: .5s ease;
}
.story-preview-overlay .overlay-element {
  background: #a44fff;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: large;
  width: 50%;
  transition: .2s ease;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
}
.story-preview-overlay .overlay-element:hover {
  background-color: #4f1670;
}

.story-choice {
  border: 1px solid #6e00fd;
  background: #250d44;
  width: 50%;
  display: block;
  text-align: center;
  margin: auto;
  padding: 5px;
  margin-bottom: 20px;
}
a.story-choice:hover {
  background: #4f1670;
}

.help {
  margin-left: 10px;
  text-shadow: 0 0 10px #666666;
}
.help:hover {
  cursor: help;
}

.help-text {
  letter-spacing: -0.05em;
  display: none;
  background: #250d44;
  margin-left: 28px;
  padding: 10px;
  position: absolute;
  z-index: 1000;
  max-width: 40%;
  border: 2px solid #6e00fd;
}

.condition-block {
  margin: 10px;
}

.area {
  display: flex;
}

.loader {
  display: inline-block;
  border: 0.3em solid #0f0f23;
  border-top: 0.3em solid #a44fff;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: spin 1s linear infinite;
}

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

.story-selector {
  position: relative;
  font-family: "Source Code Pro", monospace;
}

.story-selector select {
  display: none;
}

.story-selector-selected {
  background-color: dodgerblue;
}

.story-selector-selected::after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

.story-selector-selected.story-selector-arrow-active::after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

.story-selector-items div,.story-selector-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

.story-selector-items {
  position: absolute;
  background-color: dodgerblue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

.story-selector-hide {
  display: none;
}

.story-selector-items div:hover, .story-selector-sameasselected {
  background-color: rgba(0, 0, 0, 0.1);
}

.story-content {
  /* min-width: 500px; */
  /* max-width: 50%; */
  margin: auto;
  font-size: large;
}

.modal {
  border: none;
}
.modal-content {
  border: 1px solid #33AFFF;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
}
.dropdown-content button {
  background-color: #f1f1f1;
  padding: 12px 16px;
  display: block;
  min-width: 160px;
}
.dropdown-content button:hover {
  background-color: #ddd;
}
.dropdown:hover .dropdown-content {
  display: block;
}
