/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/

/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: Arial;
}

button {
  cursor: pointer;
}
/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
  resize: vertical;
}

/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
Author's custom styles
========================================================================== */
#app {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
a {
  color: #0089ff;
}
.pre-signon #wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url("../img/pre-bg.jpg");
  background-size: cover;
  background-position: center;
}

.pre-signon .overlay {
  width: 460px;
  background-color: rgba(255, 255, 255, 0.8);
}
.pre-signon .overlay h1 {
  margin-top: 0;
  text-align: center;
}
.pre-signon .overlay p {
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.pre-signon .confirm {
  display: inline-block;
}

.pre-signon #signon #logo {
  width: 100%;
  margin-bottom: 36px;
  max-width: 400px;
  margin: 0 auto 36px auto;
  display: block;
}

.pre-signon #signon .input-hint {
  margin-bottom: 2em;
}

.post-signon .animated {
  animation-duration: 500ms;
}

#loading {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 33%;
  text-align: center;
}

.app-buttons {
  display: flex;
  background: #ffffff;
  justify-content: space-around;
  padding-top: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
}
#admin {
  background: #333333;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}
#admin-menu {
  text-align: center;
  display: block;
  padding: 20px;
  color: #ffffff;
}
#admin-menu .subhead {
  font-size: 1.25em;
  margin-bottom: 20vh;
}
#admin-menu .admin-link {
  width: 24%;
  max-width: 400px;
  display: inline-block;
  box-sizing: border-box;
  color: #cccccc;
  cursor: pointer;
  padding-top: 70px;
  margin-bottom: 60px;
  background-repeat: no-repeat;
  background-position: top center;
}
#admin-menu .admin-link:hover {
  color: #ffffff;
  font-weight: bold;
}
#admin-menu .admin-link#manage-users {
  background-image: url("../img/profile.png");
}
#admin-menu .admin-link#manage-templates {
  background-image: url("../img/save.png");
}
#admin-menu .admin-link#use-estimatic {
  background-image: url("../img/import.png");
}
#admin-menu .admin-link#manage-users:hover {
  background-image: url("../img/profile-hover.png");
}
#admin-menu .admin-link#manage-templates:hover {
  background-image: url("../img/save-hover.png");
}
#admin-menu .admin-link#use-estimatic:hover {
  background-image: url("../img/import-hover.png");
}
#admin-menu .admin-link#log-out {
  background-image: url("../img/logout.png");
}
#admin-menu .admin-link#log-out:hover {
  background-image: url("../img/logout-hover.png");
}
#app-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9000;
}
#app-menu #menu-toggle {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 10;
  cursor: pointer;
}
#app-menu #menu-items {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  padding-top: 57px;
  background: #333333;
  box-shadow: -5px 0px 20px #000000;
  text-align: center;
  z-index: 5;
}

#app-menu #menu-items .menu-item {
  display: inline-block;
  color: #cccccc;
  width: 140px;
  padding-top: 70px;
  height: 60px;
  background-repeat: no-repeat;
  background-position: 37px 0px;
  cursor: pointer;
}
#app-menu #menu-items .menu-item:hover {
  color: #ffffff;
  font-weight: bold;
}
#app-menu #menu-items .menu-item p {
  margin: 0;
  vertical-align: bottom;
}

#app-menu #menu-items .menu-item#load-formula {
  background-image: url("../img/load.png");
}
#app-menu #menu-items .menu-item#save-formula:hover {
  background-image: url("../img/save-hover.png");
}
#app-menu #menu-items .menu-item#save-formula {
  background-image: url("../img/save.png");
}
#app-menu #menu-items .menu-item#save-formula:hover {
  background-image: url("../img/save-hover.png");
}
#app-menu #menu-items .menu-item#import {
  background-image: url("../img/import.png");
}
#app-menu #menu-items .menu-item#import:hover {
  background-image: url("../img/import-hover.png");
}
#app-menu #menu-items .menu-item#profile {
  background-image: url("../img/profile.png");
}
#app-menu #menu-items .menu-item#profile:hover {
  background-image: url("../img/profile-hover.png");
}
#app-menu #menu-items .menu-item#full {
  background-image: url("../img/full.png");
}
#app-menu #menu-items .menu-item#full:hover {
  background-image: url("../img/full-hover.png");
}
#app-menu #menu-items .menu-item#logout {
  background-position: 45px 0px;
  background-image: url("../img/logout.png");
}
#app-menu #menu-items .menu-item#logout:hover {
  background-image: url("../img/logout-hover.png");
}
#app-menu .animated {
  animation-duration: 500ms;
}

.overlay-bg,
.overlay-frame {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.33);
  z-index: 1000;
}
.overlay-frame {
  background-color: transparent;
  z-index: 3000;
}
.overlay {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 50px auto 0 auto;
  width: 768px;
  padding: 20px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 0 20px #000000;
}
.overlay .close-overlay {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(255, 255, 255, 0);
  color: #666;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transform: scale(1.5, 1);
}
.overlay .close-overlay:hover {
  color: #ff4f00;
}
.overlay h2 {
  margin-top: 0;
  text-align: center;
}
.overlay label {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.overlay input,
.overlay textarea {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: auto;
  margin-bottom: 2em;
  border: none;
  text-indent: 10px;
  background: #efefef;
}
.overlay input:focus,
.overlay textarea:focus {
  outline-color: #000000;
}
.overlay input {
  height: 2em;
}
.overlay textarea {
  padding-top: 10px;
}
.overlay input.error,
.overlay textarea.error {
  background-color: rgb(255, 220, 220);
}
.overlay .global-error {
  background-color: rgb(255, 220, 220);
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px auto;
  padding: 1em;
  box-sizing: border-box;
  border-radius: 5px;
  text-align: center;
}
.overlay .input-hint {
  width: 100%;
  max-width: 400px;
  font-size: 0.75em;
  margin-top: -2.5em;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.overlay .input-hint.link {
  text-align: right;
}
.overlay p {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.overlay .loading {
  text-align: center;
}
.overlay .loading img {
  display: block;
  margin: auto;
}
.link {
  cursor: pointer;
  text-decoration: underline;
}
.link:hover {
  color: #0089ff;
}
.primary-button {
  display: block;
  text-align: center;
  font-weight: bold;
  width: 100%;
  max-width: 200px;
  background-color: #0089ff;
  color: #ffffff;
  height: 2.5em;
  border-radius: 5px;
  margin: 0 auto 1em auto;
  border: none;
  float: right;
}
.primary-button:hover {
  box-shadow: 0 2px 2px #000000;
}
.primary-button.only {
  float: none;
}
.primary-button.loading {
  color: transparent;
  background-image: url("../img/loading.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff78;
  border: solid 1px #0089ff;
}
.secondary-button {
  display: block;
  background: none;
  border: none;
  width: 100%;
  max-width: 200px;
  height: 2em;
}
.secondary-button:hover {
  color: #ff4f00;
}

.confirmation {
  text-align: center;
}
.confirmation h2 {
  margin-top: 1em;
}
.confirm {
  margin: auto;
  display: block;
}
.inline-error {
  margin-top: -2em;
  margin-bottom: 2em;
  width: 100%;
  max-width: 400px;
  margin: -2em auto 2em auto;
  color: red;
}

.saved-formula {
  position: relative;
  border: #cccccc 1px solid;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  min-height: 75px;
}
.saved-formula p {
  max-width: none;
  white-space: pre-line;
}
.saved-formula .interested {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  padding: 10px;
  text-align: center;
  background: #0089ff;
  color: #ffffff;
}
.saved-formula .interested a {
  color: #ffffff;
}
.saved-formula .interested a:hover {
  font-weight: bold;
}
.saved-formula:hover {
  color: #0089ff;
  border-color: #0089ff;
}
.saved-formula:hover .interested {
  color: #ffffff;
}
.saved-formula h3,
.saved-formula h4 {
  margin-top: 0;
}
.saved-formula p {
  margin-bottom: 0;
}
.saved-formula .delete-formula-button {
  display: none;
  position: relative;
  top: 1em;
  background: none;
  border: none;
  float: right;
  color: #666;
  cursor: pointer;
  font-weight: bold;
}
.saved-formula .delete-formula-button:hover {
  color: #ff4f00;
}
.saved-formula:hover .delete-formula-button {
  display: block;
}

.template-category {
  margin-bottom: 20px;
}
.template-category .template-category-header {
  background: #efefef;
  padding: 5px;
  margin: 0;
  border-radius: 5px;
  cursor: pointer;
}
.template-category .template-category-header:after {
  content: "+";
  float: right;
  position: relative;
  right: 10px;
}
.template-category.open .template-category-header:after {
  content: "—";
  content: "-";
  float: right;
  position: relative;
  right: 10px;
}
.template-category .template-category-header:hover {
  color: #0089ff;
}

.template-category .template-category-window {
  padding-left: 30px;
  padding-top: 10px;
  border-left: 1px solid #efefef;
  margin: 0;
}
.template-category .template-category-description {
  margin-top: 0;
}
.template-category .saved-formula:last-of-type {
  margin-bottom: 0;
}
.template-category .animated {
  animation-duration: 500ms;
}

#save-new-formulae-overlay .delete-formula-button,
#import-template-overlay .delete-formula-button {
  display: none;
}

#save-new-formulae-overlay p#saveExisting {
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
}
#save-new-formulae-overlay .saved-formula {
  cursor: default;
}
#user-profile-overlay {
  width: 460px;
}
#user-profile-overlay p {
  padding-bottom: 1em;
  border-bottom: 1px solid #efefef;
}
#user-profile-overlay p:last-of-type {
  border-bottom: none;
  margin-bottom: 2em;
}

.app-buttons button {
  background: #ffffff;
  color: #333;
  padding: 10px 30px;
  border-radius: 5px;
  min-width: 150px;
  height: 3em;
  border: 1px solid #999999;
}
.app-buttons button:focus {
  outline: none;
}
.app-buttons button:active {
  box-shadow: 0px 5px 10px #efefef;
  transform: scale(1.05);
}
.app-buttons button.highlight-blue{
  background: #0089ff;
  color: #ffffff;
  border-color: #0089ff;
}
.app-buttons button.highlight-red{
  background: #e76e54;
  color: #ffffff;
  border-color: #e76e54;
}

#manage-users-overlay {
  overflow-x: auto;
  width: auto;
}

#manage-users-overlay table {
  width: 100%;
}
#manage-users-overlay tr:nth-child(odd) {
  background: #efefef;
}
#manage-users-overlay tr:not(.no-hover):hover {
  background: #90ccff;
}
#manage-users-overlay td {
  cursor: pointer;
  text-align: center;
}
#manage-users-overlay .no-hover td {
  vertical-align: top;
}
#manage-users-overlay tr:not(.no-hover) td:hover {
  color: white;
  background: #0089ff;
}

#manage-users-overlay td.red-hover:not(.no-hover):hover {
  color: white;
  background: #ff5454;
}

#manage-users-overlay #add-user .btn {
  display: inline-block;
  width: auto;
  margin: 1em 0;
  border-radius: 5px;
  padding: 0.5em;
  font-weight: bold;
  cursor: pointer;
}
#manage-users-overlay #add-user .btn#btn-add {
  background: #90ccff;
}
#manage-users-overlay #add-user .btn#btn-done {
  float: right;
  color: #666666;
  background: #90ffc7;
}
#manage-users-overlay #add-user .btn#btn-clear {
  float: right;
  color: #666666;
  background: #ff9090;
  margin-right: 2em;
}
#manage-users-overlay #add-user .btn#btn-add:hover {
  background: #0089ff;
  color: white;
}
#manage-users-overlay #add-user .btn#btn-done:hover {
  color: #000000;
  background: #00ff72;
}
#manage-users-overlay #add-user .btn#btn-clear:hover {
  color: #000000;
  background: #ff5454;
}
#manage-users-overlay #add-user .btn#btn-add span {
  color: #0089ff;
  vertical-align: middle;
  line-height: 1em;
}
#manage-users-overlay #add-user .btn#btn-add:hover span {
  color: #90ccff;
}
#manage-users-overlay #add-user .success {
  background: #90ffc7;
  padding: 10px;
}
#manage-users-overlay #add-user .input-house {
  display: inline-block;
  vertical-align: top;
  width: 24%;
  position: relative;
}
#manage-users-overlay #add-user .input-house label {
  position: absolute;
  width: 100%;
  max-width: none;
  font-size: 0.75em;
  left: 0.25em;
}
#manage-users-overlay #add-user input {
  display: inline-block;
  width: 100%;
  max-width: none;
  padding-top: 0.75em;
  margin-bottom: 1em;
}
#manage-users-overlay #add-user .inline-error {
  margin: 0;
  margin-top: -1em;
}
#manage-users-overlay .user-in-list {
  height: 36px;
}
#manage-users-overlay .user-in-list .inline-error {
  margin: 0;
}
#manage-users-overlay #user-list input {
  margin-bottom: 0;
  background-color: #90ccff;
  text-align: center;
}
#manage-users-overlay #user-list input::selection {
  background: #0089ff;
}
#manage-users-overlay #user-list input::-moz-selection {
  background: #0089ff;
}
#manage-users-overlay #user-list .cancel-edit {
  vertical-align: middle;
  font-weight: bold;
  border-radius: 5px;
  color: #666666;
  background: #ff9090;
}
#manage-users-overlay #user-list .cancel-edit:hover {
  color: #000000;
  background: #ff5454;
}
#manage-users-overlay #user-list .done-edit {
  vertical-align: middle;
  font-weight: bold;
  border-radius: 5px;
  color: #666666;
  background: #90ffc7;
}
#manage-users-overlay #user-list .done-edit:hover {
  color: #000000;
  background: #00ff72;
}

#formula-view #formula-tools {
  width: 100%;
  padding: 0 25px 25px 25px;
  border-bottom: #efefef solid 1px;
  text-align: center;
  box-sizing: border-box;
}
#formula-view .formula-tile {
  min-width: 100px;
  width: auto;
  height: 100px;
  border: #efefef solid 1px;
  background: #ffffff;
  border-radius: 5px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  vertical-align: top;
  position: relative;
  padding: 0 10px;
  margin-right: 25px;
  margin-top: 25px;
  box-sizing: border-box;
}

.grab-handle {
  visibility: hidden;
  position: absolute;
  bottom: -23px;
  font-size: 16px;
  color: #bbb;
  background-color: #efefef;
  text-align: center;
  border: 1px solid #efefef;
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  width: 100%;
  left: -1px;
  padding-top: 5px;
  z-index: -1;
}

.view-notes {
  visibility: hidden;
  position: absolute;
  top: -25px;
  font-size: 16px;
  color: #0089ff;
  text-align: right;
  width: 100%;
  left: -1px;
  padding-top: 5px;
  cursor: pointer;
  z-index: 2;
}
#formula-view .formula-tile:hover .grab-handle,
#formula-view .formula-tile:hover .view-notes {
  visibility: visible;
}
#formula-view .formula-tile.invisible {
  visibility: hidden;
}
#formula-view #formula-display #constructed-formula .formula-tile.targeted {
  background: rgba(225, 150, 0, 0.3);
}
#formula-view #formula-display #constructed-formula .formula-tile.selected {
  background: rgba(0, 0, 225, 0.3);
}
#formula-view #formula-display #constructed-formula .formula-tile.set {
  background: transparent;
  border: 2px dashed #0089ff;
}

#formula-view .formula-tile input {
  border: none;
  border-bottom: 2px solid #0089ff;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  height: 23px;
  text-align: center;
  outline: none;
  z-index: 10;
}
#formula-view .formula-tile input {
}
#formula-view .formula-tile input.tile-name-input {
  position: relative;
  width: 100%;
  left: 0;
}

#formula-view .formula-tile .constant-value,
#formula-view .formula-tile .tile-name,
#formula-view .formula-tile .variable-top-value,
#formula-view .formula-tile .variable-bottom-value {
  display: block;
  text-align: center;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}
#formula-view .formula-tile .constant-value {
  font-size: 24px;
}

#formula-view .formula-tile .tile-name {
  position: relative;
  color: #999;
}
#formula-view .formula-tile .constant-name {
  top: 18px;
}
#formula-view .formula-tile input.constant-value-input {
  font-size: 24px;
  height: 31px;
  position: relative;
  top: 1px;
}
#formula-view .formula-tile .constant-name-input {
  position: relative;
  top: 19px;
}

#formula-view .formula-tile .variable-name {
  top: -4px;
}

#formula-view .formula-tile .variable-name-input {
  position: relative;
  top: -2px;
}
#formula-view .formula-tile .variable-label {
  display: block;
  font-size: 0.75em;
  color: #999999;
  margin-bottom: -3px;
}

#formula-view .formula-tile .operator-symbol {
  display: block;
  text-align: center;
  font-size: 24px;
}
#formula-view #operator-selection,
#formula-view #bracket-selection {
  display: inline-flex;
  flex-direction: row;
  width: 115px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  margin-left: -5px;
  margin-right: 20px;
}
#formula-view #operator-selection .formula-tile,
#formula-view #bracket-selection .formula-tile {
  margin: 5px;
}

#formula-view .formula-tile.plus,
#formula-view .formula-tile.minus,
#formula-view .formula-tile.multiply,
#formula-view .formula-tile.divide,
#formula-view .formula-tile.bracket-left,
#formula-view .formula-tile.bracket-right {
  min-width: 45px;
  width: 45px;
  height: 45px;
  margin-top: 50px;
}
#formula-view .formula-tile.bracket-left,
#formula-view .formula-tile.bracket-right {
  min-width: 45px;
  width: 45px;
  height: 45px;
  margin: 5px;
}
#formula-view .formula-tile#recursion{
  height: 45px;
}

#formula-view .formula-tile#recursion:hover,
#formula-view .formula-tile#recursion.active{
  color: #0089ff;
  cursor: pointer;
}

#formula-view .formula-tile.plus .tile-name,
#formula-view .formula-tile.minus .tile-name,
#formula-view .formula-tile.multiply .tile-name,
#formula-view .formula-tile.divide .tile-name,
#formula-view .formula-tile.bracket-left .tile-name,
#formula-view .formula-tile.bracket-right .tile-name {
  top: 10px;
}

#formula-view .formula-tile .drag-test {
  position: absolute;
  top: 0;
  bottom: -23px;
  left: 0;
  right: 0;
}

#formula-view .formula-tile.bracket-left .drag-test,
#formula-view .formula-tile.bracket-right .drag-test {
  z-index: 10;
}

#formula-view #formula-display {
  width: 100%;
  height: 500px;
  overflow-x: scroll;
  padding-left: 25px;
  padding-right: 25px;
  box-sizing: border-box;
  position: relative;
  margin-bottom: 100px;
}
#formula-view #instructional-text{
  position: absolute;
  margin-top: 30px;
  left: 10px;
  right: 10px;
  text-align: center;
  color: #0089ff;
  font-weight: bold;
  z-index: 1000;
}
#formula-view #instructional-text input{
  display: block;
  margin: auto;
  font-size: 24px;
  width: 60px;
  outline: none;
  border: solid 2px #0089ff;
  border-radius: 5px;
  color: #0089ff;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}
#formula-view #formula-errors {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 20px;
  text-align: center;
  color: #e76e54;
}
#formula-view #drag-drop {
  display: none;
  z-index: 500;
  box-shadow: 10px 10px 15px;
  position: absolute;
  text-align: center;
  margin: 0;
}
#formula-view #drag-drop.activedrag {
  display: inline-flex;
}
#drag-drop .view-notes,
#formula-tools .view-notes {
  display: none;
}
#formula-view #formula-display #constructed-formula {
  padding-top: 120px;
  text-align: center;
  white-space: nowrap;
}

#formula-view #formula-display #constructed-formula .formula-tile {
  background: transparent;
}
#formula-view #formula-display .recursion-selector{
  position: absolute;
  background: rgba(225, 150, 0, 0.3);
  top: 120px;
  height: 150px;
  left: 0;
  width: 0;
  border-radius: 5px;
}

#formula-view #formula-display .recursion-selector.selected{
  background: rgba(0, 0, 225, 0.3);
}
#formula-view #formula-display .recursion-selector.set{
  background: transparent;
  border: 2px dashed #0089ff;
}
#formula-view #formula-display .recursion-selector.set .repetition-count{
  color: #0089ff;
  text-align: left;
  position: absolute;
  left: 0;
  top: -24px;
}
#formula-view #formula-display .place-marker {
  display: inline-block;
  font-size: 64px;
  vertical-align: top;
  color: #0089ff;
  position: relative;
  left: -20px;
  top: 30px;
  width: 20px;
  margin-right: -20px;
  text-shadow: 2px 2px 5px #0089ff, -2px -2px 5px #0089ff, -2px 2px 5px #0089ff,
    2px -2px 5px #0089ff;
}
#formula-view #formula-display #formula-result-title {
  display: inline-block;
  position: relative;
  margin-top: 63px;
  margin-right: 20px;
}
#formula-view #formula-display #formula-result-title input,
#formula-view #formula-display #formula-result-title #formula-label {
  position: relative;
  border: none;
  padding: 0;
  height: 23px;
  text-align: center;
}
#formula-view #formula-display #formula-result-title input {
  border-bottom: 2px solid #0089ff;
  outline: none;
}
#formula-view #formula-display #formula-result-title #title-promp {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  white-space: normal;
  text-align: center;
  font-size: 0.75em;
  color: #6f6f6f;
}
#formula-view #formula-display #formula-equals {
  position: relative;
  top: 6px;
  font-size: 2em;
  margin-left: -10px;
  margin-right: 10px;
}
#formula-view #formula-display .formula-tile.bracket-left,
#formula-view #formula-display .formula-tile.bracket-right {
  border: none;
  margin-top: -25px;
  height: 150px;
  position: relative;
  top: 24px;
}
#formula-view #formula-display .formula-tile.bracket-left .operator-symbol,
#formula-view #formula-display .formula-tile.bracket-right .operator-symbol {
  font-size: 130px;
  position: relative;
  bottom: 9px;
}
#formula-view #delete-tile {
  position: absolute;
  left: 300px;
  top: 300px;
  text-align: center;
  opacity: 0.5;
  padding-top: 10px;
  z-index: 10;
}
#formula-view #delete-tile.fullVisibility {
  opacity: 1;
}
#formula-view #delete-tile img {
  width: 75px;
}
#formula-view #delete-tile #delete-label {
  color: #e76e54;
  font-size: 18px;
  margin-top: 5px;
}

/* ==========================================================================
Helper classes
========================================================================== */

/*
* Hide visually and from screen readers
*/

.hidden {
  display: none !important;
}
.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.hidegraph {
  height: 0;
  overflow: hidden;
}
.hidegraph .app-buttons {
  display: none;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

@media only screen and (max-width: 768px) {
  #admin-menu .subhead {
    margin-bottom: 5em;
  }
  #admin-menu .admin-link {
    width: 49%;
    max-width: none;
  }
  .primary-button {
    float: none;
  }
  .secondary-button {
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 424px) {
  #admin-menu .admin-link {
    width: 100%;
    max-width: none;
    display: block;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
  * Don't show links that are fragment identifiers,
  * or use the `javascript:` pseudo protocol
  */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
  * Printing Tables:
  * http://css-discuss.incutio.com/wiki/Printing_Tables
  */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
