.modal-container {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 1000;
}

.modal-content {
    max-width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--color-white);
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-modal button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.close-modal i {
    font-size: 24px;
    color: var(--color-text);
}

.header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 30px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.header-container h1 {
    font-size: 2.4rem;
    font-weight: 600;
}

.header-container h2 {
    font-size: 1.2rem;
    font-weight: 300;
}

.header-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 30px;
}

.header-container button i {
    font-size: 22px;
}

.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 15px;
    flex-grow: 1;
}

.main-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.filter-container label {
    white-space: nowrap;
}

.filter-container select {
    padding: 5px;
    color: var(--color-text);
    border-radius: 5px;
    outline-color: var(--color-primary);
    border-color: var(--color-primary);
    cursor: pointer;
}

.download-container button {
    padding: 8px;
    color:  var(--color-white);
    background-color:  var(--color-primary);
    border: none;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.card-container {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 15px;
}

.card {
    width: calc((100% / 4) - 12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: box-shadow var(--transition-speed);
}

.data-item {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    display: flex;
    flex-direction: column;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 500;
    color:  var(--color-primary);
}

.card-header p {
    font-size: 12px;
    font-weight: 600;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    align-self: center;
}

.image-item {
    width: 40%;
    aspect-ratio: 1;
}

.card-image img,
.image-item img {
    width: 100%;
}

.presentation,
.item-presentation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.presentation h4,
.item-presentation h4 {
    font-size: 12px;
    color:  var(--color-primary);
}

.presentation .flags,
.item-presentation .item-flags {
    display: flex;
    gap: 5px;
}

.presentation .flags span,
.item-presentation .item-flags span {
    padding: 4px 8px;
    font-size: 12px;
    color:  var(--color-white);
    background-color:  var(--color-primary);
    border-radius: 4px;
}

.weight,
.item-weight {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
}

.description,
.item-description {
    width: 100%;
    margin: 10px 0;
    font-size: 12px;
}

.item-description {
    margin: 0;
    padding: 10px;
    font-size: 14px;
    border: 1px solid  var(--color-border);
    border-radius: 4px;
}

.description a {
    font-size: 12px;
    text-decoration: none;
    color:  var(--color-primary);
}

.code,
.item-code {
    padding: 8px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color:  var(--color-primary);
    border: 1px solid  var(--color-primary);
    border-radius: 4px;
}

.item-code {
    display: inline-flex;
    align-self: start;
}

.code span,
.item-code span {
    font-weight: 700;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    background-color:  var(--color-primary);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color:  var(--color-white);
}

footer p {
    font-size: 12px;
    text-align: center;
    color:  var(--color-white);
}

a:hover, button:hover, select:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.card:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
}

@media screen and (max-width: 650px) {
    .modal-content {
        max-width: 90%;
        flex-direction: column;
    }

    .card {
        width: calc(100%);
    }

    .data-item {
        width: 100%;
    }
}

@media screen and (min-width: 651px) and (max-width: 850px) {
    .modal-content {
        max-width: 90%;
    }

    .card {
        width: calc((100% / 2) - 8px);
    }
}

@media screen and (min-width: 851px) and (max-width: 1150px) {
    .card {
        width: calc((100% / 3) - 10px);
    }
}