@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fontPlay);
}

*:root{
    --fontPlay: 'Play', sans-serif;
}

@keyframes rotate {
    from { transform: rotate(-180deg);}
    to { transform: rotate(0deg);}  
}

@keyframes slide {
    from {
        transform: translateX(-100%);
      }
      to {
        transform: translateX(0%);
      }
}

body{
    background-color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
    gap: 3em;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    padding: 30px;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    min-height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 20px 10px;
}

.card .front{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: .3;
    transition: .7s;
    filter: grayscale(100); /* to decide */
    
}

.card:hover .front{
    opacity: 1;
    filter: grayscale(0);/* to decide */
}

.card .front img{

    width: 100%;
    min-height: 200px;
}

.card .content{
    padding: 8px 20px;
    color: white;
    overflow: hidden;
    height: 47px;
    transition: .7s;
    opacity: .3;
}

.card:hover .content {
    height: 260px;
    opacity: 1;
    background-image: linear-gradient(#672abf, #380e74);
    box-shadow: 0 5px 15px 2px white;
}

.card:hover .content .arrow {
    animation-name: rotate;
    animation-duration: 1s;
    transform: rotate(0deg);
}

.card h3{
    display: inline-block;
    padding-bottom: 15px;
    text-indent: 10px;
    text-transform: uppercase;
    width: 150px;
}

.card .desc{
    font-size: 14px;
    font-weight: 100;
    text-align: justify;
    font-style: italic;
    opacity: .7;
}

.arrow {
    display: inline-block;
    position: relative;
    left: 33%;
    color: white;
    font-size: 22px;
    transform: rotate(-180deg);
    transition: all 1.5s;
}

.card .content a{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 8px;
    border: 1px solid white;
    margin-top: 30px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 40px;
}
.card .content a:hover{
    background-color: white;
    color: #380e74;
}

.card:hover .movie img{
    animation: slide .7s;
    animation-timing-function: linear;
}