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

a img {
  margin-right: 7px;
}

button, .button {
  font-family: -apple-system,BlinkMacSystemFont,San Francisco,Helvetica Neue,Helvetica,Ubuntu,Roboto,Noto,Segoe UI,Arial,sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  color: #777;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: capitalize;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid var(--background-secondary);
  cursor: pointer;
}

.sButton{
  font-weight: 500;
  line-height: 1.1;
  padding-top: 12px;
  padding-bottom: 12px;
}

.button{
  color: #111111;
}

button:hover, .button:hover {
  border-color: var(--background-secondary);
}

.share-button, .copy-link {
  padding: 8px 30px;
}

.share-button, .share-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.share-dialog {
  display: none;
  width: 95%;
  max-width: 500px;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
  border: 1px solid var(--background-secondary);
  padding: 20px;
  border-radius: 4px;
  background-color: var(--background-secondary);
  z-index: -1;
  position: fixed;
  top: 50%;
}

.share-dialog.is-open {
  display: block;
  z-index: 1500;
}

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.targets {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-bottom: 20px;
}

.close-button {
  background-color: transparent;
  border: none;
  padding: 0;
}

.close-button svg {
  margin-right: 0;
}

.link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  background-color: #111111;
}

.pen-url {
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
