/* Global CSS variables */
:root {
  --spacing-company: 3rem;
  --font-weight: 400;
  --border-radius: 0;
}

/* Typography */
h2,
h3,
hgroup > :last-child {
  font-weight: 200;
}

small {
  color: var(--muted-color);
}

/* Header */
.hero {
  background-color: #394046;
  background-image: url("../img/banner.jpg");
  background-position: center;
  background-size: cover;
}

header {
  padding: var(--spacing-company) 0;
}

header hgroup > :last-child {
  color: var(--h3-color);
}

header hgroup {
  margin-bottom: var(--spacing-company);
}

/* Nav */
summary[role="link"].contrast:is([aria-current],:hover,:active,:focus) {
  background-color: transparent;
  color: var(--contrast-hover);
}

/* Main */
@media (min-width: 992px) {
  main .grid {
    grid-column-gap: var(--spacing-company);
    grid-template-columns: auto 25%;
  }
}

form.grid {
  grid-row-gap: 0;
}

/* Aside nav */
aside img {
  margin-bottom: 0.25rem;
}

aside p {
  margin-bottom: var(--spacing-company);
  line-height: 1.25;
}

/*
Can be used on bootstrap elements to make sure they have the same height, but it then does not take the same width...
.equal {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
}
*/

/*
https://www.mydevice.io
*/

/* Used for the trombinoscope */
.thumb figure {
  height: auto;
  width: auto;
  max-width: 175px;
  position: relative;
}
.thumb p {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.receipt {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width: 20px;
}

/* Used for badges */
.badges {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 5%;
  height: auto;
  width: auto;
  max-width: 15%;
}

.notification-circle {
  display:inline-block;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  background: #FF0000;
  color: #FFFFFF;
  align-items: center;
  text-align: center;
}

notification-text {
  display:inline-block;
  width: 1em;
  height: 1em;
  color: #FFFFFF;
  align-items: center;
  text-align: center;
}

/*
Works fine, but only within a box the size of the screen, not the whole page, so it is not the best experience...
I activated it anyway on mobiles with smaller screens.
*/

/*
Use below to block only the first column.
@media only screen and (max-width: 600px) {
  .tableFixHead {
    overflow-y: auto;
    height: 80vh;
  }
  .tableFixHead thead th {
    background: white;
    z-index: 1;
    position: sticky;
    top: 0;
  }
}
*/

/*
https://launchhubstudio.com/blog/sticky-table-headers
*/
@media only screen and (max-width: 600px) {
  .tableFixHead {
    overflow: auto;
    height: 80vh;
  }
  .tableFixHead table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
  }
  
  .tableFixHead td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
    min-width: 100px;
    /*background: #ffffff;*/
  }
  .tableFixHead th[scope="row"], thead tr {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    background: #ffffff; 
  }
}


/*
Make videos (and iframes such as Youtube) responsive on mobile
Leave the default if aspect-ratio is not supported.
Do not increase the size too much on larger screens.
*/
@supports (aspect-ratio: 16/9) {
  .video * {
    aspect-ratio: 16/9;
    width:100%;
    max-width: 800px;
  } 
}


/*
Custom cards with limites spacing
*/
.card {
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	transition: 0.3s;
	width: 95%;
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	margin: 10px;
}

.card:hover {
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.container {
	padding: 2px 16px;
}



