:root {
    --bg: #373F51;
    --text: #D8DBE2;
    --highlight-text: #58A4B0;
    --std: all 200ms ease-in-out;
}
#body-home,
#body-cv,
#body-projects {
    transition: var(--std);
    background-color: var(--bg);
    color: var(--text);
    margin-left: 4rem;
    margin-right: 4rem;
}
#body-home {
    height: 100vh;
    display: grid;
    grid-template-rows: 8rem 1fr;
}
a {
    text-decoration: none;
}
nav {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg);
    font-size: 2.4rem;
}
#logo {
    font-family: 'Whisper';
    font-size: 3.6rem;
    color: var(--highlight-text);
}
.num {
    color: var(--highlight-text);
}
#cv {
    width: 6rem;
    color: var(--highlight-text);
    border: 2px solid var(--highlight-text);
    border-radius: 6px;
    height: 3.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--std);
}
#cv:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
#home-content {
    position: relative;
}
#intro-wrapper {
    color: black;
    background-color: var(--text);
    box-shadow: -1px 4px 16px rgba(0, 0, 0, 0.45);
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72rem;
    border-radius: 1rem;
    padding: 2.2rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
}
#intro {
    color: var(--highlight-text);
    font-size: 2.4rem;
    margin: 0;
}
#intro-wrapper > #name {
    font-size: 9.6rem;
    margin: 0;
}
#statement {
    font-size: 5rem;
    opacity: 75%;
    margin: 0;
}
#bio {
    font-size: 2.4rem;
    opacity: 75%;
    margin: 0;
}
#cv-content {
    margin-top: 4rem;
    width: 100%;
    display: grid;
    grid-template-columns: 30rem 1fr 30rem;
    grid-template-rows: 20rem 20rem 72rem 1fr 1fr;
    gap: 5rem;
    font-size: 2rem;
    line-height: 2;
}
#cv-header {
    width: 100%;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    line-height: normal;
}
#info > #name {
    font-size: 3.2rem;
    font-weight: bold;
}
#info > p:not(:first-child) {
    font-size: 2rem;
}
#contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}
#email-links {
    display: flex;
    flex-direction: column;
    gap: inherit;
}
#email-links > a {
    color: var(--highlight-text);
    display: flex;
    align-items: center;
}
.mail {
    margin-right: 5px;
}
#software-skills {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
#autoscroll-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: absolute;
}
i {
    font-size: 8rem;
}
#education {
    grid-column: 2;
    grid-row: 3;
}
#projects {
    grid-column: 2;
    grid-row: 4;
}
#work-experience {
    grid-column: 2;
    grid-row: 5;
}
.left-right {
    display: flex;
    justify-content: space-between;
}
#projects-content {
    padding: 5rem 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 16rem;
    grid-template-rows: 5rem 1fr 1fr;
    row-gap: 5rem;
    position: relative;
}
#projects-content > p {
    font-size: 3rem;
    grid-column-start: 1;
    grid-column-end: 4;
}
.card {
    font-size: 2rem;
    color: black;
    background-color: var(--text);
    transition: var(--std);
    box-shadow: -1px 4px 16px rgba(0, 0, 0, 0.45);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    height: 44rem;
}
.small:hover {
    box-shadow: -1px 2px 8px rgba(0, 0, 0, 0.65);
    transform: translateY(3px);
}
.more-button {
    color: var(--highlight-text);
    border: 2px solid var(--highlight-text);
    border-radius: 5px;
    width: fit-content;
    padding: 3px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--std);
}
.more-button:hover {
    background-color: lightgray;
}
.card > img {
    margin-top: 10px;
    height: 25rem;
}
.card > a {
    color: black;
    text-decoration: underline dashed;
    padding-bottom: 4px;
}
.big {
    position: absolute;
    z-index: 10;
    width: 166rem;
    display: grid;
    grid-template-columns: 50rem 1fr;
    grid-template-rows: 3rem 1fr;
    left: 50%;
    transform: translateX(-50%);
}
.row1 {
    top: 13%;
}
.row2 {
    top: 57%
}
.big > img {
    width: 100%;
    height: 100%;
    grid-column: 1;
    margin-top: 0;
}
.big > .card-description {
    margin-left: 10px;
}
.card-list > li {
    margin-bottom: 3rem;
}
.close {
    grid-column: 2;
    grid-row: 1;
    justify-self: right;
    cursor: pointer;
    color: var(--highlight-text);
}
.hide {
    display: none;
}
.blur {
    filter: blur(5px);
}