:root {
    --body: #F0F0F0;
    --header-footer: #171A21;
    --hover-animation-title: #E4572E;
    --section-title-size: 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--body);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.42857143;
    color: #FFF;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--header-footer);
}

.main-title {
    font-size: 32px;
    font-weight: normal;
}

.main-title a {
    position: relative;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.main-title a::before {
    transform-origin: left;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    width: 100%;
    height: 1px;
    transition: transform 0.3s ease-in-out;
    background-color: var(--hover-animation-title);
}

.main-title a:hover::before {
    transform: scaleX(1);
}

/* Section titles with '.svg' icons */

.about-me-title,
.projects-title,
.skills-title,
.personal-tools-title,
.skills-no-cs-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.about-me-title svg,
.projects-title svg,
.skills-title svg,
.personal-tools-title svg,
.skills-no-cs-title svg {
    flex-shrink: 0;
    width: 0.85em;
    height: 0.85em;
}

/* Menu styling */

.menu ul {
    list-style: none;
}

.menu ul li {
    display: inline-block;
    padding-top: 0;
    padding-right: 2rem;
}

.menu ul li a {
    transition: 0.4s ease;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

.menu ul li a:hover {
    text-decoration-color: transparent;
    text-decoration: underline;
}

footer {
    display: table-row-group;
    background-color: var(--header-footer);
    text-align: center;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile */

@media only screen and (max-width: 768px) {
    :root {
        --section-title-size: 22px;
    }

    .menu {
        display: none;
    }
}