html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
}

.wrapper {
    flex: 1;
}

header {
    width: 100%;
    position: relative;
    background-image: var(--bg-header);
    color: white;
    text-align: center;
    box-shadow: var(--box-shadow-header);
}

.header-container {
    width: 90%;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-actions {
    display: flex;
    position: absolute;
    right: 0;
}

header h1 {
    font-family: 'Lobster', sans-serif;
    font-weight: 400;
    font-style: normal;
    flex-grow: 1;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

header h1 a {
    text-decoration: none;
    color: var(--text-load-more-button-color);
}

header h1 a:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: auto;
    width: 90%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-block-start: 50px;
}

.h2 {
    width: 90%;
    margin: 20px auto 10px auto;
    font-size: 21px;
    font-weight: bold;
    color: var(--text-color);
}

.search-panel {
    width: 90%;
    position: relative;
    margin: 20px auto 10px auto;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.search-panel input[type="text"] {
    width: 90%;
    flex-grow: 1;
    padding: 10px 40px 10px 15px;
    font-size: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-search-panel);
    border-radius: 4px;
    height: 40px;
    background-color: var(--bg-color);
    color: var(--text-color);
    caret-color: var(--text-color);
    box-sizing: border-box;
}

.search-panel input[type="text"]:focus {
    outline: none;
}

.search-panel input[type="text"]:focus::placeholder {
    color: transparent;
}

.search-panel button {
    background-color: var(--bg-button);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.search-panel button img {
    width: 20px;
    height: 20px;
    display: block;
}

.search-panel button:not(:disabled):hover {
    background-color: var(--bg-button-hover);
}

.search-panel button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    position: relative;
    flex-grow: 1;
}

.search-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    font-size: 16px;
    border: 1px solid var(--border-search-panel);
    border-radius: 4px;
}

.clear-search {
    position: absolute;
    right: 85px;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
}

.clear-search:hover {
    transform: scale(1.2);
    color: var(--text-hover-color);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

button img {
    width: 24px;
    height: 24px;
    display: block;
}

.icon-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.icon-link img{
    width: 24px;
    height: 24px;
    display:block;
    object-fit:contain;
}

.icon-link:hover {
    opacity: 0.7;
}

.section-header {
    width: 90%;
    margin: 20px auto 10px auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
}

.section-header .h2 {
    width: auto;
    margin: 0;
    font-size: 21px;
    font-weight: bold;
    color: var(--text-color);
}

.section-header .filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@font-face {
    font-family: 'Lobster';
    src: url('../fonts/Lobster-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .h2 {
        font-size: 18px;
    }

    button img {
        width: 20px;
        height: 20px;
    }

    .icon-link img{
        width: 20px;
        height: 20px;
    }
}

@media (hover: none) {
    .search-panel button:hover {
        background-color: var(--bg-button);
    }
}