@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap");

body {
  font-family: "Roboto Mono", monospace;
  background-color: #333;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.container {
  background-color: #444;
  border: #222 2px solid;
  color: #fff;
  padding: 5px;
  min-width: 300px;
  max-width: 600px;
  width: 50%;
}

.currentStopWatch {
  position: relative;
  background-color: rgb(70, 70, 70);
  padding: 5px;
  height: 70px;
}

.taskCreator {
  position: relative;
  padding: 5px;
  height: 70px;
}

.buttonSection {
  position: relative;
  padding: 5px;
  height: 70px;
}

.settings {
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.stopWatch {
  position: absolute;
  font-family: inherit;
  color: rgb(0, 141, 0);
  font-size: 40px;
  right: 10px;
  top: 0px;
}

.estBar {
  position: absolute;
  border: #222 2px solid;
  top: 50px;
  width: 95%;
  height: 20px;
}

.estBarProgress {
  background-color: rgb(0, 141, 0);
  width: 100%;
  height: 100%;
}

.taskScroller {
  height: 300px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.taskTable {
  border-collapse: collapse;
  width: 100%;
}

.taskTable thead th {
  background-color: #444;
  position: sticky;
  top: 0;
}

.taskTable th {
  padding: 8px 16px;
}

.taskTable td {
  padding: 10px;
  margin: 0;
  text-align: center;
}

.taskTable .taskName {
  text-align: left;
}

.taskTable tbody tr {
  cursor: pointer;
}

.currentTask {
  background-color: #555;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #444;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #333;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.newTaskTitle {
  position: absolute;
  font-size: 18px;
  top: 0;
  margin: 0;
  left: 50%;
  transform: translateX(-50%);
}

.newTaskName {
  position: absolute;
  background-color: transparent;
  border: 1px #222 solid;
  color: #fff;
  outline: none;
  padding: 5px;
  top: 30px;
  width: 35%;
}

.newTaskLength {
  position: absolute;
  outline: none;
  background-color: transparent;
  border: 1px #222 solid;
  color: #fff;
  padding: 5px;
  top: 30px;
  left: 43%;
  width: 10%;
}

.addTaskBtn {
  position: absolute;
  background-color: transparent;
  outline: none;
  border: 1px #222 solid;
  color: #fff;
  padding: 5px 10px;
  top: 30px;
  right: 90px;
  cursor: pointer;
}

.removeTaskBtn {
  position: absolute;
  background-color: transparent;
  outline: none;
  border: 1px #222 solid;
  color: #fff;
  padding: 5px 10px;
  top: 30px;
  right: 10px;
  cursor: pointer;
}

.toggleStartBtn {
  position: absolute;
  background-color: transparent;
  outline: none;
  font-weight: bold;
  border: 1px #222 solid;
  color: #fff;
  padding: 10px 10px;
  top: 0px;
  width: 98%;
  cursor: pointer;
}

.prevTaskBtn {
  position: absolute;
  background-color: transparent;
  outline: none;
  font-weight: bold;
  border: 1px #222 solid;
  color: #fff;
  padding: 10px 10px;
  top: 37px;
  width: 50.1%;
  cursor: pointer;
}

.nextTaskBtn {
  position: absolute;
  background-color: transparent;
  outline: none;
  font-weight: bold;
  border: 1px #222 solid;
  color: #fff;
  padding: 10px 10px;
  top: 37px;
  left: 51%;
  width: 47.8%;
  cursor: pointer;
}

@media only screen and (max-width: 800px) {
  .container {
    background-color: #444;
    border: #222 2px solid;
    padding: 5px;
    min-width: 300px;
    max-width: 600px;
    width: 100%;
  }

  .taskTable td {
    font-size: 16px;
  }
}
