@import 'base/_fonts.css';
@import 'base/_variables.css';

/* Global */
@import 'base/_global.css';

#certificate #header {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 50px;
  height: 150px;
  overflow: hidden;
}

#certificate #header .background {
  position: absolute;
  bottom: 0;
  right: -25%;
  width: 50%;
}

#certificate #header .logo {
  width: 250px;
  height: auto;
}

#certificate #main {
  padding: 80px 0 40px 0;
}

#certificate .content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

#certificate .content .background-dots {
  background: url(./../images/dots.png) no-repeat;
}

#certificate .content .heading {
  position: relative;
}

#certificate .content .heading .dots {
  position: absolute;
  bottom: 0;
  z-index: 0;
}

#certificate .content h1 {
  margin-bottom: 20px;
  color: var(--color-persian-green);
  text-align: center;
  text-transform: uppercase;
  line-height: 2;
}

#certificate .content h2 {
  color: var(--color-midnight-blue);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.5;
}

#certificate .content h1,
#certificate .content h2 {
  position: relative;
  z-index: 1;
}

#certificate .content .data {
  margin-top: 40px;
}

#certificate .content .data-row {
  display: flex;
  margin-bottom: 10px;
}

#certificate .content .data-row > div {
  font-family: var(--font-family-regular) !important;
}

#certificate .content .label {
  font-family: var(--font-family-medium) !important;
  font-weight: 500;
}

#certificate .content ul {
  padding: 0;
}

#certificate .content li {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 6px;
}

#certificate .content .valid {
  color: var(--color-puerto-rico);
}

#certificate .content .invalid {
  color: var(--color-french-rose);
}

#certificate .content .valid-icon,
#certificate .content .invalid-icon {
  margin-left: 6px;
  width: 30px;
}

#certificate .content .description {
  margin: 40px auto;
  max-width: 460px;
  font-family: var(--font-family-regular) !important;
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
}

#certificate .content .error {
  position: relative;
  margin-top: 20px;
  padding: 20px;
  color: var(--color-white);
  background-color: var(--color-cerise-red);
  font-family: var(--font-family-medium) !important;
  font-weight: 500;
  text-align: center;
  z-index: 10;
}

#certificate #footer {
  position: relative;
  overflow: hidden;
}

#certificate #footer .background {
  position: absolute;
  top: 0;
  left: -25%;
  width: 50%;
  transform: scaleX(-1);
}

#certificate #footer .dots {
  position: absolute;
  bottom: 0;
  right: 0;
  max-height: 100%;
  z-index: 0;
}

#certificate .overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 5;
}

#certificate .content .data,
#certificate .content .description {
  color: var(--color-black);
}

#certificate .content .data,
#certificate .content .description {
  color: var(--color-black);
}

@media screen and (max-width: 575px) {
  #certificate #header .background {
    bottom: 50%;
  }

  #certificate #footer .background {
    top: 50%;
  }
}

@media screen and (max-width: 767px) {
  #certificate .content .heading .dots {
    width: 100%;
  }

  #certificate #main h1 {
    font-size: 28px;
  }

  #certificate #main h2 {
    font-size: 20px;
  }

  #certificate .content .data-row {
    flex-direction: column;
  }

  #certificate #footer {
    height: 150px;
  }
}

@media screen and (min-width: 768px) {
  #certificate .content .heading .dots {
    width: 50%;
  }

  #certificate #main h1 {
    font-size: 40px;
  }

  #certificate #main h2 {
    font-size: 24px;
  }

  #certificate .content .data-row {
    flex-direction: row;
  }

  #certificate .content .data-row > div {
    flex-basis: 50%;
  }

  #certificate #footer {
    height: 200px;
  }
}

@media screen and (min-width: 1200px) {
  #certificate #header .background {
    bottom: -25%;
  }

  #certificate #footer .background {
    top: 30%;
  }
}
