﻿
img.responsive-img,
video.responsive-video {
  max-width: 100%;
  height: auto;
}

[data-title] {
  outline: red dotted 0px; /*optional styling*/
  font-size: 30px; /*optional styling*/
  
  position: relative;
  cursor: pointer;
}

[data-title]:hover::before {
  content: attr(data-title);
  position: absolute;
  top: 100px;
  left: 60px;
  width: 270px;
  height: 32px;
  bottom: 0px;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 2px;
  background: rgb(255, 19, 19);
  color: #fff;
  font-size: 14px;
  font-family: sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

[1data-title]:hover::after {
  content: '';
  position: absolute;
  bottom: 96px;
  left: 60px;
  display: inline-block;
  color: #fff;
  border: 8px solid transparent;	
  border-bottom: 8px solid #000;
}

.containerQ{
    max-width: 1000px;
    margin: 60px auto 0px auto;
    padding-bottom:20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.containerQ h4{
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    color: brown;
}

.card3{
    position: relative;
    margin: 16px;
    width: 240px;
    height: 340px;
    background: #fff;
    transform-style: preserve-3d;
    transform: perspective(2000px);
    transition: 1s;
    box-shadow: inset 300px 0 50px rgba(0, 0, 0, .5);
}

.card3Q{
    position: relative;
    margin: 16px;
    width: 240px;
    height: 240px;
    background: #fff;
    transform-style: preserve-3d;
    transform: perspective(2000px);
    transition: 1s;
    box-shadow: inset 300px 0 50px rgba(0, 0, 0, .5);
}

.card3:hover{
    transform: perspective(2000px) rotate(-1.5deg);
    box-shadow: inset 20px 0 50px rgba(0, 0, 0, .5);
}

.card3Q:hover{
    transform: perspective(2000px) rotate(-1.5deg);
    box-shadow: inset 20px 0 50px rgba(0, 0, 0, .5);
}

.card3 .imgBox{
    position: relative;
    width: 240px;
    height: 340px;
    border: 1px solid #000;
    box-sizing: border-box;
    transform-origin: left;
    z-index: 1;
    transition: 1s;
}

.card3Q .imgBoxQ{
    position: relative;
    width: 240px;
    height: 240px;
    border: 1px solid #000;
    box-sizing: border-box;
    transform-origin: left;
    z-index: 1;
    transition: 1s;
}

.card3:hover .imgBox{
    transform: rotateY(-135deg);
}

.card3Q:hover .imgBoxQ{
    transform: rotateY(-135deg);
}

.card3 .imgBox .img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card3Q .imgBoxQ .img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card3 .details{
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 20px;
}

.card3Q .details{
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 20px;
}