@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/*Color palette*/
:root {
  --pink-one: #000000;
  --pink-two: #14213d;
  --blue-one: #5579c7;
  --pink-three: #fca311;
  --orange-two: #834f0d;
  --pink-four: #e5e5e5;
  --pink-five: #14213d;
  --charcoal-one: #ffffff;
  --charcoal-two: #060A12;
  --charcoal-three: #9E9E9E;
}

html, body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  background-color: var(--pink-one);
  color: var(--charcoal-one);
}

h3 {
  margin: 10px 0 0 0;
  text-decoration: underline;
}

h4 {
  margin: 4px;
}

h5 {
  font-size: .8rem;
}

.title {
  color: tomato;
}

small {
  font-size: .7rem;
  margin: none;
  line-height: .5rem;
}

a {
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

ul {
  list-style: none;
  padding-left: 0;
}

.highlight {
  color: var(--pink-five);
  padding: 5px;
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--pink-four);
  border-radius: 5px;
  margin: 10px 60px;
}

.link-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.fa-link {

}

input {
  width: 50%;
  padding: 10px;
  margin: 2px;
  text-align: center;
  border-radius: 10px;
  border: none;
  font-size: 1.2rem;
  background-color: none;
}

input.task {
  padding: 0;
  font-size: 1.2rem;
  width: 96%;
}

.button {
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  text-align: center;
  min-width: 100px;
  padding: 10px;
  margin: 8px;
  cursor: pointer;
}

button {
  background-color: var(--pink-five);
  color: var(--pink-four);
  font-size: 1.2rem;
  cursor: pointer;
}

button:hover {
  color: var(--pink-one);
  background-color: var(--pink-three);
}

.header-container {
  text-align: center;
  margin: auto;
  padding-top: 50px;
  /* padding-bottom: 10%; */
}

footer {
  background-color: var(--pink-one);
  position: realtive;
  bottom: 10px;
  left: 10%;
  right: 10%;
  text-align: center;
}

.footer {
  display: flex;
  align-content: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

label {
  font-size: 1rem;
}


.fa-solid {
  padding: 6px;
}

.hyper-link {
  text-decoration: underline;
}

a:link {
  color: var(--pink-three);
}

a:hover {
  color: var(--pink-four);
}

a:visited {
  color: var(--pink-four);
}

.archived {
  background: var(--charcoal-two);
  color: var(--charcoal-three);
  border: 2px solid var(--pink-one);
}

#is_secondary {
  width: 20px;
  height: 20px;
}

/* .slideThree */
/* .slideThree {
  width: 80px;
  height: 26px;
  background: #333;
  margin: 20px auto;
  position: relative;
  border-radius: 50px;
  box-shadow: inset 0px 1px 1px rgba(0,0,0,0.5), 0px 1px 0px rgba(255,255,255,0.2);
  &:after {
    content: 'OFF';
    color: #000;
    position: absolute;
    right: 10px;
    z-index: 0;
    font: 12px/26px Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255,255,255,.15);
  }
  &:before {
    content: 'ON';
    color: greenyellow;
    position: absolute;
    left: 10px;
    z-index: 0;
    font: 12px/26px Arial, sans-serif;
    font-weight: bold;
  }
  #checkbox-label {
    display: block;
    width: 34px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    background: #fcfff4;
    background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.3);
  }
  input[type=checkbox] {
    visibility: hidden;
    &:checked + #checkbox-label {
      left: 43px;
    }
  }     */
/* end .slideThree */


.task {
  font-size: 1.1rem;
  min-width: 80%;
  min-height: 50px;
  text-align: center;
  background-color: #fff;
  border: 2px solid black;
  border-radius: 3px;
  padding-top: 10px;
}

.count {
  font-size: .8rem;
}

.user {
  color: orange;
}

.names {
  font-size: 1.3rem;
  min-width: 20%;
  min-height: 50px;
  text-align: center;
  background-color: #fff;
  border: 2px solid black;
  border-radius: 5px;
  padding-top: 10px;
}

.names:hover {
  cursor: pointer;
}

.duedate {
  font-size: 1.3rem;
  min-width: 20%;
  min-height: 50px;
  text-align: center;
  background-color: #fff;
  border: 2px solid black;
  border-radius: 5px;
  padding-top: 10px;
}

.duedate:hover {
  cursor: pointer;
}

.duedate:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.task_div {
  text-align: center;
  margin: 0 auto;
  border-radius: 10px;
  font-size: 1.2rem;
  max-width: 80%;
  background-color: var(--pink-three);
  padding: 10px 0 0 0;
  margin-top: 10px;
}

.td-container {
  margin: 3px;
}

.user_task {
  background-color: var(--pink-five);
  margin: 10px 0 0 0;
}

.user-data {
  margin: 0;
  color: var(--green-one);
}

.user_user {
  /* color: #fff; */
}

.user_assigned {
  /* color: blue; */
}

.user_due {
  /* color: pink; */
}

.authkey {
  font-size: .9rem;
}

.username {
  margin: 0;
}

.reward-container {
  border: 1px dashed black;
}

.reward {
  margin: 8px;
  font-size: 1rem;
}

.dotted {
  border-top: 1px dotted black;
  width: 50%;
  margin: 0 auto;
}

.negative-container {
  border: 1px dashed black;
}

.negative {
  color: tomato;
}

.user-points-container {
  display: flex;
  justify-content: center;
  flex-flow: space-around;
  align-content: center;
  gap: 10px;
}

.user-points-btn-container {
  display: flex;
  gap: 2px;
}

.user-sub-btn, .user-add-btn {
  border-radius: 5px;
  border: 1px solid var(--pink-three);
}

.user-points-container {
  font-size: 1rem;
}

.num-input {
  padding: 6px;
  max-width:120px;
}

/*********** Tables: *************/
table.table-data {
  margin-left: auto;
  margin-right: auto;
}

.table-data {
  font-size: 1rem;
  border-collapse: collapse;
  width: 80%;
}

.table-data th {
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: bold;
  text-align: center;
  border: 1px dashed var(--pink-one);
  background-color: var(--blue-one);
  padding: 5px 10px 5px 10px;
}

.table-data, .table-data sibling-ranks th {
  border: 1px dashed var(--pink-one);
  padding: 5px 5px 5px 5px;
}

td.date {
 white-space: nowrap;
}

.thead {
  /* color: #fff; */
  text-shadow: 1px 1px rgba(0,0,0,0.5);
}

.table-header {
  margin: 2px;
}

.task-tr-assigned {
  background-color: #adf7b6;
}

.td_task {
  max-width: 500px;
}

.td_delete_task {
  padding: 0;
}

.td_due_date {
  max-width: 80px;
}

td {
  padding: 0;
}

td.task {
  border: 1px solid var(--pink-one);
  background-color: var(--pink-five);
  padding: 0;
}

td.task-points {
  width: 50px;
  border: 1px solid var(--pink-one);
  background-color: var(--pink-five);
  padding: 0;
}

td.td-change {
  padding: 0;
  margin: 0;
  width: 20px;
  border: 1px solid var(--pink-one);
}

td.td-assigned {
  width: 200px;
  border: 1px solid var(--pink-one);
  background-color: var(--pink-two);
}

td.td-modify {
  width: 200px;
  border: 2px solid gray;
  background-color: #fff;
}

td.td-complete {
  width: 100px;
  border: 2px solid gray;
  background-color: #fff;
}

.add-btn, .sub-btn {
  display: inline-block;
  width:20px;
  margin: 2px 1px;
  padding: 3px;
  border: 0;
  border-radius: 5px;
  /* width: 10%; */
}

hr {
  margin: 0;
}

select {
  width: 100px;
  padding: 5px;
  border-radius: 5px;
  font-size: 1rem;
}

.red {
  color: tomato;
}

.rewards-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: var(--pink-four);
  border-radius: 10px;
  margin: 10px 60px;
}

.reward-li {
  margin: 10px;
  padding: 5px;
  background-color: var(--pink-two);
  border-radius: 5px;
  border: 1px solid gray;
  min-width: 100px;
  max-width: 300px;
}

.reward-li-cant-afford {
  margin: 10px;
  padding: 5px;
  color: white;
  background-color: black;
  border-radius: 5px;
  border: 1px solid black;
  min-width: 100px;
  max-width: 300px;
}


.reward-li:hover {
  cursor: pointer;
  background-color: var(--charcoal-one);
  color: var(--pink-two);
}


/** Modal Window */
#action-btn {
  margin: 10px;
  padding: 10px;
  font-size: 1.0rem;
  border-radius: 30px;
  border: none;
  text-align: center;
  min-width: 100px;
  cursor: pointer;
}

#modal-back-btn {
  margin: 10px;
  padding: 10px;
  font-size: 1.0rem;
  border-radius: 30px;
  border: none;
  text-align: center;
  min-width: 100px;
  cursor: pointer;
}

.modal-container {
  position: fixed;
  padding-top: 10%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal {
  position: relative;
  width: 95%;
  max-width: 420px;
  max-height: 415px;
  margin: 10px auto auto;
  padding: 1%;
  background: var(--pink-one);
  border-radius: 0.25em;
  border: 1px solid rgba(100, 100, 100, 0.3);
  transition: .4s ease-out;
}

.modal h2, h3 {
  text-align: center;
  text-decoration: none;
}

.modal p {
  font-size: 1rem;
}

.modal-btn-container {
  text-align: center;
}

.modal-submit-btn {
  position: absolute;
  cursor: pointer;
  outline: none;
  border-radius: 0.25em;
  bottom: 20px;
  border: none;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  color: var(--white); /* Updated */
  background: var(--pink-one); /* Updated */
  outline: none;
  border-radius: 0.25em;
  border: none; /* Update */
}

.modal-close-btn:hover {
  cursor: pointer;
  background: var(--charcoal-one) /* Updated */
}

/*********************************/
@media(max-width:1200px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
    text-decoration: underline;
  }

  .title {
    font-size: 1.2rem;
  }

  .user-points-container {
    font-size: 1rem;
  }

  li {
    font-size: 1.2rem;
  }

  button {
    font-size: 1.2rem;
  }
  
  .table-data th {
    font-weight: bold;
    font-size: 1.0rem;
    padding: 2px;

  }

  .table-data {
    width: 90%;
  }
  
  .table-data td {
    font-size: 1.0rem;
  }
  
  .rewards-container {
    margin: 10px 20px;
  }

  td.td-assigned {
    max-width: 80px;
  }

}


@media(max-width:500px) {

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
    text-decoration: underline;
  }

  .title {
    font-size: 1.rem;
  }

  .table-header {
    font-size: 1.1rem;
  }

  .header-container {
    padding: 10px;
  }

  .user-points-container {
    font-size: .9rem;
  }

  .num-input {
    /* margin: 0; */
    padding: 2px;
  }

  li, p, button, label {
    font-size: 1.0rem;
  }

  button .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: var(--white); /* Updated */
    background: var(--blue); /* Updated */
    outline: none;
    border-radius: 0.25em;
    border: none; /* Update */
  }

 
  .button {
    border-radius: 30px;
    width: 94%;
    padding: 5px; 
  }
  
  .rewards-container {
    margin: 10px 10px;
  }
  
  .table-data {
    width: 98%;
  }

  .table-data th {
    font-weight: bold;
    font-size: 0.8rem;
    padding: 2px;
  }

  td.task-points {
    width: 20px;
    padding: 0;
  }

  .th_task_giver {
    min-width: 60px;
  }

  .th_assigned_user {
    min-width: 60px;
  }

  .table-data td {
    font-size: .9rem; 
  }

  .username {
    font-size: .9rem;
  }

  i.fa-solid {
    display: flex;
    padding: 5px;
    font-size: .9rem;
  }

  input.task {
    padding: 0;
    font-size: 1rem;
    width: 96%;
  }

  li.highlight {
    margin: 5px;
  }
}