@font-face {
    font-family: 'Montserrat';
    src: url(./assets/Montserrat-VariableFont_wght.ttf);
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
*,
*:before,
*:after {
    box-sizing: inherit;
    cursor: default;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: none;
    margin: 0;
    height: 100%;
    width: 100%;
    touch-action: none;
}

body {
    margin: 0;
    min-height: 100%;
    width: 100%;
}

a {
    background-color: transparent;
    text-decoration: none;
}

img {
    border-style: none;
    display: block;
}

[hidden] {
    display: none;
}
/* END normalize.css*/

/* global config */
.main {
    background: #5987c5ff;
    overflow: hidden;
    color: #8acb88ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    max-width: 90vmin;
}

.turnscreen {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
    display: none;
    text-align: center;
    color:#8acb88ff;
    background-color: #393e41ff;
    border: 1em;
    border-radius: 1em;
    padding: 0.25em 1em 0.25em 0.5em;
    margin: 0;
}

/* greeting */

.felix-greeting {
    max-width: 40%;
    height: auto;
    width: auto;
    margin: auto;
    user-select: none;
    opacity: 0;
    -webkit-animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.5s both;
            animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.5s both;
}

.text-greeting {
    display: inline;
    user-select: none;
    opacity: 0;
    margin: 2rem 0;
    -webkit-animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.5s both, shake-horizontal 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) 3s forwards,  shake-horizontal 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) 18s forwards;
            animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.5s both, shake-horizontal 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) 3s forwards,  shake-horizontal 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) 18s forwards;          
}

/* contact card */

.contact-card {
    font-size: 2em;
    background-color: #8acb88ff;
    border: 1em;
    border-radius: 1em;
    padding: 0.25em 0.5em 0.25em 0.5em;
    margin: 1rem 0 1rem 0;
    font-weight: 700;
    word-spacing: 25%;
    font-family: 'Montserrat', sans-serif;
    color: #5987c5ff;
    text-align: center;
}

/*  LOGO */

.logo {
    fill: #8acb88ff;
    width: 15%;
    user-select: none;
    opacity: 0;
    -webkit-animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
            animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

/* PHONE IN LANDSCAPE */

@media screen and (orientation: landscape) and (max-height: 500px) {

    .wrapper {
        display: none;
    }

    .turnscreen {
        display: block;
    }
}

/* TABLET */

@media screen and (min-width: 500px) {
    .wrapper {
        max-width: 75%;
    }
    .felix-greeting {
        max-width: 30%;
    }
}

@media screen and (min-height: 500px) and (orientation: landscape) {
    .wrapper {
        max-height: 75%;
    }
    .felix-greeting {
        max-width: 20%;
    }
}

@media screen and (min-width: 1000px) {
    .wrapper {
        max-width: 60%;
    }
    .felix-greeting {
        max-width: 20%;
    }
    .links {
        max-width: 60%;
    }
    .logo {
        width: 10%;
    }
}  

@media screen and (min-width: 1500px) {
    .wrapper {
        max-width: 30%;
    }
    .mottos{
        max-width: 95%;
    }
    .links {
        max-width: 80%;
    }
    .felix-greeting {
        max-width: 30%;
    }
}

/* ANIMATIONS */

.js-loading *,
.js-loading *:before,
.js-loading *:after {
  animation-play-state: paused !important;
}

.link:hover > .link-svg > .link-bg {
    fill: #5987c5ff;
}

.link:hover > .link-svg > .link-content {
    fill: #393e41ff;
}

.contact-card:hover {
    background-color: #5987c5ff;
    color:#8acb88ff;
}

 @-webkit-keyframes slide-in-blurred-bottom {
    0% {
      -webkit-transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
              transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      -webkit-filter: blur(40px);
              filter: blur(40px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) scaleY(1) scaleX(1);
              transform: translateY(0) scaleY(1) scaleX(1);
      -webkit-transform-origin: 50% 50%;
              transform-origin: 50% 50%;
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-blurred-bottom {
    0% {
      -webkit-transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
              transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
      -webkit-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      -webkit-filter: blur(40px);
              filter: blur(40px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) scaleY(1) scaleX(1);
              transform: translateY(0) scaleY(1) scaleX(1);
      -webkit-transform-origin: 50% 50%;
              transform-origin: 50% 50%;
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }

@-webkit-keyframes shake-horizontal {
    0%,
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70% {
      -webkit-transform: translateX(-10px);
              transform: translateX(-10px);
    }
    20%,
    40%,
    60% {
      -webkit-transform: translateX(10px);
              transform: translateX(10px);
    }
    80% {
      -webkit-transform: translateX(8px);
              transform: translateX(8px);
    }
    90% {
      -webkit-transform: translateX(-8px);
              transform: translateX(-8px);
    }
  }
  @keyframes shake-horizontal {
    0%,
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70% {
      -webkit-transform: translateX(-10px);
              transform: translateX(-10px);
    }
    20%,
    40%,
    60% {
      -webkit-transform: translateX(10px);
              transform: translateX(10px);
    }
    80% {
      -webkit-transform: translateX(8px);
              transform: translateX(8px);
    }
    90% {
      -webkit-transform: translateX(-8px);
              transform: translateX(-8px);
    }
  }
  
  