html, body {
    margin: 0;
    padding: 0;
    background-image: url("/assets/bg/blueSky.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

h1 {
    -webkit-text-stroke-width: 5px;
    -webkit-text-stroke-color: #FFF;
    font-family: "Star 4 Radar";
    font-size: 90px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    background: linear-gradient(180deg, #F36D30 25.74%, #FFD13D 77.94%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin: 0;
    padding: 20px;
    text-align: center;
}

.pageContainer {
    display: grid;
    grid-template-columns: auto 1200px auto;
    grid-column-gap: 0px;
}

.columnLeft{
    padding: 20px;
}

.returnLink {
    color: #FFF;
    font-family: "NSimSun", monospace;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    text-decoration: none;
}

.columnMiddle {
    display: grid;
    grid-template-rows: auto auto auto;
    justify-content: center;
    align-items: center;
}

.firstRow {
    grid-row: 1;
    width: 100%;
}

.secondRow {
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ingridient {
    width: 170px;
    height: 170px;
    position: relative;

    flex: 0 0 calc(100% / 7);     /* EXACT 6 ITEMS PER ROW */
    max-width: calc(100% / 7);
}

.yellowStar {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ingridientImage {
    position: absolute;
    z-index: 2;
    width: 80%;
    height: 80%;
    object-fit: contain;

    /* CENTERING */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ingridientName {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%); /* centers horizontally */

    top: 58%;                 /* ← ADJUST THIS to move text up/down */
    width: 100%;
    text-align: center;
    

    color: #FFF;
    text-align: center;
    -webkit-text-stroke-width: 1.3px;
    -webkit-text-stroke-color: #F00;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 900;
    font-size: 25px;
}

.thirdRow {
    grid-row: 3;

    width: 100%;
    height: fit-content;
    padding: 20px;
    margin-top: 20px;

    border: 1px solid #000;
    background: rgba(0, 43, 255, 0.72);
}

.instructions h2 {
    color: #FFF;
    font-family: "Star 4 Radar", "IBM Plex Mono", monospace;
    margin: 0;
}

.instructions p {
    color: #FFF;
    font-family: "NSimSun", monospace;
    line-height: 1.1;
    margin: 0;
}

/* Define the spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply the animation on hover */
.yellowStar:hover {
    animation: spin 1s linear infinite;  /* 1 second per rotation, infinite loop */
}
