* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #008000;
    padding: 20px;
}

nav {
    background-color: rgb(9, 243, 9);
    display: grid;
    place-items: center;
}

nav ul {
    list-style-type: none;
}

nav ul a {
    display: inline-block;
    padding: 20px;
    text-decoration: none;
    color: #0f0f0f;
    transition: 0.2s ease-in;
    font-size: 18px;
}

nav ul a:hover {
    background-color: rgb(12, 131, 22);
    color: rgb(15, 15, 15);
}

.items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px 20px;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
}

.item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.2s ease;
}

.item img:hover {
    transform: scale(1.04);
}

.item h4 {
    padding: 5px;
    text-align: center;
}

.size {
    background-color: rgb(181, 220, 7);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: medium;
    width: fit-content;
    /* width adjusts to content */
    padding: 5px 10px;
    /* padding instead of fixed height */
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    /* centers the element */
    text-align: center;
}

.item button {
    padding: 5px 30px;
    border: none;
    outline: none;
    background-color: green;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    display: block;
    margin: 0 auto;
    transition: 2.2s all;
}

.item button:hover {
    transform: scale(1.08);
}

.footer {
    background-color: #151716;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__contact {
    font-size: 0.9rem;
}

.footer__info {
    margin: 0;
    padding: 0.2rem 0;
}

.footer__social {
    display: flex;
}

.footer__icon {
    margin-left: 1rem;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 1000px) {
    .items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .items {
        grid-template-columns: repeat(1, 1fr);
    }
}