@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root {
    --magyar-piros: #ce2939;
    --magyar-zold: #477050;
}

* {
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body::before {
    position: fixed;
    top: 0;
    left: 0;    
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    background-size: 100% 100%;
    background-image: url("./hatter.avif");
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto';
}

p {
    line-height: 1.4;
    font-size: 18px;
}

h1 {
    font-size: 40px;
    margin: 0;
}

body > section {
    width: 100%;
    max-width: 900px;
    margin: 32px auto;
    flex: 1;
}

@media screen and (max-width: 1000px) {
    section {
        margin: 32px 32px;
        width: unset;
    }
}

nav {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    gap: 16px;
    background-color: var(--magyar-piros);
}

nav h2,
footer h2 {
    background-color: var(--magyar-zold);
    padding: 8px 32px;
    border-radius: 16px;
    color: white;

    font-weight: 600;
    font-size: 25px;
}

@media screen and (max-width: 500px) {
    section {
        padding: 8px 16px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        height: fit-content;
        gap: 8px;
        padding: 8px 0;
    }

    nav h2 {
        margin: 0;
    }
}

footer h2 {
    font-size: 16px;
    background: var(--magyar-piros);
}

nav a,
footer a {
    text-decoration: none;
}

footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 0 32px;
    height: 64px;
    background-color: var(--magyar-zold);
    font-family: 'Roboto';
    color: white;
    font-weight: bold;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

a:hover {
    color: var(--magyar-piros);
}

a:visited {
    color: var(--magyar-zold);
}

li > a {
    display: block;
    width: fit-content;
}