:root {
  --white-100: #ffffff;
  --blue-50: #0a84ff;
  --blue-60: #0060df;
  --grey-10: #f9f9fa;
  --grey-30: #d7d7db;
  --grey-50: #737373;
  --grey-70: #4a4a4f;
  --grey-90: #0c0c0d;
  --grey-90-a10: rgba(12, 12, 13, 0.1);
  --grey-90-a20: rgba(12, 12, 13, 0.2);
  --grey-90-a60: rgba(12, 12, 13, 0.6);
  --photon-timing-fuction: cubic-bezier(.07,.95,0,1);
  --sidebar-width: 320px;
}

* {
  box-sizing: border-box;
}

/** Global styles **/

body {
  font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
  margin: 0;
  padding: 0;
  color: var(--grey-90);
  background-color: var(--grey-10);
}

.hidden {
  display: none !important;
}

#loading {
  text-align: center;
  font-size: 20px;
  margin-top: 30px;
}

#headline {
  margin: 0;
  padding: 20px;
  font-size: 36px;
  font-weight: 400;
  background-color: var(--white-100);
}

/** Filter **/

.filter {
  background-color: var(--white-100);
  border-bottom: 1px solid var(--grey-30);
  position: sticky;
  top: 0;
  z-index: 1;
}

/** Toggle **/

.filter .toggle {
  display: flex;
  flex-shrink: 0;
}

.filter .toggle div {
  border-bottom: 4px solid transparent;
  color: var(--grey-50);
  flex-grow: 1;
  font-size: 16px;
  padding: 16px 8px;
  text-align: center;
}

.filter .toggle div:hover,
.filter .toggle div:active {
  background-color: var(--grey-90-a10);
  border-bottom: 4px solid var(--grey-30);
}

.filter .toggle div.checked {
  border-bottom: 4px solid var(--blue-50);
  color: var(--blue-50);
}

.toggle div span {
  background-color: var(--grey-90-a60);
  background-size: 16px;
  background-repeat: no-repeat;
  display: inline-block;
  height: 16px;
  margin-right: 8px;
  margin-top: 1px;
  vertical-align: top;
  width: 16px;
}

.filter .toggle div.checked span {
  background-color: var(--blue-50);
}

#toggle-desktop span {
  mask: url('../images/desktop-16.svg') no-repeat center;
}

#toggle-android span {
  mask: url('../images/android-16.svg') no-repeat center;
}

#toggle-ios span {
  mask: url('../images/ios-16.svg') no-repeat center;
}

@media screen and (min-width: 600px) {
  .filter {
    display: flex;
  }
  .filter .toggle span {
    flex-grow: 0;
  }

  .filter .toggle div {
    padding: 16px;
  }
}

#icon-list {
  margin: 20px;
}

/** icon details **/

#icon-details {
  display: flex;
  flex-direction: column;
  background-color: var(--white-100);
  height: 100vh;
  position: fixed;
  left: 100%;
  top: 0;
  transition: left .3s var(--photon-timing-fuction);
  width: var(--sidebar-width);
  border-left: solid 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  z-index: 2;
  overflow-y: auto;
}

#icon-details header {
  display: flex;
  justify-content: space-between;
  padding: 48px 48px 0 48px;
}

#icon-details main {
  flex-grow: 1;
  padding: 0 48px;
}

#icon-details footer {
  display: flex;
  justify-content: center;
  padding: 24px 48px;
  background-color: var(--grey-10);
  border-top: solid 1px rgba(0, 0, 0, 0.1);
}

#icon-details.show {
  left: calc(100% - var(--sidebar-width));
}

#icon-details h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 24px 0;
}

#icon-details .close-button {
  background-image: url('../../icons/desktop/stop-16.svg');
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  transition: all 0.3s var(--photon-timing-fuction);
  width: 24px;
  height: 24px;
  cursor: pointer;
  background-color: var(--white-100);
  border-radius: 4px;
}

#icon-details .close-button:hover {
  background-color: var(--grey-30);
}

#icon-details .section {
  margin-bottom: 48px;
}

#icon-details .title {
  display: inline-block;
  font-weight: 500;
}

#icon-details .preview {
  margin-bottom: 48px;
  padding: 32px 16px 16px;
  text-align: center;
  fill: currentColor;
  border: solid 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(9, 6, 12, 0.1);
  border-radius: 4px;
}

#icon-details .preview.light {
  color: rgba(249, 249, 250, .8);
  background-color: var(--grey-90);
  background-image: linear-gradient(45deg, var(--grey-70) 25%, transparent 25%, transparent 75%, var(--grey-70) 75%, var(--grey-70)), 
  linear-gradient(45deg, var(--grey-70) 25%, transparent 25%, transparent 75%, var(--grey-70) 75%, var(--grey-70));
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}

#icon-details .preview.dark {
  color: rgba(12, 12, 13, .8);
  background-color: var(--grey-10);
  background-image: linear-gradient(45deg, var(--grey-30) 25%, transparent 25%, transparent 75%, var(--grey-30) 75%, var(--grey-30)), 
  linear-gradient(45deg, var(--grey-30) 25%, transparent 25%, transparent 75%, var(--grey-30) 75%, var(--grey-30));
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
#icon-details svg {
  width: 64px;
  height: 64px;
}

#icon-details[data-deprecated^="true"] svg {
  opacity: 0.5;
}

#icon-details .name {
  padding: 16px 0;
  text-align: center;
  text-transform: capitalize;
}

/** icon details checkbox **/

.checkbox,
.radio {
  margin: 12px 0;
}

label span {
  display: inline-block;
  vertical-align: bottom;
  line-height: 1;
}

label code {
  display: inline-block;
  vertical-align: middle;
  padding: 4px 4px 2px;
  background-color: var(--grey-30);
  border-radius: 4px;
}

label small {
  vertical-align: bottom;
  font-size: 12px;
  line-height: 1.05;
  margin-left: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

/** Footer Buttons **/

#download a {
  display: block;
  background-color: var(--blue-50);
  color: var(--white-100);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
}

#icon-details[data-deprecated^="true"] a {
  opacity: 0.5;
  cursor: not-allowed;
}

/** Embed version **/

.embed {
  color: var(--grey-50);
}

.embed #icon-list {
  margin: 0;
}

.embed h2 {
  font-size: 45px;
  font-style: italic;
  font-weight: 400;
  margin-top: 17px;
  padding-top: 34px;
}

/** Search input **/

#search-input {
  background-image: url(../../icons/desktop/search-16.svg);
  background-position: 20px center;
  background-repeat: no-repeat;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: var(--grey-30);
  color: var(--grey-90);
  font-family: inherit;
  font-size: 16px;
  padding: 16px 24px 16px 48px;
  width: 100%;
}

#search-input[disabled] {
  background-color: var(--white-100);
  opacity: 0.5;
}

@media screen and (min-width: 600px) {
  #search-input {
    border: none;
  }
}

/** Category display **/

.category-display::before {
  content: attr(data-category);
  color: var(--grey-50);
  display: block;
  font-size: 13px;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.category-display {
  border-bottom: 1px solid var(--grey-30);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

/** Icon display **/

.icon-display {
  display: inline-block;
  padding: 16px 8px;
  text-align: center;
  width: 84px;
  margin: 4px;
  vertical-align: top;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  background-color: var(--grey-10);
  transition: all .3s var(--photon-timing-fuction);
}

@media screen and (min-width: 768px) {
  .icon-display {
    width: 96px;
  }
}

.icon-display:hover,
.icon-display.selected {
  background-color: var(--grey-30);
}

.icon-display > * {
  pointer-events: none;
}

.icon-display img {
  transition: filter 0.3s;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.icon-display::after {
  content: attr(data-icon);
  font-size: 10px;
  display: block;
  width: 100%;
  -moz-user-select: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.icon-display[data-deprecated^="true"] {
  position: relative;
  cursor: not-allowed;
  opacity: 0.3;
}

.icon-display[data-deprecated^="true"]::before {
  content: "Outdated";
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--grey-90);
  color: var(--white-100);
  opacity: 0;
  font-size: 12px;
  border-radius: 2px;
  padding: 1px 3px 0px;
  transition: opacity .3s var(--photon-timing-fuction);
}

.icon-display[data-deprecated^="true"]:hover,
.icon-display[data-deprecated^="true"]:active {
  position: relative;
  transform: scale(1);
  box-shadow: none;
}

.icon-display[data-deprecated^="true"]:hover::before,
.icon-display[data-deprecated^="true"]:active::before {
  opacity: 1;
}

.site-feedback a {
  color: var(--blue-50);
  padding: 20px;
  text-decoration: none;
}

.site-feedback a:hover,
.site-feedback a:active {
  text-decoration: underline;
}
