/* Style général de la boutique */
#shopUI {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 65vw;
    min-width: 65vw;
    min-height: 75vh;
    max-height: 75vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#shopUI h3 {
    font-size: 3em;
    font-family: 'Cinzel', serif; /* Police personnalisée */
    font-weight: bold; 
    color: gold; 
    text-align: center; 
    margin: 0px; 
    letter-spacing: 2px;
}

/* Style du texte "Or disponible" */
.gold-display
{
    color: white;
    display: flex    ;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin:30px 0;
}

#shopGoldDisplay
{
    font-size: 2em;
    font-weight: bold;
    color: white; 
    text-shadow: 
        0 0 5px gold, /* Ombre dorée */
        0 0 10px gold; /* Effet de halo */

}

/* Style de l'icône de pièce */
.coin-icon {
    width: 30px; /* Taille de l'icône */
    height: 30px; /* Taille de l'icône */
    filter: drop-shadow(0 0 5px gold) /* Ombre dorée */
            brightness(1.2); /* Légère augmentation de la luminosité */
}

#shopUI p {
    font-size: 18px;
}

.coin-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

.close-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: absolute;
    top: 10px;
    right: 36px;
    gap:0 20px
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-button img
{
    width: 25px;
}

/* Style des éléments de la boutique */
.shop-items {
    display: flex;
    flex-wrap: wrap;
    width: 75vw;
    gap: 23px;
}

.shop-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: calc(60% - 30px);
    padding:15px;
    align-items: flex-start;
}

.item-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 25px;
    margin: 0 0 5px 0;
    color: gold;
}

.item-info p {
    font-size: 14px;
    margin: 0 0 0px 0;
    color: #ccc;
}

.buy-button
{
    display: flex;
    justify-self: center;
    margin-top:5px;
    background: linear-gradient(145deg, rgba(48, 42, 2, 0.8), rgba(109, 71, 0, 0.8));
    border: none;
    color: white;
    padding: 8px 16px;
    font-size: 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;

}

.buy-button:hover {
    background: linear-gradient(145deg, rgb(14, 12, 1), rgba(109, 71, 0, 1));
}

.buy-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

/*PERSO DES BTN***/

.header-item
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.info-achat
{
    text-align: center;
    display: flex;
    width: 100%;
}

.input_range_container
{
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    padding-top:7px;
}

#healthQuantity,
#speedQuantity,
#damageQuantity,
#baseHealthQuantity
{
    display: flex;
    font-size: 2em;
    background-color: #00000029;
    color: white;
    width: 25px;
    height: 25px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 20px;
}

.ameliorations
{
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0 20px;
    margin-top: 5px;
}

.ameliorations img,
.cout_base img
{
    width:25px;
}

.goldQuantityRange
{
    font-size: 1em;
    font-weight: bold;
    color:gold
}

.gained
{
    display: flex;
    align-items: center;
}

.gained span
{
    color: rgb(38, 161, 0);
    font-size: 2em;
    font-weight: bold;
}

#healthMaxGained
{
    padding: 0 5px;
}

.cout_base
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.cout_base span:nth-child(1)
{
    margin-right:30px;
}

.cout_base #cout_base_health,
.cout_base #cout_base_speed,
.cout_base #cout_base_damage,
.cout_base #cout_base_baseHealth
{
    display: flex;
    font-size: 1.5em;
    font-weight: bold;
    color:gold;
    padding:5px;
}

/*****/

/* Flèche du magasin */
#shopArrow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999; /* Assurer que la flèche est au-dessus des autres éléments */
    display: none; /* Masquée par défaut */
}

#shopArrow.visible {
    display: block; /* Afficher la flèche */
}

#arrow {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid rgb(255, 149, 0); /* Couleur de la flèche */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Message "E Boutique" */
#shopInteraction {
    position: fixed;
    display: none; /* Masqué par défaut */
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 2; /* Assurer que le message est au-dessus des autres éléments */
}

#shopKey {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

#shopLabel {
    font-size: 24px;
    font-weight: bold;
    color: white;
    font-family: Arial, sans-serif;
}

/* Style pour les inputs de type range */
.range-container
{
    display: flex;
    justify-content: flex-start;
   /* align-items: center;*/
}

.range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.range-input:hover {
    opacity: 1;
}

.range-input::-webkit-slider-thumb
{
    -webkit-appearance: none; /* Désactiver le style par défaut */
    appearance: none;
    width: 24px; /* Taille du curseur */
    height: 24px;
    background: #fff; /* Couleur du curseur */
    border: 2px solid #00b3ff; /* Bordure colorée */
    border-radius: 50%; /* Curseur rond */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Ombre légère */
    transition: transform 0.2s, box-shadow 0.2s;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1); /* Agrandir légèrement le curseur */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); /* Ombre plus prononcée */
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #00b3ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.range-info {
    display: flex;
    justify-content: space-between; /* Espacement entre les éléments */
    font-size: 20px;
    color: #ccc;
    padding:8px 0 0 8px;
}

.range-info span {
    display: inline-block;
}

/*******************************        TABS        *********************/
/* Style des onglets */
.shop-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 0 25px;
}

.tab-button
{
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 20px;
    font-size: 2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 10px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: gold;
}

.tab-button img
{
    margin:0
}
/* Contenu des onglets */


.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    justify-content: center;
}


/********* QUANTITE MAX MIN ******/

.button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 10px;
    gap: 0 15px
}

.quantity-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px;
    font-size: 16px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-button:hover {
    background: rgba(255, 255, 255, 0.2);
}