
body{
    position: relative;
    width: 100%;
    background-color: #f5cff2;
    font-family: "Sour Gummy", serif;
}

#container {
    text-align: center;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 650px;
}

#q,#r {
position:absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgb(120, 83, 155);
    color: #f5cff2;
}

#q p, #r p{
    font-size: 26px;
    padding: 8px;
}



#r {
    transform: rotateY(180deg);
}

#flip {
    background-color: transparent;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    border-radius: 10px;

}

#inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    border-radius: 10px;

}

#flip.afficherep #inner {
    transform: rotateY(-180deg);
}

#flip.afficherep .rep{
    display: block;
}

#flip .rep {
    display: none;
}

.buttons {
    display: flex;
    margin-top: 32px;
    margin-bottom: 20px;
}

.buttons button {
    margin: 0 4px;
    background-color: rgb(120, 83, 155);
    font-family: "Sour Gummy", serif;
    padding: 8px;
    color: #f5cff2;
    border: none;
    border-radius: 10px;
    font-size: 20px;
}

.buttons button:hover {
    background-color: rgb(111, 57, 161);
    cursor: pointer;
}

#principale {
    display: flex;
    justify-content: end;
}

#liste {
    width: 33%;
    padding-right: 20px;
    margin-top: 10%;
    margin-left: 20px;
    max-height: 600px;
    overflow-y: scroll;
}

#listeQ {
    width: 65%;
}

#liste li {
    text-align: justify;
    cursor: pointer;
}

#liste li:hover {
    color:rgb(164, 103, 221);
}

#liste li.active {
    color:rgb(48, 48, 153);
    text-decoration: underline;
}

/* body.pedia{
    background-color: rgb(81, 111, 241);
}

body.pedia #q, body.pedia #r, body.pedia .buttons button {
    background-color: rgb(108, 181, 199);
    color: rgb(81, 111, 241);
} */

/*#pharma {
    background-color: rgb(81, 111, 241);
}

body.pharma #q, body.pharma #r, body.pharma .buttons button {
    background-color: rgb(108, 181, 199);
    color: rgb(81, 111, 241);
}*/

body.pharma #liste li.active {
    color:rgb(2, 91, 42);
    text-decoration: underline;
}

body.pharma #listeQ li:hover {
    color: rgb(126, 114, 5);
}

body #liste .rechercher {
    background-color: transparent;
    color: rgb(111, 57, 161);
    padding: 5px;
    border: none;
    border-bottom: 5px solid rgb(111, 57, 161);
    outline: none;
}

body #liste .rechercher::placeholder {
    color: rgb(111, 57, 161);
}

body.pharma #liste .rechercher {
    color: rgb(2, 91, 42);
    border-bottom: 5px solid rgb(2, 91, 42);
}
body.pharma #liste .rechercher::placeholder {
    color: rgb(2, 91, 42);
}
