:root {
    --bg: #fff8f0;
    --text: #313131;
    --main-accent: #00456d;
    --light-accent: #306c8f;
    --compl-accent: #ff5705;
    --quote-bg: #efe2d7;
    --mobile-margins: 3%;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    font-family: Inter;
    background-color: var(--bg);
    color: var(--text);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    padding: 5px 0;
    text-align: center;
    font-size: small;
    font-weight: 200;
    flex-shrink: 0;
}

h1, h2, h3, h4 {
    color: var(--main-accent);
}

h4 {
    margin-bottom: 2px;
}

a, a:visited, a:hover {
    color: var(--light-accent);
    text-decoration: none;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding-top: 50px;
    gap: 30px;
    width: 60%;
    min-width: 750px;
    margin: 0 auto;
    overflow: hidden;
}


/* DESCRIPTION */
.description-container {
    overflow-y: auto;
    flex: 1;
    padding-bottom: 50px;
}

.description-container::-webkit-scrollbar {
  display: none;
}

.description-container p {
    margin-top: 0;
    text-align: justify;
}

.update-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 16px;
}

.update-date {
    flex: 0 0 20%;
    margin: 0;
    max-width: 100px;
}

.update-date.highlight-date {
    color: var(--compl-accent);
    font-weight: 500;
}

.update-description {
    flex: 1;
    margin: 0;
    text-align: justify;
}


/* PROFILE */
.profile-container {
    flex: 0 0 25%;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.profile-photo img {
    border-radius: 50%;
    margin: 0 auto;
    width: 70%;
    min-width: 200px;
}

.profile-email {
    text-align: center;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.current.voice, .current.voice:hover {
    text-decoration: underline;
    cursor: default;
}

.location {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 14px;
}

.location p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mobile-separator {
    display: none;
}

.location i {
    color: var(--main-accent);
}

.links-wrapper {
    display: flex;
    flex-direction: row;
}

.icon-link, .icon-link:visited {
    flex: 1;
    color: var(--main-accent);
    font-size:xx-large;
}


/* To enable adaptive light/dark mode based on the system's preference */
/* @media (prefers-color-scheme: dark) { 
    :root {
        --bg: #292929;
        --text: #fffcf7;
        --main-accent: #94bdce;
        --light-accent: #94bdce;
        --compl-accent: #ffc3a6;
    }
} */

/* To enable smartphone view */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding-top: 20px;
        width: 100%;
        min-width: unset;
        overflow-y: auto;
        align-content: center;
    }

    .profile-container {
        flex: none;
        min-width: unset;
        width: 92%;
        margin: 0 auto;
    }

    .profile-photo img {
        width: 200px;
    }

    .menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .menu a {
        padding: 5px 10px;
    }

    .location {
        justify-content: center;
        align-items: center;
        flex: none;
    }

    .location p {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .mobile-separator {
        display: inline;
        margin: 0 10px;
    }

    .links-wrapper {
        justify-content: center;
    }

    .icon-link {
        font-size: x-large;
        margin: 0 10px;
    }

    .description-container {
        padding-top: 0;
        padding-bottom: 20px;
        overflow-y: visible;
        width: 92%;
        margin: 0 auto;
        flex: 0;
    }

    .update-item {
        flex-direction: column;
    }

    .update-date {
        max-width: unset;
        text-align: left;
        margin-bottom: 5px;
        font-style: italic;
    }
}
