@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    overflow:hidden;
    background-color: #923cb5;
    background-image: linear-gradient(147deg, #923cb5 0%, #401a50 60%);
    color: rgb(211, 211, 211);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title-head {
    font-size: 4rem;
    margin-bottom: 10px;
}

.container {
    width: 80%;
    height: 80%;
    display: flex;
}
.container p {
    padding: 10px;
    line-height: 25px;
    font-size: 18px;
}

.card {
    width: 30%;
    height: 80%;
    position: relative;
    margin-right: 30px;
    transition: transform 1700ms;
    transform-style: preserve-3d;
}

.card:hover{
    transform: rotateY(180deg);

}
.front, 
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 15px 10px rgba(50,50,50, 0.25);
    backface-visibility: hidden;
}

.card1 .front{
    background-image: url(./img/cas_1.jpg);
    background-size: 100%;
}    

.card2 .front {
    background-image: url(./img/cas_2.jpg);
    background-size: cover;
}

.card3 .front {
    background-image: url(./img/cas_3.jpg);
    background-size: cover;
}

.back {
    background-color: #310e68;
    background-image: linear-gradient(316deg, #310e68 0%, #5f0f40 74%);
    

    transform: rotateY(180deg);
    padding: 30px 15px;
}

.back h1 {
    line-height: 35px;
}   

.footer {
    margin-top: -5%;
    font-size: 40px;
    font-weight: 500;
}

nav {
    position: absolute;
    right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
nav a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    position: relative;
    padding: 10px;
}


nav  a:after {
    content: "";
    position: absolute;
    background-color: #fff;
    height: 3px;
    width: 0;
    left: 10px;
    bottom: 1%;
    transition: 0.3s;
}

a:hover:after {
    width: 80%;
}