/*
  Breathable
  by Garrett Murray <garrett@karbon.agency>
  Copyright 2021
*/

#ribbon {
  width: 100%;
  height: 6px;
  background: linear-gradient(
	  90deg,
	  rgba(89,255,0,1) 0%,
	  rgba(234,255,0,1) 16%,
	  rgba(255,121,0,1) 32%,
	  rgba(193,4,4,1) 55%,
	  rgba(200,3,215,1) 74%,
	  rgba(121,0,83,1) 92%);
}

/* Fonts */

@font-face {
	font-family: Akkurat;
	src:
		url('../fonts/lineto-akkurat-regular.woff2') format('woff2'),
		url('../fonts/lineto-akkurat-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
	font-family: Akkurat;
	src:
		url('../fonts/lineto-akkurat-light.woff2') format('woff2'),
		url('../fonts/lineto-akkurat-light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}

@font-face {
	font-family: Akkurat;
	src:
		url('../fonts/lineto-akkurat-bold.woff2') format('woff2'),
		url('../fonts/lineto-akkurat-bold.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
	font-family: Akkurat;
	src:
		url('../fonts/lineto-akkurat-italic.woff2') format('woff2'),
		url('../fonts/lineto-akkurat-italic.woff') format('woff');
  font-style: italic;
  font-display: swap;
}

strong, b {
  font-weight: 500;
}

em, i {
  font-style: italic;
}

/* Colors */

:root {
  --header-color: rgba(0, 0, 0, 1);
  --text-color: rgba(69, 72, 79, 1);
  --light-text-color: rgba(146, 152, 162, 1);
  --important-color: rgba(52, 54, 60, 1);
  --primary-bg-color: rgba(179, 183, 194, 1);
  --about-bg-color: rgba(255, 255, 255, 1);
  --grid-bg-color: rgba(240, 243, 245, 1);
}

/* Structure */

html, body {
  height: 100%;
}

body {
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Akkurat', serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.555555556;
  color: var(--text-color);
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
  }
}

#box, #header {
  clear: both;
  width: 963px;
  margin: 0 auto;
}

.constrained {
  width: 800px;
  margin: 0 auto;
  text-align: center;
}

.lefty {
	text-align: left;
}

#header {
  width: 100%;
  padding: 1em 0 3em 0;
  margin: 1em 0 0 0;
  flex: 1;
  font-weight: 400;
  text-align: center;
  position: relative;
}

#phone {
  text-align: center;
  margin: 0 auto;
  clear: both;
}

#icon {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  position: absolute;
  bottom: 0px;
  left: calc(50% - calc(156px / 2));
}

#icon img {
  width: 156px;
  height: 156px;
}

h1 {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 auto -10px auto;
  text-align: center;
  color: var(--header-color);
  font-weight: 100;
  padding-bottom: 0;
}

#appStores {
  clear: both;
  margin: 1em auto 2em auto;
  max-width: 90vw;
}

#appStores a {
  display: inline;
  margin-right: 10px;
}

#appStores a:last-child, #appStores a:last-of-type {
  margin-right: 0;
}

#appStores a img {
  height: 46px;
}

#description {
  text-align: left;
}

#donations {
  background-color: #f7f7f7;
  padding: 4px 20px 4px 26px;
  border-radius: 20px;
  background: rgb(233,255,221);
  background: linear-gradient(40deg, rgba(233,255,221,1) 0%, rgba(207,255,188,1) 100%);
  color: rgb(16, 60, 26);
}

#newKeysDelay {
  background-color: #f7f7f7;
  padding: 4px 20px 4px 26px;
  border-radius: 20px;
  background: rgb(255, 237, 221);
  background: linear-gradient(40deg, rgba(255, 236, 221, 1) 0%, rgba(255, 219, 188, 1) 100%);
  color: rgb(60, 33, 16);
}

#newVersion {
  background-color: #f7f7f7;
  padding: 4px 20px 4px 26px;
  border-radius: 20px;
  background: rgba(236, 241, 255, 1);
  background: linear-gradient(40deg, rgba(236, 241, 255, 1) 0%, rgba(212, 220, 255, 1) 100%);
  color: rgb(16, 30, 60);
  margin-top: 10px;
}

#donations b {
  color: rgb(16, 60, 26);
}

/* Footer */

#about ul {
  list-style: none;
  margin: 2em auto;
  padding: 0;
  clear: both;
}

#about ul li {
  display: inline;
  padding: 0 2em 0 0;
}

#about ul li:last-of-type {
  padding-right: 0;
}

/* Links */

a, a:visited {
  color: rgba(14, 72, 170, 1.000);
  -webkit-text-decoration-color: rgba(14, 72, 170, 0.300);
}

a:hover, a:active {
  color: #000;
  -webkit-text-decoration-color: rgba(0, 0, 0, 0.300);
}

#about a, #about a:visited  {
  color: rgba(100, 117, 140, 1.000);
  -webkit-text-decoration-color: rgba(50, 58, 70, 0.300);
}

#about a:hover, #about a:active {
  color: #000;
  -webkit-text-decoration-color: rgba(0, 0, 0, 0.300);
}

#about a.plain, #about a.plain:visited {
  text-decoration: none;
  color: rgba(10, 31, 66, 1.000);
}

#about a.plain:hover, #about a.plain:active {
  color: rgba(10, 31, 66, 1.000);
}

#donations a, #donations a:visited {
  color: rgb(16, 60, 26);
}

/* Mobile */

@media only screen and (max-width: 986px) {
  #box, #header, .constrained {
    clear: both;
    width: 90vw;
    margin: 0 auto;
  }

  img {
    max-width: 90vw;
  }

  #header {
    padding: 1em 0 2em 0;
    margin: 1em auto 0 auto;
  }

  #about ul li {
    display: block;
    padding: 1em 0 0 0;
  }

  #about ul li:last-child {
    padding-right: 0;
  }
}

/* Sub pages */
.noPhone {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  display: block;
}

h3 {
  font-size: 1.2em;
  font-weight: 500;
}

h6 {
  text-transform: uppercase;
  font-size: 0.96em;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: -8px;
  padding: 0;
  clear: both;
}

.smally {
  font-size: 0.8em;
  opacity: 0.6;
}

/* @media only screen and (prefers-color-scheme: dark) {
  body {
    background-color: rgb(28, 28, 30);
    color: rgb(255, 255, 255);
  }

  h2, h3, h4, h5, h6 {
    color: #fff;
  }

  a, a:visited {
    color: rgba(64, 135, 255, 1);
    -webkit-text-decoration-color: rgba(38, 108, 226, 0.6);
  }

  a:hover, a:active {
    color: #fff;
    -webkit-text-decoration-color: rgba(255, 255, 255, 0.3);
  }
} */
