.links {
  margin-bottom: 0;
}

body {
  overflow: hidden;
}

h1 {
  text-align: center;
  font-size: 4em;
}

.bg_line {
  display: none;
}

#contact {
  clear: both;
}

#contact img {
  width: 30%;
  display: block;
  margin: 0 auto;
}

#contact p {
  text-align: center;
}

.sc_icons,
.email {
  margin-top: 1em;
}

.sc_icons {
  display: grid;
  grid-template-columns: repeat(3, min-content);
  justify-content: center;
  grid-gap: 1.5em;
  cursor: pointer;
}

.sc_icons svg {
  width: 45px;
}

#contact_line1r {
  display: none;
}

#contact_line1 {
  width: 50%;
  display: block;
  margin: 2em auto;
}

.email {
  display: grid;
  grid-template-columns: repeat(2, min-content);
  grid-gap: 1.5em;
  justify-content: center;
  align-self: center;
  height: fit-content;
}

.email svg {
  width: 30px;
}

.email p {
  margin: 0;
}

.cv {
  display: block;
  margin: 0 auto;
  width: fit-content;
  margin-top: 1.5em;
  box-shadow: inset 0 -10px 0 0 var(--pink);
  transition: all 0.5s;
}

.cv:hover {
  box-shadow: inset 0 -30px 0 0 var(--pink);
}

.cv a {
  text-decoration: none;
  color: var(--black);
}

#contact_bubble {
  width: 120px;
  display: block;
  margin: 2em auto 0;
  cursor: pointer;
}

#contact_bubble2 {
  display: none;
}

.bg_bubble {
  opacity: 0;
}

.bg_bubble,
.bg_bubble2,
.bubble_text,
.bubble_text2 {
  transition: all 0.5s;
}

#contact_line2 {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: 1.5s linear 0.5s forwards drawLine;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
  .bg_line {
    display: block;
    position: absolute;
    width: 1000px;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }

  #contact_line3 {
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
    animation: 8s linear 0.5s forwards drawLine;
  }

  #contact {
    display: grid;
    grid-template-columns: min-content 40px min-content 0;
    grid-gap: 1em 1.5em;
    justify-content: center;
    padding-top: 7em;
  }

  #contact img {
    width: 50%;
    align-self: end;
    margin-bottom: -2em;
  }

  #contact h1 {
    grid-column: 1 / 2;
    height: fit-content;
    align-self: center;
  }

  .sc_icons {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: left;
    height: fit-content;
    align-self: end;
  }

  #contact h1,
  .sc_icons,
  .email {
    margin: 0;
  }

  .cv {
    margin: 0;
    grid-column: 3 / 4;
    height: fit-content;
  }

  #contact_line1r {
    display: block;
    width: 40px;
    grid-row: 1 / 4;
    grid-column: 2 / 3;
    justify-self: center;
  }

  #contact_line1,
  #contact_line2,
  #contact_bubble {
    display: none;
  }

  #contact_bubble2 {
    display: block;
    width: 120px;
    cursor: pointer;
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    transform: translate(-70px, -5px);
  }

  .bg_bubble2 {
    opacity: 0;
  }
}

@media (min-width: 1200px) {
  #contact {
    transform: scale(1.2);
  }
}
