/**** Importation des polices Story Script et TASA Explorer ****/

@import url('https://fonts.googleapis.com/css2?family=Story+Script&family=TASA+Explorer:wght@400..800&display=swap');

/**** Reset ****/

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    line-height: 1.4;
}

/**** body ****/

body {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fffffe;
    color: #00214d;
    font-family: "TASA Explorer", sans-serif;
}

/**** header, footer ****/

header,
footer {
    width: 100%;
}

header {
    border-bottom: 2px dashed #00214d;
}

.title {
    text-align: center;
    font-size: 36px;
    padding: 15px;
    margin: 0;
    text-transform: uppercase;
}

/**** main ****/

.main__content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 350px;
    margin-block: 20px;
}

/**** section card__wrapper ****/

.card__wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 2000px;
    perspective-origin: bottom;
}

.card__wrapper:hover .card {
    transform: rotateY(180deg);
}

.card {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    color: #ffffff;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.69);
}

.card__front,
.card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 30px;
    border-radius: 8px;
    backface-visibility: hidden;
    /* La propriété backface-visibility indique si la face arrière d'un élément doit être visible lorsqu'elle est orientée vers l'utilisateur. */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}

.card__front,
.card__back {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__front {
    background-color: #f2f4f6;
    flex-direction: column;
}

.card__front .card__title {
    margin-bottom: 20px;
    line-height: 1.4;
}

.card__front .today {
    text-transform: uppercase;
}

.card__front .card__title,
.card__front .card__text,
.card__back .card__quote {
    font-size: 24px;
    text-align: center;
    color: #00214d;
}

.card__front .arrow-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #ff5470;
}

.card__back {
    background-color: #f2f4f6;
    transform: rotateY(180deg);
}

.card__back .card__quote {
    font-family: "Story Script", sans-serif;
}

/**** footer ****/

footer {
    border-top: 2px dashed #00214d;
}

.footer__text {
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/**** Responsive design version mobile ****/

@media screen and (max-width: 572px) {

    .title {
        font-size: 30px;
    }

    .main__content {
        width: 90%;
    }

    .card__front .card__title,
    .card__front .card__text,
    .card__back .card__quote {
        font-size: 20px;

    }
}