@font-face {
    font-family: 'Pokemon Classic';
    src: url('fonts/pokemon-classic.ttf') format('truetype');
    font-display: swap;
}

:root {
    --color-dark: #07032e;
    --color-dark-transparent: #07032e6b;
    --color-light: #ffffff;
    --radius: 18px;
    --header-height: 5rem;
    --main-padding: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Pokemon Classic', 'Trebuchet MS', sans-serif;
    color: var(--color-light);
    background-color: #1d1763;
    background-image: url(./assets/img/pokemon-bg.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

body.no_scroll {
    overflow: hidden;
}

.d_none {
    display: none;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 40px;
    background-color: var(--color-dark);
}

.header_left,
.header_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.5rem;
}

.logo_img {
    height: 2.5rem;
}

.logo_img:hover {
    transform: rotate(1080deg);
    transition: transform 0.5s ease-in-out;
}

#search_input {
    width: min(300px, 45vw);
    min-width: 0;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
}

.main {
    padding: calc(var(--header-height) + 2rem) var(--main-padding) 2rem;
}

.message {
    max-width: 1440px;
    margin: 0 auto 1rem;
    padding: 12px 18px;
    border-radius: var(--radius);
    background-color: var(--color-dark-transparent);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 661px) {
    :root {
        --header-height: 8rem;
    }

    .header {
        flex-direction: column;
        padding: 8px 16px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header_right {
        width: 100%;
        justify-content: center;
    }

    #search_input {
        flex: 1;
        width: auto;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 6.25rem;
        --main-padding: 12px;
    }

    .header {
        gap: 8px;
        padding: 8px 10px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo_img {
        height: 2rem;
    }

    .header_right {
        gap: 6px;
    }

    #search_input {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .message {
        padding: 10px 12px;
        font-size: 0.7rem;
    }
}
