* {
  font-family: "Ubuntu", Verdana, sans-serif;
  color: #3c3836;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #f9f5d7;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

nav {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

main {
  flex-grow: 1;
}
main * {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.main-box {
  background-color: #ebdbb2;
}

.current-file {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: scroll;
  background: #ebdbb2;
}
.current-file .splash-text {
  font-size: 40px;
  padding-top: 104px;
  padding-bottom: 20px;
  filter: drop-shadow(0.1rem 0.1rem 0 #9d0006);
}
.current-file img, .current-file video, .current-file audio {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.second-box {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

footer {
  padding: 2px 12px;
  font-size: 16px;
  background: #3c3836;
  color: #f9f5d7;
  height: 20px;
  min-height: 20px;
  overflow-x: scroll;
  overflow-y: hidden;
}
footer * {
  color: #f9f5d7;
}

.statusline {
  font-family: "UbuntuMono", monospace;
  text-align: left;
}
.statusline * {
  font-family: "UbuntuMono", monospace;
}

a {
  color: #282828;
}

.path {
  font-family: "UbuntuMono", monospace;
}

.key {
  padding: 3px 6px;
  background: #3c3836;
  color: #fbf1c7;
  border-style: solid;
  border-width: 1px;
  border-color: #1d2021;
  border-radius: 4px;
  font-family: "UbuntuMono", monospace;
}

code {
  color: #3c3836;
  font-family: "UbuntuMono", monospace;
  text-align: left;
}

hr {
  color: #9d0006;
}

h1, h2 {
  text-align: center;
  filter: drop-shadow(0.04em 0.04em 0 #9d0006);
  padding: 0px 20px;
}

button, input {
  color: #3c3836;
  background-color: #f9f5d7;
  font-size: 16px;
  padding: 8px;
  border-radius: 0;
  filter: drop-shadow(0.1rem 0.1rem 0 #9d0006);
  font-family: "UbuntuMono", monospace;
  margin: 0.2rem;
}

.move-buttons {
  margin: 0;
}

.move-button {
  font-size: 14px;
  padding: 6px;
}

button:hover {
  color: #282828;
  background-color: #ebdbb2;
}

#start-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #79740e);
}

#configure-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #076678);
}

#undo-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #7c6f64);
}

#skip-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #7c6f64);
}

#key {
  width: 20px;
  text-align: center;
}

#save-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #9d0006);
}

#load-button {
  filter: drop-shadow(0.1rem 0.1rem 0 #076678);
}

.add-mapping-form {
  margin: auto;
  padding-bottom: 0.4rem;
  width: 400px;
}
.add-mapping-form .form-row {
  text-align: left;
}
.add-mapping-form .form-row * {
  text-align: left;
}
.add-mapping-form .form-row label {
  display: inline-block;
  width: 100px;
  text-align: right;
}
.add-mapping-form .form-row input {
  margin-left: 0;
  text-align: left;
}
.add-mapping-form .form-row button {
  margin-left: 0;
}

.filename-input {
  width: 90%;
  margin: auto;
  padding: 0.1rem;
}

.file-list {
  width: 90%;
  margin: auto;
  margin-top: 1rem;
}

.file-list-content {
  overflow: hidden;
  border-color: #458588;
  border-style: solid;
  border-width: 2px;
  min-height: 0.2rem;
}
.file-list-content p {
  margin: 0;
  padding: 0.1rem;
  text-align: left;
}

.file-list-item:hover {
  background: #458588 !important;
  color: #ebdbb2;
  cursor: pointer;
}

.file-list-item:nth-child(even) {
  background: #ebdbb2;
}

.file-list-item:nth-child(odd) {
  background: #d5c4a1;
}

.selected-file-list-item {
  background: #076678 !important;
  color: #ebdbb2;
}

@media only screen and (min-width: 900px) {
  main {
    display: flex;
    flex-direction: row;
    padding-bottom: 24px;
  }
  .main-box {
    width: 75%;
    max-height: calc(100vh - 20px - 4px);
  }
  .splash-text {
    filter: drop-shadow(0.2rem 0.2rem 0 #9d0006);
  }
  .second-box {
    display: flex;
    flex-direction: column;
    width: 25%;
    max-height: calc(100vh - 20px - 4px);
    overflow: scroll;
    padding-top: 0;
    padding-bottom: 0;
  }
  .current-file {
    height: 100%;
    width: 100%;
  }
  footer {
    width: 100%;
    position: fixed;
    bottom: 0;
  }
}
