.subtitle {
    text-align: center;
    color: #fff;
    font-family: Arial;
    font-size: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem;
    text-align: justify;
    text-align: center;
}

.first-subtitle {
    width: 50%;
    max-width: 710px;
    margin: 0 auto;
}

.second-subtitle {
    width: 69%;
    max-width: 904px;
    margin: 0 auto;
}

.buttons-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 2rem; 
    margin: 2rem 0; 
}

.buttons-container button {
    display: inline-flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}

.buttons-container a img {
    width: auto;
    height: 256px;
    margin: 5px;
}

.buttons-container a:hover img {
    transform: scale(1.1);
    transition: transform 0.3s;
}

.buttons-container .button-text {
    font-size: 1rem;
    color: #fff;
    text-align: center;
}

.button-printable, .button-workshop, .button-steam {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    flex: 0 0 auto;
}

button.button-printable, button.button-workshop, button.button-steam {
    background-color: transparent;
    border: none;
}

.button-printable a, .button-workshop a, .button-steam a {
    text-decoration: none;
    padding: 0.6rem;
    background-color: rgba(0, 0, 0, 0.45);
}

.button-printable .button-text, .button-workshop .button-text, .button-steam .button-text {
    color: #fff;
    font-family: Arial;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
}

#ttprice {
    color: #fff;
    font-family: Arial;
    font-size: 1rem;
    margin: 0;
}

.button-with-price {
    position: relative;
    display: inline-block;
}

.button-with-price #ttprice {
    position: absolute;
    top: 8px; 
    right: 8px;
    font-weight: bold;
    color: #fff;
    font-family: Arial;
    font-size: 1.4rem;
    margin: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .buttons-container {
        flex-direction: row;
        flex-wrap: wrap; 
        gap: 1rem;
        justify-content: center;
        align-items: flex-start;
    }

    .buttons-container > * {
        flex: 0 0 34%;
        max-width: 360px;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .buttons-container a {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .buttons-container a img {
        height: auto;
        max-width: 120px;
        margin: 0 0 0.25rem 0; 
    }

    .buttons-container .button-text, .button-printable .button-text, .button-workshop .button-text, .button-steam .button-text {
        font-size: 0.95rem;
    }

    .button-printable a, .button-workshop a, .button-steam a {
        padding: 0.4rem;
        background-color: rgba(0, 0, 0, 0.45);
    }

    .first-subtitle, .second-subtitle {
        width: auto !important;
        max-width: none !important;
        margin: 0.25rem 1rem !important;
    }

    .button-with-price #ttprice {
        top: 2px; 
        right: -15px;
        font-size: 1rem;
    }
}