*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Sour Gummy", sans-serif;
}
:root{
    --blackish: rgb(18, 15, 20);
    --black-transparent: rgb(0, 0, 0,0.4);
}
body{
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-image: url(./images/fondo.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}
h1{
    font-size: 3em;
    padding: 20px;
    background-color: var(--blackish);
    color: white;
}
.container{
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    width: 80%;
    padding: 20px;
}
.cards-wrapper{
    position: relative;
    width: 350px;
    height: 300px;
}
.front, .back{
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 5px;
}
.card{
    height: 100%;
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}
.front{
    backface-visibility: hidden;
    color: aliceblue;
    border: 2px solid var(--blackish);
}
.back{
    backface-visibility: hidden;
    background-color: var(--blackish);
    color: aliceblue;
    transform: rotateY(180deg);
    padding: 10px;
    text-align: left;
    border-radius: 5px;
    overflow-y: auto;
    border: 2px solid white;
}
.back::-webkit-scrollbar{
    scrollbar-width: thin;
}
.card:hover{
    transform: rotateY(180deg) scale(1.8) translateY(20px);
    box-shadow: 0 0 10px black;
    z-index: 1;
}
img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
h2{
    position: absolute;
    background-color: rgb(0, 0, 0,0.4);
    width: 100%;
    font-size: 30px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
p{
    margin-bottom: 10px;
}
li{
    list-style: none;
}
.inside-container{
    margin-top: 10px;
}
footer{
    background: var(--blackish);
    color: white;
    padding: 10px 30px;
}
.title{
    font-size: 20px;
}

@media (max-width:720px) {
    h1{
        
        margin-bottom: 20px;
    }
    h2{
        font-size: 50px;
    }
    div p, li{
        font-size: 24px;
    }
    .container{
        width: 100vw;
        display: flex;
        justify-content: center;
    }
    .cards-wrapper{
        width: 90vw;
        height: 50vh;
        height: 50dvh;
    }
    .card:hover{
    transform: rotateY(180deg);
    box-shadow: 0 0 10px black;
    z-index: 1;
    }
    footer{
        margin-top: 20px;
        padding: 10px;
    }
}
@media (max-width:320px){
    h1{
        font-size: 2em;
    }
}