@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}
:root{
    --magyar-piros: #CE2939;
    --magyar-zold: #477050;
}
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-family: 'Kanit';
    font-size: 40px;
    margin: 0;
}

section {
    max-width: 900px;
    margin: 32px auto;
}

@media screen and (max-width: 900px) {
    section {
        margin: 32px 32px;
    }
}

footer {
    text-align: right;
}

nav {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    gap: 16px;
    background-color: var(--magyar-piros);
}

nav h2 {
    margin: 0;
    background-color: var(--magyar-zold);
    padding: 8px 32px;
    border-radius: 16px;
    color: white;
}

nav a {
    text-decoration: none;
    font-family: 'Roboto';
    /* font-weight: ; */
}
nav h2{
    font-size: 25px;
    font-family: 'Roboto';
}
h2{
    margin: 30px;
    font-family: 'Roboto';
    font-weight: 600;
    font-size: 35px;
    
}
hr{
    margin: 0px;
    background-color: #CE2939;
    height: 5px;
    border: 0px;
}
h3{
    font-family: 'Roboto';
    margin: 30px;
    font-weight: 500;
    font-size: 25px;
    padding: 3px;

}
h4{
    margin: 35px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 20px;
    padding: 3px;
    
    
    
}
p{
    margin: 35px;
    font-weight: 300;
    width: 70%;
    
}

iframe{
    margin: 30px;
    width: 400px;
    height: 250px;
}
table{
    margin: 35px;
}
ul{
    margin: 30px;
}

nav h2,
footer h2 {
    background-color: var(--magyar-zold);
    padding: 8px 32px;
    border-radius: 16px;
    color: white;
}
 
footer h2 {
    margin: 0;
    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;
}

@media screen and (max-width: 500px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        height: fit-content;
        gap: 8px;
        padding: 8px 0;
    }

    nav h2 {
        margin: 0;
    }
}