:root {
  --main-text-color: #000000;
  --secondary-text-color: #04439a;
}

span {
  border: none;
}

.certificate-wrapper {
  position: relative;
  width: calc(29.7cm - 0px);
  height: calc(21cm - 1px);
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.certificate-body {
  padding: 0 80px 60px 295px;
}

.certificate-head {
  margin: 81px 0 90px;
  justify-content: space-between;
  align-items: flex-start;
}

.certificate-logo {
  height: 80px;
}

.main-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: 100%;
}

.user-name {
  color: var(--main-text-color);
  font: 700 36px/36px "Raleway", sans-serif;
  text-align: center;
  padding: 0;
  margin: 0 0 13px;
}

.user-name span {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 0px 80px 5px;
}

.user-sub-text {
  color: var(--main-text-color);
  font: 400 13px/13px "Raleway", sans-serif;
  text-align: center;
  margin: 0 0 82px;
}

.course-name {
  color: var(--secondary-text-color);
  font: 400 44px "Raleway", sans-serif;
  text-align: center;
  margin: 0 0 10px;
}

.score-wrapper {
  display: flex;
  justify-content: center;
  color: var(--main-text-color);
  font: 400 12px/12px "Raleway", sans-serif;
  margin: 0 0 38px;
}

.score-text {
  margin: 0;
}

.skills-text {
  color: var(--main-text-color);
  font: 400 16px/16px "Raleway", sans-serif;
  text-align: center;
  margin: 0 0 30px;
}

.secondary-text {
  color: var(--secondary-text-color);
  font: 300 12px/16px "Raleway", sans-serif;
  margin: 0;
}

.certificate-bottom {
  display: block;
}

.signature {
  display: flex;
  justify-content: space-between;
  margin: 0;
  align-items: flex-start;
}

.signature span {
  display: block;
  color: var(--main-text-color);
  font: 400 13px/13px "Raleway", sans-serif;
  padding: 0;
  letter-spacing: initial;
}

.signature img {
  height: 60px;
  margin: 0 15px 0 28px;
}

.signature-name {
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 400;
}

.signature .signature-item {
  flex-direction: row-reverse;
  align-items: flex-end;
}

.signature-role {
  font-size: 14px;
  margin: 0;
  font: 300 14px/14px "Raleway", sans-serif !important;
  min-width: 240px;
}

.certificate-id-and-ects {
  margin: 0;
}

.certificate-id-and-ects .certificate-number {
  color: var(--main-text-color);
  font: 300 14px/14px "Raleway", sans-serif;
}

.certificate-id-and-ects .certificate-number:first-child {
  margin: 0 0 12px;
}

.certificate-id-and-ects .certificate-number span {
  display: initial;
  color: var(--main-text-color);
  font: 300 14px/14px "Raleway", sans-serif;
  margin-top: 5px;
  display: inline-block;
  font-weight: 400;
}

.certificate-id-and-ects .certificate-date span {
  margin-top: 0px;
  display: initial;
}

.certificate-id-and-ects .certificate-number:last-child span {
  color: var(--main-text-color);
  font-size: 14px;
}

.certificate-bottom-text {
  color: #505050;
  font: 300 12px/12px "Raleway", sans-serif;
  margin: 52px 0 0;
  line-height: 16px;
}

.certificate-data {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-family: "Raleway", sans-serif;
  align-items: flex-end;
}

.certificate-des {
  color: var(--secondary-text-color);
  font-family: "Raleway", sans-serif;
}

.certificate-des-frst-line {
  font-size: 34px;
  margin: 0;
  line-height: 80%;
  padding-bottom: 5px;
}

.certificate-des-scnd-line {
  font-size: 22px;
  margin: 0;
  font-weight: 500;
}
