:root {
    --background-color:#121212;
    --other-background-color:#191919;
    --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;
    height: calc(100vh - 4em);
}

#profile {
    width: 100%;
    height: 100%;
    background-color: var(--other-background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

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

.card {
    margin-top: 5em;
    min-width: 80%;
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.999s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: calc(100% - 4em);
    height: 10em;
    padding: 3em;
    border-radius: 1em;
    backface-visibility: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

.card-front {
    background-color: var(--other-background-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: rotateY(0deg);
}

.card-back {
    background-color: var(--other-background-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: rotateY(180deg);
    overflow: auto;
}

.card-back h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1em;
}

.linkBar {
    display: flex;
    flex-direction: row;
    align-content: space-around;
}

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