/*
 * My place CSS
 * Author: Ramon Morcillo @reymon359
 * Created on Sat Mar 23 2019
 * Copyright (c) 2019 
 */

:root {
    --light-color: #eeeeee;
    --medium-color: #999999;
    --dark-color: #262626;
    --filing-animation: filling 20s linear;
}

* {
    font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, Arial;
    /* box-sizing: border-box; */
}

body {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    animation-name: fadeIn;
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
    transition: background-color 1.5s;
    /*overflow: hidden;*/
}

body.loaded {
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: grey;
    transition: color 1.5s;
}

a:hover {
    color: var(--dark-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.centered {
    position: fixed;
    top: 40%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.header {
    text-align: center;
    font-weight: 400;
    letter-spacing: .1em;
    width: 100%;
    margin: 1em 0;
    transition: color .5s ease;
    /* text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px; */
}
.presentation {
    padding: 0% 20%;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
    transition: color .5s ease;
    /* text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px; */
}
/* PROJECTS CARDS*/

*:focus {
    outline: none;
}

.container {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-wrap {
    margin: 25px;
    -webkit-transform: perspective(800px);
    transform: perspective(800px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-wrap:hover .card-info {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.card-wrap:hover .card-info p,
.card-wrap:hover .card-info small,
.card-wrap:hover .tags-container,
.card-wrap:hover .card-info-buttons {
    opacity: 1;
}

.card-wrap:hover .card-info,
.card-wrap:hover .card-info p,
.card-wrap:hover .card-info small,
.card-wrap:hover .tags-container,
.card-wrap:hover .card-info-buttons {
    transition: 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-wrap:hover .card-info:after {
    transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.card-wrap:hover .card-bg {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.7;
}

.card-wrap:hover .card {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: rgba(255, 255, 255, 0.2) 0 0 40px 5px, white 0 0 0 0.2px, rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 0px, inset white 0 0 5px 5px;
}

.card {
    position: relative;
    flex: 0 0 250px;
    width: 250px;
    height: 300px;
    background-color: #333;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 0, inset rgba(255, 255, 255, 0.5) 0 0 5px 5px;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.card-bg {
    opacity: 0.5;
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}

.lazy {
    background-image: none!important;
    background-color: rgba(255, 255, 255, 0.5);
}

.card-info {
    padding: 20px;
    position: absolute;
    /*bottom: 0;*/
    bottom: 10% ;
    color: #fff;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-info .card-info-year {
    margin-top: 10px;
    float: right;
}

.card-info h1 {
    font-size: 30px;
    font-weight: 300;
    text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
}

.card-info p {
    opacity: 0;
    line-height: 1.5em;
    text-shadow: black 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-info * {
    position: relative;
    z-index: 1;
}

.card-info:after {
    content: '';
    position: absolute;
    /*top: 0;*/
    top: 20%;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    font-size: .8em;
    line-height: 1.5em;
    text-shadow: black 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    min-height: 50px;
}

.tag {
    flex: auto;
    display: inline;
    text-shadow: black 0 2px 3px;
}

.tag img {
    height: 20px;
    width: auto;
    border-radius: 50%;
    height: 20px;
    width: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    padding: 2px;
    margin: 5px 2px -5px 0px;
    box-shadow: black 0 2px 3px;
}

.card-info-buttons {
    padding: 10px 0px 0px;
    font-size: .9em;
    text-align: center;
    margin: 0px -10px;
}

.card-info-button {
    padding: 0.5em 0.5em;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    display: inline-block;
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.card-info-button:before {
    content: "";
    background-color: rgba(255, 255, 255, 0.5);
    height: 100%;
    width: 3em;
    display: block;
    position: absolute;
    top: 0;
    left: -4.5em;
    -webkit-transform: skewX(-45deg) translateX(0);
    transform: skewX(-45deg) translateX(0);
    transition: none;
}

.card-info-button:hover {
    background-color: rgba(255, 255, 255, 0.294);
    color: #fff;
    cursor: pointer;
}

.card-info-button:hover:before {
    -webkit-transform: skewX(-45deg) translateX(13.5em);
    transform: skewX(-45deg) translateX(13.5em);
    transition: all 0.5s ease-in-out;
}
