.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #FFF;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Types */
.container .type-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
}

.container .type-container a {
    display: flex;
    width: 200px;
    padding: 11px;
    max-width: 100%;
    margin: auto 0 0 0;
    color: var(--grey-text);
    background-color: var(--hover-background);
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: color 0.1s, background-color 0.1s;
    font-family: 'DM Sans', sans-serif;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
}

.container .type-container a:hover {
    color: #FFF;
    background-color: var(--focus);
}

.container .type-container a.active {
    color: #FFF;
    background-color: var(--focus);
}

.container .type-container a.active:hover {
    color: #FFF;
    background-color: var(--hover);
}

/* Content */
.container .content-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
}

.container .content-container a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    max-width: 300px;
    width: 100%;
    height: 400px;
    align-items: stretch;
    gap: 5px;
    border: 1px solid #CCC;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.container .content-container a:hover {
    border-color: var(--focus);
}

.container .content-container a img {
    object-fit: contain;
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 0;
}

.container .content-container a p {
    opacity: 1;
    max-height: 200px;
}

@media (hover: hover) {
    .container .content-container a p {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.2s ease, max-height 0.2s ease;
    }

    .container .content-container a:hover p {
        opacity: 1;
        max-height: 200px;
    }
}

@media screen and (max-width: 474px) {
    .container .type-container a {
        width: 100%;
    }
}