@charset "ISO-8859-1";

/**
I'm learning CSS.
TODO: Use it correctly ;)
*/

body {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

a:link, a:visited, a:hover, a:active { 
  text-decoration: none; 
}

.goal {
  font-size: 5vw;
  border: 1px solid black;
  height: 6vw;
  position: relative;
  padding-top: 1px;
  padding-right: 1px;
  padding-bottom: 1px;
  padding-left: 1px;
}

.goal span {
  font-size: 5vw;
}

.description-bar {
  border: 1px solid black;
  height: 18vw;
  position: relative;
  padding-top: 1px;
  padding-right: 1px;
  padding-bottom: 1px;
  padding-left: 1px;
}

.goal-spec {
  font-size: 3vw;
}

.goal-spec span {
  font-size: 3vw;
  /* position: absolute; */
}

table.goal-spec {
  width: 100%;
  vertical-align: middle;
  padding: 1px;
}

table.goal-spec tr {
}

table.goal-spec td {
  padding: 1px;
  text-align: center;
}

.spec-update-button {
  cursor: pointer;
  font-size: 4vw;
  font-weight: bold;
  margin: 0;
  right: 1em;
  background: white;
}

.title {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5em;
  cursor: pointer;
}

.title a {
  font-size: 5vw;

  cursor:pointer;
  color:blue;
}

.title a:hover {
  text-decoration:none;
  text-decoration:underline;
}

.urgency {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 3em;
  cursor: pointer;
}

.rep-button {
  position: absolute;
  right: 1em;
  cursor: pointer;
  font-size: 4vw;
  font-weight: bold;
  margin: 0;
  top: 50%;
  transform: translateY(-50%);
  background: white;
}

/* top (aboveGoalsDivId) icons */

#load-icon {
  font-size: 5vw; /* This is needed to win over font-size of class "material-icons" */
  position: absolute;
  left: 0.5em;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

#top-help-icon {
  font-size: 5vw; /* This is needed to win over font-size of class "material-icons" */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 2.5em;
  cursor: pointer;
}

#loading {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1em;
  width: 1em;
  left: 6.5em;
}

#createDoGoal {
  font-size: 5vw; /* This is needed to win over font-size of class "material-icons" */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 9.5em;
  cursor: pointer;
}

#createDontGoal {
  font-size: 5vw; /* This is needed to win over font-size of class "material-icons" */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 11.5em;
  cursor: pointer;
}





/* TODO: diagonal strips for inverse goals, currently hard-coded in goal.js */
.stripe {
  color: white;
  background: repeating-linear-gradient(
    135deg,
    #606dbc,
    #606dbc 20px,
    #465298 20px,
    #465298 40px
  );
}











/* Rename "recent" to Histogram. */

.recent-bar {
  border: 1px solid black;
  height: 4vw;
  position: relative;
  padding-top: 1px;
  padding-right: 1px;
  padding-bottom: 1px;
  padding-left: 1px;
  font-size: 2vw;
}

.recent-bar span {
  font-size: 2vw;
}

.recent-created {
  margin: 0;
  position: absolute;
  top: 0.5em;
  left: 0.5em;
}

.recent-right {
  margin: 0;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

/* 
For <input>, <textarea>, <select>. 
"/" and "," seem to be class goal-spec.
The <select> stuff here doesn't seem to make a difference.
 */
input {
  font-size: 3vw;
  font-family: 'Arial';
}

select {
  font-size: 3vw;
  font-family: 'Arial';
}

textarea {
  font-size: 3vw;
  font-family: 'Arial';
  /* Kudos: https://stackoverflow.com/questions/11289166/chrome-on-android-resizes-font */
  text-size-adjust: none;
}

#notesTextAreaId {
  width: 95%;
  height: 95%;
}

.font-boosting-fix {
  /* https://stackoverflow.com/questions/11289166/chrome-on-android-resizes-font */
  /* prevent font boosting on mobile devices */
  width: 100%;
  height: auto;
  min-height: 1px;
  max-height: 999999px;
}

/* 
Histogram:
*/
table.histogram-bar {
  /* display: block; */
  border: 0;
  border-spacing: 0;
  padding: 0;
  height: 2.5vw;
  width: 100%;
}

tr.histogram-bar {
  border: 0;
  padding: 0;
}

/* TODO: Use the color for urgency=0 instead of lightGreen. */
td.histogram-bar {
  border: 0;
  padding: 0;
  border-top: 1.25vw solid transparent;
  border-left: 1.25vw solid transparent;
  border-right: 1.25vw solid transparent;
  border-bottom: 1.25vw solid transparent;
}

td.pass {
  background-color: LightGreen;
}

td.fail {
  background-color: red;
}

td.passFail {
  background-color: pink;
}

td.rep {
  border-bottom: 1.25vw solid #75c275;
  cursor: pointer;
}

td.reps {
  border-bottom: 1.25vw solid #5b975b;
  cursor: pointer;
}

td.note {
  border-right: 1.25vw solid #FFD700;
  cursor: pointer;
}


/*
	from: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_modal 
	for modal rep dialog: okay/cancel, notes, fake rep. (TODO: precise time, delete) 
*/

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  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.8);
  /* Black w/ opacity */
}

/* Modal Content */
/* I liked this with 80% width, but then I'd have to adjust the histogram. */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 0px;
  border: 1px solid #888;
  width: 100%;
}

#edit-goal-help-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5em;
}

#edit-goal-delete-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 7em;
}
