/* Général */
body {
    background-color: #2e2e2e;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #ff4500;
}

.recipe-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* Active la barre de défilement */
    max-height: 800px; /* Hauteur max pour la défilement */
}

.decraft-grid-image {
    width: 50px;
    height: 50px;
    background-color: #444;
    border: 1px solid #ff4500;
    border-radius: 5px;
    object-fit: cover;
}

.decraft-grid:hover {
    transform: scale(1.1);
}

.home-button {
    background-color: #e63946; /* Couleur rouge volcanique */
    color: white; /* Texte blanc */
    text-decoration: none; /* Pas de soulignement */
    padding: 10px 20px; /* Espacement intérieur */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s; /* Transition douce pour le changement de couleur */
    align-self: center; /* Centrer le bouton */
}

.home-button:hover {
    background-color: #d62839; /* Changement de couleur au survol */
}

.result-image {
    width: 100%;
    height: auto;
}

#searchInput {
    padding: 10px;
    width: 30%;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ff4500;
    outline: none;
}

/* Conteneur principal */
.decraft-container {
    background-color: #444;
    border: 1px solid #ff4500;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
}

/* Chaque élément de décraft */
.decraft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #2e2e2e;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    
}

.decraft-grid {
    display: grid;
    grid-template-columns: repeat(2, 50px);
    grid-template-rows: repeat(2, 50px);
    gap: 5px;
    transition: transform 0.3s ease;
}

/* Image de décraft */
.decraft-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #3b3b3b;
    border: 2px solid #ff5722;
    transition: transform 0.3s ease;
}

/* Flèche et outil */
.arrow-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.arrow {
    width: 25%;
    height: auto;
}

.tool {
    position: absolute;
    width: 15%;
    height: auto;
    opacity: 80%;
}

/* Boîte du résultat */
.result-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: #3b3b3b;
    border: 2px solid #ff5722;
    border-radius: 10px;
    text-align: left;
    font-size: 14px;
    transition: transform 0.3s ease;
}


.littleitem {
    width: 20%;
}

.result-box:hover {
    transform: scale(1.1);
}

.decraft-image:hover {
    transform: scale(1.1);
}



/* Responsive */
@media (max-width: 768px) {
    .decraft-container {
        gap: 15px;
    }

    .decraft-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .result-box,
    .decraft-image {
        width: 80px;
        height: 80px;
    }

    .arrow {
        width: 100px;
    }

    .tool {
        width: 40px;
    }
}