* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: black;
    background-color: white;
}

header {
    background-color: gold;
    border-bottom: 1px solid white;
    padding: 5px 20px;
    height: 84px;
    display: flex;
    align-items: center;
}

header h1 {
    text-align: center;
    color: darkolivegreen;
    font-size: clamp(12px, 5vw, 32px);
    flex: 1;
}

nav {
    background-color: darkolivegreen;
}

nav ul {
    display: flex;
    gap: 20px;
    padding: 5px 20px;
    height: 35px;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: gold;
    font-weight: bold;
}

#active a {
    color: lightgreen;
    text-decoration: underline;
    text-underline-offset: 5px;
}

main {
    min-height: calc(100vh - 150px);
    padding: 20px 20px 60px 20px;
}

main p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

h3#change_size {
    font-size: 2.0rem;
    color: darkolivegreen;
    font-variant: small-caps;
    margin-top: 15px;
}

h4#change_color {
    font-size: 1.5rem;
    color: brown;
    font-style: oblique;
}

h5#six_paragraph {
    font-size: 2.5rem;
    text-align: center;
    color: darkgreen;
}

#hero {
    max-width: 400px;
    margin: 20px auto;
}

#hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#method {
    font-size: 1.1rem;
}

.recipe-graphic {
    display: block;
    margin: 20px auto;
    max-width: 350px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe-graphic img {
    max-width: 100%;
    width: 350px;
    margin: 0 auto;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.gallery-container figure {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#table_test {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
}

#table_test thead th {
    background-color: darkolivegreen;
    color: gold;
    padding: 15px;
    text-align: left;
    border: 1px solid #333;
}

#table_test td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
    font-size: 0.95rem;
}

#table_test tr:nth-child(even) {
    background-color: #f9f9f9;
}

#table_test td ol,
#table_test td ul {
    list-style-position: outside;
    margin: 10px 0 10px 25px;
    padding: 0;
}

#table_test td li {
    margin-bottom: 8px;
    padding-left: 5px;
}

#table_test td p {
    margin-left: 0;
    padding-left: 0;
}

#table_test td h3 {
    text-decoration: underline;
    text-decoration-color: darkolivegreen;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

fieldset {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: darkolivegreen;
}

textarea,
input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

footer {
    background-color: orange;
    padding: 10px;
    text-align: center;
    color: black;
    width: 100%;
}

@media print {
    @page {
        margin: 1.5cm;
    }

    header,
    nav,
    footer,
    .btn,
    .recipe-gallery,
    button {
        display: none !important;
    }

    body {
        font-size: 10pt;
        line-height: 1.3;
        color: black;
    }

    .recipe-graphic {
        float: none ;
        width: 180px;
        margin: 0 auto;
    }

    main {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    section {
        margin-bottom: 8pt;
        page-break-inside: avoid;
    }

    h2 {
        font-size: 16pt;
        margin-bottom: 5pt;
    }

    h3 {
        font-size: 12pt;
        margin-top: 10pt;
        color: darkolivegreen;
    }

    ul,
    ol {
        margin-left: 20px;
    }
}