:root {
  --highlight: #0d61b8;
  --uiBaseColor: #48a9e0;
}

* {
  background-repeat: no-repeat;
  cursor: inherit;

  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;

}

a {
  cursor: pointer;
  text-decoration: none;
  outline: 0;
  color: #06b;
  font-weight: 500;

  transition: color .3s;
}

a:hover,
a:active {
  color: #09e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
  word-spacing: .1em;
  font-family: 'Expletus Sans', sans-serif;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #eee;

  margin: 0;
  min-height: 100%;
  font-family: 'Chivo', sans-serif;
  font-size: 1.1em;
  line-height: 1.25em;
  font-weight: 400;
  color: #444;
  cursor: default;
  overflow-x: hidden;

  transition: background-color .5s;
}

body.darkmode {
  background-color: #444;
}

#bg {
  position: fixed;
  width: 100%;
  min-height: 100%;
  background-image: url('../img/header-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.5;
}

#bg:before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 10%, rgba(255, 255, 255, 1) 50%);
  transition: opacity .5s;
}

.darkmode #bg:before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 5%, rgba(0, 0, 0, .95) 70%);
}

#bg:after {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, .4), rgba(0, 0, 0, .0) 35%, rgba(0, 0, 0, .0) 65%, rgba(0, 0, 0, .4));

  opacity: .1;
  transition: opacity .5s;
}

.darkmode #bg:after {
  opacity: 1;
}

header {
  position: relative;
  display: block;
  height: 30vw;
  /*  min-height: 200px; */
  margin-bottom: -5vw;
  background-image: url('../img/header-logo.png');
  background-position: 10% bottom;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

header:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../img/icon.png');
  background-position: 12.1% 50%;
  background-size: 6.9% auto;
  background-repeat: no-repeat;
}

header.animate:after {
  background-image: url('../img/icon-animated.apng');
}

#home>h4 {
  position: absolute;
  top: 75%;
  left: 40%;
  width: 55%;
  font-size: 1.6em;
  font-size: max(1.2em, 2vw);
  line-height: 1.3;
  font-style: italic;
  color: #777;
}

.darkmode #home>h4 {
  color: #fff;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 0 10% 0 0;
  display: flex;
  justify-content: flex-end;
  background-image: linear-gradient(to left, #fff 500px, rgba(255, 255, 255, .0) 800px);
  z-index: 100;
  font-family: 'Expletus Sans', sans-serif;

  font-size: 1.3em;
  font-size: max(1.1em, 1vw);
  color: #555;

  pointer-events: none;

  transition: background-image .3s;
}

nav * {
  pointer-events: all;
}

.darkmode nav {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 35%, #333 65%);
  color: #fff;
}


nav a {
  position: relative;
  display: inline-block;
  padding: .4em 1em .2em 1em;
  color: inherit;
  font-weight: 300;

  transition: color .4s;

}

nav a:hover {
  color: inherit;
}

nav a.active {
  color: var(--highlight);
}

.darkmode nav a.active {
  color: rgb(10, 177, 255);
}

nav a[href='#home'] {
  padding-right: 1.5em;
  background-image: url('../img/icon.png');
  background-size: auto 80%;
  background-position: center center;

  filter: grayscale(1);
  transition: filter .3s;
}

nav a[href='#home']:hover {
  background-image: url('../img/icon-animated.apng');
}

nav a[href='#home']:hover,
nav a[href='#home'].active {
  filter: grayscale(0);
}

#darkmode-toggle {
  position: absolute;
  display: inline-block;
  right: 0;
  margin: .2em 0 .2em .1em;
  width: 2.5em;
  height: 1.1em;
  background-image: url('../img/lightmode.svg');
  background-size: contain;
  cursor: pointer;
  filter: grayscale(1);

  transition: filter .5s;
}

.darkmode #darkmode-toggle {
  background-image: url('../img/darkmode.svg');
}

#darkmode-toggle:hover {
  filter: grayscale(0);
}

section {
  position: relative;
  padding-top: 5em;
  margin-bottom: -2em;
  pointer-events: none;
  z-index: 1;
}

section:first-of-type {
  padding-top: 0;
  margin-bottom: 1em;
}

section:last-of-type {
  margin-bottom: 0;
}

/* panels */
.panels {
  position: relative;
  display: flex;
  padding: .5em;
  justify-content: space-around;
  flex-wrap: wrap;
  pointer-events: all;
}

section>h1 {
  position: relative;
  display: block;
  width: 100%;
  color: #777;
  font-weight: bold;
  text-align: center;
  padding: .2em 1em;

  transition: color .3s;
}

section.active>h1 {
  color: var(--highlight);
}

.darkmode section>h1 {
  color: rgba(255, 255, 255, .6);
}

.darkmode section.active>h1 {
  color: rgb(10, 177, 255);
}

/* pools */
#pools>.panels {
  align-items: flex-start;
}

/* contact */
#contact {
  min-height: 80vh;
}

.telegram {
  flex-direction: row;
  flex-grow: 0;
  min-width: 60vh;
}

.telegram>.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-basis: 40%;
  background-image: url('../img/telegram_logo.svg');
  background-size: 70% auto;
  background-position: center center;
}

.telegram>.header>h3 {
  font-size: 4vh;
  width: 100%;
  padding-bottom: 1vh;
}

.telegram>.header>img {
  width: 18vh;
  padding: 1vh;
}

.telegram>.content {
  text-align: center;
}

#telegram-qr {
  position: relative;
  display: inline-block;
  width: 30vh;
  height: 34vh;
  margin: 0 auto;
  background-image: url('../img/telegram-qr.svg');
  background-size: contain;
  background-position: center top;
}

#telegram-qr:after {
  content: 'join chat';
  display: inline-block;
  position: absolute;
  top: auto;
  bottom: 0px;
  left: 15%;
  width: 70%;
  padding: .2em .2em .1em .2em;
  background-color: #37aee2;
  background-image: linear-gradient(rgba(168, 66, 66, 0) 10%, rgba(0, 0, 0, .1) 60%);
  border-radius: 1em;
  color: #fff;
  font-weight: bold;
  font-size: 3vh;
  font-family: 'Expletus Sans', sans-serif;
  word-spacing: 1px;
  text-align: center;
  box-sizing: border-box;

  transform: scale(1);
  transition: transform .4s;
}

#telegram-qr:hover:after {
  transform: scale(1.1);
}


footer {
  width: 100%;
  padding: 5% 0 1% 0;
  text-align: center;
  color: #999;
  z-index: 0;
}

/* responsive */
@media all and (max-width: 780px) {

  header {
    height: 45vw;
  }

  header:after {
    background-position: 13.4% 49.8%;
    background-size: 10% auto;
  }

  header.animate:after {
    background-image: url('../img/icon.png');
  }

  nav {
    justify-content: flex-start;
    background-color: #ddd;
    box-shadow: 0 .2em .3em rgba(0, 0, 0, .2);
    flex-wrap: wrap;
    font-size: 1em;
  }

  nav a {
    padding: .4em .2em .2em .2em;
  }

  #darkmode-toggle {
    font-size: .8em;
  }

  .darkmode nav {
    background-color: #555;
  }

  nav>a {
    padding: .5em .5em .2em .5em;
  }

  #darkmode-toggle:hover {
    filter: grayscale(1);
  }

  section:first-of-type {
    padding-top: 3em;
  }

  #home>h4 {
    position: relative;
    top: 5%;
    left: 5%;
    width: 90%;
    padding-top: 3em;
    text-align: center;
    /* font-size: 1.4em; */
  }

  .panel {
    flex-basis: 100%;
    margin: .5em .1em;
  }

  .panel.rene>.header {
    flex-basis: 33%;
  }

  .panel.tjerk>.header {
    flex-basis: 30%;
  }

  .panel.rene>.content {
    flex-basis: 67%;
  }

  .panel.tjerk>.content {
    flex-basis: 70%;
  }

  th,
  td {
    max-width: 50vw;
  }

  .telegram {
    min-width: 0;
  }

  .telegram>.header {
    background-size: 60% auto;
  }



}