#attributes {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    gap: 10px;
    padding: min(10px,max(2vw,5px));
    border-bottom: 1px solid grey;
}

#attributes > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

#attributes label {
    flex: 1;
    text-align: left;
    min-width: 60px;
}

#attributes div button {
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 13px;
    width: 15px;
    line-height: 5px;
    height: 15px;
}

#attributes div div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

#attributes input {
    width: max(20vw, 50px);
    text-align: center;
    font-size: 20px;
}

#attributes p {
    margin: 0;
    width: max(10vw, 25px);
    text-align: center;
    font-size: 25px;
}

#attributes span {
    width: max(5vw, 10px);
    font-size: 20px;
    text-align: center;
    margin: 0 5px;
}

@media (min-width: 600px) {
    #attributes {
        flex-direction: row;
        min-width: 555px;
        max-width: 555px;
    }

    #attributes > div {
        flex-direction: row;
        justify-content: space-between;
        gap: 4px;
    }

    #attributes div div {
        flex-direction: column;
        align-items: center;
    }

    #attributes input {
        width: 25px;
        font-size: 20px;
    }
    
    #attributes p {
        text-align: center;
        width: 22px;
        font-size: 20px;
    }

    #attributes span {
        width: 5px;
        font-size: 20px;
        text-align: center;
        margin: 0 2.5px;
    }
}
