/* General styling */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

:root {
    --font-family: system-ui, sans-serif;
    --heading-font-family: 'Source Code Pro', monospace;
    --primary-color: #293133;
    --bg-light: #cecece;
}

* {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    margin:0;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Mobile version */
section {
    margin:2rem 0;
}

h1 {
    font-size: 2.5rem;
}

.header-section {
    background-color: var(--primary-color);
    padding-top: 2em;
    margin-bottom: 4rem;
}

.header-section .container {
    position: relative;
}

.header-section .profile-image {
    width: 50%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: -3em;
}

.contact-details {
    list-style-type: none;
    padding:0;
}

.skills-section {
    background-color: var(--bg-light);
    padding:0.5em;
}

.skills {
    list-style-type: none;
    padding:0;
}

.skills li {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2em 0.5em;
    margin:0.1em;
    border-radius: 1em;
}

.experiences-list {
    list-style-type: none;
    padding:0;
}

.experiences-list .experience {
    display: flex;
    justify-content: space-between;
    margin:1em 0;
}

.experiences-list .experience .date {
    font-size: 0.8rem;
}

.site-footer {
    padding:0.5em;
}

.gdpr-consent {
    position: fixed;
    bottom:0;
    right:0;
    width: 100%;
    padding:1em 0;
    background-color: white;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

.gdpr-consent.hidden {
    display: none;
}

#acceptCookiesBtn, #rejectCookiesBtn {
    background:none;
    padding: 0.5em 1em;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    transition:
            background-color 250ms ease,
            color 250ms ease;
}

#acceptCookiesBtn:hover, #rejectCookiesBtn:hover {
    cursor:pointer;
    background-color: var(--primary-color);
    color: white;
    transition:
        background-color 250ms ease,
        color 250ms ease;
}

/* Desktop version */
@media screen and (min-width:768px) {
    section {
        margin:3rem 0;
    }
}