:root {
    --background-color:#121212;
    --other-background-color:#191919;
    --other-more-different-background-color: #252525;
    --main-color:rgb(176, 92, 255);
    --hover-color:rgb(161, 60, 255);
}

* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

#container {
    background-color: var(--background-color);
    max-width: 100vw;
    min-height: 100vh
}

a {
    text-decoration: unset;
}

h1 {
    padding-top: 2em;
}

#checkbox {
    display: none;
}

.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .5s;
}

.bars {
    width: 100%;
    height: 4px;
    background-color: var(--main-color);
    border-radius: 4px;
}

#bar2 {
    transition-duration: .8s;
}

#bar1,#bar3 {
    width: 70%;
}

#checkbox:checked + .toggle .bars {
    position: absolute;
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s;
}

#checkbox:checked + .toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}

#checkbox:checked + .toggle {
    transition-duration: .5s;
    transform: rotate(180deg);
}

.navBar {
    display: flex;
    flex-direction: column;
    padding: 2em;
    position: fixed;
    width: calc(100% - 4em);
    z-index: 100;
    background-color: transparent;
}

.navBarBackground {
    background-color:var(--other-background-color);
    border-radius: 0 0 1em 1em;
}

.navBarText {
    color: var(--main-color);
    margin-top: 1em;
    font-weight: 1000;
}

.navBarText:hover {
    cursor: pointer;
    user-select: none;
    color:var(--hover-color)
}

.hidden {
    display: none;
}

#mainBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    padding-top: 2em;
}

#profile {
    width: 100%;
    height: 100%;
    background-color: var(--other-background-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    border-radius: inherit;
}

.card:hover #profile {
    height: 20%;
    flex-direction: row;
    /* margin-top: 1em; */
    animation: moveProfile 0.5s forwards;
}

.card:hover #profile #profilePic {
    width: 90px;
    animation: resizeProfilePic 0.5s forwards;
}

.details {
    display: flex;
    flex-direction: column;
    width: 175px;
}

#infoBox {
    width: 90%;
    height: 60%;
    /* font-size: 24px; */
    background-color: var(--other-more-different-background-color);
    flex-direction: column;
    justify-content: flex-start;
    border-radius: inherit;
    position: relative;
    padding: 5%;
    transform: translateY(120%);
}

.linkBox {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    display: flex;
}

.infoItem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.infoItem img {
    width: 25px;
}

.card:hover #infoBox {
    display: flex;
    animation: slideInFromBottom 0.5s forwards;
}

.card:hover::before #infoBox {
    animation-direction: reverse;
}

#profilePic {
    padding: 1em;
    width: 150px;
    border-radius:100%;
}

.card {
    margin-top: 5em;
    width: 300px;
    height: 400px;
    background-color: var(--other-background-color);
    border-radius: 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

@media only screen and (min-width: 375px) {
    .navBar {
        width: max-content;
        border-radius: 0 0 1em 0;
    }
    .card {
        min-width: 300px;
    }
}

@keyframes slideInFromBottom {
    0% { transform: translateY(120%); }
    100% { transform: translateY(0); }
}

@keyframes moveProfile {
    0% { height: 100%; }
    100% {height: 20%; }
}

@keyframes resizeProfilePic {
    0% { width: 150px; }
    100% {width: 90px; }
}