:root {
  --primary-color: #0e6894;
  --accent-color: #f58421;

  /* Just in case we want dark mode later */
  --main-bg-color: white;
  --text-color: black;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  min-height: 100%;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100svh;
  min-height: 100dvh;
  line-height: 1.5;
  font-family: system-ui, sans-serif, roboto, helvetica,
    arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}


/* -------------------------------- */

*,
*::before,
*::after {
  /* outline: 2px solid red; */
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.inner-page {
  margin: 0 auto;
  width: min(1000px, 100% - 40px);
  flex: 1 0 auto;
}

main {
  flex: 1;
}


/* h1 { */
   /* color: red; */
/* } */

h2 {
  margin-top: 2em;
}

p {
  max-width: 70ch;
  text-align: justify;
}

span {
  display: inline-block;
}

.link {
  color: var(--primary-color);
  cursor: pointer;
}

.center {
  text-align: center;
}

.section {
  margin-top: 24px;
}

.no-margin {
  margin: 0;
}

address {
  width: fit-content;
}

.main-address {
  margin-top: 16px;
  font-style: normal;
  font-size: 1.4rem;
}

/* contact-card */
.card-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-card {
  position: relative;
  /* overflow: n; */
  /* flex-shrink: 1; */
  /* flex-grow: 1; */
  
  padding: 8px;
  display: flex;
  gap: 16px;
  margin-top: 16px;
  border-radius: 2px;

  width: fit-content;
  min-width: 250px;
  max-width: 500px;
    
  box-shadow: 2px 2px 8px black;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  background-image: url("/static/img/iTrans_logo_car.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;   
  filter: blur(8px);

  z-index: -1;
}
.contact-card p {
  font-weight: bold;
  margin-top: 8px;
}
.contact-card .mail {
  /* text-shadow: white 2px 2px 2px; */
  text-shadow: 1px 0 black, 0 1px black, -1px 0 black, 0 -1px black, -1px -1px black, -1px 1px black, 1px -1px black, 1px 1px black;
}

.mail {
  position: relative;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  --visible: none;
}

.mail::before {
  text-shadow: none; /* This is for the card */
  font-weight: bold;
  
  z-index: 1000;
  font-size: 1rem;
  content: attr(data-tooltip);
  display: var(--visible);
  
  text-wrap: nowrap;
  padding: 4px 8px;
  color: white;
  background: black;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  -ms-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: 100%;
}

.mail::after {
  z-index: 1000;
  font-size: 1rem;
  content: '';
  display: var(--visible);
  
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;

  border-width: 12px 8px 0;
  border-top-color: black;
  
  left: 50%;
  bottom: 60%;
  margin-left: -8px;
}

@media (hover: hover) {
  .mail:hover::before,
  .mail:hover::after {
    display: block;
  }
}


/* nav */
.nav-container {
  position: sticky; top: 0;
  background-color: var(--main-bg-color);
  padding: 20px 0px;
  text-wrap: nowrap;
  z-index: 500;
}
.inner {
  margin: 0 auto;
  width: min(1000px, 100% - 40px);
}

.itrans_logo {
  width: 190px;
}

.no_padding {
  padding: 0;
}

.insta_logo_img {
  max-width: fit-content;
  width: 25px;
}

.handle {
  color: var(--text-color);
}
.handle:hover {
  color: transparent; /* show gradient through text */
    background: linear-gradient(45deg,
      #f58529 0%,
      #dd2a7b 30%,
      #8134af 60%,
      #515bd4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; /* for Safari */  color: var(--text-color);
}

.nav-container nav > div {
  display: flex;
  align-items: center; 
}

.nav-container nav {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: space-between;
}

.nav-container nav h2 {
  margin: 0px;
  margin-right: 15px;
}

nav a {
  text-decoration: none;
  padding: 5px;
  font-weight: bold; 
}


nav a:hover {
  color: var(--primary-color);
}

nav .active {
  color: var(--accent-color) !important;
}

@media (hover: none) {
  nav a {
    color: var(--primary-color);
  }
}

/* footer */
.site-footer {
  position: relative;
  display: flex;
  contain: layout;
  --road-color: #525252;
  background-color: var(--road-color);
  padding: 8px;
  margin-top: 48px;
  /* text-align: center; */
}

.inner-footer {
  position: relative;
  margin: 0 auto;
  width: min(1000px, 100% - 40px);
  color: white;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black; /* 4-direction outline */}

.site-footer img {
  position: absolute;
  height: auto;
  right: 4px;
  width: 200px;
  bottom: 80px;
  z-index: -1;
}

.my-itlg {
  position: absolute;
  right: 60px;
  bottom: 65px;

  text-decoration: none;
  text-shadow: none;
  color: gray;
}

.copy-right {
  margin: 0;
  white-space: nowrap;
}

.flex-row {
  display: flex;
  gap: 8px;
}

pre {
  overflow-x: scroll;
}

.two-col {
  display: flex;
  gap: 16px;
}

.scania {
  width: 300px;
  height: 200px;
  margin-top: 16px;
}

.scania-trailer {
  margin-top: 16px;
  width: 450px;
  height: 100%; 
}

@media (max-width: 730px) {
  .two-col {
    flex-direction: column;
  }
  .scania {
    margin-top: 0px;
  }
  .scania-trailer {
    margin-top: 0px;
    order: 0;
  }
}

.no-wrap {
  text-wrap: nowrap;
}


/* This is the road */
.site-footer::before {
    z-index: -2;
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    
    width: calc(100% - 4px);
    height: 10px;
    background: linear-gradient(90deg, #fff 0%, #fff 70%, var(--road-color) 70%, var(--road-color) 100%);
    background-size: 120px;
}

/* small screen size */
@media (max-width: 560px){
  .nav-container nav{
    flex-direction: column;
  }
  .nav-container nav h2 {
    margin: 0px;
    margin-bottom: 16px;
    text-wrap:nowrap;
  }
}

@media (max-width: 705px) {
  .handle {
    display: none;
  }
}
