@keyframes pulse {
  0% {
    transform: scale(0.98);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideup {
  0% {
    transform: translateY(100%);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}

h1,
h2,
h3,
h4,
h5 {
  text-transform: uppercase;
  /*letter-spacing: 5px;*/
  margin-bottom: 25px;
}

h1 {
  font-size: 0.5rem;
}

html,
body {
  position: relative;
  margin: 0;
  padding: 0;
  color: #fff;
  min-height: 100vh;
  background-image: url("../content/images/grid.png");
  background-color: #041e42;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Scania Sans Regular", "Open Sans", Verdana, sans-serif;
  font-size: 12px;
}
html:before,
body:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: -1;
}
html:after,
body:after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: -1;
}
.app-container {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 60px;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}
.app-container::after {
  opacity: 0;
  pointer-events: none;
  content: "";
  position: fixed;
  left: 50%;
  top: 50vh;
  width: 40px;
  height: 40px;
  z-index: 101;
  background: url("../content/images/spinner.png") center center no-repeat;
  background-size: 40px 40px;
  animation-name: spin;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: opacity;
  transition: opacity 0.6s cubic-bezier(0, 0, 0.3, 1);
}
.app-container.pending {
  -webkit-overflow-scrolling: auto;
}
.app-container.pending::after {
  opacity: 1;
}
.app-container.pending .views {
  pointer-events: none;
  filter: blur(6px);
}
.app-container.disabled {
  -webkit-overflow-scrolling: auto;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-height: 480px) and (orientation: landscape) {
  .app-container {
    min-height: 400px;
  }
}

.header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  height: 80px;
  width: 100%;
  overflow: hidden;
  padding: 0 11px 0 11px;
}
@media (min-width: 1920px) {
  .header {
    width: 1920px;
    left: 50%;
    transform: translateX(-50%);
  }
}
.header.visible {
  visibility: visible;
}
.header--search-open {
  height: 140px;
}
@media (min-width: 1024px) {
  .header--search-open {
    height: 130px;
  }
}
.header__inner {
  display: flex;
  align-items: center;
  height: 80px;
  border-bottom: #fff solid 1px;
  margin-left: 40px;
  margin-right: 40px;
}
.header__inner div {
  flex: 1;
}
.header__logo-container {
  height: 100%;
}
.header__logo {
  background-image: url("../content/images/header/scania-logo@2x.png");
  background-size: 100%;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: transparent;
  height: 100%;
  border: none;
  width: 285px;
  display: block;
  /*margin: 0 auto;*/
}
@media (min-width: 1024px) {
  .header__logo {
    width: 285px;
    cursor: pointer;
    height: 76px;
  }
}
.header__actions-container {
  display: flex;
}
.header__search-button {
  background-image: url("../content/images/header/search-w-text-icon.png");
  /*background-size: 108px 24px;*/
  background-position: 6px center;
  background-repeat: no-repeat;
  background-color: transparent;
  height: 100%;
  width: 100%;
  display: inline-block;
  border: none;
}
@media (min-width: 1024px) {
  .header__search-button {
    cursor: pointer;
  }
}
.header__menu-button {
  background-image: url("../content/images/header/filter-w-text-icon.png");
  /*background-size: 95px 32px;*/
  background-position: 6px center;
  background-repeat: no-repeat;
  background-color: transparent;
  width: 100%;
  height: 65px;
  display: inline-block;
  border: none;
}
@media (min-width: 1024px) {
  .header__menu-button {
    cursor: pointer;
  }
}
@media (min-width: 1024px) {
  .header__help-button {
    cursor: pointer;
  }
}
.header__help-button {
  background-image: url("../content/images/header/help-w-text-icon.png");
  /*background-size: 84px 35px;*/
  background-position: 6px center;
  background-repeat: no-repeat;
  background-color: transparent;
  width: 100%;
  height: 65px;
  display: inline-block;
  border: none;
}
@media (min-width: 1920px) {
  .header__help-button {
    cursor: pointer;
  }
}

.views {
  width: 100%;
  overflow: hidden;
  min-height: 100vh;
  background-repeat: repeat-y;
  background-position: 0 60px;
  background-size: 100vw 100vh;
  will-change: filter;
  transition: filter 0.6s cubic-bezier(0, 0, 0.3, 1);
}
@media (min-width: 1920px) {
  .views {
    background-position: 0 80px;
  }
}
.views__inner {
  width: 100%;
  /*overflow: hidden;*/
  -webkit-transform: translate3d(0, 0, 0);
  padding: 12px;
  margin-top: 3px;
  min-height: 100vh;
}
@media (min-width: 1920px) {
  .views__inner {
    width: 1920px;
    margin: 5% auto;
  }
}
.view {
  display: none;
  width: 100%;
  height: 0;
  margin: 0;
  pointer-events: none;
  will-change: transform, opacity;
  position: relative;
}
.view.visible {
  display: block;
  pointer-events: auto;
  height: 975px;
  animation: pulse 0.4s cubic-bezier(0, 0, 0.3, 1) 1;
}
.view.pulse {
  animation: pulse 0.4s cubic-bezier(0, 0, 0.3, 1) 1;
}

.menu-container {
  background-image: url("../content/images/main-menu-opt.png");
  background-size: contain;
  background-position: 0 0;
  margin: 100px auto;
  padding: 0;
  height: 200px;
  background-repeat: no-repeat;
  position: relative;
}

.menu-nav h1 {
  font-family: "Scania Sans Bold";
  display: flex;
  align-items: center;
}
.menu-nav h1 div.number {
  font-family: "Scania Sans Headline Bold";
  font-size: 53px;
  padding-right: 15px;
}
.menu-nav h1 div.title {
  font-family: "Scania Sans Headline Bold";
  font-size: 18px;
}

.nav-item {
  position: absolute;
  width: 140px;
}
.nav-item a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.nav-item a:hover {
  border-bottom: 2px solid #d6001c;
}
.nav-item div.number {
  font-size: xx-large;
  padding-right: 5px;
}

.nav-item div.title {
  flex-grow: 2;
}

.menu-nav .nav-item:nth-child(1) {
  top: -30px;
}
.menu-nav .nav-item:nth-child(2) {
  top: -30px;
  left: 50%;
}
.menu-nav .nav-item:nth-child(3) {
  top: 80px;
  left: 25%;
  text-align: right;
  direction: rtl;
}
.menu-nav .nav-item:nth-child(4) {
  bottom: -60px;
  left: 70%;
}
.menu-nav .nav-item:nth-child(5) {
  bottom: -55px;
  left: 35%;
}
.menu-nav .nav-item:nth-child(6) {
  left: 0%;
  bottom: -30px;
}

.menu-container img {
  position: absolute;
  top: 225px;
  left: 275px;
  width: 427px;
  height: 106px;
}

/**** Small devices (landscape phones, 576px and up) **/
@media (min-width: 576px) {
  h1 {
    font-size: 0.8rem;
  }
  .menu-container {
    height: 290px;
  }
  .menu-nav .nav-item:nth-child(3) {
    top: 123px;
    left: 83%;
    text-align: left;
    direction: ltr;
  }
  .menu-container img {
    top: 100px;
    left: 175px;
    width: 174px;
    height: 75px;
  }
}

/**** Medium devices (tablets, 768px and up) **/
@media (min-width: 768px) {
  .menu-container {
    height: 390px;
  }
  .menu-container img {
    top: 150px;
    left: 175px;
    width: 300px;
    height: 75px;
  }
}

/**** Large devices (desktops, 992px and up) **/
@media (min-width: 992px) {
  .menu-container {
    height: 879px;
  }

  .menu-container img {
    top: 200px;
    left: 240px;
    width: 400px;
    height: 100px;
  }

  .menu-nav .nav-item:nth-child(1) {
    left: -6%;
    top: 30px;
  }
  .menu-nav .nav-item:nth-child(2) {
    top: -20px;
    left: 55%;
  }
  .menu-nav .nav-item:nth-child(3) {
    top: 185px;
    left: 83%;
    text-align: left;
    direction: ltr;
  }
  .menu-nav .nav-item:nth-child(4) {
    bottom: 300px;
    left: 80%;
  }
  .menu-nav .nav-item:nth-child(5) {
    bottom: 265px;
    left: 35%;
  }
  .menu-nav .nav-item:nth-child(6) {
    left: -6%;
    bottom: 365px;
  }
  .menu-nav .nav-item:nth-child(7) {
    right: 8%;
    top: -20px;
  }
}

/**** Extra large devices (large desktops, 1200px and up) **/
@media (min-width: 1200px) {
  .menu-container {
    height: 950px;
  }
  .menu-container img {
    top: 252px;
    left: 289px;
    width: 427px;
    height: 106px;
  }
}
