/* Taken from https://uiverse.io/Praashoo7/smooth-crab-52 */
.main_back {
    position: absolute;
    border-radius: 50%;
    width: 11em;
    height: 11em;
    background: url("../img/online_pfp.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: filter 0.25s;
  }
  
  .main {
    margin-top: 25vh;
    display: flex;
    flex-wrap: wrap;
    width: 14em;
    align-items: center;
    justify-content: center;
    z-index: 0;
  }
  
  .card {
    width: 60px;
    height: 60px;
    border-top-left-radius: 100%;
    background: transparent;
    transition: .4s ease-in-out, .2s background-color ease-in-out, .2s background-image ease-in-out;
    backdrop-filter: blur(0);
    border: 1px solid transparent;
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card .matrix {
    opacity: 0;
    transition: .2s ease-in-out;
    fill: #000000;
  }
  
  .card:nth-child(2) {
    border-radius: 0px;
  }
  
  .card .gitlab {
    opacity: 0;
    transition: .2s ease-in-out;
  }
  
  .card:nth-child(3) {
    border-top-right-radius: 100%;
    border-top-left-radius: 0px;
  }
  
  .card .linkedin {
    opacity: 0;
    transition: .2s ease-in-out;
  }
  .card .linkedin path {
    fill: #053e77;
  }
  
  .card:nth-child(4) {
    border-radius: 0px;
  }
  
  .card .rootme {
    opacity: 0;
    transition: .2s ease-in-out;
  }
  
  .card:nth-child(5) {
    border-radius: 0px;
  }
  
  .card .mail {
    position: absolute;
    fill: transparent;
    margin-left: 0.2em;
    margin-top: 0.2em;
    opacity: 0;
    transition: .2s ease-in-out;
  }
  
  .card:nth-child(6) {
    border-radius: 0px;
  }
  
  .card .discord {
    opacity: 0;
    transition: .2s ease-in-out;
    fill: #8c9eff;
  }
  
  .card:nth-child(7) {
    border-bottom-left-radius: 100%;
    border-top-left-radius: 0px;
  }
  
  .card .github {
    opacity: 0;
    transition: .2s ease-in-out;
    fill: black;
  }
  
  .card:nth-child(8) {
    border-radius: 0px;
  }
  
  .card .hackthebox {
    opacity: 0;
    transition: .2s ease-in-out;
    fill: #9fef00;
  }
  
  .card:nth-child(9) {
    border-bottom-right-radius: 100%;
    border-top-left-radius: 0px;
  }
  
  .card .reddit {
    opacity: 0;
    transition: .2s ease-in-out;
  }
  
  .main:hover, .main.touchfocus {
    width: 14em;
    cursor: pointer;
  }
  
  .main:hover .main_back, .main.touchfocus .main_back {
    filter: blur(10px);
  }
  
  .main:hover .card, .main.touchfocus .card {
    margin: .2em;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .main:hover .card:nth-child(5), .main.touchfocus .card:nth-child(5) {
    border: transparent;
  }
  
  .main:hover .matrix, .main.touchfocus .matrix {
    opacity: 1;
  }
  
  .main:hover .gitlab, .main.touchfocus .gitlab {
    opacity: 1;
  }
  
  .main:hover .rootme, .main.touchfocus .rootme {
    opacity: 1;
  }
  
  .main:hover .hackthebox, .main.touchfocus .hackthebox {
    opacity: 1;
  }
  
  .main:hover .mail, .main.touchfocus .mail {
    opacity: 1;
  }
  
  .main:hover .discord, .main.touchfocus .discord {
    opacity: 1;
  }
  
  .main:hover .github, .main.touchfocus .github {
    opacity: 1;
  }
  
  .main:hover .linkedin, .main.touchfocus .linkedin {
    opacity: 1;
  }
  
  .main:hover .reddit, .main.touchfocus .reddit {
    opacity: 1;
  }
  
  .card:nth-child(1):hover {
    background-color: #8c9eff;
  }
  
  .card:nth-child(1):hover .discord {
    fill: white;
  }
  
  .card:nth-child(9):hover {
    background-color: #9fef00;
  }
  
  .card:nth-child(9):hover .hackthebox {
    fill: white;
  }
  
  .card:nth-child(6):hover {
    background-color: #fc6d26;
  }
  
  .card:nth-child(6):hover .gitlab path {
    fill: white;
  }
  
  .card:nth-child(4):hover {
    background-color: black;
  }
  
  .card:nth-child(4):hover .github {
    fill: white;
  }
  
  .card:nth-child(5):hover {
    background-image: linear-gradient(#BF66FF,#6248FF,#00DDEB);
  }
  
  .card:nth-child(5):hover .mail path {
    stroke: white;
  }
  
  .card:nth-child(3):hover {
    background-color: black;
  }
  
  .card:nth-child(3):hover .matrix {
    fill: white;
  }
  
  .card:nth-child(7):hover {
    background-color: #191c22;
  }
  
  .card:nth-child(7):hover .rootme path {
    fill: #00cc00;
  }
  
  .card:nth-child(8):hover {
    background-color: #0a66c2;
  }
  
  .card:nth-child(8):hover .linkedin path {
    fill: white;
  }
  
  .card:nth-child(2):hover {
    background-color: rgb(255,69,0);
  }
  
  .card:nth-child(2) .reddit > g circle {
    fill: rgb(255,69,0);
  }
  
  .card:nth-child(2) .reddit > g path {
    fill: white;
  }