*,
*::before,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 62.5%;
    --clr-bg: rgb(240, 240, 240);
    --clr-text: rgb(24, 24, 24);
    --margin-1: 0.8rem;
    --font-size-menu: 1.6rem;
    --font-size-small: 1.2rem;
    --font-size-regular: 1.4rem;

}

@media screen and (width < 700px) {
    :root {
        --font-size-menu: 1.55rem;
        --font-size-small: 1.2rem;
        --font-size-regular: 1.35rem;
    }
}

/* Typefaces */

@font-face {
    font-family: 'Geist';
    src: url(/assets/fonts/GeistMono-Regular.ttf) format("truetype");
}
@font-face {
    font-family: 'Grotesk';
    src: url(/assets/fonts/die-grotesk-a-medium.woff2) format("woff2");
}
@font-face {
    font-family: 'GroteskItalic';
    src: url(/assets/fonts/die-grotesk-a-medium-italic.woff2) format("woff2");
}
/* Reset */

img, picture, video, iframe {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

em {
    font-family: 'GroteskItalic';
}

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;       
  color: inherit;      
  cursor: pointer;     
  outline-offset: 4px;
}

button:hover,
button:focus-visible {
  text-decoration: underline;
}

html {
    overscroll-behavior: none;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: "Grotesk";
    font-size: var(--font-size-regular);
    line-height: calc(var(--font-size-regular) * 1.3);
    transition: color 0.2s ease-in-out;
}

body:has(.hover-bg-container.is-active) {
    color: white;
}

/* Header */

.desktop-header,
.mobile-header {
    position: sticky;
    top: 0;
}

.desktop-header {
    padding: var(--margin-1);
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    font-size: var(--font-size-menu);
}
.mobile-header {
    display: none;
}

.filter-toggle::after {
    content: ',';
}

@media screen and (width < 700px) {
    .desktop-header {
        display: none;
    }
    .mobile-header {
        display: block;
        /* background-color: var(--clr-bg); */
    }
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        padding: var(--margin-1);
    }
    .mobile_menu {
        display: none;
        justify-content: end;
        padding-inline: var(--margin-1);
        padding-bottom: 0.8rem;
    }
    .mobile_menu.visible {
        display: flex;
        position: absolute;
        width: 100%;
        /* background-color: var(--clr-bg);
        border-bottom: 1px solid black; */
    }
    .mobile_menu ul {
        display: flex;
        gap: 0.5rem;
    }
}

.logo_wrapper {
    grid-column: 1;
    justify-self: start;
}
.desktop_menu {
    grid-column: 2;
    justify-self: center;
}
.languages {
    grid-column: 3;
    justify-self: end;
}

.desktop_menu ul,
.languages ul {
    display: flex;
    align-items: center;
}

.desktop_menu ul {
    gap: 0.5rem;
}

.menu-active {
    text-decoration: underline;
}

/* Main */

.main {
    margin: var(--margin-1);
}

.footer {
    position: fixed;
    width: calc(100% - var(--margin-1) - var(--margin-1));
    bottom: 0;
    left: 0;
    margin: var(--margin-1);
    display: flex;
    justify-content: space-between;
}

@media screen and (width < 700px) {
    .footer {
        position: relative;
    }
}

.footer_nav ul {
    display: flex;
    gap: 1rem;
}

.mobile-header.on-top-of-image,
.category_filter.on-top-of-image,
.mobile-header.on-top-of-image *,
.category_filter.on-top-of-image * {
  color: #ffffff !important;
}