/* Winpinator website stylesheet */

html, body {
  margin: 0;
  background-color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  word-break: break-word;
}

body {  
  overflow-y: scroll;
  font-size: 13pt;
  line-height: 1.6;
}

h1 {
  color: #377cc8;
  font-weight: 300;
  font-size: 24pt;
}

h2 {
  color: #555;
  font-weight: 700;
}

a {
  text-decoration: none;
  color:#377cc8;
}

a:hover {
  text-decoration: underline;
}

.content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;

  background-color: #fff;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: auto;
  outline: 1px solid #ddd;
}

.header {
  width: 100%;
  background: linear-gradient(135deg, rgba(55, 124, 200, 0.3), rgba(138, 71, 231,0.3));
}

.header > a, .header .img {
  display: block;
  width: 100%;
  height: 200px;
  background-image: url('img/banner.svg');
  background-size: contain;
  background-position: 0 50%;
  background-repeat: no-repeat;
}

.nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  background-color: #f8f8f8;
}

.nav > a {
  position: relative;
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  transition: 0.5s;
  color: #444;
  font-size: 12pt;
  font-weight: 500;
}

.nav > a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0px;
  height: 3.5px;
  background: #377cc8;

  transform: translate(-50%,-250%);
  transition: 0.5s;
}

.nav > a.current {
  background-color: #fff;
  color: #000;
  font-weight: 500;
}

.nav > a:hover {
  background-color: white;
  color: #000;
}

.nav > a:hover:active::after, .nav > a.current::after {
  width: calc(100% - 40px);
}

.pull {
  flex-grow: 1;
}

.main {
  padding: 8px 32px;
}

.footer {
  color: #555;
  border-top: 1px solid #ddd;
  padding: 16px 0;
  margin: 30px;
  margin-top: 50px;
  font-weight: 500;
}

pre {
  white-space: pre-wrap;
}

.dl-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px;
}

.dl-item
{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;

  font-size: 14pt;

  padding: 26px;
  max-width: 100%;
  width: 400px;
  margin: 8px;

  background: #f9f9f9;
}

.dl-item p {
  line-height: 1.2;
  margin: 8px 0;
}

.dl-item > img {
  width: 96px;
  float: left;
  margin-right: 16px;
}

.dl-item a {
  display: inline-block;
  
  padding: 8px 16px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, rgb(55, 124, 200), rgb(138, 71, 231));
  font-weight: 500;
  box-shadow: 0 0 0 rgba(0,0,0,0.3);

  transition: 0.2s box-shadow;
}

.dl-item a:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.ss-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.ss-box .ss-item {
  display: block;
  flex-shrink: 0;
  margin: 8px;
  box-shadow: 0 0 0 rgba(0,0,0,0.6);
  transition: 0.2s box-shadow;
}

.ss-box .ss-item img {
  max-width: 256px;
  max-height: 256px;
}

.ss-box .ss-item:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
  
  html, body {
    background-color: #222;
    color: #eee;
  }

  h2 {
    color: #aaa;
  }

  .content {
    background-color: #222;
    outline-color: #181818;
  }

  h1, a {
    color: #76a5d8;
  }

  .nav > a::after {
    background: #76a5d8;
  }

  .header > a, .header .img {
    background-image: url('img/banner-dark.svg');
  }

  .nav {
    background-color: #181818;
  }

  .nav > a {
    color: #bbb;
  }

  .nav > a.current, 
  .nav > a:hover {
    background-color: #222;
    color: #fff;
  }

  .footer {
    border-top-color: #181818;
    color: #aaa;
  }

  .dl-item
  {
    background-color: #333;
  }

}
