@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  height: 100vh;

  font-family: 'Montserrat', sans-serif;
}

/*  */

.icon_pack-wrapper {
  position: relative;
  padding: 48px;
  margin: 0 auto;
  width: 80%;
  height: 80vh;
  border-radius: 32px;
  background-color: #f7f7f7;

  top: 50%;
  transform: translateY(-50%);
}

.search-container {
    display: flex;
    align-items: center;
}

.search-wrapper {
  margin: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-wrapper .search-state {
  right: 12px;
  position: absolute;
  display: block;
  padding: 4px 10px;
  border: 1px solid rgb(184, 180, 180);
  border-radius: 8px;
  color: #ffffff;
  background-color: #dddddd;
  text-align: center;
  cursor: auto;
}

.search {
  position: relative;
  width: 320px;
  padding: 12px 48px 12px 24px;
  background-color: #e9e9e9;
  transition: all .3s ease-in-out;

  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;

  font-size: 16px;
  font-family: inherit;
}

.search:hover {
  border: 1px solid rgb(187, 187, 187);
}

.search:focus {
  background-color: #ffffff;
  border: 1px solid rgb(145, 145, 145);
}

/* Icon pack */

.icons-pack {
    margin-left: 32px;
}

.icons-pack span {
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;

    transition: .2s ease;
}

.icons-pack span.active {
    cursor: default;
    color: #a1d887;
}

/*  */

.icon-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 24px;
  padding: 12px 16px 12px 12px;
  grid-auto-rows: min-content;

  height: 90%;
  overflow-y: scroll;
  transition: all .3s ease-in-out;
}

/* .icon-container.active {
    display: grid;
} */

.icon-container li {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 16px;

  padding: 0 24px 0 16px;
  background-color: white;
  border-radius: 16px;
  transition: all .15s ease;
}

.icon-container li:hover {
    cursor: pointer;
    box-shadow: 0px 0px 12px rgb(211, 211, 211) ;
}

/* icon svg */
.icon-container li img {
  width: 24px;
  height: 24px;
  user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
}

/* icon name */
.icon-container li p {
  font-size: 18px;
}

/* copy */
.icon-container li .copy-btn {
    box-sizing: content-box;
    padding: 4px;
    border-radius: 4px;
    width: 24px;
    opacity: 0;
    background-color: rgb(247, 247, 247);
    transition: all .075s;
}

.icon-container li .copy-btn div {
    cursor: pointer;
    height: 24px;
}

.icon-container li:hover  .copy-btn {
    opacity: 1;
}

.icon-container::-webkit-scrollbar {
  width: 12px;
  height: 80%;
}

.icon-container::-webkit-scrollbar-track {
  background-color: #e4e4e4;
  border-radius: 100px;
}

.icon-container::-webkit-scrollbar-thumb {
  background-color: #b1b1b1;
  border-radius: 100px;
}

::-moz-selection {
  color: rgb(128, 143, 148);
  background: rgb(216, 216, 216);
}

::selection {
  color: rgb(71, 77, 80);
  background: rgb(226, 226, 226);
}

.prevent-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

/* modal window */
.icon-modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* content */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 16px 24px 24px 28px;
    border: 1px solid #888;
    border-radius: 12px;

    width: 600px;
}

.modal-content__icon-name {
    padding: 8px 0 0 0;
    margin: 0 0 0 0;
}

.modal-content-inner {
    height: 100%;
    width: 100%;
}

.modal-content-row {
    margin: 32px 0 0 0;
}

.modal-content-row.row-icons {
    padding: 24px 0;
}

.modal-content p {
    margin: 0;
    margin-top: 8px;
    padding: 0;
}

.modal-content-row p, .modal-content > p {
    font-size: 20px;
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    background-color: #ffffff;
}

.info-content__cls {
    flex-basis: 70%;
    font-size: 18px;
}

.info-content .icons {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.icon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scale: 1.5;
}

.svg-description {
    scale: 0.75;
    text-align: center;
}

.icons .icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .15s ease;
}

.icons .icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .15s ease;
}

.icons .icon.active::after {
    content: '';
    width: 48px;
    display: block;
    position: absolute;
    height: 2px;
    background-color: #a1d887;
    bottom: 0;
    border-radius: 4px;
    left: 0;
}

.icons .icon-content:last-child .icon-wrapper {
    cursor: default;
}

.icons .icon-content:last-child .icon div {
    cursor: default;
}

.icons .icon-content:nth-child(4) .icon {
    background-color: #000000;
}

.icons .icon div {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.copy-btn-wrapper {
    width: 120px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-wrapper button {
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    background-color: #a1d887;
    cursor: pointer;

    transition: all .15s ease;
}

.copy-btn-wrapper button:hover {
    background-color: #b7eb9f;
    border: 1px solid rgb(184, 180, 180);
}

/* close btn */
.close {
    width: 34px;
    height: 34px;
    text-align: center;
    
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;

    transition: all .15s ease;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

pre, code {
    white-space: unset;
}

.btn-show-icons {
    margin-left: 48px;
    outline: none;
    border: none;
    font-size: 16px;
    font-family: inherit;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    background-color: #a1d887;
    color: white;

    transition: all .2s ease;
}

.btn-show-icons:hover {
    background-color: white;
    color: #7fa56d; 
}

.btn-show-icons--count {
    margin-left: 8px;
    font-size: 85%;
}
