@font-face {
  font-family: Lato;
  font-weight: 600;
  src: url('../webfonts/Lato-Black.ttf');
}
@font-face {
  font-family: Lato;
  font-weight: 500;
  src: url('../webfonts/Lato-Bold.ttf');
}
@font-face {
  font-family: Lato;
  font-weight: 400;
  src: url('../webfonts/Lato-Regular.ttf');
}
@font-face {
  font-family: Lato;
  font-weight: 300;
  src: url('../webfonts/Lato-Light.ttf');
}
@font-face {
  font-family: Lato;
  font-weight: 200;
  src: url('../webfonts/Lato-Thin.ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: 400 0.95rem/1.3rem Lato, sans-serif;
  transition: all 0.3s;
}

body {
  min-height: 100vh;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  overflow-x: hidden;

}
header {
  height: 15vh;
  background-color: #2263;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  border-radius: 10px;
}

h1, 
h2 {
  font-weight: 500;
  font-size: 1.8rem;
  color: #444;
}

h2 {
  padding: 15px 0;
  text-align: center;
  font-size: 1.25rem;
}

main {
  height: 100%;
  display: flex;
}

#taskForm {
  background-color: #2263;
  width: 25%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: #222;
  border-radius: 10px;
  min-height: 50vh;
  /* max-height: 60vh; */
}  

input,
select,
textarea, 
button {
  margin-bottom: 10px;
  box-shadow: 3px 3px 5px #888;
}    

#tfSearch {
  right: 10px;
}  

.fas,
.far,
.fa-solid,
.fa-regular {
  cursor: pointer;
}  

button#btnSave {
  margin-bottom: 0;
}    

#btnSave,
#btnSwitchView {
  background-color: #ddd;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #000;  
  margin: 10px 0;
  /* width: 120px; */
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 3px 3px 5px #888;
}

button#btnSwitchView {
  margin-top: 50px;
}    

#btnClear,
#btnMarkClosed,
#btnMarkOverdue,
#btnArchiveClosed,
#detBtnUpdate,
#detBtnCancel,
#btnExport,
#btnImport {
  background-color: #ddd;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #000;  
  margin: 10px 0;
  width: 120px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 3px 3px 5px #888;
}

#uploadFile {
  background-color: #ddd;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #000;  
  margin: 10px 0;
  /* width: 120px; */
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 3px 3px 5px #888;
}

#btnSwitchView:hover {
  background-color: #aaff;
}
#detBtnUpdate:hover,
#detBtnCancel:hover {
  background-color: #9c9;
}
#detBtnCancel:hover {
  background-color: #aaa;
}
#btnClear {
  background-color: #f339;
}
#btnClear:hover {
  background-color: #f00f;
}
#btnSave:hover {
  background-color: #0c0f;
}
#btnMarkClosed:hover {
  background-color: #0c03;
}
#tfDueDate {
  display: none;
}  
#btnMarkOverdue:hover {
  background-color: #fbbf;
}
#btnArchiveClosed:hover {
  background-color: #aaf9;
}
#btnExport:hover {
  background-color: #08f8;
}
#btnImport:hover {
  background-color: #08f8;
}
#uploadFile:hover {
  background-color: #08f8;
}

#reqData {
  font-size: 0.7rem;
}  

#errorMessage {
  font-weight: bold;
  color: #e50;
  text-align: center;

}    

#taskList {
  width: 75%;
  /* max-height: 70vh; */
  padding: 0 20px;
  background-color: #2263;
  margin-left: 20px;
  border-radius: 10px;
  /* overflow-y: scroll; */
}

table {
  width: 100%;
  box-shadow: 3px 3px 5px #888;
  background-color: #f2f2f2;
}  

table thead {
  background-color: #27275ccc;
  color: #fff;
}  

tbody tr:hover {
  /* background-color: #ddddff99; */
  background-color: #27275c33;
} 

td {
  padding: 0 3px;
	overflow: hidden;
  white-space: nowrap;
	text-overflow:ellipsis;
}

.td-cursor {
  cursor: not-allowed;
}

header,
#taskForm,
#taskList,
#detailView {
  box-shadow: 5px 5px 10px #999;
  border-right: solid 1px #999;
  border-bottom: solid 1px #999;
}

.funcButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.center {
  text-align: center;
}

.inactive {
  opacity: 0.9;
}

.closed {
  text-decoration: line-through;
  text-decoration-style: wavy;
  opacity: 0.7;
}

.markClosed {
  background-color: #0d09;
}

.blink {
  animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

div#detailView {
  width: calc(95% - 40px);
  width: 100%;
  height: 73vh;
  background-color: #27275c33;
  padding-left: 50px;
  border-radius: 20px;
  display: none;
}

span#closeButton {
  text-align: right;
  font-size: 3rem;
  top: 10px;
  left: calc(100% - 40px);
  position: relative;
  cursor: pointer;
}

#detailHead {
  display: flex;
  margin: 8px 0;
}

#detailHead p {
  margin-right: 50px;
}

div#detailContainer p {
  margin-top: 7px;
}

div#detailContainer input,
div#detailContainer textarea {
  width: 92%;
  border-radius: 5px;
  box-shadow: 2px 2px 5px #888;
}

div#detailContainer textarea {
  height: 8vh;
}

div#detailActionButtons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 92%;
}

td.tdDetails  {
  background-color: #f806;
}
td.tdDetails:hover  {
  background-color: #f80;
}
td.tdClosed  {
  background-color: #afa6;
}
td.tdClosed:hover  {
  background-color: #6f6;
}
td.tdArchive  {
  background-color: #aaf6;
}
td.tdArchive:hover  {
  background-color: #77f;
}
td.tdDelete  {
  background-color: #faa6;
}
td.tdDelete:hover  {
  background-color: #f00;
}