* {
box-sizing: border-box;
}

html {
padding: 0px;
margin: 0px;
font-size: 1.2em;
scroll-behavior: smooth;
}

body {
    padding: 0px;
    margin: 0px;
    background-color: #fff9c2;
}

header {
    background-image: url("background/ujbody.jpg");
    background-position: center center;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2vw;
    width: 100%;
    height: 100%;
    
}

header h1 {
    font-family: 'Jacques Francois Shadow';
    font-variant: small-caps;
    letter-spacing: 5px;
    margin: 0px;
    padding: 1.3em;
    text-align: center;
    text-shadow: 3px 3px 10px;  
}

#cim{color: #F4EBC1; text-shadow: 5px 5px 10px #00334E; text-decoration: none; transition: 1s;}
#cim:hover{color: #F4EBC1; text-shadow: 8px 8px 12px #00334E;}

footer {
    background-color: #fff9c2;
    margin-top: 2%;
    font-size: 0.8em;
    text-align: center;
    color: #622c24;
    width: 100%;
    height: 100%;
    padding: 5px;
}


nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

nav ul li {
    padding: 5px;
}

nav li a {
    display: block;
    color: #622c24;
    background-color: #FFF6DA;
    text-align: center;
    text-decoration: none;
    border-style: solid;
    border-color: #ffae00;
    padding: 5%;
    border-radius: 1px 30px 1px 20px;
    transition: 0.8s;  
}

nav li a#active {
    background-color: #FFF6DA;
    color: #00c1a7;
    border-color: #00c1a7;
}

nav li a:hover, nav li a#active:hover {
    background-color: #FFF6DA;
    color: #ffae00;
    border-color: #ffae00;
    border-radius: 20px 1px 20px 1px;
}

article {
    text-align: justify;
    color: #622c24;
    background-color: #faf2e6;
    opacity: 0.95;
    padding: 1% 2% 1% 2%;
    margin: 0.5%;
    border-radius: 1px 30px 1px 20px;
    box-shadow: 5px 5px 5px #622c24;
}

h2{text-align: center; font-family: 'Vollkorn', serif; color: #00c1a7;}
h3{color: #ff6d00;}


aside{
    height: fit-content;
    margin: 0.5%;
    padding: 0px;
    flex: 1 1 100%;
    flex-direction: row;
    align-content: flex-start;
    background-color: #faf2e6;
    opacity: 0.95;
    padding: 1% 2% 1% 2%;
    border-radius: 5px;
    text-align:center;
    color: #622c24;
    border-radius: 20px 1px 20px 1px;
    box-shadow: 5px 5px 5px #622c24;

}

aside p, #shopp{text-align: center;}

span{font-weight: bold; color: #ffae00;}

figure{
    float: right;
    height: fit-content;
    text-align: center;
    margin-right: 0px;
    margin-left: 15px;
    padding: 0.3%;
    border: 2px solid #ffae00;
}

img{
    width: 100%;
}

table{margin-left: auto; 
    margin-right: auto; 
    width: 90%; 
    border-collapse: collapse; 
    text-align: center;
    border: 3px solid #ffae00;
    padding: 10px;
}
table td{
    text-align: center;
}
table tr{
    text-align: center; 
    vertical-align: center;
}

#nev, #email, #tel {width: 75%;}
#iranyito, #haz {width: 8%;}


#horgony{list-style-type: none; text-align: center; text-decoration: none;}
#horgony li a, #vissza{
    color:#00334E;
    text-decoration: none;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}
#horgony li a:hover, #vissza:hover {color: #ffae00; font-style: italic;}
#vissza{
    display: flex;
    justify-content: flex-end;
}

div#content{
    display: flex;
    flex-direction: column;
    height:min-content;

}

label.error{color: red;}


section{border-left: 3px solid #ffae00; text-indent: 2px;}

@media only screen and (min-width: 600px) {
    /* tablet */
    div#content {
        flex-direction: row;
    }
    nav ul {
        flex-direction: row;
    }
    nav ul li {
        flex-basis: 33.33%;
    }
    
    #bottom {
        display: flex;
        flex-wrap: wrap;
    }
    section {
        flex-basis: 46%;
    }
    #bottom figure {
        flex-basis: 46%;
    }
    #bottom aside {
        flex-basis: 100%;
    }
}

@media only screen and (min-width: 768px) {
    /* számítógép */
    article {
        flex-basis: 66.66%;
    }
    figure {
        flex-basis: 33.33%;
    }
    aside {
        flex-basis: 25%;
    }
    section {
        flex-basis: 23%;
    }
    #bottom figure {
        flex-basis: 48%;
    }
    #bottom aside {
        flex-basis: 23%;
    }
}