@font-face {
  font-family: "vazir";
  src: url("./fonts/vazir.eot") format("eot"),
    url("./fonts/vazir.ttf") format("truetype"),
    url("./fonts/vazir.woff") format("woff"),
    url("./fonts/vazir.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "vazir", sans-serif;
}

.study-container {
  padding: 1rem;
  max-width: 810px;
  margin: auto;
}

.study-done-title {
  border: 1px solid;
  background-color: #d9d9d9;
  text-align: center;
  padding: 5px 0;
  font-size: 23px;
}

table {
  border: 1px solid blue;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

td,
th {
  border: 1px solid black;
}

.table-date {
  font-size: 20px;
  background: #ffe699;
  padding: 6px 10px;
}

.name-col {
  font-size: 18px;
}

.name-col th {
  padding: 4px 5px;
}

.name-col th:first-of-type {
  background-color: #b4c6e7;
}

.name-col th:nth-of-type(2) {
  background-color: #f8cbad;
}

.name-col th:last-of-type {
  background-color: #a9d08e;
}

.set-time {
  font-size: 17px;
}

.set-time td {
  padding: 6px 8px;
}

tfoot .table-sum {
  font-size: 18px;
  padding: 4px 10px;
}

.table-wrapper {
  max-height: 460px;
  overflow: auto;
  margin: 20px auto;
}

thead {
  position: sticky;
  top: 0px;
  z-index: 4;
}

.name-col {
  position: sticky;
  top: 43px;
  z-index: 3;
}

/* -----buttons----- */

.buttons-container {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buttons-container button {
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border: 1px solid gray;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.set-time-btn {
  width: 120px;
  text-wrap: nowrap;
  background-color: #b4c6e7;
}

.delete-time-btn {
  background-color: darkgoldenrod;
}

.set-time-btn.active {
  background-color: #f8cbad;
}

.buttons-container button:active {
  transform: scale(0.9);
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
}

/* ------------- */

.delete-list-container {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 0 1rem;
}

.delete-list-container.hidden {
  display: none;
}

.delete-list {
  background-color: #fff;
  padding: 15px 14px 25px;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  font-size: 20px;
  text-align: justify;
  box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.28);
  animation: moveScale 0.8s forwards;
  -webkit-animation: moveScale 0.8s forwards;
}

.delete-list.active {
  animation: moveScale2 0.8s forwards;
  -webkit-animation: moveScale2 0.8s forwards;
}

.delete-btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}

.delete-btn-container button {
  font-size: 18px;
  font-family: inherit;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  user-select: none;
}

#confirm-delete-btn {
  color: #fff;
  background-color: rgb(206, 33, 33);
}

.cancel-to-delete {
  color: #fff;
  background-color: rgb(26, 124, 209);
}

@keyframes moveScale {
  from {
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
  }

  to {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
}

@keyframes moveScale2 {
  from {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }

  to {
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
  }
}
