:root {
    --hauteur : 4.375rem
}

body{
    margin: 0;
}

button{
    cursor: pointer;
}

#nav-barre {
    position: -webkit-sticky;
    position: sticky;
    top:0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--hauteur);
    background-color: rgb(255, 255, 255);
    border: solid 0 black;
    border-bottom-width: 0.0625rem;
    z-index: 10;
}

#prev, #next {
    position: absolute;
    display: flex; 
    align-items: center; 
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
}
#prev {
    left: 1.25rem;
}

#next {
    right: 1.25rem;
}

#prev img, #next img {
    width: 3.125rem;
    height: 3.125rem;
    object-fit: contain; 
    border-radius: 50%;
    border:solid;
    border-color: rgb(191, 191, 191);
    background: white;
}

#prev p, #next p {
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
}

/* LA MAIN */

#partie-name{
    /* padding-top: 0.3125rem; */
}

#yokai-name{
    position: -webkit-sticky;
    position: sticky;
    top:10px;
    text-align: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.875rem;
}

#image-yo-kai{
    display: flex;
    justify-self: center;
    width: 18.75rem;
    height: 18.75rem;
    object-fit: contain; 
    background-color: aliceblue;
    border-radius: 0.9375rem;
    box-shadow: 0.375rem 0.25rem 0.625rem rgb(224, 229, 233);
}

/*feature*/
#yokai-rank, #yokai-tribe, #yokai-element, #yokai-role{
    height: 3.125rem;
}

.marge-partie{
    margin-left: 1.875rem;
    margin-right: 1.875rem;
}


.section-title {
    font-size: 1.25rem;             
    font-weight: 700;              
    color: rgb(31, 41, 55);              
    display: inline-block;         
    margin-bottom: 0.75rem;        
    padding-bottom: 0.25rem;       
    border-bottom-style: solid;   
    border-bottom-width: 0.125rem; 
    /* border-color: #000000;  */
    font-weight: 700;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";   
}

.border-red-500 {
    border-color: #ef4444;         
}

.yokai-desc {
    color: rgb(75, 85, 99);              
    line-height: 1.625;            
    margin: 0;                     
    font-size: 1rem;    
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";           
}



.tableau-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.25rem; 
    max-width: 31.25rem; 
    margin: 0 auto;
}

.feature-box {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    text-align: center;
    padding: 0.625rem;
}

.feature-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}


#partie-voix{
    position: relative;
}

#boutonBruit{
    transition: 0.2s;
    position: absolute;
    right: 3.125rem;
    top:1.875rem;
    width: 3.125rem;
    height: 3.125rem;
    border: solid 0;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0.125rem 0.125rem 0.3125rem rgba(0, 0, 0, 0.18);
    color: white;
    font-size: 1.25rem;
}

#boutonBruit:hover{
    transition: 0.2s;
    background-color: #d93434;
    box-shadow: 0.0625rem 0.0625rem 0.3125rem rgba(0, 0, 0, 0.18);
}

#boutonBruit:active{
    transition: 0.2s;
    background-color: #bc3b3b;
    box-shadow: 0 0 0.3125rem rgba(0, 0, 0, 0.18);
    transform: scale(1.05);
}

#envoutemant-description{
    background-color: rgb(250, 245, 255);
    border: solid;
    border-color: rgb(243, 232, 255);
    border-radius: 0.5rem;
    border-width: 0.0416667rem;
    padding: 1rem;
}

/* stats */
.block-stat{
    position: relative;
    display: flex;
    color : rgb(31, 41, 55);
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";    
    justify-self: center;
    margin-top: 0.9375rem;
}

.barre-stat{
    background-color: rgb(229, 231, 235);
    border-radius: 6.25rem;
    border: solid 0;
    width: 18.75rem;
    height: 1.125rem;
    overflow: hidden;
    margin-left: 0.625rem;
    margin-right: 0.625rem;
}

.value-stat{
    background-color: rgb(34, 197, 94);
    width: 90%;
    height: 100%;
    border-radius: 0.4375rem;
}

.nombre-stat{
    font-weight: bold;
}

.type-stat{
    text-align: right;
    width: 3.75rem;
}

/* médaillon */
.img-cube {
    transition: 0.2s;
    width: 5rem;
    margin: 0.625rem;
}

.img-cube:hover {
    transition: 0.2s;
    transform: scale(1.2);
}

/* FUSION */
.block-fusion{
    background-color: rgb(255, 183, 91);
    display: flex;
    justify-self: center;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    gap: 0.625rem;
    width: 34.375rem;
    border-radius: 2.5rem;
}

.block-evolution{
    background-color: rgb(182, 207, 255);
}

.block-fusion p {
    margin: 0 0.625rem;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";    
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    text-align: center;
}


.block-personnage {
    display: flex;
    flex-direction: column;
    align-items: center;   
    width: 6.25rem;          
    gap: 0.3125rem;       
}

.block-personnage img{
    width: 6.25rem;
    height: 6.25rem;
    object-fit: contain;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    border: solid 0.0625rem;
    padding: 0.625rem;
}

.block-personnage label {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";    
    font-size: 1.125rem;
    text-align: center;
}


.espaceContext{
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";    
    font-size: 1.125rem;
    text-align: center;
}