/***************************************
* Copyright 2016–2021 elementary, Inc. *
* This file is part of elementary.io   *
***************************************/

@import url('/fonts/inter.css');

:root {
  --ui-font: Inter, Helvetica, Roboto, sans-serif;
}

html,
body {
  background-color: #fff;
  box-sizing: border-box;
  color: #333;
  fill: #333;
  font-family: var(--ui-font);
  font-weight: 400;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Code for old Firefox and KaiOS */
::-moz-selection {
  background-color: rgba(140, 213, 255, 0.3);
  color: rgb(0, 46, 153);
  text-shadow: none;
}

/* Code for modern browsers */
::selection {
  background-color: rgba(140, 213, 255, 0.3);
  color: rgb(0, 46, 153);
  text-shadow: none;
}

/**************
* Text Styles *
**************/

a {
  color: #08c;
  fill: #08c;
  text-decoration: none;
}

a:focus {
  text-decoration: underline;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
}

h1 svg {
  height: 45px;
  max-width: 100%;
  position: relative;
  top: 11px;
  width: 310px;
}

h1 .logotype-svg {
  fill: inherit;
}

@media (min-width: 966px) {
  h1 {
    font-size: 48px;
  }
}

h1 + p {
  font-size: 1.25em;
  line-height: 1.33;
}

h2 {
  font-size: 2em;
  font-weight: 300;
  margin: 0 0 16px;
  padding: 0;
}

h3 {
  font-size: 1.5em;
  font-weight: 600;
  opacity: 0.8;
}

h4 {
  font-size: 1.25em;
  font-weight: 400;
  margin-bottom: 16px;
  margin-top: 16px;
}

h5 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 3px;
  margin-top: 0;
  text-align: left;
}

p {
  text-align: left;
  line-height: 1.65;
}

p.small-label {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
  padding: 0;
  text-align: center;
}

q {
  font-family: 'Marck Script', cursive;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

q::before,
q::after {
  content: none;
}

@media (min-width: 414px) {
  q {
    font-size: 36px;
  }
}

hr {
  background: #c9c9c9;
  border: none;
  height: 1px;
}

img {
  max-width: 100%;
  height: auto;
}

img.h1 {
  display: block;
  height: 27px;
  margin: 19px auto;
  opacity: 0.8;
}

div.inline,
img.inline {
  display: inline-block !important;
  vertical-align: middle;
}

img.inline + div.inline {
  margin-left: 12px;
}

.read-more {
  white-space: nowrap;
}

.read-more::after {
  color: inherit;

  /* Encoded `→`, see: https://github.com/elementary/website/issues/2851 */
  content: "\2192";
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  padding-left: 3px;
  transition: transform 0.15s ease-in-out;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/*********
* NAVBAR *
*********/

nav {
  line-height: 48px;
  min-height: 48px;
  min-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  nav {
    font-size: 14px;
  }
}

.nav-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}

html.ie-legacy .nav-content {
  min-width: 430px;
}

html.ie-legacy .nav-content > ul.right {
  float: right;
}

nav .menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 12px 24px;
  border: none;
}

nav .menu-button.enabled {
  display: inline-block;
}

nav .menu-button.enabled + .nav-content {
  display: none;
}

nav .menu-button.enabled[aria-expanded='true'] +  .nav-content {
  display: flex;
}

nav .menu-button,
nav .menu-button:hover,
nav .menu-button:focus,
nav .menu-button:active {
  background: none;
  border: none;
  box-shadow: none;
}

nav ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0 12px;
}

nav ul:first-of-type {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

nav li {
  display: inline-block;
}

nav a,
nav a:visited {
  color: inherit;
  display: inline-block;
  fill: inherit;
  margin: 0;
  padding: 0 12px;
}

nav a:focus,
.menu-button:focus svg {
  color: #08c;
  fill: #08c;
  text-decoration: none;
}

nav a:hover,
nav a:visited:hover,
nav .menu-button:hover svg {
  opacity: 0.7;
}

nav a[title="YouTube"]:focus,
nav a[title="YouTube"]:hover {
  color: #d50000;
  fill: #d50000;
}

nav a[title="Mastodon"]:focus,
nav a[title="Mastodon"]:hover {
  color: #0d93ff;
  fill: #0d93ff;
}

nav a[title="Reddit"]:focus,
nav a[title="Reddit"]:hover {
  color: #ff4500;
  fill: #ff4500;
}

nav a[title="Discord"]:focus,
nav a[title="Discord"]:hover {
  color: #5865f2;
  fill: #5865f2;
}

nav .logomark {
  line-height: 14px;
  vertical-align: middle;
  height: 48px;
  padding: 12px;
}

nav .logomark .logomark-svg,
nav .logomark:focus .logomark-svg {
  fill: inherit;
}

/* this media query is for ie-legacy support */
@media only screen and (max-width: 430px) {
  html.ie-legacy nav {
    overflow-x: scroll;
    white-space: nowrap;
  }

  html.ie-legacy .nav-content {
    overflow: visible;
    white-space: nowrap;
    width: 430px;
  }

  html.ie-legacy .nav-content > .right {
    float: left;
  }
}

@media (min-width: 680px) {
  .nav-content {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  nav .menu-button.enabled {
    display: none;
  }

  nav .menu-button.enabled + .nav-content {
    display: flex;
  }

  nav ul {
    padding: 0;
  }

  nav ul:first-of-type {
    flex-direction: row;
  }
}

/**************
* Body Layout *
**************/

body {
  display: flex;
  flex-direction: column;
}

#content-container {
  flex-grow: 1;
}

footer {
  color: inherit;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  justify-content: center;
  padding-top: 24px;
  text-align: center;
  align-items: center;
}

footer > * {
  padding: 6px 12px;
  margin: 0;
}

@media (min-width: 650px) {
  footer {
    justify-content: space-between;
  }

  footer > * {
    padding: 0 12px;
  }
}

footer > div > * {
  display: inline-block;
}

footer > div > p,
footer > div > div > a,
footer > ul {
  opacity: 0.8;
  text-align: center;
  list-style: none;
}

footer .popover {
  margin: 12px;
}

@media (min-width: 375px) {
  footer > p,
  footer > .popover {
    float: left;
  }

  footer > ul {
    float: right;
  }
}

footer > ul li {
  display: inline-block;
}

footer ul li + li,
footer p a {
  margin-left: 12px;
}

footer a {
  color: inherit;
}

footer i.fa {
  font-size: 16px;
}

footer a:focus i.fa {
  color: #08c;
  text-shadow: 0 1px 6px #08c;
}

/*********
* Layout *
*********/

.column {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.column.third {
  margin-bottom: 16px;
  margin-top: 16px;
}

@media (min-width: 444px) {
  .row .column.half {
    margin: 32px 32px 0;
    width: calc(50% - 88px);
  }

  .column.third {
    margin: 32px 32px 0;
    width: calc(33% - 88px);
  }

  .column + .column {
    margin-left: 16px !important;
  }
}

.column.half {
  text-align: left;
  vertical-align: middle;
}

.column img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.row {
  margin: 0 auto;
  max-width: 1200px;
  padding: 48px 24px;
  text-align: center;
  width: auto;
}

.row .row {
  padding: 24px 0;
}

.row ul,
.row ol {
  text-align: left;
}

.row.docs,
.row.docs .slide {
  max-width: 800px;
}

/*******
* Grid *
*******/

.grid {
  margin: 0 auto;
  max-width: 1200px;
  padding: 32px 0;
  text-align: center;
  width: auto;
}

.grid > * {
  margin: 16px;
}

.grid .grid {
  padding: 0;
}

.grid .whole {
  display: block;
}

@media only screen and (min-width: 640px) {
  .grid .half {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 48px);
  }

  .grid .third {
    width: calc(33.33% - 32px);
    display: inline-block;
    vertical-align: top;
    margin-right: 16px;
  }

  .grid .third:last-child {
    margin-left: 16px;
    margin-right: 0;
  }

  .grid .two-thirds {
    display: inline-block;
    vertical-align: top;
    width: calc(66% - 48px);
  }

  .grid *:only-child p,
  .grid .two-thirds h1 + p {
    text-align: center;
  }
}

.third h3 {
  text-align: center;
}

a.third {
  color: inherit;
}

a.third:hover {
  color: #08c;
  fill: #08c;
}

.third .fa,
.third .fab,
.third .far {
  font-size: 32px;
  text-align: center;
  display: block;
}

/*********
* Alerts *
*********/

#js-alert {
  border-bottom: 1px solid;
  border-top: 1px solid;
  font-size: 0.8em;
  margin-bottom: 1em;
  order: -1;
  padding: 0 1em;
}

.warning {
  color: #fbc02d;
}

.info {
  color: #3689e6;
}

.row.alert {
  border: 2px solid #333;
  border-radius: 6px;
  max-width: 704px;
  padding: 24px;
}

.row.alert + .row.alert {
  margin-top: 20px;
}

.row.alert.warning,
#js-alert {
  background-color: #fff9c4;
  border-color: #fbc02d;
}

.row.alert.info {
  background-color: rgba(140, 213, 255, 0.125);
  border-color: #8cd5ff;
}

.column.alert {
  margin: 5px;
  max-width: calc(100% - 70px);
  padding: 5px;
}

.row.alert > .column.alert,
#js-alert {
  color: rgba(0, 0, 0, 0.8);
}

.row.alert.info > .column.alert {
  color: #002e99;
}

.column.alert h3 {
  margin: 0;
  text-align: left;
}

.row .column.alert i.fa {
  font-size: 64px;
  margin: 8px 0 0;
}

.icon {
  position: relative;
  text-align: center;
}

@media (min-width: 444px) {
  .icon {
    position: absolute;
  }

  .icon-text {
    padding-left: 88px;
  }
}

/*********
* Button *
*********/

button,
select,
.button {
  appearance: none;
  background-color: transparent;
  background-image: linear-gradient(to bottom, transparent, transparent 50%, rgba(0, 0, 0, 0.04));
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.15),
    0 1px 0 0 rgba(255, 255, 255, 0.15);
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  margin: 24px;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
  transition: all 100ms ease-in;
}

button,
.button {
  display: inline-block;
}

button:focus,
.button:focus {
  border-color: rgba(77, 156, 209, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.15),
    0 3px 6px rgba(12, 128, 200, 0.16),
    0 3px 6px rgba(12, 128, 200, 0.23);
  text-decoration: none;
}

button:active,
.button:active,
button.active,
.button.active,
.target-amount.checked {
  background-color: rgba(0, 0, 0, 0.05);
  background-image: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 1px 0 0 rgba(255, 255, 255, 0.3);
}

button.suggested-action,
.button.suggested-action {
  background-color: #64b9f1;
  background-image: linear-gradient(to bottom, #4ca7e4, #328ecc);
  border-color: #337cac;
  color: #fff;
  text-shadow: 0 1px rgba(0, 0, 0, 0.3);
}

.button.flat {
  background: rgba(0, 0, 0, 0.07);
  border: none;
  box-shadow: none;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 0;
  margin-top: 10px;
  min-width: 250px;
  padding: 7px;
  text-shadow: none;
  transition: opacity 200ms ease;
}

.button.flat:focus,
.button.flat:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow:
    0 2px 3px -1px rgba(0, 0, 0, 0.08),
    0 5px 10px -2px rgba(0, 0, 0, 0.15);
}

.light .button.flat,
.light .button.flat .svg {
  border-color: #fff;
  box-shadow: none;
  color: #fff;
  fill: #fff;
}

.light .button.flat.active,
.light .button.flat.active .svg {
  background-color: #fff;
  box-shadow: none;
  color: #333;
  fill: #333;
}

.button.flat:hover {
  opacity: 0.8;
}

#logotype {
  height: 66px;
  margin: 16px auto;
  max-width: 100%;
  position: relative;
  width: 454px;
}

#logotype svg {
  bottom: 0;
  height: 100%;
  left: 0;
  overflow: visible;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.small-button {
  margin: 3px;
  padding: 8px 16px;
  vertical-align: top;
}

/****************
* Button Groups *
****************/

.actions {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.actions--column {
  flex-direction: column;
}

.actions > .button {
  flex: 0 0 auto;
  margin: 10px;
}

/********
* Input *
********/

input:not([type="submit"]):not(.button) {
  background-clip: padding-box;
  background-color: #fff;
  background-image: linear-gradient(to bottom, #fafafa, #fdfdfd);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 0 rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.02),
    0 1px 0 1px rgba(255, 255, 255, 0.3);
  color: #323232;
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
  transition: all 200ms ease-out;
}

input[type="text"]:not(.button),
input[type="password"]:not(.button),
select {
  font-size: 13px;
  padding: 8px;
}

select {
  text-align: left;
}

input[type="number"] {
  appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

input:focus:not([type="submit"]):not(.button) {
  border-color: rgba(61, 155, 218, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(61, 155, 218, 0.23),
    0 1px 0 1px rgba(255, 255, 255, 0.3);
  transition: all 200ms ease-in;
}

select:focus {
  border-color: rgba(61, 155, 218, 0.8);
  transition: all 200ms ease-in;
}

input:invalid,
input:focus:invalid,
select:invalid,
select:focus:invalid {
  color: #c0392b !important;
}

.button::placeholder {
  color: #333;
}

input:focus::placeholder {
  color: transparent;
}

/*********
* Linked *
*********/

.linked {
  font-size: 0;
  margin: 24px 0;
  white-space: nowrap;
}

.linked button,
.linked .button {
  border-left-width: 0;
  border-radius: 0;
  display: inline-block;
  margin: 0;
  padding: 16px;
}

.linked button:first-child,
.linked button:active:first-child,
.linked button:active:hover:first-child,
.linked .button:first-child,
.linked .button:active:first-child,
.linked .button:active:hover:first-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 0;
  border-width: 1px;
}

.linked button.flat:first-child,
.linked button.flat:active:first-child,
.linked button.flat:active:hover:first-child,
.linked .button.flat:first-child,
.linked .button.flat:active:first-child,
.linked .button.flat:active:hover:first-child {
  border-width: 2px;
}

.linked button:last-child,
.linked button:active:last-child,
.linked button:active:hover:last-child,
.linked .button:last-child,
.linked .button:active:last-child,
.linked .button:active:hover:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 3px;
  border-left-width: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 3px;
}

/*****************
* Legacy Warning *
*****************/

#legacy-warning {
  background-color: #e35d4f;
  box-sizing: border-box;
  color: white;
  padding: 2em;
  position: fixed;
  top: 0;
  width: 100%;
}

#legacy-warning p {
  text-align: center;
}

#legacy-warning a {
  color: white;
}

#legacy-warning #legacy-warning-buttons {
  text-align: center;
}

#legacy-warning #legacy-warning-buttons a {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  text-decoration: none;
}

#legacy-warning #legacy-warning-buttons a.suggested-action {
  border: 1px solid;
}

/****************
* Modal Dialogs *
****************/

.modal {
  background-color: #f5f5f5;
  border-radius: 4px;
  box-shadow:
    inset 1px 0 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.2),
    inset 0 1px 0 0 #fff,
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.19),
    0 6px 6px rgba(0, 0, 0, 0.23);
  max-height: 100vh;
  max-width: 100vw;
  padding: 12px;
  z-index: 11000;
  display: none;
  text-align: center;
}

.modal p {
  text-align: center;
  margin: 0 6px;
  max-width: 388px;
}

.modal .row.actions {
  margin-top: 24px;
  padding: 0;
}

.modal .row.actions .column {
  margin: 6px !important;
}

@media only screen and (max-width: 425px) {
  .dialog {
    width: calc(100vw - 32px);
  }
}

.dialog {
  background-color: #f5f5f5;
  border-radius: 3px;
  box-shadow:
    inset 1px 0 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.2),
    inset 0 1px 0 0 #fff,
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 20px 1px rgba(0, 0, 0, 0.14),
    0 3px 28px 2px rgba(0, 0, 0, 0.12),
    0 5px 10px -3px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  padding: 12px;
  padding-top: 24px;
}

.dialog img {
  display: inline-block;
  margin-right: 12px;
  user-select: none;
  vertical-align: top;
}

.dialog .content-area {
  display: inline-block;
  width: calc(100% - 48px - 18px); /* Subtract icon width and right margin */
}

.dialog p {
  line-height: 24px;
  margin: 6px 0 0;
  max-width: 380px;
  text-align: left;
}

.dialog p.primary {
  font-weight: 700;
  margin-top: 0;
}

.dialog .action-area {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

.dialog .button {
  display: inline-block;
  font-size: 14px;
  flex: 0 35%; /* FIXME: These values are bullshit */
  margin: 0;
  padding: 9px 12px;
  user-select: none;
  white-space: nowrap;
}

.dialog .action-area > .button + .button,
.dialog .action-area > .button + .linked {
  margin: 0;
  margin-left: 6px;
}

i.fa.fa-close.close-modal {
  cursor: pointer;
  float: left;
}

/*********
* Slider *
*********/

.slide-container {
  overflow: hidden;
  position: relative;
  transition: height 200ms ease-in-out;
  width: 100%;
}

.slide {
  transition: transform 200ms ease-in-out, opacity 100ms linear;
}

.slide.active,
.slide.next,
.slide.previous {
  left: 0;
  position: absolute;
  right: 0;
  width: 100%;
}

.slide.active {
  filter: opacity(1);
  opacity: 1;
  transform: translateX(0%);
}

.slide.next {
  filter: opacity(0);
  opacity: 0;
  transform: translateX(200%);
}

.slide.previous {
  filter: opacity(0);
  opacity: 0;
  transform: translateX(-200%);
}

.float-left {
  float: left;
  margin: 0 0.5em 0.5em 0;
}

.clear,
.clear-both {
  clear: both;
}

/**********
* Popover *
**********/

.popover {
  position: relative;
}

.popover .popover-content {
  background: white;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  bottom: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: #333;
  left: -70px;
  opacity: 0;
  position: absolute;
  text-align: left;
  transition: visibility 0s 250ms, opacity 250ms;
  visibility: hidden;
  width: 200px;
  z-index: 2;
}

.popover .popover-content::before,
.popover .popover-content::after {
  border: 10px outset transparent;
  content: "";
  display: block;
  height: 0;
  left: 50%;
  margin-left: -5px;
  position: absolute;
  width: 0;
}

.popover .popover-content::before {
  border-top: 10px solid rgba(0, 0, 0, 0.2);
  bottom: -20px;
}

.popover .popover-content::after {
  border-top: 10px solid white;
  bottom: -18px;
}

.popover.active .popover-content {
  opacity: 1;
  transition: opacity 250ms;
  visibility: visible;
}

.popover .popover-content strong {
  display: inline-block;
  margin: 15px;
  margin-bottom: 10px;
}

.popover .popover-content ul {
  height: 50vh;
  margin: 5px 0;
  max-height: 500px;
  overflow: auto;
  padding: 0;
}

@media (max-height: 700px) {
  .popover .popover-content ul {
    max-height: 300px;
  }
}

@media (max-height: 450px) {
  .popover .popover-content ul {
    max-height: 200px;
  }
}

.popover .popover-content ul li {
  display: block;
  margin: 0;
}

.popover .popover-content ul li a {
  display: block;
  padding: 5px 15px;
}

.popover .popover-content ul li a:hover {
  background-color: #e0e0e0;
}

.popover .popover-content hr {
  background: #e0e0e0;
  border: 0;
  height: 1px;
}

/*****************
* Special Colors *
*****************/

.grey {
  background-color: #fafafa;
}

@media print {
  header,
  nav,
  footer,
  .dont-print {
    display: none;
  }
}

/*************************
* Teaser group with icon *
*************************/

@media only screen and (min-width: 640px) {
  .flex-row {
    display: flex;
    flex-direction: row;
  }

  .flex-column {
    flex: 1 1 auto;
  }

  .no-shrink {
    flex-shrink: 0;
  }

  .gutter-right {
    margin-right: 16px;
  }

  .flex-row .flex-column p {
    text-align: left;
  }
}

/***************************************
* Press section on home and press page *
***************************************/

#the-press {
  padding-bottom: 64px;
}

#the-press svg {
  display: block;
  height: 4em;
  margin: 12px auto;
}

#the-press svg * {
  fill: #555761;
}

#the-press svg:hover * {
  fill: #3689e6;
}

#the-press svg:active {
  position: relative;
  top: 1px;
}
