* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --primary-color: white;
    --secondary-color: black;
    --nav-color: #898b8d;
    --nav-color-hover: #3a4150;
    --text-color: #bbbbbb;
}

body{
    color: var(--secondary-color);
    font-family: sans-serif;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

a{
    text-decoration: none;
    color: inherit;
}

nav a:first-child{
    display: flex;
    align-items: center;
}

nav a:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: center;
}

button{
    border: none;
    background: none;
}

nav{
    display: grid;
    grid-template-columns: max-content auto max-content;
    gap: 24px;
    width: 100%;
    padding: 32px;
    font-weight: bold;
}

svg{
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    fill: none;
    stroke: var(--nav-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
}

svg:hover{
    transition: .3s;
    stroke: var(--nav-color-hover);
}

.spacer{
    width: 100%;
}

.nav-items{
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--nav-color);
    cursor: pointer;
}

nav a:hover{
    transition: .3s;
    color: var(--nav-color-hover);
}

.container{
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 32px;
    padding-top: 32px;
}

.content{
    display: flex;
    flex-direction: column;
    max-width: 55%;
    min-width: 55%;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 32px;
}

h1, p{
    width: fit-content;
}

p{
    color: var(--text-color);
    line-height: 1.5;
}

p a{
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
}

p a:hover{
    text-decoration: underline;
}

span{
    font-weight: bold;
    color: var(--secondary-color);
}

.row{
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 32px;
}

.inf{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    flex: 1 1 calc(50% - 16px);
    padding-right: 4rem;
}

.inf p{
    font-weight: bold;
}

.inf svg{
    stroke: var(--text-color);
    cursor: default;
}

.progress-bar{
    width: 7rem;
    min-width: 7rem;
    height: 14px;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
}
#html{
    background-color: #cc5d3c;
}
#css{
    background-image: linear-gradient(to right, #4655dc 90%, var(--secondary-color) 90%);
}
#js{
    background-image: linear-gradient(to right, #f0d858 75%, var(--secondary-color) 75%);
}
#php{
    background-image: linear-gradient(to right, #7e80b2 50%, var(--secondary-color) 50%);
}

.infplus{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.infplus img{
    width: fit-content;
    height: fit-content;
}

.tooltip{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 8.5rem;
    height: 6rem;
    background-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    z-index: 1;
    opacity: 0;
    overflow: hidden;
}

.tooltip img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#up{
    position: fixed;
    bottom: 32px;
    right: 32px;
    cursor: pointer;
}

#up:hover{
    transform: scale(1.1);
}

@media screen and (max-width: 1200px){
    .content{
        max-width: 70%;
        min-width: 70%;
    }

    .inf{
        flex: 100%;
        padding-right: 0;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 700px){
    .content{
        max-width: 85%;
        min-width: 85%;
    }
}

@media screen and (max-width: 500px){
    .content{
        max-width: 90%;
        min-width: 90%;
    }

    .nav-items a:first-child, .nav-items a:nth-child(2){
        display: none;
    }
}