/* Gestion des sélecteurs universels */

* {
    margin:0;padding: 0;box-sizing: border-box;
}

/* Gestion des variables */

:root {
  --width: 300px;
  --height: 300px;

  --fontpolice: 5rem;
  /* --fontpolicekanji : 5rem; */
}

/* Gestion des sélecteurs basiques */

body {
    font-family: Arial, Helvetica, sans-serif;
  }

  h1 {
    font-size: larger;
    font-weight: bold;
    margin-top: 5px;
  }
  
  /* Gestion des classes et ID */
  .container-card {
    width: 80%;
    margin:25px auto;
    border:1px solid #202020;
    background-image: url(img/Fond_cerisier.jpg);
    background-size: cover;
    
    background-color: #f3d3ec;
    border-radius: 25px;
    justify-content: center;
    align-items: center;
    display:flex;
    gap:15px;
    flex-wrap: wrap;
    padding: 25px;

  }

  .flip-card {
    background-color: transparent;
    width: var(--width);
    height: var(--height);
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.5s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-front {
    background-color: #ffffff;
    box-shadow: 5px 5px 5px rgb(53, 53, 53);
    color: black;
  }
  
  .flip-card-back {
    background-color: brown;
    color: white;
    transform: rotateY(180deg);
  }

  .front-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .kanji_titre {
    font-size: var(--fontpolice);
    color: #fff;
    font-weight: bolder;
    height: 50%;
    width: 100%;
    background-color: brown;
  }

  .kanji {
    font-size: 4rem;
    color: brown;
    font-weight: bolder;
  }

  .back-flex {
    display: flex;
    flex-direction: row;
   
   
    flex-wrap: wrap;
    gap:30px;
  }

  
  .romaji, .ondoku, .kundoku {
    width:100%;
    /* border:1px solid #000; */
    background-color: #f3d3ec;
    height:50px;
    padding: 10px;
    color:#000;
    font-weight: bold;
  } 

  .traduction {
    font-size: 2rem;
    font-weight: bolder;
    text-align: center;    
}

.flag_UK, .flag_FR {
    transform: rotate(45deg);
}

.flag_FR::before {
    
    content: url(img/Flag_Fr.png);
    vertical-align: middle;
       
}

.flag_UK::before {

    content: url(img/Flag_UK.png);
    vertical-align: middle;

}

.titre {
    text-align: center;
}