@import url("./fonts/font.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
button {
  cursor: url("./img/my-cursor.png"), auto;
}

body {
  background-color: #1c2233;
  font-family: "vazir", sans-serif;
}

table {
  table-layout: fixed;
  max-width: 1116px;
  width: 95%;
  padding: 0 8px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 5px;
}

caption {
  color: #d9e2f2;
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 25px;
}

thead {
  color: #54b9ea;
  position: sticky;
  top: 0;
  right: 0;
  background-color: #1c2233;
  height: 40px;
  z-index: 99;
}

tr,
td {
  padding: 20px 10px;
}

tr,
th {
  text-align: center;
}

td:nth-of-type(1) {
  color: #d0627d;
  font-weight: 600;
  font-family: "vazir-num", sans-serif;
}

td:nth-of-type(5) {
  font-family: "vazir-num", sans-serif;
}

tbody {
  color: #9595a5;
  background-color: #2c3346;
}

tr:nth-of-type(even) {
  background-color: #252d3d;
}

tbody tr:hover {
  background-color: #3e4248;
}

tbody tr td:not(.student-img):not(:nth-of-type(6)):hover {
  background-color: #fff73a;
  color: #35330d;
  font-weight: 900;
  box-shadow: -2px 1px 0px #74701f, -4px 3px 0px #74701f, -6px 5px 0px #74701f,
    -8px 7px 0px #74701f, -10px 9px 0px #74701f;
}

/* ------img---- */
.student-img {
  padding: 0;
}

tbody .student-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  -webkit-transition: transform 0.2s ease;
  -moz-transition: transform 0.2s ease;
  -ms-transition: transform 0.2s ease;
  -o-transition: transform 0.2s ease;
}

tbody .student-img img:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

/* ----loading------ */

#loading {
  color: #fff;
  text-align: right;
  padding-right: 50%;
  font-size: 18px;
  margin-top: 30px;
  transform: translateX(70px);
  -webkit-transform: translateX(70px);
  -moz-transform: translateX(70px);
  -ms-transform: translateX(70px);
  -o-transform: translateX(70px);
}

td button {
  font-family: "vazir", sans-serif;
  width: 100%;
  background-color: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  padding: 8px 0;
  user-select: none;
}

td button:active {
  transform: translateY(2px);
  -webkit-transform: translateY(2px);
  -moz-transform: translateY(2px);
  -ms-transform: translateY(2px);
  -o-transform: translateY(2px);
}

td button:hover {
  background-color: #1d4ed8;
}

/* -------Page-2-Profile-img------ */

.Profile_container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 1rem;
}
.img_user {
  text-align: center;
}

.img_user img {
  width: 50%;
  max-height: 500px;
  object-fit: contain;
  clip-path: polygon(
    50% 0%,
    83% 12%,
    100% 43%,
    94% 78%,
    68% 100%,
    32% 100%,
    6% 78%,
    0% 43%,
    17% 12%
  );
}

.info_user {
  font-family: "vazir-num", sans-serif;
  width: 40%;
  text-align: right;
  padding: 24px 30px;
  color: #e83f69;
  background-color: #242b3a;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  line-height: 45px;
  font-size: 18px;
  margin: 8px auto;
}

.info_user b {
  color: #d3a1a1;
  font-size: 18px;
}

.previous-btn {
  font-family: "vazir", sans-serif;
  padding: 12px 40px;
  background-color: #dedede;
  color: #1c2233;
  border: 0;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}

.previous-btn:active {
  transform: translateY(2px);
  -webkit-transform: translateY(2px);
  -moz-transform: translateY(2px);
  -ms-transform: translateY(2px);
  -o-transform: translateY(2px);
}

.previous-btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.previous-btn-1 {
  display: block;
  margin: 0 auto;
}

/* -------search_box-------- */

.search_container {
  position: absolute;
  top: 15px;
  right: 15px;
  user-select: none;
}

.search_container input,
.search_container button {
  padding: 8px 12px;
  font-family: "vazir-num";
  outline: 0;
  border: 0;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.search_container input {
  background-color: #f1f3f5;
  color: #1b2130;
}

.search_container input::placeholder {
  color: #6b7280;
}

.search_container button {
  background-color: #ff5a4f;
  color: #ffffff;
}

.search_container button:hover {
  background-color: #e94a40;
}

.search_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);
}
