:root{
    --clr1: white;
    --gold: #ffcc00;
    --yellow: #ffeb3b;
    --grad0: black;
    --grad40: #241c00;
    --grad100: #332a00;
}

#main_heading{
    margin-left: 7%;
    font-size: 7.4rem;
    font-weight: 500;
}
#main_heading img{
    width:6rem;
}

.box-container{
    padding: 7rem;
    width: 86vw;
    height: 60vh;
    margin-top: 2rem;
    margin-left: 7%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
}

.item{
    margin: 1rem;
    background-color: transparent;
    color: var(--clr1);
    text-align: center;
    justify-items: center;
    border:2px solid var(--yellow);
    border-radius: 1rem;
    font-size:2.5rem;
    font-weight: 400;
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 1.8rem;
}
.item:hover{
    box-shadow: 0 0 10px var(--yellow);
    transform: scale(1.1);
}


@media (max-width: 900px) {
    #main_heading{
        font-size: 3.5rem;
        margin-left: 0;
        margin-top: 2rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    #main_heading img{
        width: 3.5rem;
    }

    .box-container{
        width: 100%;
        margin-left: 0;
        padding: 2rem 5%;
        height: auto; /*Removes the fixed height so it can grow */
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .item {
        font-size: 1.3rem;
        margin: 0;
        padding: 1.5rem 0.5rem;
        flex-direction: column; 
        gap: 1rem;
    }
    
    .item img {
        height: 3.5rem;
        width: auto;
    }

    .item:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px var(--yellow);
    }
}