﻿body {
    font-family: Arial, Helvetica, sans-serif;
}

.flip-box {
    margin: 10px auto;
    background-color: transparent;
    width: 370px;
    height: 233px;
    border: 1px solid #f1f1f1;
    perspective: 1000px;
    text-align: center;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.flip-box-image {
    max-width: 100%;
    max-height: 100%;
}
.flip-box-front {
    /*background-color: #bbb;*/
    color: yellow;
}

.flip-box-back {
    background-color: #000000;
    color: white;
    transform: rotateY(180deg);
    border: 5px solid silver 
}
.flip-box-title {
    position: absolute;
    text-align: center;
    width: 290px;
    left: 25px;
    top: 50px;
    font-family: 'Arial Rounded MT';
    font-size: 26px;
    line-height: 39px;
}
.flip-box-condition {
    margin-top: 30px;
    font-size: 22px;
    font-weight: bold;
}
.flip-box-deal {
    font-weight: bold;
    color: greenyellow;
    margin: 15px;
    text-shadow: 2px 2px 25px lightyellow;
}
.flip-box-target {
    font-size: 18px;
    margin: 5px;
}
.flip-box-description {
    color: lightyellow;
}
@media only screen and (max-width: 1200px) {
    .flip-box {
        width: 300px;
        height: 195px;
    }

    .flip-box-title {
        width: 96%;
        left: 2%;
        top: 50px;
        font-size: 18px;
        line-height: 32px;
    }

    .flip-box-condition {
        margin-top: 20px;
        font-size: 18px;
    }

    .flip-box-deal {
        font-weight: bold;
        color: greenyellow;
        margin: 10px;
    }

    .flip-box-target {
        font-size: 16px;
        margin: 4px;
    }
}
@media only screen and (max-width: 980px) {
    .flip-box {
        width: 500px;
        height: 305px;
        margin: 10px auto;
    }

    .flip-box-title {
        width: 90%;
        left: 5%;
        font-size: 27px;
        line-height: 40px;
    }

    .flip-box-condition {
        margin: 20px auto;
        font-size: 29px;
    }

    .flip-box-deal {
        margin: 25px auto;
        font-size: 29px;
    }

    .flip-box-target {
        font-size: 18px;
        margin: 10px;
    }
}
@media only screen and (max-width: 580px) {
    .flip-box {
        width: 100%;
        height: 265px;
        margin: 10px auto;
    }
    .flip-box-title {
        width: 90%;
        left: 4%;
        font-size: 25px;
        line-height: 40px;
    }

    .flip-box-condition {
        margin: 20px auto;
        font-size: 25px;
    }

    .flip-box-deal {
        margin: 25px auto;
        font-size: 25px;
    }

    .flip-box-target {
        font-size: 16px;
        margin: 10px auto;
    }
}
    @media only screen and (max-width: 380px) {
        .flip-box {
            width: 341px;
            height: 215px;
        }

        .flip-box-title {
            width: 290px;
            left: 15px;
            top: 50px;
            font-size: 26px;
            line-height: 39px;
        }

        .flip-box-condition {
            margin-top: 20px;
            font-size: 20px;
        }

        .flip-box-deal {
            font-weight: bold;
            color: greenyellow;
            margin: 10px;
        }

        .flip-box-target {
            font-size: 16px;
            margin: 4px;
        }
    }