/* SETUP */

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Bold.woff2') format('woff2'),
        url('../font/Roboto-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Light.woff2') format('woff2'),
        url('../font/Roboto-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Medium.woff2') format('woff2'),
        url('../font/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Regular.woff2') format('woff2'),
        url('../font/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Thin.woff2') format('woff2'),
        url('../font/Roboto-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* GENERAL SETUP */

body {
    margin: 0 auto;
    padding: 0 10%;
    font-family: 'Roboto';
} 

h1, h2 {
    font-weight: 300;
}

a, a:visited {
    text-decoration: none;
    color: inherit;
}

/* NAV */

nav {
    display: flex;
    justify-content: space-between;
}

nav, main{
    width: 100%;
}

#nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    height: 150px;
    margin: 0;
}

.nav-text {
    position: relative;
    transition: 0.1s ease;
}

.nav-item:hover .nav-text {
    transition: 0.1s ease;
    animation: tweakText 2s infinite;
}

.nav-fade {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-item.playing .fade-a{
    animation: fadeTextA 1s ease-out forwards;
}

.nav-item.playing .fade-b{
    animation: fadeTextB 1s ease-out 0.15s forwards;
}

/* NAV ANIMATIONS */

@keyframes tweakText {
    0% {
        transform: translate(0.5px,0.5px);
        filter: blur(0px);
    }
    5% {
        transform: translate(-0.5px,0.5px);
        filter: blur(0px);
    }
    10% {
        transform: translate(0px,-0.5px);
        filter: blur(0px);
    }
    15% {
        transform: translate(-0.5px,0.5px);
        filter: blur(0px);
    }
    20% {
        transform: translate(0.5px,0px);
        filter: blur(0px);
    }
    25% {
        transform: translate(0px,0.5px);
        filter: blur(0px);
    }
    30% {
        transform: translate(0px,-0.5px);
        filter: blur(0px);
    }
    35% {
        transform: translate(-0.5px,0px);
        filter: blur(0px);
    }
    40% {
        transform: translate(0.5px,0px);
        filter: blur(2px);
    }
    45% {
        transform: translate(0px,0.5px);
        filter: blur(0px);
    }
    50% {
        transform: translate(-0.5px,-0.5px);
        filter: blur(0px);
    }
    55% {
        transform: translate(0.5px,0px);
        filter: blur(0px);
    }
    60% {
        transform: translate(0px,0.5px);
        filter: blur(0px);
    }
    65% {
        transform: translate(0px,-0.5px);
        filter: blur(0px);
    }
    70% {
        transform: translate(-0.5px,0px);
        filter: blur(2px);
    }
    75% {
        transform: translate(0.5px,0.5px);
        filter: blur(0px);
    }
    80% {
        transform: translate(0.5px,0.5px);
        filter: blur(4px);
    }
    85% {
        transform: translate(0px,0.5px);
        filter: blur(0px);
    }
    90% {
        transform: translate(-0.5px,-0px);
        filter: blur(0px);
    }
    95% {
        transform: translate(0.5px,0px);
        filter: blur(0px);
    }
    100% {
        transform: translate(0.5px,0.5px);
        filter: blur(0px);
    }
}

@keyframes fadeTextA {
    0% {
        opacity: 0.2;
        transform: translate(0,0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translate(40px,40px) scale(1.5);
        filter: blur(10px);
    }
}

@keyframes fadeTextB {
    0% {
        opacity: 0.2;
        transform: translate(0,0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translate(-40px,-40px) scale(1.5);
        filter: blur(10px);
    }
}

/* MAIN */

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-shrink: 0;
}

#header {
    display: flex;
    gap: 40px;
    align-items: center; 
}

#title {
    font-size: 6em;
    font-weight: 300;
    margin: 16px 0px;
    animation: tweakText 3s infinite;
}

#fuzzy {
    width: 320px;
    height: auto;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.5em;
    font-weight: 300;
}

a.subtitle {
  transition: 0.2s;
  margin-top: 24px;
  color: #42B6FF;
}

a.subtitle:hover {
  transition: 0.2s;
  color: #85D0FF; 
}

#social-icons {
    display: flex;
    flex-direction: row;
    width: 300px;
    justify-content: space-between;
    align-items: center;
}

.social-link {
    width: 50px;
    height: 50px;
}

#insta, #spotify, #apple {
    width: 40px;
    height: 40px;
}

#footer {
    margin-top:64px;
    font-size: 1em;
}

@media (max-width: 1024px) {
    #title {
        font-size: 4em;
    }
    #subtitle {
        font-size: 1em;
    }
    #header {
        flex-direction: column;
        gap: 0px;
    }
}