:root {
    --main-bg-header: #23b6ff;
    --main-bg-nav: #303c54;
    --main-bg-footer: #303c54;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
    box-shadow: inset 0 0 5px grey;
}
/* Handle */
::-webkit-scrollbar-thumb {
    background-color: #14a8f3;
    border-radius: 10px;
  }
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #0384c5;
}

body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h2 {
    display: flex;
    justify-content: center;
    background-color: #686868;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

p {
    font-size: larger;
    background-color: #888888;
    padding: 10px;
    border-radius: 10px;
}

p a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
}

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

html, body {
    height: 100%;
}

header {
    display: flex;
    justify-content: center;
    background-color: var(--main-bg-header);
    color: white;
    padding: 1em;
}

.main-content {
    display: flex;
    justify-content: center;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 30px;
    background-color: #C0C0C0;
    color: white;
}

.container {
    display: flex;
    flex: 1;
}

.sidenav {
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg-nav);
    padding: 1em;
    margin: 10px;
    width: 200px;
    padding: 15px;
    border-radius: 30px;
    flex-shrink: 0;
}

.main-content {
    flex-grow: 1;
    padding: 1em;
}

.sidenav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

div.row {
    padding-bottom: 16px;
    padding-top: 16px;
}

.sidenav ul a {
    color: white;
    padding-bottom: 16px;
    padding-top: 16px;
    text-decoration: none;
}

.sidenav ul a:hover {
    text-decoration: underline;
}

.fa-solid, .fa-regular {
    margin: 8px;
}

footer {
    background-color: var(--main-bg-footer);
    width: 100%;
    padding: 0px;
    display: flex;
    justify-content: center;
    justify-content: space-evenly;
    color: #fff;
    flex-wrap: wrap;
}

.cv-section {
    margin-bottom: 20px;
}

.cv-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.cv-section h3 {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 5px;
}

.cv-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

@media (max-width: 600px) {
    .main-content {
        margin-left: 10px;
    }
    
    header h1 {
        font-size: 20px;
        margin: 5px;
    }

    .container {
        flex-direction: column;
    }

    .sidenav {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 0;
        padding-right: 0;
    }

    .sidenav ul {
        display: flex;
        flex-direction: row;
        width: auto;
    }

    .sidenav ul a {
        flex-direction: row;
        padding: 10px;
    }
    
    div.row {
        display: flex;
        justify-content: center;
    }
}