* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #ccc;
    padding: 20px;
    height: calc(100vh - 40px);
    font-family: 'Lato', sans-serif;
}

.orientation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    gap: 20px;
    text-align: center;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.plateau-joueur {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
    height: 100%;
}

.carte {
    width: 60px;
    height: 100%;
    position: relative;
    perspective: 800px;
}

.carte-flip {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
}

.carte-flip div {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 5px;
}

.carte-front {
    background-color: #ef8518;
    border: 3px solid white;
    box-sizing: border-box;
}

.carte-back {
    transform: rotateY(180deg);
    border: 3px solid white;
    padding: 4px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.carte-flip.flipped {
    transform: rotateY(180deg);
}

.carte-joueur {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carte-joueur b {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 100px 30px 100px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6px;
}
.carte-joueur b:first-child {
    align-self: start;
}

.carte-joueur b:nth-child(2) {
    align-self: center;
    width: 35px;
    height: 35px;
    font-size: 15px;
}

.carte-joueur b:last-child {
    align-self: end;
}

.pioche-joueur {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.pioche-pio {
    background-color: #ef8518;
    border: 3px solid white;
    padding: 4px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 46px;
    height: 100%;
}

.pioche-vide {
    border: 3px solid #fff0;
    padding: 4px;
    width: 46px;
    height: 100%;
}

.pioche-def {
    border: 3px solid white;
    padding: 4px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 46px;
    height: 100%;
}

.pioche-def b {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 100px 30px 100px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6px;
}

.pioche-def b:first-child {
    align-self: start;
}

.pioche-def b:nth-child(2) {
    align-self: center;
    width: 35px;
    height: 35px;
    font-size: 15px;
}

.pioche-def b:last-child {
    align-self: end;
}