@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300&family=Open+Sans&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito',sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #09161d;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card {
    position: relative;
    width: 320px;
    height: 420px;
    background: #122936;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    width: 100%;
    height: 100%;
    background: #2196f3;
    transform: skewY(160deg);
    transition: 0.5s;
}

.card:hover::before {
    top: -70%;
    transform: skewY(210deg);
}

.card::after {
    content: 'headphone';
    position: absolute;
    bottom: 0;
    left: 0;
    font-weight: 600;
    font-size: 4em;
    color: rgba(0, 0, 0, 0.1);
}

.card .imgBx {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    z-index: 1;
}

.card .imgBx .imgtamanho {
    width: 300px;
    max-width: 100%;
    transition: 0.5s;
}

.card:hover .imgBx .imgtamanho {
    max-width: 50%;
}

.card .contentBx {
    position: relative;
    padding: 20px;
    display: flex;
    bottom: 30px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1;
}

.card .contentBx h3 {
    font-size: 18px;
    color: #fff;
    font-weight: bolder;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card .contentBx h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
}

.card .contentBx .buy {
    position: relative;
    padding: 10px 30px;
    /* margin-top: 15px; */
    /* top: 200px; */
    color: #fff;
    text-decoration: none;
    background: #2196f3;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.5s;
}

.card .contentBx .buy:hover {
    background: #0fddb0;
    color: black;
    font-weight: 900;
}

.card:hover .contentBx .buy {
    top: 0;
    opacity: 1;
}


