html {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  background-color: #1a1a1a;
  color: #f8f8f8;
  font-size: 16px;
  line-height: 24px;
  text-rendering: optimizeLegibility;
}

@media screen and (min-width: 400px) {
  body {
    font-size: 18px;
  }
}

#copy-toast {
  position: fixed;
  bottom: 10px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 20px);
  transform: translateX(-50%);
  background: #262626;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
  box-sizing: border-box;
}

@media screen and (min-width: 600px) {
  #copy-toast {
    bottom: 20px;
    width: fit-content;
    max-width: calc(100% - 40px);
    font-size: 16px;
  }
}

#copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

#copy-toast.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
}

.copy-text {
  display: inline;
}

svg.copy-icon.copy-icon,
svg.open-in-new.open-in-new {
  display: inline-block;
  width: 16px;
  height: 16px;
  opacity: 0.5;
  fill: currentColor;
  transform: translateY(2px);
}

@media screen and (min-width: 400px) {
  svg.copy-icon.copy-icon,
  svg.open-in-new.open-in-new {
    width: 18px;
    height: 18px;
  }
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  opacity: 0.8;
  transition: background-color 0.2s ease-in-out, opacity 0.2s;
}

.copy-btn:hover,
.copy-btn:focus {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.copy-btn .copy-icon {
  opacity: 0.5;
}

.copy-success .copy-icon {
  opacity: 1;
  animation: opacity 0.3s ease-in-out;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-inline: auto;
  width: 260px;
  max-width: 100%;
}

@media screen and (max-width: 399px) {
  .content {
    padding-inline: 15px;
  }
}

@media screen and (min-width: 400px) {
  .content {
    width: 280px;
    margin-inline: 40px;
    padding-block: 40px;
  }
}

@media screen and (min-width: 600px) {
  .content {
    width: 480px;
    margin-inline: 60px;
    padding-block: 60px;
  }
}

@media screen and (min-width: 800px) {
  .content {
    width: 640px;
    margin-inline: 80px;
    padding-block: 80px;
  }
}

.title {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  margin-inline-start: 8px;
  margin-block-end: 40px;
  text-align: left;
  line-height: 1;
}

@media screen and (min-width: 400px) {
  .title {
    font-size: 48px;
  }
}

@media screen and (min-width: 800px) {
  .title {
    font-size: 64px;
  }
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contacts a,
.contacts button {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  opacity: 0.8;
  text-align: left;
  line-height: inherit;
}

@media screen and (min-width: 600px) {

  .contacts a,
  .contacts button {
    padding-block: 6px;
  }
}

@media screen and (min-width: 800px) {

  .contacts a,
  .contacts button {
    padding-block: 8px;
  }
}

.contacts a:hover,
.contacts button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-in-out;
}

.contacts a:focus,
.contacts button:focus {
  outline: 2px solid currentColor;
  outline-offset: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.contacts a>svg,
.contacts button>svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contacts a>div,
.contacts button>div {
  flex: auto;
}
