* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.marley {
    width: 480px;
    position: relative;
}

.marley-text {
   
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 40px 30px 40px 30px;
    text-align: right;
}

.marley-text h2 {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 300;
    font-size: 30px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    translate: 0px 20px;
 transition: all 0.5s ease-in-out;
}

.marley-text h2::before{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    bottom: -20px;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;

/* Постивити полоску як на зразку */
}

.marley-text:hover h2{
    translate: 0px 0px;
}
.marley-text:hover h2::before{
    opacity: 1;
}

.marley-text span {
    font-weight: 800;
}

.marley-text p {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    text-align: right;
    transition: all 0.5s ease-in-out;
    translate: 0px 40px;
    opacity: 0;
}

.marley-text:hover p {
translate: 0px 0px;
opacity: 1;
}

.test {
    border: 1px solid red;
    width: 300px;
    height: 200px;
    background-color: aqua;
    margin: 50px 0px 0px 100px;
   transition: all 0.6s ease-in-out;

}
.test:hover{
translate: 40px 0px;

}
.tests{
    border: 2px solid rgb(0, 0, 0);
    width: 300px;
    height: 200px;
    border-radius: 100px;
    background-color: rgb(0, 102, 255);
    margin: 50px 50px 50px 50px;
    transition: all 0.5s ease-in-out;
}
.tests:hover{
    translate: -50px -50px; /* дозволяє змінювати положення елемента вздовж осі X (горизонтально) та осі Y (вертикально) відносно його початкової позиції. 
*/
   

}
.cat{
    border: 2px solid rgb(0, 17, 255);
    width: 300px;
    height: 200px;
    border-radius: 50%;
    background-color: rgb(8, 54, 94);
    margin: 50px 50px 50px 50px;
    transition: all 0.6s ease-in-out;
}
.cat:hover {
    scale: 0.9 1 ; /*Вона дозволяє збільшувати або зменшувати розмір елемента як в горизонтальному, так і у вертикальному напрямку, або пропорційно. */
}
.dog{
    border: 2px solid rgb(255, 0, 157);
    width: 300px;
    height: 200px;
    border-radius: 10%;
    background-color: rgb(162, 26, 224);
    margin: 50px 50px 50px 50px;
    transition: all 0.4s ease-in-out;
}
.dog:hover {
    rotate: -360deg; /*Она изменяет ориентацию элемента, вращая его вокруг фиксированной точки (по умолчанию - центр элемента) на заданный угол. */
    scale: 1.2;
    translate: 0 -100px;
}
/* ЗРОБИТИ АНИМАЦЫЮ ДЛЯ ЗАГОЛОВКА ТАК САМО ЯК В МАКЕТЫ */
h3{
   color: rgb(255, 0, 0);
   font-size: 22px;
   position: relative;
}
.red{
    display: inline-block;
    width: 20px;
    height: 20px;background-color: #f00;
}
.green {
   display: inline-block;
    width: 20px;
    height: 20px;background-color: rgb(37, 143, 27);
}

h3::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #f00;
    margin-right: 20px;
    position: absolute;
    top: -10px;
    left: 35px;

}

h3::after{
    content: "$";
    font-size: 25px;
    margin-left: 20px;
    color: blue;
}
.hi{
    border: 3px solid rgb(0, 255, 115);
    width: 300px;
    height: 300px;
    background-color: rgb(132, 0, 255);
    border-radius: 50%;
    position: relative;
}
.hi::before{
    content: "helloy";
    color: #f00;
    font-size: 30px;
    width: 100px;
    height: 70px;
    background-color: rgb(255, 94, 0);
    border: rgb(124, 78, 18);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}
.hi::after{
   content: "sale";
   color: #f00;
   font-size: 20px;
   text-transform: uppercase;
   display: flex;
   justify-content: center;
   align-items: center;
   position: absolute;
   right: 0px;
   top: 0;
   background-color: rgb(43, 180, 66);
    border-radius: 50%;
    width: 80px;
    height: 80px;border: rgb(0, 4, 255);
}

 
