@import url(https://fonts.googleapis.com/css?family=Roboto:300,100);

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  text-align: center;
  color: rgba(205, 205, 205);
  background-color: rgba(13, 17, 23, 1);
}

a {
  text-decoration: none;
  color: rgba(205, 205, 205);
}

#body-container {
  min-width: 200px;
  min-height: 200px;
  max-width: 600px;
  height: 90%;
  width: 80%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;  
  margin: auto;
}

@media only screen and (min-height: 500px) and (min-width: 500px) {
  #body-container {
    height: 70%;
  }
}

#page-container {
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 5%;
  padding-bottom: 10%;
}

#heading-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#name {
  font-size: 2rem;
  width: 100%;
}

#title {
  font-size: 1.2rem;
  width: 100%;
}

#content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10%;
  gap: 2rem;
}

#photo-container {
  width: 30%;
  min-width: 200px;
  min-height: 200px;
  max-width: 300px;
  max-height: 300px;
  display: flex;
}

#photo {
  width: 100%;
  border: 2px solid rgba(205, 205, 205);
  border-radius: 50%;
  align-self: center;
}

#links-container {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 2rem;
  width: 125px;
}

.link-container {
  width: 100%;
}

.link {
  font-size: 1.2rem;
}

#links-container a {
  width: 100%;
}

#links-container .link-container {
  position: relative;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  overflow: hidden;
}

@media (hover: hover) {
  #links-container .link-container:before {
    box-sizing: border-box;
    transform: translateX(100%);
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
  }

  #links-container .link-container:after {
    box-sizing: border-box;
    transform: translateX(-100%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
  }

  #links-container .link-container:hover:before {
    transition: .1s transform linear, .1s height linear .1s;
    transform: translateX(0);
    height: 100%;
    border-color: rgba(205, 205, 205);
  }

  #links-container .link-container:hover:after {
    transition: .1s transform linear .2s, .1s height linear .3s;
    transform: translateX(0);
    height: 100%;
    border-color: rgba(205, 205, 205);
  }
}

#animation-container {
  position: relative;
}

#animation-top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: rgba(205, 205, 205);
  animation: border-top 20s linear 0s infinite;
}

#animation-right {
  position: absolute;
  right: 0;
  width: 2px;
  height: 100%;
  content: '';
  background: rgba(205, 205, 205);
  animation: border-right 20s linear 0s infinite;
}

#animation-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: rgba(205, 205, 205);
  animation: border-bottom 20s linear 0s infinite;
}

#animation-left {
  position: absolute;
  left: 0;
  width: 2px;
  height: 100%;
  content: '';
  background: rgba(205, 205, 205);
  animation: border-left 20s linear 0s infinite;
}

@keyframes border-top {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  50.1% {
    transform: scaleX(1);
    transform-origin: right;
  }
  
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes border-right {
  0% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  50% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  
  50.1% {
    transform: scaleY(0);
    transform-origin: top;
  }
  
  100% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes border-bottom {
  0% {
    transform: scaleX(0);
    transform-origin: right;
  }

  50% {
    transform: scaleX(1);
    transform-origin: right;
  }
  
  50.1% {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  100% {
    transform: scaleX(0);
    transform-origin: left;
  }
}

@keyframes border-left {
  0% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50% {
    transform: scaleY(0);
    transform-origin: top;
  }
  
  50.1% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}
