/*************************************** Lista *****************************************/
#material #lista {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    gap: 1rem;
}

@media screen and (max-width: 900px) {
    #material #lista {
        grid-template-columns: 50% 50%;
    }
}

#material #lista .kafelek {
    background-color: white;
    box-sizing: border-box;
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    max-width: 40vw;
}

#material #lista .kafelek:hover {
    cursor: pointer;
    text-decoration: none;
	box-shadow: 0 0 20px #999;
}

#material #lista .kafelek .obrazek {
    aspect-ratio: 1 / 1;
    background-image: var(--obrazek);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5%;
}

#material #lista .kafelek .nazwa {
    text-align: center;
    font-size: 1.25rem;
    margin: 1rem;
}

/************************************* Prezentacja *****************************************/
#materialszczegol .prez {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.2500%;
    padding-bottom: 0;
    box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16);
    margin-top: 1.6em;
    margin-bottom: 0.9em;
    overflow: hidden;
    border-radius: 8px;
    will-change: transform;
}

/******************************* Strona z informacjami *********************************/
.strona-informacje .info {
    font-size: 1.25rem;
    color: #333;
    letter-spacing: 0.05rem;
}

 .info.krotki {
    max-width: 75%;
}

.strona-informacje button {
    max-width: 25rem;
    margin-top: -0.5rem;
}

.strona-informacje .duzy {
    color: var(--secondcolor);
    letter-spacing: 0.1rem;
    font-size: 2.4rem;
}

.strona-informacje select {
    min-width: 25rem;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: white;
    /* color: var(--maincolor); */
    margin-top: -0.5rem;
}