
/* BASE */
/* ====================================================================================================================== */
:root   /* light theme */
{
    --text: black;
    --navText: white;
    --navShadow: 0px 0px 5px 5px rgba(219, 219, 219, 0.356);
    --navHover: 0px 0px 5px 5px rgba(219, 219, 219, 1);   
    --boxShadow: 0px 0px 8px 8px rgba(219,219,219,1);
    --bg-color: white;
    --bg-nav: black;
    --dark-filter: invert(0);
}

[data-theme="dark"] 
{
    --text: white;
    --navText: black;
    --navShadow: 0px 0px 5px 5px rgba(219, 219, 219, 0.356);
    --navHover: 0px 0px 5px 5px rgba(219, 219, 219, 1);   
    --boxShadow: 0px 0px 8px 8px rgba(219,219,219,0.356); 
    --bg-color: black;
    --bg-nav: darkblue;
    --dark-filter: invert(1);
}

body
{
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text);
}


/* NAVIGATION BAR */
/* ====================================================================================================================== */
nav {
    background-color: var(--bg-nav);
    height: 100px;
}

nav div{
    display: flex;
    margin: auto 20%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    height: inherit;
}

#nav-home-button {
    margin: auto 0px;
    padding: 13px 15px;
    border-radius: 10px;
    -webkit-box-shadow: var(--navShadow);
    -moz-box-shadow: var(--navShadow);
    box-shadow: var(--navShadow);
    text-decoration: none;
    color: white;
    height: 18px;
}

#nav-logo {
    height: 60%;
    margin: auto;
}

#theme img
{
    height: 34px;
    width: 36px;
    padding: 1px; 
}

#theme
{
    margin: auto 0px;
    padding: 5px;
    border-radius: 10px;
    -webkit-box-shadow: var(--navShadow);
    -moz-box-shadow: var(--navShadow);
    box-shadow: var(--navShadow);
    text-decoration: none;
    color:var(--navText);
    height: 36px;
}

@media only screen and (max-width: 900px) {
    nav {
        height: 220px;
    }

    nav div{
        flex-direction: column;
        flex-wrap: nowrap;
        margin: auto;
    }

    #nav-home-button {
        width: 44px;
        margin: auto;
    }

    #nav-logo
    {
        order: -1;
        height: 60px;
        padding: 15px 0px;
        
        max-width: 100%;
    }

    #theme
    {
        width: 36px;
        margin: auto;
    }
}

#nav-home-button:hover, #theme:hover {
    -webkit-box-shadow: var(--navHover);
    -moz-box-shadow: var(--navHover);
    box-shadow: var(--navHover);
}


/* NAME BAR BAR */
/* ====================================================================================================================== */
#name-bar {
    margin: auto;
    padding: 20px 0px;
    font-size: 3em;
    text-align: center;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}


/* MAIN BAR */
/* ====================================================================================================================== */
#cards-wrapper {
    padding: 10px 0px 10px 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width:100%;
}

.card-wrapper {
    width: max(350px, 20%);
    margin: 15px;
}

.main-card {
    height: max(350px, 20vw);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    margin:auto;
    background-size: contain;
}

#resume {
    background-image: url(images/resume.png);
}

#curriculumvitae {
    background-image: url(images/cv.png);
}

.main-card a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.4);
    color: white;
    font-size: max(22px, 2vw);
    font-weight: 800;
    width: 100%;
    height: 100%;
    text-align: center;
    margin:auto;
    text-decoration: none;
}

.main-card>a:hover {
    background-color: rgba(0,0,0, 0);
    color: rgba(0,0,0,0);
    cursor: pointer;
}


@media only screen and (max-width: 800px) {
    #cards-wrapper {
        flex-direction: column;       
    }
    
    .card-wrapper {
        margin: 15px auto;
    }
}


/* CAROUSEL BAR */
/* ====================================================================================================================== */
#project-card-carousel {
    padding: 80px 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    min-height: 300px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    border-radius: 5%;
    object-fit: fill;
    height: 100%;
}

.card {
    filter: var(--dark-filter);
}

.project-card {
    border: grey 2px solid;
    border-radius: 5%;
    width: 220px;

    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
}

.project-card:hover {
    border-color: rgba(0,0,0, 0);
    -webkit-box-shadow: var(--boxShadow);
    -moz-box-shadow: var(--boxShadow);
    box-shadow: var(--boxShadow);
}

.project-card h3 {
    margin: auto 0px; 
    text-align: center;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.project-card-left {
    transform: perspective(150px) rotateY(25deg);
    width: 120px;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
}

.project-card-right {
    transform: perspective(150px) rotateY(-25deg);
    width: 120px;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
}

.project-card-current {
    transform: none;
}

.project-card-current img{
    width: 100%;
}


/* CAROUSEL BUTTONS BAR */
/* ====================================================================================================================== */
#controls {
    margin: 0px 0px 20px 0px;
    width: 100;
    display: flex;
    justify-content: center;
}

#controls button {
    padding: 10px 20px;
    margin: 0px 15px;
    font-size: larger;
    color: var(--text);
    background-color: var(--bg-color);
}

#controls button:hover {
    cursor: pointer;
    color: white;
    background-color: black;
}

#projects div {
    margin: auto;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
}

.project {
    width: 220px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 55px !important;
    border: rgba(128,128,128,0.5) 3px solid;
}


.project:hover{
    border: rgba(0,0,0,0) 3px solid;
    box-shadow: 0px 0px 6px 6px rgba(219,219,219,0.356);
}

@media only screen and (max-width: 1000px) {
    #controls button {
        padding: 10px 10px;
        margin: 0px 5px;
    }
}

@media only screen and (max-width: 1000px) {
    #projects div {
        display: flex;
    }

    #carousel {
        display: none;
    }
}


/* CAROUSEL ANIMATION */
/* ====================================================================================================================== */
@-webkit-keyframes animation-center-to-left {
    from {
        -webkit-transform: perspective(150px) rotateY(25deg);
            transform: perspective(150px) rotateY(25deg);
    }
    to {
        -webkit-transform: perspective(150px) rotateY(25deg);
            transform: perspective(150px) rotateY(25deg);
    }
}
