/* Import DIN 2014 web fonts */
@import url("https://use.typekit.net/gwn0wts.css");

/* Import MSI icons/fonts/icons */
@import url("./msi-colors.css");

@font-face {
  font-family: 'Insider';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("https://dev.msi.com/insider/proxy/?path=src/assets/fonts/insider.woff2") format('woff2');
}

/**
* MSI.com overrides
*/
html {
  font-size: unset;
}

/**
* Bootstrap overrides
*/
.btn {
  white-space: normal;
}
.btn-primary {
  --bs-btn-bg: var(--msi-red-500);
  --bs-btn-border-color: var(--msi-red-500);
  --bs-btn-hover-bg: var(--msi-red-600);
  --bs-btn-hover-border-color: var(--msi-red-600);
  --bs-btn-active-bg: var(--msi-red-700);
  --bs-btn-active-border-color: var(--msi-red-700);
  --bs-btn-disabled-bg: var(--msi-red-300);
  --bs-btn-disabled-border-color: var(--msi-red-300);
}
.btn-primary-outline {
  /* --bs-btn-color: var(--msi-red-500); */
  --bs-btn-border-color: var(--msi-red-500);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  /* --bs-btn-hover-color: var(--msi-red-600); */
  --bs-btn-hover-border-color: var(--msi-red-600);
  --bs-btn-active-bg: var(--bs-btn-bg);
  /* --bs-btn-active-color: var(--msi-red-700); */
  --bs-btn-active-border-color: var(--msi-red-700);
  /* --bs-btn-disabled-color: var(--msi-red-300); */
  --bs-btn-disabled-border-color: var(--msi-red-300);
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: "din-2014";
}

/**
* Page
*/
.msi-nsdr-page {
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;

  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/**
* Background
*/
.msi-nsdr-bg-container {
  position: relative;
  z-index: 0;
}
.msi-nsdr-bg {
  position: absolute;
  width: 100%;

  &::before {
    background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=0);
    content: '';
    height: 10vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  &::after {
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=0);
    content: '';
    height: 10vh;
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
  }
}

/**
* Container
*/
.msi-nsdr-container {
  position: relative;
  z-index: 1;
}

/**
* Heading
*/
.msi-nsdr-heading-container {
  margin-top: 5rem;
  position: relative;
  z-index: 99;

  &::before {
    background-color: #1d1d1b;
    content: '';
    height: 100%;
    left: -100vw; 
    margin-left: 2rem;
    position: absolute;
    width: 100vw;
  }
}

.msi-nsdr-heading {
  --bs-border-radius: .375rem;
  background-color: var(--msi-red);
  border-bottom-right-radius: var(--bs-border-radius) !important;
  border-top-right-radius: var(--bs-border-radius) !important;
  display: inline-block;
  font-family: 'Insider', sans-serif;
  font-size: 1.5rem;
  line-height: .85em;
  margin: 0;
  max-width: 100%;
  padding: .5rem 1rem;
  position: relative;
  text-transform: uppercase;
  transform: scale(.9, 1);
  white-space: nowrap;
  z-index: 1;

  &::before {
    background: var(--msi-red);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    content: '';
    height: 100%;
    left: -1.5rem;
    margin-left: 1px;
    position: absolute;
    top: 0;
    width: 1.5rem;
  }
  &::after {
    border-style: solid;
    border-width: 15px 8px 0 8px;
    border-color: var(--msi-red) transparent transparent transparent;
    bottom: -15px;
    content: '';
    position: absolute;
    right: 30px;
  }
}
@media (min-width: 768px) {
  .msi-nsdr-heading {
    font-size: 3rem;
  }
}