* {
  box-sizing: border-box;
}

body {
  font: 16px Arial;  
  background: #333;
  color: #eee;
}

form {
  max-height: 100%;
}

input {
  border: 1px solid transparent;
  background-color: #555;
  color: #fff;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 2px;
}

input[type=text] {
  width: 100%;
}

input[type=submit] {
  background-color: #05b;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}
input[type=submit]:hover {
  background-color: #16c;
}
input:disabled, button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

input.small {
  width: 80px;
  margin-left: 5px;
}

.d-flex {
  display: flex;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-1 {
  flex: 1;
}
.p-rel {
  position: relative;
}
button.square-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 30%;
  cursor: pointer;
  box-shadow: inset 0px 0px 10px 5px #555;
}
button.square-button:hover {
  border: 1px solid #aaa;
  background: #ddd;
  box-shadow: inset 0px 0px 10px 5px #333;
}

.grid-container {
  display: grid;
  width: 100%;
  overflow: auto;
  grid-template-columns: repeat(2, 1fr);
}
.grid-container > div {
  grid-column: span 2;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 10px 0;
  padding: 5px;
  border-bottom: 1px solid black;
  position: relative;
}
@media screen and (min-width: 1400px) {
  .grid-container > div {
    grid-column: span 1;
  }
  .grid-container > div.header {
    grid-column: span 2;
  }
}

.grid-container > div > div.resp {
  max-height: calc(50vh - 45px);
  overflow-y: scroll;
  position: relative;
}

.resp_container, .code-spacing, .code-spacing > * {
  width: 100%; 
  max-width: 100%;
  margin: 0;
  padding: 20px;
  word-break: break-all;
  white-space: break-spaces;
}
.resp_container img {
  /* width: 600px; */
  max-width: 100%;
  max-height: 400px;
  margin-bottom: 5px;
}

.clear-resp-btn {
  position: absolute;
  top: 0;
  right: 10px;
  height: 30px;
  width: 30px;
  display: flex;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.spin-load {
  width: 100px;
  height: 100px;
  display: block;
  border: 8px solid #aaaaaa88;
  border-top: none;
  border-left: none;
  border-radius: 100%;
  animation-name: spin;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear; 
  margin: 0;
}
.spin-load.small {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
}

@keyframes spin {
  from {
      transform:rotate(0deg);
  }
  to {
      transform:rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.req-title {
  font-weight: bold;
  font-size: 24px;
}

.req-subtitle {
  font-weight: bold;
}

.resp-title {
  font-weight: bold;
  padding-left: 5px;
}

#frame-calculator {
  position: fixed;
  width: 400;
  height: 350px;
  top: calc(50% - 175px);
  left: calc(50% - 200px);
  z-index: 20;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#frame-calculator > form {
  background: #444;
  border: 4px groove #aaa;
  box-shadow: 10px 10px 20px 5px #55555588;
}
#frame-calculator > form > fieldset {
  border: none;
}
#frame-calculator input[type=number] {
  width: 120px;
}
#frame-calculator > form > fieldset > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#frame-calculator > form > fieldset > div > span {
  margin-right: 3px;
}
#calculator-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  opacity: 0.6;
  cursor: pointer;
  z-index: 10;
}

.frame-calc-show {
  position: absolute;
  top: 20px;
  right: calc(50% + 20px);
  display: block;
}

.help-tooltip {
  display: inline-block;
  font-size: inherit;
  cursor: help;
  background: #ffffff88;
  border-radius: 50%;
  width: 21px;
  text-align: center;
  line-height: 21px;
}

.progress-bar-container {
  position: absolute;
  bottom: 0;
  height: 24px;
  left: 6px;
  right: 50%;
  display: block;
  background: #999;
  border: 2px solid black;
}

.progress-bar-container .progress-bar {
  position: absolute;
  bottom: 0;
  height: 100%;
  left: 0;
  background: #00f;
  display: block;
  color: #000;
  line-height: 16px;
}

.progress-bar-container .progress-bar span {
  mix-blend-mode: difference;
  color: #ff0;
  font-weight: 800;
}