@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/raleway-v28-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/raleway-v28-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/roboto-v30-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
  --digiline-cyan: #19E3FF;
  --dl-cyan: var(--digiline-cyan);

  --font-color: #fefefe;
  /* --bg-color-primary: #424242; */
  --bg-color-primary: #000;
}

body {
  background: var(--bg-color-primary);
  color: var(--font-color);
  font-family: 'Roboto', arial, sans-serif;
  font-size: 18px;
  width: 100vw;
  margin: 0;
}

*::selection {
  background: var(--digiline-cyan);
  color: #333;
}

a { color: var(--dl-cyan); }
a { text-decoration: none; }
a.active, a:hover {
  color: var(--dl-cyan);
  text-decoration: underline;
}
a, p, label, input {
  font-family: 'Roboto', sans-serif;
}
a, p {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
}
p {
  white-space: pre-line;
}

.no-pointer { pointer-events: none; }
img, .no-select {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.flex {
  display: flex;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  /* background: #292929; */
  background: rgba(0,0,0,0.75);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 900;
  max-width: 100vw;
}

nav .menu {
  display: none;
  visibility: hidden;
}

nav div, nav .digiline-logo, nav .links {
  display: flex;
  align-items: center;
}

.digiline-logo {
  margin-right: auto;
  margin-left: 0;
}

.digiline-logo img {
  height: 52px;
  width: 242px;
}

nav img {
  height: 32px;
}
nav .links a:last-child {
  margin-left: 30px;
  padding-top: 5px;
}

nav .links {
  display: flex;
  gap: 60px;
}

nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: white;
}

#wrapper {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#post-index {
  height: 100%;
}

.container {
  margin: 140px auto 0;
  max-width: 1366px;
  position: relative;
  width: 100%;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 25px;
  row-gap: 25px;
}

.post-summary {
  max-height: 200px;
  overflow: hidden;
}

.post-stub {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.post-stub hr, .post-header hr {
  border: 0;
  height: 2px;
  background: var(--dl-cyan);
}

.post-stub h2 {
  font-size: 150%;
}
.post-stub a {
  font-size: 100%;
  font-family: 'Roboto', sans-serif;
  font-weight: 700 !important;
}

.post-stub h2 {
  min-height: 65px;
  max-height: 65px;
}

.post-stub div:first-child {
  padding: 20px 20px 0;
}

.post-stub .read-more {
  align-self: center;
  font-weight: 700;
  width: 100%;
  text-align: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 40px 0;
  cursor: pointer;
  z-index: 10;
}
.post-stub .read-more a { color: #3b3b3b; }
.post-stub .read-more a:hover { color: var(--dl-cyan); }

.glass {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

footer {
  position: relative;
  width: 100%;
  margin: 60px auto -10px;
  padding-bottom: 50px;
  justify-self: flex-end;
}

footer .divide-y {
  width: 90%;
  margin: 0 auto;
  border-top: 1px solid var(--dl-cyan);
  padding-bottom: 115px;
}

footer .digiline-logo {
  height: 95px;
  margin: 0 auto;
}

footer>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer .flex {
  gap: 30px;
  margin-top: -15px;
  list-style: none;
}

footer a {
  font-size: 25px;
  color: white;
}

.post-body, .post-body span, .post-body a {
  display: inline;
}

.post-container {
  max-width: 700px;
  margin: -70px auto 0;
  background-color: #1A2128;
  padding: 2rem 9rem;
  z-index: 10;
  border-radius: 6px;
}

.post-title {
  padding: 0;
  margin: 0 0 -12px;
  font-size: 2.4rem;
}

.post-date {
  font-size: 14px;
  margin: 0;
  line-height: 0;
}

.post-single {
  padding: 2rem;
}

.post-content { text-align: justify; }

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  /* class to disable things for mobile? */
  /* .screen-only {
    display: none;
    visibility: hidden;
  } */
  * {
    box-sizing: border-box;
  }

  #navbar {
    max-width: 768px;
  }
  .cyanBall {
    display: none;
    visibility: hidden;
  }
  .post-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
  }
  
  .post-stub {
    width: 80vw;
  }

  .post-stub h2 {
    max-height: none;
  }

  .post-summary {
    max-width: min(1366px, calc(100vw - 100px));
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: middle;
  }

  nav {
    transition: all 200ms ease-in-out;
  }

  nav .links {
    display: none;
    visibility: hidden;
    opacity: 0;
  }
  nav .digiline-logo { margin-left: 20px; }
  nav .menu {
    visibility: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 34px;
    max-width: 34px;
    gap: 5px;
    cursor: pointer;
  }
  nav .bar {
    height: 4px;
    background: var(--dl-cyan);
    transition: all 200ms ease-in-out;
  }
  nav .bar1 { width: 34px; }
  nav .bar2 { width: 26px; }
  nav .bar3 { width: 15px; }
  nav .menu:hover .bar, .menu.open .bar { width: 34px; }
  .menu.open { gap: 0; }
  .menu.open .bar {
    border-radius: 4px;
    transition: all 200ms ease-in-out;
  }
  .menu.open .bar1 { transform: rotate(45deg) translateY(1px); }
  .menu.open .bar3 { transform: rotate(-45deg) translate(4px, -6px); }
  .menu.open .bar2 {
    opacity: 0;
    transform: rotate(90deg);
  }
  .menu-open {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
    background-color: #131313;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }
  .menu-open .links {
    display: flex;
    visibility: visible;
    opacity: 1;
    flex-direction: column;
    margin: 48px auto 0;
    gap: 30px;
  }
  .menu-open .links a {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .menu-open .links a:last-child { margin-left: 0; }

  .post-single {
    padding: 1rem;
  }

  .post-container {
    padding: 1.3rem;
  }

  footer { margin-top: 250px; }
  footer .divide-y {
    width: 80%;
    margin: 0 auto;
  }
  footer .links {
    flex-direction: column;
    align-items: center;
  }
}
