@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

* {
    box-sizing: border-box;
}
body {
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.5em;
    color: #fff;
    background: #34174F;
    margin: 40px;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-transform: uppercase;
    gap: 20px;
    margin: 0 0 40px 0;
}
nav {
    display: flex;
    gap: 30px;
}
nav a {
    color: #fff;
    text-decoration: none;
}
nav a.active,
nav a:hover {
    color: #F9C80E;
}
main {
    max-width: 1200px;
    margin: 0 auto;
}
h1 {
    font-size: 2em;
    line-height: 1.25em;
    font-weight: 800;
    color: #F9C80E;
    margin: 0 0 .75em 0;
}
span.special,
main a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid #F9C80E;
}
span.special:hover,
main a:hover {
    color: #F9C80E;
}
.clippy {
    width: 300px;
    height: 300px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: url('clippy.gif') no-repeat center center;
    background-size: contain;
    z-index: 999;
    display: none;
    pointer-events: none;
}
p {
    margin: 0 0 1.5em 0;
}
.name {
    font-size: 1.5em;
    overflow: hidden;
    cursor: default;
}
.family {
    font-weight: 800;
    position: relative;
    padding-right: 11px;
    margin-right: 8px;
    background: #34174F;
    z-index: 2;
}
.family:after {
    content: ' ';
    display: block;
    width: 3px;
    height: 100%;
    background: #F9C80E;
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(16deg);
    transition: all .5s ease;
}
.name:hover .family:after {
    transform: rotate(376deg); /* 16 + 360 */
}
.surname {
    font-weight: 300;
    letter-spacing: -1px;
    display: inline-block;
    transform: translateX(-200%);
    animation: slideIn 1s ease forwards;
}
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.tooltip-box {
    font-size: .85em;
    line-height: 1.5em;
    max-width: 300px;
    position: fixed;
    background: #000;
    color: #fff;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 9999;
    pointer-events: none;
    border-radius: 3px;
}

.word-rotator {
    height: 1.25em;
    line-height: 1.25em;
    overflow: hidden;
    display: block;
    color: #fff;
}
.word-rotator span {
    height: 1.25em;
    line-height: 1.25em;
    display: block;
    animation: slideWords 10s;
}
@keyframes slideWords {
  0%, 20%   { transform: translateY(0%); }
  25%, 45%  { transform: translateY(-100%); }
  50%, 70%  { transform: translateY(-200%); }
  75%, 95%  { transform: translateY(-300%); }
  100%      { transform: translateY(0%); }
}

form {
    margin: 0;
}
input, textarea, button {
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    outline: none;
}

.contact {
    max-width: 800px;
}
.contact input {
    width: 100%;
    color: #fff;
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, .2);
    border-top: none;
    border-left: none;
    border-right: none;
    margin: 0 0 15px 0;
    padding: 10px;
}
.contact input::placeholder {
    color: rgba(255, 255, 255, .5);
}
.contact textarea {
    width: 100%;
    line-height: 30px;
    color: #111;
    background: transparent;
    border: none;
    padding: 0 20px;
    resize: none;
    display: block;
}
.contact textarea::placeholder {
    color: #111;
}

.contact button {
    font-weight: 800;
    text-transform: uppercase;
    color: #34174F;
    background: #43BCCD;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    cursor: pointer;
}
.contact button:hover {
    background: #F9C80E;
}

.letter {
    overflow: hidden;
    position: relative;
    background: linear-gradient(#fff, #fff 29px, #43BCCD 29px);
    background-size: 30px 30px;
    padding-left: 35px;
    margin: 20px 0 25px 0;
    border-radius: 3px;
}
.letter:before {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 35px;
    background: radial-gradient(#34174F 6px, transparent 7px) repeat-y;
    background-position: left top;
    background-size: 30px 30px;
    border-right: 2px solid #EA3546;
}

.form-bottom {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}
.result {
    color: #F9C80E;
    font-weight: 800;
}
.nothingToSeeHere {
    display: none;
}

@media only screen and (max-width: 600px) {
    body {
        margin: 20px !important;
    }
    h1 {
        font-size: 1.5em !important;
    }
}

.projects,
.projects li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.projects a {
    font-size: 1.25em;
    line-height: 1.5em;
    border-bottom: 1px dotted rgba(255, 255, 255, .2);
    padding: 10px;
    display: block;
    transition: padding-left .3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.projects a:hover {
    color: #43BCCD;
    padding-left: 15px;
}
.projects li:last-child a {
    border-bottom: none;
}
.projects span {
    font-size: .85em;
    color: rgba(255, 255, 255, .5);
}

.content ol,
.content ul {
    margin: 0 0 1.5em 0;
}
.content ul li {
    list-style: disc outside;
}
.content ol li {
    list-style: decimal outside;
}

.content code {
    border-radius: 3px;
}

.about-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.about-text {
    flex: 1 1 500px;
}
.about-sidebar {
    flex: 0 0 200px;
}
.about-photo {
    max-width: 200px;
    margin-bottom: 20px;
}
.social-links {
    margin: 0;
    padding: 0;
}
.social-links li {
    list-style: none;
    margin: 0 0 10px 0;
}
.social-links a {
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-links img {
    width: 20px;
    height: auto;
}