:root {
  font-family: "Roboto Mono", monospace;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.6rem;
  border-radius: 0.2rem;
}

h1 {
  color: black;
  text-align: center;
  margin: 1.2rem 0 3rem 0;
  line-height: 2rem;
}

.lead {
  text-align: center;
  line-height: 2rem;
}

kbd {
  padding: 0.1em 0.6em;
  border: 1px solid #ccc;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
  border-radius: 3px;
  display: inline-block;
  margin: 0.1em;
  text-shadow: 0 1px 0 #fff;
  line-height: 1.4;
  white-space: nowrap;
}

#input-field {
  width: 100%;
  border: none;
  font: inherit;
  padding: 0.4rem 2rem;
  margin-right: 0.4rem;
  border-color: black;
  border-radius: 0.2rem;
}

button:disabled:not(#expand:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

legend,
#notification {
  text-align: center;
}

#input-field.wrong {
  background: rgba(198, 38, 46, 0.3);
}

.wrong {
  color: #c6262e;
}

.correct {
  color: #68b723;
}

.normal {
  color: black;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden,
#expand:disabled {
  display: none;
}

/* TODO: find way to change progress bar color */
#loader {
  margin: 0.25em;
  z-index: 9999;
  width: 10rem;
  height: 0.5rem;
}

#main-area {
  margin-top: 1rem;
  padding: 1.4rem 1rem;
  border-radius: 0.4rem;
  background: #eaeaea;
}

.fade {
  animation: fade 2s ease-in infinite;
}

#loader-fade-text {
  animation: fade 2s ease-in infinite, rgb 5s linear infinite;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@keyframes rgb {
  0% {
    color: #f44336;
  }

  25% {
    color: #ffc107;
  }

  50% {
    color: #4caf50;
  }

  75% {
    color: #3f51b5;
  }

  100% {
    color: #f44336;
  }
}

@keyframes rgb-bg {
  0% {
    background-color: #f44336;
  }

  25% {
    background-color: #ffc107;
  }

  50% {
    background-color: #4caf50;
  }

  75% {
    background-color: #3f51b5;
  }

  100% {
    background-color: #f44336;
  }
}

@keyframes rgb-border {
  0% {
    border-color: #f44336;
  }

  25% {
    border-color: #ffc107;
  }

  50% {
    border-color: #4caf50;
  }

  75% {
    border-color: #3f51b5;
  }

  100% {
    border-color: #f44336;
  }
}

.bar {
  display: flex;
  justify-content: space-between;
}

fieldset {
  border-style: solid;
  border-radius: 0.2rem;
}

button {
  border: none;
  font: inherit;
  padding: 0.4rem 1rem;
  border-radius: 0.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  background: #d4d4d4;
  color: black;
}

.valid {
  border-width: 2px;
  border-style: solid;
  animation: rgb-border 5s linear infinite;
}

.overlay-buttons {
  color: white;
  transition-duration: 0.5s;
  padding: 0.25em;
  float: right;
}

.overlay-buttons:hover,
#close:hover {
  color: black !important;
  /* border-radius: 25%; */
}

#videoPlayer {
  width: 56rem;
  height: 31.5rem;
  border-style: hidden;
  border-radius: 0.2em;
}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: auto;
  cursor: default;
}

#overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  margin: auto;
}

.child {
  /* Center vertically */
  position: absolute;
  top: 50%;
}

#expand-box {
  background-color: #d4d4d4;
  border: 0.15625rem solid #1a1a1a;
  border-radius: 0.2rem;
  margin: 1rem;
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
}

#expand-hint-text {
  color: black;
  background-color: inherit;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

img {
  background-color: #d4d4d4;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 10px;
  border: 1px solid #888;
  border-radius: 0.2em;
  width: 55%; /* Could be more or less, depending on screen size */
}

#close {
  color: grey;
}

.no-select,
.overlay-buttons {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.transparent-button {
  background-color: transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
}

/* 
img {
  border: 3px solid red;
} */

#options-div {
  margin: 1rem;
  position: fixed;
  bottom: 0;
  right: 0;
}

#options-button {
  color: white;
  transition-duration: 1s;
  border: 3px solid #a56de2;
  border-radius: 0.4rem;
  padding: 0.5rem;
  float: right;
}

/* #options-button:hover {
  color: black;
} */
#options-dropdown {
  border-radius: 0.2rem;
  display: none;
  position: absolute;
  right: 0;
  background-color: rgb(249, 249, 249);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  bottom: 100%;
}

.options {
  cursor: pointer;
  border-radius: 0.2rem;
}

#options-dropdown .options {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

#options-dropdown .options:hover {
  border: 3px solid #a56de2;
}

#options-div:hover #options-dropdown {
  display: block;
}

#options-div:hover #options-button {
  color: black;
}

/* #private-mode[data-enabled="true"] {
  background-color: #68b723;
} */

#private-mode {
  transition: background-color 1s ease;
}
