@import "progress.css";
.button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2em;
}
#download{
    margin-bottom: 2em;
}

.download-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    padding: 1em;
    cursor: pointer;
}

.download-button:hover {
    opacity: 0.8;
}

.settings-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5em;
}
select {
    margin-bottom: 0.5em;
}

.slider {
    text-align: left;
}

.info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    cursor: pointer;
}

.info-wrapper p {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: max-content;
    max-width: 260px;
    padding: 0.75rem 1rem;

    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    font-size: 0.875rem;
    line-height: 1.4;
    text-align: left;
}

.info-wrapper p::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}

.info-wrapper p.is-visible {
    display: block;
}

/* Crafting Recipes */
#info {
    container-type: inline-size;
}

.crafting-recipes-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.crafting-recipes-container > div {
    min-width: 0;
}

.crafting-recipes-container h3 {
    overflow-wrap: anywhere;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
    gap: 2px;
}

.slot {
    width: 36px;
    height: 36px;
    background-color: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #ffffff #ffffff #373737;
    position: relative;
    box-sizing: border-box;
}

.item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.item-link img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.crafting-arrow {
    font-size: 20px;
    color: #555555;
    user-select: none;
}

.item-count {
    position: absolute;
    bottom: 1px;
    right: 3px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 2px 2px 0px #3f3f3f;
    pointer-events: none;
}

.item-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Minecraft', sans-serif;
    background-color: #100010;
    color: #ffffff;
    font-size: 13px;
    padding: 3px 6px;
    border: 2px solid #2b0860;
    box-shadow: 0 0 0 2px #100010;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out;
    pointer-events: none;
    z-index: 99;
}

.item-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Furnace Recipes */
.furnace-recipe,
.crafting-table {
    background-color: var(--minecraft-gui-background);
    display: flex;
    padding: 0.5em;
    align-items: center;
    gap: 12px;
    width: fit-content;
    border-radius: 1em;
    box-shadow: var(--card-shadow);
}

.furnace-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.furnace-fire {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
    margin: 2px 0;
}

.furnace-output-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.furnace-experience {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.xp-dot {
    width: 6px;
    height: 6px;
    background-color: #55ff55;
    border: 1px solid #115511;
}

.xp-value {
    font-family: 'Minecraft', sans-serif;
    font-size: 12px;
    color: #55ff55;
    text-shadow: 1px 1px 0px #000000;
}

.copy-btn {
    margin-top: 0;
}

/* Each recipe graphic needs 220px; switch columns based on content space. */
@container (max-width: 691px) {
    .crafting-recipes-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 800px) {
    .button-container{
        grid-template-columns: 1fr;
    }
}
@container (max-width: 455px) {
    .crafting-recipes-container {
        grid-template-columns: 1fr;
    }
}
