/*
  ------ General CSS For Tasks ------
*/

.validTask {
  border: 1px solid white;
  color: white;
  background-color: var(--lowlight-color);
}

.invalidTask {
  border: 1px solid #cccccc;
  color: #cccccc;
  background-color: var(--background-color);
}

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

/*
  ------ CSS For Task Progress Container ------
*/

#taskProgressContainer {
  width: 100%;
  height: 20%;
  display: none;
  margin-left: 6px;
}

#taskProgressContainer > p {
  margin-top: 6px;
  margin-bottom: 6px;
  float: left;
}

#taskProgressContainer > button {
  background-color: Transparent;
  color: white;
  border: none;
  overflow: hidden;
  outline:none;
  margin-left: 5px;
}

#taskProgressContainer > button:hover {
  cursor: pointer;
  color: var(--warning-color);
}

#taskProgress[value] {
  height: 30%;
}

.taskProgress[value] {
  width: 99%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  display: none;
  margin-top: 2px;
  text-align: center;
}

.taskProgress[value]::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

.taskProgress[value]::-webkit-progress-value {
  background-color: var(--progress-color);
}

.taskProgress::after { /* Do not show progress numbers on the study/job tab progress bars */
  visibility: hidden;
}

#taskProgress::after {
  top: -11px;
  font-size: 10px;
  visibility: visible;
}

/*
  ------ CSS For Task Tabs ------
*/

#taskTabContainer {
  width: 100%;
  overflow: hidden;
  background-color: var(--lowlight-color);
}

#upgradeTab, #studyTab, #jobTab {
  color: white;
  float: left;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
  width: 33.3333333%;
}

.taskActive {
  background-color: var(--background-color);
}

.task {
  background-color: var(--highlight-color);
}

.task:hover {
  background-color: var(--high-highlight-color);
}

.taskContent {
  padding-left: 6px;
  display: block;
  height: 100%;
}

/* Hide study and job tabs by default */
#studyTab, #jobTab {
  display: none;
}

/* Hide non-active tab content by default */
#studyContent, #jobContent {
  display: none;
}

#studyContainer {
  height: calc(100% - 38px); /* Minus the height of the tabs and progress bar */
  overflow: auto;
  overflow-x: hidden;
}

#jobsContentContainer {
  height: calc(100% - 38px); /* Minus the height of the tabs and progress bar */
  overflow: auto;
}

/*
  ------ CSS For Task Tab Content ------
*/

#upgradeContent {
  padding-top: 6px;
  margin-right: 10px;
}

#upgradeContainer {
  height: 70%;
}

#upgradeContainer > button {
  width: 120px;
  height: 30px;
  margin-top: 6px;
  margin-bottom: 6px;
  margin-right: 6px;
  margin-left: 6px;
  font-size: 12px;
}

#laptopJobTasks, #keyboardJobTasks {
  width: 60%;
}

.taskHolder {
  border-top: 1px;
  border-bottom: 1px;
  border-style: none solid;
  height: 45px;
  overflow-x: auto;
  white-space: nowrap;
}

.taskHolder > button {
  width: 120px;
  height: 30px;
  margin-top: 6px;
  margin-bottom: 6px;
  margin-right: 6px;
  margin-left: 6px;
  font-size: 12px;
  white-space: normal;
}

.studyContainer {
  padding-top: 6px;
  margin-right: 6px;
  width: 100%;
  display: none;
}

.studyContainer > p {
  padding-top: 6px;
  margin-bottom: 6px;
}

.fameRate {
  color: var(--fame-color);
  font-size: 12px;
  margin-right: 6px;
  display: inline;
}

.wageRate {
  color: var(--money-color);
  font-size: 12px;
  margin-right: 6px;
  display: inline;
}

.procRate {
  color: #F7DC6F;
  font-size: 12px;
  margin-right: 6px;
  display: inline;
}

.xpModifier {
  color: #3399ff;
  font-size: 12px;
  margin-right: 6px;
  display: inline;
}

/*
  ------ CSS For Jobs ------
*/

#jobsHeader {
  width: 100%;
  overflow: hidden;
}

#manageJobsButton {
  width: 120px;
  height: 30px;
  margin-top: 6px;
  font-size: 12px;
  float: left;
  border: 1px solid white;
  color: white;
  background-color: var(--lowlight-color);
}

#manageJobsButton:hover {
  cursor: pointer;
  background-color: var(--background-color);
}

#numContractsDisplay {
  margin-top: 15px;
  margin-right: 10px;
  float: right;
}

#noJobsLabel {
  position: relative;
  top: 30%;
  text-align: center;
}

.jobContainer {
  height: 140px;
  width: 99%;
  margin-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 3px;
  border: 2px solid white;
  background-color: var(--lowlight-color);
}

.jobHeader {
  display: block;
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
  overflow: hidden;
}

.jobTitle {
  float: left;
  margin-left: 5px;
  margin-top: 2px;
}

.jobLevelContainer {
  float: left;
  margin-left: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.jobStar {
  border: none;
  background: transparent;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: contain; /* Resize the background image to be contained within the container */
  width: 13px;
  height: 13px;
  margin-right: 2px;
  margin-left: 2px;
  background-image: url("../resources/images/gold_star.png");
  display: none;
}

.jobExpirationTimer {
  margin-top: 2px;
  margin-right: 5px;
  float: right;
}

.jobDetails {
  overflow: hidden;
}

.jobDetailContainer {
  float: left;
  width: 70%;
}

.jobFameDetails, .jobWageDetails, .jobExperienceDetails, .jobLengthDetails {
  margin-top: 5px;
  margin-left: 6px;
}

.jobFameDetails {
  color: var(--fame-color);
}

.jobWageDetails {
  color: var(--money-color);
}

.jobExperienceDetails {
  color: #3399ff;
}

.jobLengthDetails {
  color: #F7DC6F;
}

.jobButtonContainer {
  float: right;
  width: 30%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jobAcceptButton {
  border: 1px solid var(--money-color);
  color: var(--money-color);
}

.jobAcceptButton:hover {
  cursor: pointer;
  border: 1px solid #00ff00; /* Money Lowlight */
  color: #00ff00; /* Money Lowlight */
}

.jobDeclineButton {
  border: 1px solid #BB0000; /* Warning Lowlight */
  color: #BB0000; /* Warning Lowlight */
}

.jobDeclineButton:hover {
  cursor: pointer;
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
}

.jobAcceptButton, .jobDeclineButton {
  width: 120px;
  height: 30px;
  margin-right: 10px;
  margin-left: 10px;
  font-size: 12px;
  background-color: var(--lowlight-color);
}

.jobFlavor {
  font-size: 11px;
  font-style: italic;
  text-align: center;
  color: #aaaaaa;
  padding-top: 8px;
}
