@font-face {
    font-family: 'CookieRunOTF-Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/CookieRunOTF-Bold00.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root[theme="light"] {
    --header-color: #A67F78;
    --background: white;
    --color: #E1DCD9;
    --border-color: #eeeeee;
}

:root[theme="dark"] {
    --header-color: #141414;
    --background: #242424;
    --color: lightgray;
    --border-color: #242424;
}


body {
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    margin: 0;
}

section {
    margin-top: 100px;
}

header {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    font-family: 'CookieRunOTF-Bold';
    font-size: 40px;
    font-weight: bold;
    color: var(--color);
    width: 100vw;
    height: 100px;
    background-color: var(--header-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, auto));
    gap: 20px;
    margin: 20px;
}

.card-item {
    height: 300px;
    border: 1px solid;
    border-color: var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    filter: grayscale(100%);
    transition: filter 0.5s;
    -webkit-transition: filter 0.5s;
}

.card-item:hover {
    /* box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.9); */
    filter: grayscale(0%);
}

a > img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.Btn-theme {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    background-color: rgb(35, 55, 77);
    border-radius: 40px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.Btn-theme:hover {
    box-shadow: 0px 0px 5px rgb(0, 0, 0, 0.9);
}

.Btn-theme * {
    transition: fill 0.2s;
}

.Btn-theme:hover * {
    fill: #ffd500;
}