.animated-box {
    position: relative;
    width: 100%;
    height: 450px;
    background: #bababa;
    border-radius: 20px;
    overflow: hidden;
}

.animated-box:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d9052b;
  clip-path: circle(150px at 80% 20%);
  transition: 0.5s ease-in-out;
}

.animated-box:hover:before{
  clip-path: circle(300px at 80% -20%);
}

.animated-box:after {
    content: 'Advertize';
    position: absolute;
    top: 30%;
    left: -20%;
    font-size: 12em;
    font-weight: 800;
    font-style: italic;
    color: rgb(134 104 104 / 9%);
}

.animated-box .imgBx{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 100%;
  height: 220px;
  transition: 0.5s;
}

.animated-box:hover .imgBx{
  top: 0%;
  transform: translateY(0%);
    
}

.animated-box .imgBx img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 270px;
}

.animated-box .contentBx{
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  text-align: center;
  transition: 1s;
  z-index: 10;
}

.animated-box:hover .contentBx{
  height: 210px;
}

.animated-box .contentBx h2 {
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    color: #033866;
    margin: 0;
    font-size: 30px;
}

.animated-box .contentBx .size, .animated-box .contentBx .color {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  transition: 0.5s;opacity: 0;
  visibility: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.animated-box:hover .contentBx .size{
  opacity: 1;
  visibility: visible;
  transition-delay: 0.5s;
}

.animated-box:hover .contentBx .color{
  opacity: 1;
  visibility: visible;
  transition-delay: 0.6s;
}

.animated-box .contentBx .size h3, .container .animated-box .contentBx .color h3 {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 2px;
    margin-right: 10px;
    font-family: "Open Sans";
    line-height: 22px;
}

.animated-box .contentBx .size span{
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
  font-size: 14px;
  display: inline-block;
  color: #111;
  background: #fff;
  margin: 0 5px;
  transition: 0.5s;
  color: #111;
  border-radius: 4px;
  cursor: pointer;
}

.animated-box .contentBx .size span:hover{
  background: #9bdc28;
}

.animated-box .contentBx .color span{
  width: 20px;
  height: 20px;
  background: #ff0;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.animated-box .contentBx .color span:nth-child(2){
  background: #9bdc28;
}

.animated-box .contentBx .color span:nth-child(3){
  background: #03a9f4;
}

.animated-box .contentBx .color span:nth-child(4){
  background: #e91e63;
}

.animated-box .contentBx a{
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border-radius: 4px;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.5s;
  margin-top: 0;
}

.animated-box:hover .contentBx a{
  opacity: 1;
  transform: translateY(0px);
  transition-delay: 0.75s;
  
}
