@font-face {
  font-family: "CaskaydiaCove NFM";
  src: url("fonts/CaskaydiaCoveNFM-Regular.eot");
  src:
    url("fonts/CaskaydiaCoveNFM-Regular.eot?#iefix") format("embedded-opentype"),
    url("fonts/CaskaydiaCoveNFM-Regular.woff2") format("woff2"),
    url("fonts/CaskaydiaCoveNFM-Regular.woff") format("woff"),
    url("fonts/CaskaydiaCoveNFM-Regular.svg#CaskaydiaCoveNFM-Regular") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Reset */

* {
  margin: 0;
  padding: 0;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Site Styles */

:root {
  --bg-color: #181818;
  --text-color: #E4E4E4;
  --accent-color: #b39cd0;

  font-family: 'CaskaydiaCove NFM', monospace;
  font-size: 16px;
}

html,
body {
  height: 100%
}

body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  text-align: center;
}

main {
  flex: 1;
}

#commandsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
  max-width: 50rem;
}

.command-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 1rem;
  background-color: #323232;
}

.command-card .left {
  display: flex;
  flex: 1;
  gap: 1rem;
}


.command-card .right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 6;
}

.command-card .right .aliases {
  display: flex;
  gap: 0.5rem;
}

.command-alias {
  display: flex;
  gap: 0.5rem;
}

.command-alias code {
  display: flex;
  gap: 0.25rem;
  color: var(--accent-color);
  background-color: var(--bg-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-button .fa-copy {
  display: block;
}
.copy-button .fa-check {
  display: none;
}

.copy-button.copied {
  color: #89D185;
  pointer-events: none; 
}

.copy-button.copied .fa-copy {
  display: none;
}

.copy-button.copied .fa-check {
  display: block;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
}
