* {
  font-size: 14px;
  font-family: "Courier";
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: top;
}

:root {
  --low-lowlight-color: #111111;
  --lowlight-color: #222222;
  --background-color: #333333;
  --highlight-color: #444444;
  --high-highlight-color: #555555;
  --notify-color: orange;
  --warning-color: red;
  --progress-color: #33cc33;
  --fame-color: #ff751a;
  --money-color: #00bb00;
  --beat-color: #0066ff;
  --sample-color: #3399ff;
  --lyric-color: #C39BD3;
  --stanza-color: #8E44AD;
  --note-color: #ffff66;
  --measure-color: #ffcc66;
}

body {
  background-color: var(--background-color);
  overflow: hidden;
}

button:focus, input:focus {
  outline: 0;
}

.column {
  float: left;
  width: 50%;
  height: 100%;
}

.row {
  width: 100%;
  border: 1px solid black;
}

#clickContainer, #itemsContainer {
  float: left;
  height: 50%;
}

#outputContainer {
  float: right;
  height: 33.33333%;
  padding-left: 6px;
  padding-top: 6px;
  color: white;
}

#taskContainer, #characterContainer {
  float: right;
  height: 33.33333%;
  color: white;
}

/* Options */

.progressNumbers::after {
  content: attr(value)"/"attr(max);
  text-shadow:
    -1px -1px 0 #000,
     0   -1px 0 #000,
     1px -1px 0 #000,
     1px  0   0 #000,
     1px  1px 0 #000,
     0    1px 0 #000,
    -1px  1px 0 #000,
    -1px  0   0 #000;
  position: relative;
}

/* Tooltip CSS */

#tooltip {
  position: absolute;
  z-index: 100;
  visibility: hidden;
  overflow: hidden;
  background: var(--low-lowlight-color);
  opacity: 0.95;
  color: #ffffff;
  border: 1px solid white;
  border-radius: 5px;
  width: 200px;
  text-align: center;
}

#tooltipHeader {
  font-size: 11px;
  margin: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid white;
}

.tooltipPriceInfo {
  overflow: hidden;
}

.tooltipResource {
  float: left;
  font-size: 11px;
  padding: 5px;
}

.tooltipCost {
  float: right;
  font-size: 11px;
  padding: 5px;
}

.tooltipFlavor {
  color: #aaaaaa;
  font-size: 10px;
  font-style: italic;
  margin: 5px;
  padding-top: 5px;
  border-top: 1px solid white;
}

/* Pop Up CSS */

#popUpBlocker {
  display: none;
  opacity: 0;
  position: fixed;
  z-index: 9; /* Under the pop up box, above everything else */
  width: 100%;
  height: 100%;
}

#popUpBox {
  display: none;
  position: fixed;
  z-index: 10; /* On top of everything except tooltips */
  border: 2px solid white;
  color: white;
  background-color: var(--background-color);
  left: 25%;
  top: 15%;
  width: 50%;
  height: auto;
}

.closePopUp {
  background-color: Transparent;
  color: white;
  font-size: 16px;
  border: none;
  overflow: hidden;
  outline:none;
  float: right;
  margin-right: 5px;
  margin-top: 5px;
}

.closePopUp:hover {
  cursor: pointer;
  color: var(--warning-color);
}

.popUpHeader {
  text-align: center;
  margin-bottom: 15px;
  margin-top: 15px;
}

.popUpSubHeader {
  text-align: left;
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 13px;
  width: 80%;
}

.popUpText {
  text-align: left;
  margin-bottom: 15px;
  font-size: 12px;
  width: 80%;
}

.popUpSubText {
  text-align: left;
  float: left;
  font-size: 12px;
  position: relative;
  top: 3px;
  margin-bottom: 15px;
  margin-right: 15px;
}

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

.popUpSubRow {
  overflow: hidden;
  display: block;
  width: 80%;
}

.popUpButton {
  width: 120px;
  height: 30px;
  margin-top: 6px;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  border: 1px solid white;
  color: white;
  background-color: var(--lowlight-color);
}

.disabledPopUpButton {
  width: 120px;
  height: 30px;
  margin-top: 6px;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  border: 1px solid #cccccc;
  color: #cccccc;
  background-color: var(--background-color);
}

.popUpButton:hover {
  cursor: pointer;
  background-color: var(--background-color);
}

.popUpCheckbox[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    font-size: 14px;
    background-color: #eee;
    margin-right: 5px;
    float: left;
    position: relative;
}

.popUpCheckbox[type=checkbox]:checked:after {
    position: relative;
    left: 3px;
    color: var(--background-color);
    content: "\2713"; /* check mark */
}

.popUpSlider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 65%;
  height: 10px;
  background: #aaa;
  outline: none;
  margin-bottom: 10px;
  margin-top: 10px;
  border-radius: 5px;
}

.popUpSlider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 18px;
  height: 18px;
  background: #3399ff;
  cursor: pointer;
  border-radius: 50%;
}

#stageNameInput {
  width: 50%;
}

#loadGameInput {
  width: 80%;
}

#achievementPopUp {
  display: block;
  position: fixed;
  z-index: 5; /* On top of regular content, below the normal popup and tooltips */
  border: 2px solid white;
  color: white;
  background-color: var(--background-color);
  left: 35%;
  top: 100%;
  width: 30%;
  height: 13%;
  background-color: var(--lowlight-color);
  opacity: 0;
}

#achievementPopUpContent {
  height: 100%;
  width: 100%;
  display: flex;
}

#achievementPopUpImgContainer {
  height: 100%;
  width: 25%;
  padding-left: 10px;
  padding-right: 10px;
}

#achievementPopUpImg {
  height: 65%;
  width: 100%;
  background-color: blue;
}

#achievementPopUpRank {
  display: block;
  float: right;
  margin-top: 5px;
  margin-right: 5px;
}

#achievementPopUpContentContainer {
  width: 75%;
  height: 100%;
}

#achievementTitle {
  text-align: center;
  font-size: 20px;
  margin-right: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #aaaaaa;
}

#achievementPopUpDescription {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  margin-right: 10px;
}

/* Achievement Pop Up Animation */
.achievementPopUpAnimation {
  animation-name: achievementPopUpAnimation;
  animation-duration: 5s;
}

@keyframes achievementPopUpAnimation {
  0% { top: 100%;
       opacity: 1;
     }
  10% { top: 85%;
        opacity: 1;
      }
  90% { top: 85%;
        opacity: 1;
      }
  100% { opacity: 0;
         top: 85%;
       }
}

/* Notification Animation */
.backgroundColorNotify {
  animation-name: backgroundColorNotify;
  animation-duration: 1s;
}

@keyframes backgroundColorNotify {
  0% { background-color: #444444; }
  50% { background-color: var(--notify-color); }
  100% { background-color: #444444; }
}

/* Error Animation */
.backgroundColorError {
  animation-name: backgroundColorError;
  animation-duration: 2s;
}

@keyframes backgroundColorError {
	0% { background-color: var(--warning-color); }
	100% { background-color: white; }
}

.fontColorError {
  animation-name: fontColorError;
  animation-duration: 2s;
}

@keyframes fontColorError {
	0% { color: var(--warning-color); }
	100% { color: white; }
}

/* Created Resource Animation */
.createdResourceAnimation {
  animation-name: createdResourceAnimation;
  animation-duration: 1s;
}

@keyframes createdResourceAnimation {
	0% { top: 0;
       opacity: 1;
     }
	100% { top: -50;
         opacity: 0;
       }
}
