body {
    margin: 0;
    font-weight: 200;
    font-family: 'Titillium Web', sans-serif;
    background-color: #191921;
    color: ghostwhite;
}

.header {
    letter-spacing: 15px;
    text-align: center;
}

.bold {
    font-weight: 800;
}

.hidden {
    display: none;
}

.dark {
    color: black !important;
}


/**
 ****** SVGs *******
 */

.category-svg {
    right: 10px;
    bottom: 30px;
    position: absolute;
}


/**
 ******* Main Section *******
 */

#mainSection {
    height: 100vh;
    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;
}

.webp #mainSection {
    background-image: url("images/webp/main.webp");
}

.no-webp #mainSection {
    background-image: url("images/png/main.jpg");
}

#info-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: border-box linear-gradient(to left, rgba(38, 38, 38, 0.6), rgba(38, 38, 38, 0.9));

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 70%;
    width: 80%;
}

#info-label {
    margin: 5% auto 0 auto;
    text-align: center;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.42);
}

#name {
    animation-delay: 400ms;
}

#info-text {
    margin: 20px auto;
    width: 80%;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 28px;
    animation-delay: 600ms;
    color: rgba(255, 255, 255, 0.8);
}

.contact-icons {
    animation-delay: 800ms;
    margin: 0 auto 60px auto;
    font-size: 0;
}

.contact-icon {
    opacity: 0.6;
    margin: 0 15px;
}

.contact-icon img {
    height: 30px;
    -webkit-filter: opacity(60%);
    filter: opacity(60%);
}

.contact-icon img:hover {
    -webkit-filter: opacity(100%);
    filter: opacity(100%);
}





/*******************************
 ****** Projects-Section ******
 *******************************/

#projectsHeader {
    padding: 100px 0 0 0;
    width: 80%;
    margin: 0 auto 20px auto;
}

#legend {
    color: rgba(255, 255, 255, 0.6);
    -webkit-filter: opacity(40%);
    filter: opacity(40%);
    text-align: center;
}

#projects {
    margin: 0px auto 0;
    width: 95%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.project-card-container {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    margin: 30px 30px;
    cursor: pointer;
    border: 2px solid #676B85;
    border-radius: 5px;
    perspective: 1000px;
}

.active {
    transform: translateZ(0px) rotateY(180deg) !important;
}

.active:after {
    display: none;
}

.project-card {
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}

.project-card:after {
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 14px 50px -4px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1.4) 0s;
}

.project-card:hover {
    transform: translateZ(0px);
}

.project-card:hover:after {
    opacity: 1;
}



/****** Front ******/

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-perspective: 0;
    perspective: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    visibility: visible;
}

.project-card-front {
    /* color: black; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;

    display: flex;
    flex-direction: column-reverse;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.project-card-front-name-background {
    background: border-box linear-gradient(to left, rgba(103, 107, 133, 0.8), rgba(103, 107, 133, 0.8));
}

.project-name {
    font-size: 1.5em;
    font-weight: bold;
}



/****** Back ******/

.project-card-back {
    background-color: #1a1a20;
    transform: rotateY(180deg);
}

.project-card-back::-webkit-scrollbar {
    display: none;
}

.project-title {
    margin: 15px auto;
    border-bottom: 1px solid #676B85;
    padding: 15px 0;
}

.project-text {
    width: 90%;
    margin: 0 auto;
    line-height: 140%;
    letter-spacing: 0.6px;
}

.technologies {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 30px;
}

.link,
.link:visited,
.link:link,
.link:active {
    color: ghostwhite;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: block;
}

.project-content {
    scrollbar-width: none;
    height: calc(100% - 86px);
    overflow-y: auto;
}





/*******************************
 ****** Background Images ******
 *******************************/

.webp #quotesaver {
    background-color: black;
    background-image: url('images/webp/QuoteSaver.webp');
    background-position: center;
}

.no-webp #quotesaver {
    background-color: black;
    background-image: url('images/png/QuoteSaver.png');
    background-position: center;
}

.webp #zombierunner {
    background-image: url('images/webp/ZombieRunner_2.webp');
    background-color: #666366;
}

.no-webp #zombierunner {
    background-image: url('images/png/ZombieRunner_2.png');
    background-color: #666366;
}

.webp #lifemail {
    background-image: url('images/webp/LifeMail.webp');
    background-color: #C0C7C8;
}

.no-webp #lifemail {
    background-image: url('images/png/LifeMail.png');
    background-color: #C0C7C8;
}

.webp #lifemailitor {
    background-image: url('images/webp/Lifemailitor.webp');
    background-color: rgb(249, 213, 175);
}

.no-webp #lifemailitor {
    background-image: url('images/png/Lifemailitor.png');
    background-color: rgb(249, 213, 175);
}

.webp #nifttt {
    background-image: url('images/webp/NIFTTT.webp');
    background-color:#f9f7f4;
    background-position-x: -70px;
    background-size: cover;
}

.no-webp #nifttt {
    background-image: url('images/png/NIFTTT.png');
    background-color:#f9f7f4;
    background-position-x: -70px;
    background-size: cover;
}

.webp #carrot {
    background-image: url('images/webp/Carrot.webp');
    background-color: rgb(250, 173, 150);
}

.no-webp #carrot {
    background-image: url('images/png/Carrot.png');
    background-color: rgb(250, 173, 150);
}

.webp #portfolio {
    background-image: url('images/webp/Portfolio.webp');
}

.no-webp #portfolio {
    background-image: url('images/png/Portfolio.jpg');
}



/*******************************
 ****** Fade-In Animation ******
 *******************************/

.fadeIn {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}





/***************************
 ****** Media Queries ******
 ***************************/
@media (max-width: 599px), (max-height: 420px) {

    #info-box {
        top: 0%;
        left: 0%;
        height: 100vh;
        width: 100%;
        position: initial;
        transform: initial;
    }

    #projectsHeader {
        letter-spacing: 10px;
        font-weight: 400;
    }

    #info-label {
        padding-top: 30px;
        line-height: 20px;
    }

    .bot-when-small {
        background-position: bottom;
    }
    .cover-when-small {
        background-size: cover;
    }
}

@media (max-height: 375px) {
    #info-box {
        height: initial;
    }
    #mainSection {
        height: initial;
    }
}

@media (max-width: 320px) {
    #legend span {
        display: block;
    }
}