@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box !important;
}


html,
body {
    height: 100%;
    color: #e8e8e8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    background: #161616;
}

@media (max-width: 1023px) {

    html,
    body {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

body {
    font-size: 16px;
    transition: all 1s ease;
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(127, 127, 127, 0.5);
    z-index: 100;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    text-align: center;
    margin-bottom: 1em;
    background: #121212;
    background: linear-gradient(180deg, #121212 50%, hsla(0, 0%, 7%, .863) 75%, hsla(0, 0%, 7%, 0));
    z-index: 999;

}

#header > * {
    padding: 0.5em 1em;
}


#logo img {
    height: 90px;
    display: block;
    margin: auto;
    text-align: center;
}


.btn {
    background-color: #e8e8e8;
    cursor: pointer;
    color: #121212;
    text-transform: none;
    margin: 1em;
    text-decoration: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 22px;
    border: 2px solid #e8e8e8;
    border-radius: 5px;
    transition: all .3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    background-color: transparent;
    color: #e8e8e8;
}

.btn.active,
.btn.active {
    background-color: #333 !important;
    border: none;
    color: white !important;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

p {
    line-height: 1.5em;
}

h1 + p, p + p {
    margin-top: 10px;
}

.container {
    text-align: center;
    color: #e8e8e8;
    display: flex;
    align-items: baseline;
    margin-top: 178px;
    padding: 40px 80px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.card-wrap:hover .card-info p, .card-wrap.active .card-info p {
    opacity: 1;
}

.card-wrap:hover .card-info, .card-wrap:hover .card-info p, .card-wrap.active .card-info, .card-wrap.active .card-info p  {
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

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

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

.card-bg {
    opacity: 0.5;
    position: absolute;
    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 1s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}

.card-info {
    padding: 20px;
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #fff;
    transform: translateY(40%);
    transition: 0.5s 0.1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-info p {
    opacity: 0;
    text-shadow: black 0 2px 3px;
    transition: 0.5s 0.1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

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

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


@media (max-width: 768px) {
    .container {
        padding: 100px 40px;
    }
}

@media (max-width: 576px) {
    .container {
        max-height: 100%;
        margin-top: 178px;
        position: fixed;
        overflow: auto;
    }
}

@media (max-width: 992px) {

    .card {
        flex: 0 0 240px;
        width: 240px;
        height: 320px;
    }

}