@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');

:root {
    --bgColor: hsl(0, 0%, 0%);
    --bgColor2: #000;
    --accentColor: #FFF;
    --font: 'Karla', sans-serif;
    --delay: .3s;
    --duration: .3s;
}

html, body, * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

*::-webkit-scrollbar { /* Chrome, Safari */
    width: 0;
    height: 0;
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: var(--font);
    background-color: var(--bgColor2);
    position: relative;
}

/* background & grain rules moved to background/background.css */

#main-container {
    opacity: 0;
    animation: 1s ease-out var(--delay) 1 transitionAnimation;
    animation-fill-mode: forwards;
    overflow: hidden;
}

#profilePicture {
    position: relative;
    width: 96px;
    height: 96px;
    display: block;
    margin: 40px auto 20px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

#main-heading, #main-subheading {
    color: var(--accentColor);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.25;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    margin: 0;
}

#links {
    max-width: 600px;
    width: auto;
    display: block;
    margin: 27px auto;
}

#links-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin: 0 20px 1.5rem;
}

#links-icons a {
    transition: var(--duration);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

@media (hover: hover) {
    #links-icons a:hover {
        transform: scale(1.08);
    }
}

#links-icons a:active {
    transform: scale(0.95);
}

#links-icons svg {
    width: 1.8rem; height: 1.8rem;
    fill: var(--accentColor);
    pointer-events: none;
}

.link-panel {
    position: relative;
    background-color: rgba(0, 0, 0, 0.55);
    color: var(--accentColor);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--duration);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.link-panel div {
    padding: 17px;
}

@media (hover: hover) {
    .link-panel:hover {
        backdrop-filter: blur(3px); 
        -webkit-backdrop-filter: blur(3px) ;
        filter: drop-shadow(0 0 10px var(--bgColor));
        -webkit-filter: drop-shadow(0 0 10px var(--bgColor));
        background-color: rgba(0, 0, 0, 0.4);
        transition: backdrop-filter var(--duration), -webkit-backdrop-filter var(--duration), background-color var(--duration), filter var(--duration);
    }
}

.link-panel:active {
    background-color: rgba(0, 0, 0, 0.4);
}

/*-------------------------animations-----------------------*/
@keyframes transitionAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.rubberBand {
  -webkit-animation: rubberBand 1s infinite both;
  animation: rubberBand 1s infinite both;
  }
  @-webkit-keyframes rubberBand {
  0% {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  }
  30% {
  -webkit-transform: scale3d(1.25, 0.75, 1);
  transform: scale3d(1.25, 0.75, 1);
  }
  40% {
  -webkit-transform: scale3d(0.75, 1.25, 1);
  transform: scale3d(0.75, 1.25, 1);
  }
  50% {
  -webkit-transform: scale3d(1.15, 0.85, 1);
  transform: scale3d(1.15, 0.85, 1);
  }
  65% {
  -webkit-transform: scale3d(.95, 1.05, 1);
  transform: scale3d(.95, 1.05, 1);
  }
  75% {
  -webkit-transform: scale3d(1.05, .95, 1);
  transform: scale3d(1.05, .95, 1);
  }
  100% {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  }
  }
  @keyframes rubberBand {
  0% {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  }
  30% {
  -webkit-transform: scale3d(1.25, 0.75, 1);
  transform: scale3d(1.25, 0.75, 1);
  }
  40% {
  -webkit-transform: scale3d(0.75, 1.25, 1);
  transform: scale3d(0.75, 1.25, 1);
  }
  50% {
  -webkit-transform: scale3d(1.15, 0.85, 1);
  transform: scale3d(1.15, 0.85, 1);
  }
  65% {
  -webkit-transform: scale3d(.95, 1.05, 1);
  transform: scale3d(.95, 1.05, 1);
  }
  75% {
  -webkit-transform: scale3d(1.05, .95, 1);
  transform: scale3d(1.05, .95, 1);
  }
  100% {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  }
  } 
