:root {
    /* header, footer, menu-burger ... */
    --primary-color: rgb(255, 255, 255);
    /* hover on menu ...*/
    --secondary-color: rgb(244, 244, 244);
    /* p */
    --third-color: rgb(0, 0, 0);
    /* shadow on header, menu ...*/
    --shadow-color: rgba(56, 74, 104, 0.4);
    /* body background ...*/
    --bg-color: rgb(191, 210, 223);
    /* card background ... */
    --card-bg-color: rgb(255, 255, 255);
    /* h1, li*/
    --heading-color: rgb(0, 0, 0);
    /* a:link */
    --link-color: blue;
    /* a:visited */
    --visited-color: purple;
    /* contact-list */
    --contact-list-bg-color: rgba(255, 255, 255, 0.5);
    --contact-list-hover: rgb(184, 189, 194);
    --contact-list-li: rgb(56, 74, 104);
}

[data-theme="dark"] {
    /* header, footer, menu-burger ... */
    --primary-color: rgb(3, 4, 46);
    /* hover on menu ...*/
    --secondary-color: rgb(16, 21, 83);
    /* p */
    --third-color: rgb(255, 255, 255);
    /* shadow on header, menu ...*/
    --shadow-color: rgb(152, 14, 207);
    /* body background ...*/
    --bg-color: rgb(8, 11, 63);
    /* card background ... */
    --card-bg-color: rgb(25, 32, 75);
    /* h1, li*/
    --heading-color: rgb(115, 192, 255);
    /* a:link */
    --link-color: rgb(126, 214, 255);
    /* a:visited */
    --visited-color: rgb(73, 131, 255);
    /* contact-list */
    --contact-list-bg-color: rgba(33, 42, 77, 0.8);
    --contact-list-hover: rgb(136, 14, 207);
    --contact-list-li: rgb(156, 103, 255);
}

html {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    position: relative;
    height: 100%;
    font-size: 1.1em;
    line-height: 1.8rem;
    font-weight: 300;
}

.wrapper {
    position: relative;
    min-height: 100%;
}

nav,
h2,
footer {
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

main {
    font-family: 'Roboto', sans-serif;
    padding: 1rem 1rem 1rem 1rem;
    align-self: center;
    justify-content: center;
    padding-bottom: 6rem;
}

h2 {
    font-weight: 600;
    font-size: 3rem;
    line-height: 8rem;
    text-align: center;
    color: var(--heading-color);
}

h3 {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 2.4rem;
    margin-bottom: 2rem;
}

a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--visited-color);
}

/*-----------------*/
/*     NAVBAR      */
/*-----------------*/

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 0.1rem 0.4rem var(--shadow-color);
    min-height: 4.5rem;
    width: 100%;
    z-index: 3;
    position: relative;
    align-items: center;
    font-size: 1.25rem;
}

.navbar p {
    color: var(--heading-color);
}

.navbar ul {
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: var(--primary-color);
}

.navbar-brand {
    display: flex;
    float: left;
    align-items: center;
    font-size: 2rem;
    color: var(--third-color);
    padding: 0.5rem;
}

.navbar-brand span {
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 400;
    text-transform: uppercase;

}

#navbar-brand-logo {
    width: 4rem;
    margin: -0.3rem 0.5rem -0.25rem 0;
}


.navbar li a {
    display: block;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--secondary-color);
    text-decoration: none;
    color: var(--heading-color);
}

.navbar li a:hover,
.navbar .menu-btn:hover {
    background-color: var(--secondary-color);
}

.navbar li.active a {
    font-weight: 500;
}

.navbar li a:focus {
    font-weight: 500;
}

.navbar .menu {
    clear: both;
    max-height: 0;
    transition: .2s ease-out;
}

.theme {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.theme p {
    padding: 0 2rem 0 0.5rem;
    font-size: medium;
}

.switch {
    position: relative;
    display: inline-block;
    width: 1.8rem;
    height: 1rem;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    left: 0.1rem;
    bottom: 0.1rem;
    background-color: var(--primary-color);
}

input:checked+.slider {
    background-color: var(--shadow-color);
}

input:focus+.slider {
    box-shadow: 0 0 0 0.15rem rgb(127, 162, 179);
}

input:checked+.slider:before {
    -webkit-transform: translateX(0.8rem);
    -ms-transform: translateX(0.8rem);
    transform: translateX(0.8rem);
}

/* Rounded sliders */
.slider.round {
    border-radius: 0.5rem;
}

.slider.round:before {
    border-radius: 50%;
}

/* menu icon */

.navbar .menu-icon {
    cursor: pointer;
    float: right;
    position: relative;
    user-select: none;
    padding: 2rem;
}

.navbar .menu-icon .navicon {
    background: var(--heading-color);
    display: block;
    height: 2px;
    position: relative;
    width: 18px;
}

.navbar .menu-icon .navicon:before,
.navbar .menu-icon .navicon:after {
    background: var(--heading-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.navbar .menu-icon .navicon:before {
    top: 5px;
}

.navbar .menu-icon .navicon:after {
    top: -5px;
}

/* menu btn */

.navbar .menu-btn {
    display: none;
}

.navbar .menu-btn:checked~.menu {
    max-height: 100%;
}

.navbar .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

.navbar .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.navbar .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

.navbar .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.navbar .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    top: 0;
}

/*------------------------*/

.container {
    align-content: center;
    align-items: stretch;
}

.card {
    padding: 2rem 2rem 2rem 2rem;
    border-radius: 0 1.2rem 0 1.2rem;
    background-color: var(--card-bg-color);
    color: var(--third-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0.2rem 0.3rem 0.15rem var(--shadow-color));
    border-top: 0.4rem black solid;
}

.map {
    border-radius: 0 1.2rem 0 1.2rem;
    width: 100%;
    height: 50vh;
    right: auto;
    z-index: 1;
    margin-bottom: -0.5rem;
}

.contact-list {
    float: right;
    position: relative;
    border-radius: 0 0 0 1.2rem;
    margin-left: -40rem;
    margin-right: auto;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    padding: 1rem;
    font-weight: 400;
    color: black;
    background-color: var(--contact-list-bg-color);
}

.contact-list li {
    color: var(--contact-list-li);
    line-height: 2rem;
    font-size: 1rem;
}

.contact-list li.link:hover ,
.card-project a:hover,
#btn-cv:hover {
    text-shadow: 0.08rem 0.08rem var(--contact-list-hover);
}

.card-project span,
.card-home span {
    white-space: pre-line;
}

img.screenshot {
    max-width: 100%;
    max-height: 350px;
    display: block;
    padding: 3rem 0 1.5rem 0;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0.2rem 0.3rem 0.15rem var(--heading-color));
}

p.caption {
    font-style: italic;
}

.card-skills {
    padding: 2rem 2rem 0 2rem;
}

.card:hover {
    filter: drop-shadow(0.3rem 0.4rem 0.4rem var(--shadow-color));
    transition-duration: 0.5s;
}

.description {
    padding-bottom: 2rem;
}

a#btn-cv {
    position: absolute;
    background-color: var(--primary-color);
    width: 4rem;
    height: 4rem;
    padding: 0;
    margin-top: 11rem;
    margin-left: 10rem;
    border-style: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.2rem;  
    font-weight: 400;  
    text-align: center;
    line-height: 1.2rem;
    
}


a#btn-cv:hover {
    transform:scale(110%);
    transition-duration: 0.3s;
}

a#btn-cv p i{
    padding-top:0.65rem;
}

.container .big-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    filter: drop-shadow(0.3rem 0.4rem 0 rgb(255, 255, 255));
}

.big-logo img {
    width: 15rem;
    transition-duration: 1s;
}

.big-logo img:hover {
    width: 15.5rem;
    margin: -0.25rem;
    transition-duration: 1s;

}

.container .portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2rem 0;
    border-radius: 50%;
    filter: drop-shadow(0.15rem 0.15rem 0.1rem var(--shadow-color));
}

.container .portrait img {
    width: 14rem;
    border-radius: 50%;
}

/*-----------------*/
/*     SKILLS      */
/*-----------------*/

.skills {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.skills li {
    display: flex;
    flex-direction: row;
    margin-bottom: 1.5rem;
    width: 50%;
    align-items: center;
}

.skills li p {
    text-align: center;
}

img.skills-logo {
    max-width: 2rem;
    max-height: 2rem;
    padding-right: 0.5rem;
}

/*-----------------*/
/*     FOOTER      */
/*-----------------*/

footer {
    position: absolute;
    bottom: 0;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    padding: 1rem 0 1rem 0;
    color: var(--heading-color);
}

footer span {
    font-family: monospace;
    vertical-align: middle;
}

/*------------------*/
/*   MEDIAQUERIES   */
/*------------------*/

@media screen and (min-width: 768px) {

    main {
        padding-bottom: 8rem;
    }

    .container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .container-description .container {
        flex-direction: column;
        flex-wrap: wrap;
        max-width: 15rem;
        margin-right: 4rem;
    }

    .container-description .container-portrait {
        position: fixed;
        align-items: flex-start;
        margin-right: 57vw;
        margin-bottom: 8rem;
    }

    .card {
        margin: 1rem;
    }

    .card.description:before {
        content: "";
        position: absolute;
        top: 50%;
        margin-top: -1.5rem;
        left: -3rem;
        border: solid 1.5rem transparent;
        border-right-color: var(--card-bg-color);
        z-index: 1;
    }

    .description {
        width: 18rem;
    }

    .container .card.description:not(:nth-of-type(2)) {
        margin-left: -4vw;
        margin-right: 4vw;
    }

    .container-description {
        display: flex;
        flex-direction: row;
        justify-content: right;
    }

    .skills {
        max-width: 30rem;
    }

    img.screenshot {
        max-height: 300px;
    }

    .container-project {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .card-project,
    .card-home {
        max-width: 30rem;
    }
    
    iframe.map {
        width: 60vw;
        height: 50vh;
    }

    /*-------MENU BURGER-------*/

    .navbar li {
        float: left;
    }

    .navbar .menu {
        clear: none;
        max-height: none;
        max-width: max-content;
        transition: none;
    }

    .navbar .menu-icon {
        display: none;
    }

    /*--------------------------*/
}

@media screen and (min-width: 1024px) {
    /* The switch - the box around the slider */

    .navbar {
        display: flex;
        justify-content: space-evenly;
    }

    .container-description .container {
        flex-direction: column;
        flex-wrap: wrap;
        max-width: 55vw; 
        margin-left: 50vw;
        margin-right: 10vw;
    }
/*
    .container .card.description:not(:nth-of-type(2)) {
        margin-left: -6rem;
        margin-right: 6rem;
    }
*/
    .container-description .container-portrait {
        float : left;
        margin-right: 57vw;
    }

    .card.description{

        width:70%;
    }

    .contact-list {
        width: 45%;
        padding: 2rem;
        font: 2rem;
        line-height: 4rem;
    }

    .contact-list li {
        line-height: 2.5rem;
        
    }
}