@import url('./colors.css');

html {
    scroll-behavior: smooth;
}

body {
    min-height: 60em;
    max-width: 70em;
    width: auto;
    margin: auto;
    padding: 0.5em;
    position: relative;
    color: var(--first-color);
    background-color: var(--fifth-color);
    text-align: center;
}

/* Navigation */

.navigation {
    position: relative;
    margin: 0;
    text-align: center;
    display: flexbox;
    height: 3em;
    vertical-align: middle;
    padding: auto;
}

.navigation > a.wolf {
    text-decoration: none;
    float: left;
    margin: 0.5em;
    padding: auto;
    text-align: center;
    cursor: pointer;
    font-size: 1.5em;
}

.navigation > nav > .navbutton {
    color: var(--first-color);
    text-decoration: none;
    float: right;
    margin: 1em;
    padding: auto;
    text-align: center;
}


/* Profile */

#profile {
    width: auto;
    position: relative;
    /* border: 1px solid black; */
    border-radius: 10px;
    margin: 0.5em;
}

#profile > .background {
    height: 12.5em;
    width: auto;
    display: block;
    background-image: url('./../pictures/background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    border-radius: 10px;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    z-index: -1;
}

#profile > .content {
    margin: auto;
    margin-top: -3.75em;
    width: 100%;
    z-index: 1;
}

#profile > .content > #pfp {
    margin-top: 1em;
    transition: opacity 1s, margin 0.5s;
    opacity: 0;
    position: sticky;
    background: black;
    height: 7.5em;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 2em white;
    z-index: 2;
}

#profile > .content > #name {
    color: red;
    font-size: 1.5em;
    font-family: 'Times New Roman', Times, serif;
    border-right: 3px solid var(--sixth-color);
    margin: 0.75em auto;
    width: fit-content;
    animation: blink 750ms steps(50,end) infinite;
}

#profile > .content .cursor {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 0.5em;
    border-bottom: 2px solid var(--sixth-color);
    animation: blink 600ms steps(50,end) infinite;
}

/* Content */

.page-title {
    padding: 2.5em 0;
}

.textColorRotate:hover {
    background-image: linear-gradient(to right, white, cyan, white);
    background-size: 300%;
    background-repeat: repeat-x;
    animation: colorRotateHC 3s linear 0s infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body > hr {
    width: 90%;
    border-style: groove;
    opacity: 0.7;
}

* a {
    transition: 150ms ease-in-out;
}
* a:hover {
    transform: translateY(-5px);
}
* a:active {
    transform: skewX(2.5deg);
}

#content {
    margin: auto 1em;
}

#content > ul > hr {
    min-width: 15em;
    width: 40%;
    margin: 1.5em auto;
}

#content a {
    text-decoration: underline;
}

#content a:hover {
    color: var(--second-color);
}

#content.two {
    text-align: justify;
}

#content.projects > h3 {
    transition: 150ms ease-in-out;
    width: fit-content;
}
#content.projects > h3 a {
    text-decoration: none;
    color: var(--first-color);
    padding: 0.5em;
}
#content.projects > h3:hover {
    transform: translateY(-5px);
}

#content.projects > h3:active {
    transform: skewX(2.5deg);
}

#content.projects > hr {
    width: 15em;
    margin: 1.5em auto;
}

#content.contact > ul > br {
    display: block;
    margin-bottom: 1.5em;
}

#content.contact > ul > li {
    margin: auto 1em;
}

#content.contact > ul > li a {
    text-decoration: none;
}

#content.contact > ul > li {
    transition: ease-in-out 150ms;
}

#content.contact > ul > li:hover {
    transform: translateY(-5px);
}

#content.contact > ul > li:active {
    transform: skewX(2.5deg);
}

#content.contact > ul > li a p {
    color: var(--first-color);
    inline-size: max-content;
    display: inline;
    vertical-align: middle;
    margin-left: 0.5em;
}

#content.contact > ul > li > a > img {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    display: inline;
}

#content ul, #content dl {
    list-style-type: '➦ ';
}

#content ul > li, #content dl > li {
    padding-top: 0.5em;
}
#content > ul > li > a > img {
    height: 1.5em;
    width: auto;
}
#content > ul > li > a {
    vertical-align: middle;
}

#content.skills {
    margin: auto 1em;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    height: fit-content;
    justify-content: center;
}

#content.skills > h2 {
    float: none;
    padding-bottom: 3em;
    margin: auto 20%;
    width: 80%;
}

#content.skills > .category {
    width: 100%;
    float: left;
}

#content.skills > hr {
    width: 70%;
    margin-bottom: 2em;
}

#content.skills > div {
    margin: auto;
    padding-bottom: 3em;
    text-align: center;
    min-width: 20em;
}

#content.skills > div > .skill {
    margin: auto;
    justify-content: center;
    width: 90%;
    height: 1.5em;
    border-radius: 5px 10px;
    background-color: var(--third-color);
}
#content.skills > div > .skill > div {
    height: 100%;
    margin: 0;
    border-radius: 5px 10px;
}

.colorRotate {
    background-size: 300%;
    background-repeat: repeat-x;
    animation: colorRotateHC 3s linear 0s infinite;
}

#gototop {
    background-color: transparent;
    border: none;
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 0.5em;
    z-index: 99;
    transition: all 0.5s linear;
}
#gototop:hover {
    cursor: pointer;
}

/* Animations */

@keyframes blink {
    from{border-color: var(--sixth-color)}
    to{border-color: transparent;}
}

@keyframes colorRotateHC {
    0%{background-position:0% 51%}
    50%{background-position:150% 100%}
    100%{background-position:300% 0%}
}