@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap');
* {
    box-sizing: border-box;
    margin:0px;
    padding:0px;
}

body {
    background-color: black;
    min-height: 100vh;
}

::-webkit-scrollbar {
    display: none;
}

video {
    object-fit: cover;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: -1;
    animation: fadeIn 6s ease;
}

nav {
    display: flex;
    align-items: center;
    background-color: #0000005e;
    height: 45px;
    width: 100%;
}

nav #right {
    display: flex;
    align-items: center;
    height: inherit;
    position: absolute;
    right: 0
}

.item, p {
    font-family: 'Nunito', sans-serif;
}

.item {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    color: aliceblue;
    width: fit-content;
    height: 100%;

    cursor: pointer;
    user-select: none;
}

.click, .item > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 0 20px;
    height: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .click:hover, .item a:hover {
        background-color: #0e0e0e;
    }

    .dropdown div:hover {
        background-color: #1b1b1bc5;
    }
}

.dropdown {
    display: none;
    position: absolute;
    width: 100%;
    height: fit-content;
    top: 45px;
    text-align: center;
    background-color: #000000c5;
    z-index: 2;
}

a {
    text-decoration: none;
    color: aliceblue;
}

.dropdown div {
    padding: 5px 0 5px 0;
}

.dropdown div a {
    width: 100%;
    height: 100%;
}

.title {
    position: relative;
    height: 200px;
    width: 100%;
    margin: 10px auto 0 auto;

    text-align: center;
    animation: floatUp 2s ease, fadeIn 2s ease;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    animation: wobble 4s ease 2s infinite;
}

.header p {
    color: #cfcfcf;
    flex-basis: 100%;
    font-weight: 600;
}

img {
    border-radius: 50%;
    margin-right: 10px;
    width: 35px;
    height: 35px;
}

img#me {
    width: 100px;
    height: 100px;
}

h1 {
    font-family: 'Shadows Into Light', cursive;
    color: #00000000;
    -webkit-text-stroke: 1px black;
    font-size: 120px;
    max-height: 157px;

    user-select: none;
}

.content {
    width: 450px;
    padding: 15px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 4s ease;
    color: #b883d1;
    background-color: #000000e8;
    border-radius: 25px;
}

#birthday {
    color: #5865F2;
}

/* --- Special cases --- */

#projects {
    justify-content: left;
    width: 132px;
}
#projects .dropdown div {
    text-align: left;
    padding-left: 10px;
}

#music {
    width: 120px;
}

#websites {
    width: 176px
}

#friends {
    width: 115px;
}


/* --- I n t e r e s t i n g Text --- */

#Phoenix {
    background-image: -webkit-linear-gradient(0deg, #ff2a2a, #eb7200); 
    color: transparent; -webkit-background-clip: text; 
    background-clip: text;
}
#Phoenix:hover {
    background-image: -webkit-linear-gradient(0deg, #ff2a2a, #9b1700);
}

#discord {
    color: #5865F2;
}

#steam {
    color: #1d3994
}

#instagram {
    background-image: -webkit-linear-gradient(0deg, #FECD67, #A733B4);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

#soundcloud {
    color: #db4112
}

#spotify {
    color: #1DB954
}

#you {
    color: #CFCBC4
}
#tube {
    color: #FF1A1A
}

#corona {
    color: #1d9969
}
#news {
    color: #116944
}

#annoyHiraeth {
  background: linear-gradient(270deg, #8a5fff, #ff5cb8, #8a5fff);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite; /* runs forever */
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* --- Media Queries --- */

@media only screen and (max-width: 746px) {
    nav {
        flex-direction: column;
        height: fit-content;

        font-size: 20px;
    }

    nav .click, .item > a {
        padding: 10px;
    }
    
    #projects {
        justify-content: center;
    }

    #projects .dropdown div {
        text-align: center;
        padding: 5px 0 5px 0
    }

    .item {
        flex-direction: column;
        width: 100% !important;
    }

    .click {
        width: 100% !important;
    }

    .dropdown {
        top: 0;
        width: 100%;
        position: relative;
    }

    .header p {
        color: #000000;
    }
}

@media only screen and (max-width: 475px) {
    h1 {
        font-size: 93px;
        -webkit-text-stroke: 1px black;
    }

    .content {
        width: 100%;
        border-radius: 0;
    }
}

@media only screen and (max-width: 356px) {
    h1 {
        font-size: 70px;
    }
}


/* --- Keyframes --- */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}

@keyframes floatUp {
    0% {
        margin-top: 120px;
    }
    100% {
        margin-top: 10px;
    }
}

@keyframes wobble {
    0% {
        padding-top: 0;
    }
    50% {
        padding-top: 10px;
    }
    100% {
        padding-top: 0;
    }
}


.header h1::after {
    content: '';
    position: absolute;
    transform: rotate(45deg);
    top: 42%;
    width: 50px;
    height: 50px;
    background-color: #000000be;
    animation: rotate 2s infinite cubic-bezier(0.39, -0.31, 0.42, 1.14);
}

@keyframes rotate {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(405deg);
    }
}