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

@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #1a1a1a;
    color: #d4d4d4;
    fill: #d4d4d4;
  }
}

h1 {
  clear: both;
}

h2 {
  margin-top: 2em;
}

a.column {
  color: inherit;
  transition: color 250ms ease-in-out;
}

a.column:hover,
a.column:focus,
a.column:active {
  color: #08c;
  fill: #08c;
  text-decoration: none;
}

a.column h3 {
  margin-bottom: 0.5em;
}

/***********
* App grid *
***********/

.row.apps {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 0;
  padding-top: 12px;
  text-align: center;
}

.row.apps .app {
  border-radius: 4px;
  border: 1px solid transparent;
  color: inherit;
  margin: 12px 0;
  padding: 12px;
  text-align: left;
  transition:
    background-color 150ms ease-in-out,
    border-color 150ms ease-in-out;
  vertical-align: top;
  width: 100%;
  overflow-wrap: break-word;
}

.row.apps .app:hover,
.row.apps .app:focus,
.row.apps .app:active {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.row.apps .app img,
.row.apps .app span {
  display: inline-block;
}

.row.apps .app img {
  vertical-align: middle;
}

@media (min-width: 600px) {
  .row.apps .app {
    text-align: center;
    width: 192px;
  }

  .row.apps .app img,
  .row.apps .app span {
    display: block;
  }

  .row.apps .app img {
    margin-left: auto;
    margin-right: auto;
    vertical-align: middle;
  }
}

.row.apps .app span {
  line-height: 24px;
  padding: 16px 12px 0;
}
