@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

:root {
    --c1: #FFC766;
    --c2: #7CB342;
    --c3: #FFF8E1;
    --c4: #3E2723;
}

:root {
    --w: 5vw;
    --h: 2vh;
}

body {
    background-color: var(--c3);
    color: var(--c4);
    font-family: Arial, sans-serif;
}

header {
    background-color: var(--c1);
    color: var(--c4);
    padding: 5px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 40px;
}

.logo_img {
    width: 80px;
    height: 80px;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}

header h1 {
    flex: 1;
    color: var(--c4);
    font-family: 'Luckiest Guy';
    font-size: clamp(12px, 5vw, 40px);
}

nav {
    background-color: var(--c4);
    text-decoration: none;
    font-style: bold;
    font-weight: bold;
    color: white;
}

/*
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
    */

main {
    background-color: var(--c3);
}

.index_main h1,
h2,
h3 {
    color: var(--mango-strong);
    margin: 0 0 1rem 0;
}

main h2 {
    font-family: 'Luckiest Guy';
}

main h3 {
    margin-top: 2rem;
}

a {
    color: var(--mango);
}

nav ul {
    display: flex;
    gap: 20px;
    padding: 5px 20px;
    height: 30px;
    align-items: center;
    justify-content: space-evenly;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

#active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav_link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

main {
    min-height: calc(100vh - 40px - 30px - 84px);
    padding: 20px 30px;
}

main p {
    margin: 1rem 0;
    line-height: 1.6;
}

.with_image {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.with_image figure {
    width: 20%;
    height: auto;
}

.link_to_recipe {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--c1);
    transition: filter 0.3s ease;
}

.link_to_recipe:hover {
    filter: brightness(0.8);
}

/*rhondas mango chutney page css*/
.recipe_header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-bottom: 20px;
}

#recipe_intro {
    width: 800px;
    margin: 20px auto;
    background-color: var(--c1);
    border-radius: 10px;
    padding: 8px 20px;
}

#equipment {
    width: 800px;
    margin: 20px auto;
    background-color: var(--c1);
    border-radius: 10px;
    padding: 8px 20px;
}

#equipment ul li {
    height: 30px;
    list-style: none;
}

#ingredients {
    width: 800px;
    margin: 20px auto;
    background-color: var(--c1);
    border-radius: 10px;
    padding: 8px 12px;
}

#ingredient table {
    table-layout: fixed;
    width: 100%;
}

#ingredients table tr td {
    padding: 8px 12px;
    border: collapse;
}

#method {
    width: 800px;
    margin: 20px auto;
    background-color: var(--c1);
    border-radius: 10px;
    padding: 8px 20px;
}

#final_images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

#final_images figure {
    text-align: center;
    margin: 0;
}

#final_images img {
    width: 250px;
    height: auto;
    display: block;
    border-radius: 6px;
}

/*submit a recipe page css*/
fieldset:nth-of-type(2) div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

fieldset:nth-of-type(2) label {
    white-space: nowrap;
    width: 100px;
    display: inline-block;
}

#recipe_form {
    width: 750px;
    margin: 0 auto;
    margin-bottom: 30px;
}

#recipe_form div {
    margin: 15px 5px;
}

#recipe_form fieldset {
    padding: 10px;
    border-radius: 5px;
}

#recipe_form button {
    padding: 10px;
    width: 100%;
    background-color: var(--c2);
    color: var(--c3);
    font-size: large;
}

#recipe_form button:hover {
    filter: brightness(0.8);
}

#recipe_form input,
#recipe_form textarea,
#recipe_form select {
    background-color: var(--c3);
}

#recipe_form select {
    width: 100%;
}

#recipe_form textarea,
input {
    width: 100%;
    font-size: 15px;
}

fieldset {
    margin: 20px;
    border: 2px solid var(--c1);
}

/*q&a page css*/

.qa_table {
    margin-top: 8px;
    margin-bottom: 40px;
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--c1);
}

.qa_table td {
    padding: 10px;
    text-align: left;
    width: fit-content;
    border: 1px solid var(--c1);
}

.qa_table td:nth-child(1) {
    white-space: nowrap;
}

.qa_table td h2 {
    padding-top: 16px;
}

footer {
    background-color: var(--c4);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 6px 0;
}

footer address {
    display: inline;
    margin-right: 10px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media print {
  * {
    margin: 0 !important;
    padding: 0 !important;
  }

  header, nav, footer, aside, figure {
    display: none !important;
  }

  img {
    display: none !important;
  }

  table {
    border-collapse: collapse;
  }

  td, th {
    padding: 4px 8px !important;
  }
}