* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    font-size: 14px;
    min-height: 100vh;
    width: 100%;
    background: url(./images/bk.jpg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    position: relative;
    width: 270px;
    margin: 2em;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 180px 1fr auto;
}

.card-body,
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image {
    position: relative;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(./images/bk1.jpg);
    background-size: cover;
}

.card-image img {
    max-width: 95%;
    max-height: 95%;
    transition: max-width 0.4s, max-height 0.4s;
}

.card:hover .card-image img {
    max-width: 120%;
    max-height: 120%;
}


.card {
    box-shadow: 0 15px 30px -10px #000;
    cursor: pointer;
}

.card:hover {
    box-shadow: 4px 4px 25px rgba(0, 0, 0, 0.2);
}

.card:nth-child(2) .card-image {
    background: url(./images/bk2.jpg);
}

.card:nth-child(3) .card-image {
    background: url(./images/bk3.jpg);
}

.card:nth-child(4) .card-image {
    background: url(./images/bk4.jpg);
}

.card-body {
    background: #fff;
    padding: 20px 28px;
}

.card-body .power {
    font-weight: bolder;
}

.card-body h2 {
    font-size: 1.8em;
    margin: 4px auto 12px;
}

.card-body p {
    color: gray;
    font-size: 1.1em;
    line-height: 20px;
    text-align: center;
}

.card-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.card-footer .info {
    font-size: 0.9em;
    padding: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.card-footer .info:last-child {
    border: none;
}

.card-footer .info .type {
    text-transform: uppercase;
    margin-top: 2px;
    font-size: 0.8em;
}

.card:nth-child(1) .card-footer {
    background: #4891ba;
}
.card:nth-child(2) .card-footer {
    background: #f6b10f;
}
.card:nth-child(3) .card-footer {
    background: #959595;
}
.card:nth-child(4) .card-footer {
    background: #9e5161;
}

.card:nth-child(1) .power {
    color: #4891ba;
}
.card:nth-child(2) .power {
    color: #f6b10f;
}
.card:nth-child(3) .power {
    color: #959595;
}
.card:nth-child(4) .power {
    color: #9e5161;
}

.selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 18px;

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover .selector {
    opacity: 1;
}

.selector button {
    background-color: #4891ba;
    color: #fff;
    outline: none;
    border: 2px solid currentColor;
    cursor: pointer;
    padding: 12px 20px;
    transform: translateY(60px);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1em;
    font-weight: bolder;
    transition: opacity 0.3s;
}

.selector button:hover {
    opacity: 0.8;
}

.card:nth-child(2) .selector button {
    background-color: #f6b10f;
}
.card:nth-child(3) .selector button {
    background-color: #959595;
}
.card:nth-child(4) .selector button {
    background-color: #9e5161;
}

