html, body{
    font-family: "Avenir Next", Arial, sans-serif;
    text-align: center;
    transition: .2s;
    margin: 0;
    padding: 0;
    width: 100%;
}
html {
    background: linear-gradient(to left, #ff9966, #ff5e62);
    min-height: 100vh;
}
h1, h2{
    color: white;
}
h1{
    font-size: 40px;
    margin-bottom: 0;
    margin-top: 40px;
}
h2{
    font-size: 25px;
    margin-top:0;
}
.container{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-sizing: border-box;
    position: relative;
    border-radius: 5px;
    width: min(500px, calc(100% - (30px * 2)));
    aspect-ratio: 5 / 3;
    background: white;
    display: inline-grid;
    margin: 30px;
}
.clipper{
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 5px;
    display: grid;
}
.container::before{
    content:"";
    display:block;
    position:absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255, 0.85);
    transition: .5s;
    z-index: 10;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.container:hover::before{
    background-color: rgba(255,255,255,.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
.logo{
    display:block;
    width: 36%;
    transition: .6s;
    z-index:15;
    filter: drop-shadow( 0 0 6px rgba(0, 0, 0, 0.2));
    place-self: center;
}

.logo.dark {
    display: none;
}

.container:hover .logo{
    opacity: 0;
}

.container .thumbnail{
    display: block;
    position:absolute;
    width:100%;
    min-height: 100%;
    z-index:0;
}
.container h2,.container h3,.container p, .technologies{
    position:absolute;
    z-index:15;
    text-align:center;
    width:100%;
    transition: opacity .5s, top .4s, bottom .4s;
    color: #3E494B;
}
.container h2{
    top: 10px;
    font-weight: 200;
}
.container:hover h2{
    top:-60px;
}
.container h3{
    bottom: 10px;
    font-weight:200;
}
.container:hover h3{
    bottom:-50px;
}
.technologies{
    bottom:0;
    right: 0;
    padding: 6px 10px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    transition: .2s;
    /*top: 0%;*/
}
.container:hover > .technologies{
    bottom: -31px;
}
.technologies span{
    padding: 2px 10px;
    border-radius: 9px;
    font-size: 11px;
    color: white;
    background: #a4a4a4;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
    white-space: nowrap;
}
.technologies > .html { background: #ff5530 }
.technologies > .css { background: #3B95CD }
.technologies > .js { background: #DC9D37 }
.technologies > .node-js { background: #39c847 }
.technologies > .php { background: #777CB1 }
.technologies > .sql { background: #16aa89 }
.technologies > .socket-io { background: #171717 }
.technologies > .google_cloud, .technologies > .google_analytics, .technologies > .google_firebase { background: #00b05d }
.technologies > .aws { background: #42748d }
.technologies > .weebly { background: #3073a1 }
.technologies > .pwa { background: #1A98FC }
.technologies > .scss { background: #c86295 }
.technologies > .react { background: #4eabc3 }
.technologies > .next-js, .technologies > .cloud_functions { background: #000 }
.technologies > .graphql { background: #ec0396 }
.technologies > .strapi { background: #8a72f5 }
.technologies > .facebook_graph_api { background: #1a6edf }
.technologies > .typescript { background: #3275bf }

.container p{
    color:white;
    bottom: 30px;
    font-weight:200;
    opacity: 0;
    margin:0;
    padding: 0 10px;
    box-sizing: border-box;
}
.container:hover p{
    opacity: 1;
    background: rgba(50, 50, 50, 0.8);
}
.ch-container{
    padding-top:20px;
    margin-bottom: 0;
    text-align: center;
    transform: scale(.8);
}
.creative-header{
    width: 50px;
    height: 50px;
    text-align:right;
    padding:25px;
    overflow:hidden;
    display:inline-block;
    margin: 10px 30px;
}
.creative-header div{
    width: 242%;
    height: 242%;
    margin-top:-71%;
    margin-left:-71%;
    background-image: url("img/Sam.jpg");
    background-size:cover;
}

@media only screen and (max-width: 414px) {
    .container{
        margin: 20px;
    }
}
@media (prefers-color-scheme: dark) {
    html {
        background:
            linear-gradient(to bottom left, #0a2835, transparent),
            linear-gradient(to top left, #222a2f, transparent),
            linear-gradient(to top right, #0a2835, #08181d);
    }
    h1, h2 , .container h2, .container h3, .container p{
        color: whitesmoke;
    }
    .container:before{
        background: rgba(27, 28, 30, 0.8);
    }
    .container {
        background: rgba(27, 28, 30,1);
    }
    .container:hover {
        box-shadow: -4px 8px 50px 0 rgba(184, 84, 178, 0.24), 3px -9px 50px 0 rgba(21, 117, 187, 0.19);
    }
    .logo {
        opacity: .75;
    }
    .logo.dark {
        display: block;
    }

    .logo.dark + .logo {
        display: none;
    }
}
