@import url("nyomtatasi_nezet.css") print;

/*Közös elemek*/

html {
    background-image: url("hatter.png");
    background-attachment: fixed;
    background-repeat: repeat;
    background-size: contain;

}

body {
    font-family: 'Arial', sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    color: #333;
    line-height: 1.6;
    border: 2px solid black;
    border-radius: 10px;
    box-shadow: 5px 5px 10px black;
    background-color:	#F7E6D0;
    text-align: left;
}

header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    position: relative;
}

header h1 {
    font-size: 2em;
    margin: 20px 0;
    color: #3E2723;
    font-family: 'Times New Roman', Times, serif;
}

a:link {
    color: #3E2723;
}

a:active {
    color: grey;
}

a:hover {
    color: black;
}

a:visited {
    color: #4E342E;
}

header p {
    font-size: 1em;
    margin: 5px 0;
    font-family: Arial, Helvetica, sans-serif;
}

header p a {
    text-decoration: none;
    color: 	#4E342E;
    margin: 0 10px;
    font-family: Arial, Helvetica, sans-serif;
}

header p b {
    border-bottom: 2px solid black;
    padding-bottom: 2px;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 2.5px 2.5px 5px black;
}

nav a {
    position: absolute;
    left: -9999px;
}

nav a:focus {
    position: absolute;
    left: 10px;
    top: 10px;
    background: greenyellow;
    color: black;
    padding: 5px;
    z-index: 1000;
}

h2 {
    font-size: 1.3em;
    margin-top: 1.2em;
    margin-bottom: 0.3em;
    color: #111;
    break-after: avoid;
    font-family: 'Times New Roman', Times, serif;
}

legend {
    font-size: 1.2em;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}

main img {
    width: 100%;
    height: auto;
    margin: 10px 0;
    border: 5px solid #E0C097;
    border-radius: 6px;
    break-inside: avoid;
    display: block;
}

main video {
    width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
    break-inside: avoid;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 10px;
    break-inside: avoid;
}

th, td {
    border: 1px solid black;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #E0C097;
}

td {
    background-color: #FFF8E7;
}

td a {
    color: #004080;
    text-decoration: none;
}

main p, main ul {
    margin-top: 0;
    margin-bottom: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

ul {
    list-style-type: disc;
    padding-left: 30px;
}

figure {
    text-align: center;
    display: inline-block;
}

figure img:hover {
    scale: 1.1;
}

footer {
    border-top: 2px solid #ccc;
    padding-top: 10px;
    padding-bottom: 10px;
}

footer p {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    margin: 5px;
}

/*Közös elemek*/



/*Index formázása*/
#carouselExample{
    max-width: 400px;
    max-height: 300px;
}


.content-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block img {
    width: 300px;
    height: auto;
    padding: 5px;
}

.content-text {
    flex: 1;
}

/*Index formázása*/



/*Kenyerfajtak formázása*/

#kenyer_fajtak {
    column-count: 2;
    column-gap: 40px;
    max-width: 100%;
}

.kep-duo {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    break-inside: avoid-column;
}

.kep-duo img {
    width: 50%;
    height: auto;
    border-radius: 6px;
    display: block;
}

#ciabatta {
    height: 50%;
    width: 50%;
    margin: 20px 10px;
    border: 2.5px solid black;
    border-radius: 6px;
    display: block;
    break-inside: avoid;
    align-self: center;  
}

h2.dagasztas_sz {
    break-before: column;
}

div.asd {
    column-count: 2;
    display: flex;
    justify-content: center;
}

#tab {
    text-align: center;
}

.linkek {
    text-decoration: underline;
}

/*Kenyerfajtak formázása*/



/*Urlap formázása*/

.form-container {
  max-width: 700px;
  border: 1px solid #888;
  padding: 20px;
  column-count: 2;
  background-color: #FDFCF8;
}

label {
  display: block;
  margin: 5px 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid #666;
}

button {
  padding: 10px 20px;
  margin: 10px 5px 0 0;
  border: 1px solid #666;
  background-color: #eee;
  cursor: pointer;
}
button:hover {
  background-color: #ccc;
}

#recept_nehezsege {
    break-before: column;
}

.chbox {
    font-size: 0.85em;
}

.radio-group label {
  display: inline-block;
  margin-right: 15px;
}

/*Urlap formázása*/


/*Reszponzivitás*/
img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 1000px) {

    .kep-duo {
        flex-direction: column;
    }

    .kep-duo img {
        width: 100%;
    }

    div.asd {
        flex-direction: column;
        align-items: center;
    }

    #ciabatta {
        width: 100%;
        height: auto;
    }

    .form-container {
        column-count: 1;
    }
    
    .form-container {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        padding: 10px;
    }

    .form-container label,
    .form-container input[type="text"],
    .form-container input[type="email"],
    .form-container textarea,
    .form-container .radio-group,
    .form-container button,
    .form-container p {
        width: 100%;
    }

    .radio-group label {
        display: block;
        margin: 5px 0;
    }

    #recept_nehezsege {
        margin-top: 15px;
    }

    button {
        width: 100%;
    }

    #kenyer_fajtak {
        column-count: 1;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
}

@media screen and (max-width: 800px) {
    .content-block {
        flex-direction: column;
        text-align: center;
    }

    .content-block.reverse {
        flex-direction: column;
    }

    .content-block img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .content-text {
        width: 100%;
    }

    aside {
        padding-left: 10px;
        padding-right: 10px;
    }

    .asd {
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .asd table {
        width: 100%;
        table-layout: fixed;
        min-width: 100%;
        display: block;
    }

    th, td {
        white-space: nowrap;
        padding: 8px;
    }

    th, td {
        width: auto;
    }

    header {
        padding-top: 100px;
    }

    #logo {
        position: static;
        display: block;
        margin: 0 auto 10px;
        width: 100px;
    }

    header h1 {
        font-size: 1.5em;
        text-align: center;
        margin-top: 10px;
    }

    header p.print {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.95em;
        gap: 5px;
    }

    header p.print a {
        display: block;
        margin: 2px 0;
    }

    header p b {
        display: block;
        text-align: center;
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding-top: 80px;
    }

    #logo {
        width: 80px;
    }

    header h1 {
        font-size: 1.2em;
    }

    header p.print {
        font-size: 0.9em;
    }
}
/*Reszponzivitás*/