:root {
  --main-text-color: #000000;
}

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: 65px 100px 52px 100px;
}

.certificate-head {
  margin: 0 0 48px;
  justify-content: flex-end;
}

.certificate-logo {
  height: auto;
}

.main-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: 100%;
}

.user-name {
  color: var(--main-text-color);
  font: 700 40px "Montserrat", sans-serif;
  text-align: center;
  padding: 0;
  margin: 0 0 15px;
}

.user-name span {
  display: inline-block;
  padding: 10px 0 10px;
  min-width: 810px;
  background-color: #d9d9d9;
}

.user-sub-text {
  color: var(--main-text-color);
  font: 400 13px/13px "Montserrat", sans-serif;
  text-align: center;
  margin: 0 0 38px;
}

.course-name {
  color: #000;
  font: 700 30px "Raleway", sans-serif;
  text-align: center;
  margin: 0 0 10px;
}

.course-name span {
  display: inline-block;
}

.score-wrapper {
  display: flex;
  justify-content: center;
  color: #000;
  font: 400 15px "Raleway", sans-serif;
  margin: 0 0 38px;
}

.score-text {
  margin: 0;
}

.skills-text {
  color: var(--main-text-color);
  font: 400 16px/16px "Montserrat", sans-serif;
  text-align: center;
  margin: 0 0 30px;
}

.secondary-text {
  color: var(--secondary-text-color);
  font: 300 12px/16px "Montserrat", 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: block;
  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 "Montserrat", sans-serif;
  margin: 40px auto 0;
  line-height: 16px;
  text-align: center;
  max-width: 698px;
}

.certificate-data {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  align-items: flex-end;
}

.certificate-des {
  color: #394e80;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  margin-bottom: 15px;
}

.certificate-des-frst-line {
  font-size: 80px;
  margin: 0;
  line-height: normal;
  padding-bottom: 15px;
  font-family: "e-Ukraine", sans-serif;
  font-weight: 400;
  color: #0171bb;
}

.certificate-des-scnd-line {
  font-size: 16px;
  color: #021544;
  margin: 0;
  font-weight: 400;
  font-family: "Raleway", sans-serif;
}
