@font-face {
  font-family: "Poppins-med";
  src: url("../fonts/Montserrat-Medium.otf");
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  /* overflow: hidden; */
  font-family: sans-serif;
  background-image: url("../assets/Background_new_long.png");
  background-size: cover;
  font-family: "Poppins-med";
}

/* gambar certi */
#canvas {
  width: 50%;
  height: auto;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px 0 lightgrey;
}

/* card */
.kotak {
  max-width: 1000px;
  padding: 2%;
  margin: 0 auto 2%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px 0 lightgrey;
}

/* card participant detail */
.card-link {
  font-size: 12px;

}

.text-muted {
  font-size: 16px;
  color: grey;
}

.p-headtext {
  font-size: 20px;
  font-weight: bold;
}

.p-text-muted {
  font-size: 18px;
  color: grey;
}

.btn {
  height: auto;
  width: 50px;
  background-color: #9c171e;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: #FFFFFF;
}

.btn:hover {
  background-color: #AB5B5F!important;
  border: 1px solid;
  transition: 0.3s;
  color: #FFFFFF!important;
}

.btn-print {
  height: 50px;
  width: 50px;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: #9c171e;
  border: 1px solid #9c171e;
}

.btn-print:hover {
  border: 1px solid #AB5B5F;
  transition: 0.3s;
  color: #AB5B5F!important;
}

hr{
  border-top: 2px solid #545454;
  border-radius: 100%;
}


/* tabel transkrip nilai */
table{
  margin: auto;
  border-collapse: separate;
  border-spacing: 0;
}

td{
  border: 1px solid rgba(84,84,84, 0.5);
  padding: 10px 30px;
  color: black;
}

th{
  border: 1px solid rgba(84,84,84, 0.5);
  padding: 10px 30px;
  color: black;
}

tr:first-child th:first-child{
  border-top-left-radius: 10px;
}

tr:last-child td:first-child{
  border-bottom-left-radius: 10px;
}

tr:first-child th:last-child{
  border-top-right-radius: 10px;
}

tr:last-child td:last-child{
  border-bottom-right-radius: 10px;
}

table tr th:nth-child(1), table tr th:nth-child(3){
  width: 10%;
}

table tr th:nth-child(2){
  width: 60%;
}

/* button download certi */

.button-download {
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  background: #9C171E;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.button-download:hover {
  background: #AB5B5F;
  transition-duration: 0.4s;
}

/* button search certi */
.button-search {
  color: #9C171E;
  border-radius: 10px;
  border: 2px solid #9C171E;
  width: 100%;
  background: white;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.button-search:hover {
  color: #B68588;
  border: none;
  background: white;
  border: 2px solid #B68588;
  transition-duration: 0.4s;
}

/* ngasih jarak anatara certi dan kartu bentuk mobile */

.gapkotak {
  margin: 2% 0;
  justify-content: left;
}

/* ---------- footer ---------- */
#footer {
  bottom: 0;
  width: 100%;
}

#footer h3 {
  color: white;
}

#footer a:hover {
  color: #ffa111;
}

.text-grey {
  color: #b9b9b9;
}

.text-fd {
  font-family: var(--thm-b-font);
  font-size: 14px;
}

.socialicon:hover {
  color: #fff;
}

.socialicon {
  transition: all ease 0.3s;
}

#footer a,
a:focus {
  text-decoration: none;
  color: inherit;
}

#avg_name {
  width:87.5%; 
  background-color: #9c171e; 
  color: white; 
  border-radius: 10px 0 0 10px;
}

#avg_value {
  border-radius: 0 10px 10px 0;
}

/* ---------- responsive ---------- */
@media only screen and (min-width: 1199.98px) {
  .headtext {
    font-size: 20px;
  }

  .statusText {
    font-size: 16px;
  }
}

@media only screen and (max-width: 1199.98px) {

  #canvas {
    width: 80%;
    margin: 4% auto 0;
  }

  .kotak {
    width: 80%;
    padding: 5%;
  }
  
  table tr{
    font-size: 14px;
  }

  .headtext {
    font-size: 16px;
  }

  .statusText {
    font-size: 14px;
  }
}

@media only screen and (max-width: 991.98px) {
  .btn {
    margin: 1px;
    width: 40px;
    padding: 5px;
  }

  #canvas {
    width: 100%;
    margin: 0px auto 20px;
  }

  .kotak {
    width: 80%;
    padding: 5%;
  }

  table tr{
    font-size: 12px;
  }

  .p-headtext {
    font-size: 18px;
  }
  
}

@media only screen and (max-width: 399.98px) {
  .btn {
    margin: 2px 0;
  }

  #canvas {
    width: 100%;
  }

  .kotak {
    width: 100%;
    padding: 5%;
    
  }
}

.con-nav {
  display: flex;
  justify-content: center !important;
}

.img-brand {
  width: 145px;
  padding: 4%;
}

