@font-face {
    font-family: '3270-Regular';
    src: url('https://mgrosmaninho.github.io/3270-font/3270-Regular.ttf') format('truetype');
    src: url('https://mgrosmaninho.github.io/3270-font/3270-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #29cd29;
    --secondary-color: #FFFFFF;
    --bg-color: #000000;
}

.lightMode {
    --bg-color: white;
    --primary-color: #19b619;
    --secondary-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '3270-Regular', sans-serif;
    transition-duration: 250ms;
}

body {
    background: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 14px;
}

.darkerText {
    color: var(--secondary-color);
}

header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    font-size: 1.8em;
}

h1 {
    font-size: 2.5em;    
}

p {
    font-size: 1.20em;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

nav {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
    opacity: 0.7;
}

main, section, .nameContainer {
    display: flex;
    flex-direction: column;
}

main {
    gap: 64px;
    padding-bottom: 64px;
}

section {
    gap: 48px;
}

.menuItem {
    display: flex;
    align-items: right;
    gap: 8px;
}

.nameContainer {
    gap: 8px;
}

.statsContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.imageContainer {
    border-radius: 100%;
    max-width: 114px;
    overflow: hidden;
}

.imageContainer img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stats>div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats div i {
    font-size: 1.4em;
}

.stats div div {
    display: grid;
    place-items: center;
    min-width: 40px;
}

.aboutMe {
    line-height: 1.5em;
}

.outreachContainer {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 48px;
}

.outreach {
    display: flex;
    gap: 8px;
    cursor: pointer;
    width: fit-content;
}

.outreach:hover {
    opacity: 0.7;
}

.projectContainer {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.headerText {
    font-size: 1.8em;
    margin-bottom: 12px;
}

.projectItem {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.projectItem div:first-child {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.projectItem>div:last-child {
    aspect-ratio: 16/9;
    max-width: 30%;
    overflow: hidden;
    border-radius: 8px;
}

.projectItem>div:last-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkContainer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.linkItem {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 14px !important;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.linkItem:hover {
    opacity: 0.7;
}

.linkItem p {
    font-size: 0.9em;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .statsContainer {
        flex-direction: row;
    }

    .stats {
        gap: 0px;
    }

    .aboutMe {
        width: 80%;
        margin-right: auto;
    }
}