
:root {
  --bg: #F6F8FC;
  --primary: #caa45f;
  --primary-dark: #caa45f;
  --secondary: #705CFF60;
  --h2-color: #5B5D72;
  --white: #FFFFFF;
}

*::selection {
  background: var(--primary);
  color: var(--white);
}


.buttons {
    display: grid;
    margin: 0 auto;
    grid-template-columns: 6.5rem 6.5rem;
    grid-template-rows: 8rem 8rem 8rem;
    column-gap: 5rem;
    align-items: center;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 4.5rem;
}

h1 {
  color: var(--h2-color);
  margin-top: 0;
  margin-bottom: 0.125rem;
}

.emph {
  color: #caa45f;
}

.code-comments {
  white-space: nowrap;
  color: var(--h2-color);
  font-weight: 500;
  font-size: 1.25rem;
}

.cta-text {
  color: var(--h2-color);
  font-weight: 500;
  font-size: 0.75rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
}

.profile {
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
}

.profile-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.modern-frontend-developer {
  max-width: 12rem; 
}

.learning-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #caa45f;
}

.learning-link img {
  width: 2rem;
  height: 2rem;
}


/* fourth button */
.btn-4 {
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  background: #D9D4B9;
  color: #1d1b1b;
  border-radius: 5rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  padding-left: 20px;
  min-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

.button__icon-wrapper {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  color: #000;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.btn-4:hover {
  background: var(--primary);
}

.btn-4:hover .button__icon-wrapper {
  color: var(--primary)
}

.button__icon-svg--copy {
  position: absolute;
  fill: #000;
  transform: translate(-150%, 150%);
}

.btn-4:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.btn-4:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}


@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}
