/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Root Colors */
:root {
    --dark-color: #0D0D0D;
    --light-color: #F2F2F2;
    --accent-color: #7ABFBF;
    --accent-color-light: rgba(122, 191, 191, .5);
    --highlight-color: #EB5428;
}

/* Global Styles Mobile-First */
body {
    font-family: "Montserrat", sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
}

h1 {
    font-family: "Bebas Neue", serif;
    font-size: 40px;
    color: var(--dark-color);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    top: 30px;
    position: relative;
}

h2 {
    font-family: "Bebas Neue", serif;
    font-size: 30px;
}

h3 {
    font-family: "Bebas Neue", serif;
    font-size: 25px;
}

p, dd, li, nav, input {
    font-size: 16px;
}

dt {
    font-size: 16px;
    font-weight: bold;
}

nav a, nav span, menu li, .social li, footer {
    font-size: 20px;
    font-family: "Bebas Neue", serif;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--light-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    box-sizing: border-box;
}

/* Hamburger Menu */
.hamburger-container {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Bebas Neue", serif;
}

.hamburger-menu svg {
    width: 40px;
    height: 40px;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.hamburger-menu svg path:nth-child(1) {
    fill: none;
    stroke: #EB5428;
    stroke-width: 2;
    stroke-miterlimit: 10;
}

.hamburger-menu svg path:nth-child(2) {
    fill: none;
    stroke: #fff;
    stroke-width: 2.0832;
    stroke-miterlimit: 10;
}

.hamburger-menu svg path:nth-child(3) {
    fill: none;
    stroke: #EB5428;
    stroke-width: 2.9408;
    stroke-miterlimit: 10;
}

.hamburger-menu span {
    color: var(--dark-color);
    font-size: 20px;
    margin-top: -2px;
    font-family: "Bebas Neue", serif;
}

/* Navigation Menu */
nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav.active ul {
    flex-direction: column;
}

nav ul li {
    width: 100%;
    text-align: center;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 20px;
    padding: 1em 2em;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    color: var(--highlight-color);
    background-color: rgba(235, 84, 40, 0.5);
}

/* X Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--highlight-color);
}

/* Category Images */
.category-images {
    display: none;
    font-family: "Bebas Neue", serif;
}

/* Logo */
.logo {
    background-color: var(--highlight-color);
    width: 60%;
    height: 120%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease, height 0.5s ease, left 0.5s ease;
}

/* Animation Keyframes */
@keyframes liftAndHoverTo768 {
    0% {
        width: 50%;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    50% {
        width: 65px;
        height: 90px;
        left: 25%;
        transform: translateX(0);
    }
    100% {
        width: 80px;
        height: 80px;
        left: 0px;
        transform: translateX(0);
    }
}

@keyframes liftAndHoverTo414 {
    0% {
        width: 80px;
        height: 80px;
        left: 0px;
        transform: translateX(0);
    }
    50% {
        width: 65px;
        height: 90px;
        left: 25%;
        transform: translateX(0);
    }
    100% {
        width: 50%;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Avatar */
.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-color);
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    color: var(--highlight-color);
}

.avatar svg {
    stroke: var(--highlight-color);
}

.sign-in-up {
    margin-top: -5px;
    color: var(--dark-color);
    cursor: pointer;
    font-family: "Bebas Neue", serif;
    font-size: 20px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 30px;
    margin-left: 25px;
    margin-right: 25px;
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 50px);
    z-index: 1;
    min-width: 200px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    height: 30px;
    border: 1px solid var(--highlight-color);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    border-right: none;
}

.search-bar svg {
    background-color: var(--highlight-color);
    padding: 10px;
    stroke: var(--light-color);
    width: 40px;
    height: 30px;
    border: 1px solid var(--highlight-color);
    border-left: none;
}

.search-bar svg:hover {
    cursor: pointer;
}

/* Recipe Container */
.recipe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

.recipe-intro {
    margin-top: 20px;
    display: block;
}

.secondary-heading {
    display: none;
}

/* Icon Section */
.icon-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    position: static;
    order: -1;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-container:hover{
    cursor:pointer;
}

.icon-label {
    margin-top: 5px;
    color: var(--highlight-color);
    font-size: 20px;
    font-family: "Bebas Neue", serif;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.icon-label:hover {
    background-color: #fb9f59;
    cursor: pointer;
}

/* Show "Jump To Recipe", hide "Jump" */
.full-label {
    display: block;
}

.short-label {
    display: none;
}

/* Hero Image Container */
.hero-image-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Paragraphs inside hero-image-container */
.hero-image-container p {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 0 10px 0 20px;
    line-height: 1.6;
}

/* Recipe Details */
.recipe-details h2 {
    font-size: 30px;
    color: var(--dark-color);
    text-align: center;
}

.recipe-details p {
    padding-left: 10px;
}

.bold {
    font-weight: bold;
    font-size: 16px;
}

/* Recipe Grid */
.recipe-grid {
    margin: 20px;
}

/* Recipe Ingredients */
.recipe-ingredients h2 {
    text-align: center;
}

.recipe-ingredients ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.recipe-ingredients ul li {
    margin-left: -23px;
}

/* Recipe Directions */
.recipe-directions h2 {
    text-align: center;
}

.recipe-directions ol {
    margin-left: -23px;
}

.recipe-directions li {
    margin-bottom: 15px;
    line-height: 1.5;
    padding-left: 5px;
}

/* Side Dishes Section aside */
aside {
    margin: 0;
    padding: 10px;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

aside section {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    transition: background-color 0.3s ease;
}

aside section:hover {
    background-color: #ff923f;
}

aside section a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

aside section img {
    max-width: 70%;
    height: auto;
    border-radius: 5px;
}

aside section h3 {
    margin: 0;
    padding: 0;
    line-height: 1;
    color: var(--dark-color);
}

aside section h3 a {
    text-decoration: none;
    color: inherit;
}

aside section p {
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

aside section .rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

aside section .rating h4 {
    display: none;
}

aside section .stars {
    display: flex;
    gap: 2px;
}

aside section .star {
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease, stroke 0.3s ease;
    fill: #ffffff;
}

aside section[data-rating="1"] .stars .star:nth-child(-n+1),
aside section[data-rating="2"] .stars .star:nth-child(-n+2),
aside section[data-rating="3"] .stars .star:nth-child(-n+3),
aside section[data-rating="4"] .stars .star:nth-child(-n+4),
aside section[data-rating="5"] .stars .star:nth-child(-n+5) {
    fill: var(--highlight-color);
}

aside section .rating dl {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

aside section .rating dt {
    font-size: 16px;
    font-weight: bold;
    margin-right: 5px;
}

aside section .rating dd {
    font-size: 16px;
    margin: 0;
    display: none;
}

/* Social Media */
.social-media {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    order: -1;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-item:hover {
    background-color: #fb9f5954;
    cursor: pointer;
}

.social-item svg {
    width: 30px;
    height: 30px;
    transition: stroke 0.3s ease;
}

.social-item svg:hover {
    stroke: #ff6f43;
}

.social-name {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--highlight-color);
    font-family: "Bebas Neue", serif;
}

/* Footer Styles */
.footer-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

footer > p {
    margin: 10px 0;
    color: var(--dark-color);
}

footer > p:first-of-type {
    color:var(--dark-color);
}

footer {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 20px;
    text-align: center;
}
/* Media Query min-width 200px and max-width 414px !I added this beacause mobile phones are smaller that 414px! */
@media (min-width: 200px) and (max-width: 414px) {
    body {
        font-size: 100%;
        max-width: 414px;
        margin: 0 auto;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, rgba(122, 191, 191, .5) 0%, rgba(122, 191, 191, .5) calc((100% - 414px) / 2), transparent calc((100% - 414px) / 2), transparent calc((100% + 414px) / 2), rgba(122, 191, 191, .5) calc((100% + 414px) / 2), rgba(122, 191, 191, .5) 100%);
        z-index: -1;
    }
    header {
        padding: 10px 15px;
        height: 80px;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 414px;
        z-index: 1000;
    }
    .logo {
        width: 50%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        animation: liftAndHoverTo414 0.5s ease;
    }
    .search-bar {
        position: relative;
        justify-content: center;
        width: calc(100% - 80px);
        margin-left: 40px;
        margin-right: 40px;
        top: 90px;
    }
    .avatar-container svg:hover {
        stroke: #1a9b00;
    }
    nav {
        top: 80px;
    }
    nav a {
        padding: 0.8em 1.5em;
    }
    .recipe-container {
        margin-top: 70px;
    }
    .icon-section {
        justify-content: space-around;
    }
    .icon-label {
        font-size: 20px;
    }
    .hero-image {
        max-width: 100%;
    }
    .hero-image-container p {
        margin-top: 12px;
        margin-bottom: 22px;
        padding: 0 12px 0 22px;
        line-height: 1.6;
        margin-left: -15px;
    }
    .recipe-grid {
        margin: 15px;
    }
    .recipe-directions ol {
        margin-left: -32px;
    }
    .recipe-ingredients ul li {
        margin-left: -35px;
    }
    aside {
        padding: 15px;
        gap: 20px;
    }
    aside section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        align-items: start;
    }
    aside section a {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    aside section img {
        max-width: 80%;
    }
    aside section h3 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
    }
    aside section p {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        display: block;
        margin-top: 5px;
    }
    aside section .rating {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        margin-top: 5px;
    }
    .social-media {
        gap: 15px;
    }
    .social-item svg {
        width: 40px;
        height: 40px;
    }
    .social-name {
        font-size: 20px;
    }
    .social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        padding: 5px;
        border-radius: 10%;
        width: 70px;
        height: 70px;
        justify-content: center;
    }
    .social-item:hover {
        background-color: #fb9f5954;
    }
    .social-item svg:hover {
        stroke: #ff6f43;
    }
    .footer-img {
        max-width: 180px;
        margin-top: -20px;
        margin-bottom: 20px;
    }
    .footer-left > p {
        margin: 25px 60px;
        margin-bottom: -60px;
    }
}
/* Media Query min-width 414px and max-width 767px */
@media (min-width: 414px) and (max-width: 767px) {
    body {
        font-size: 100%;
        max-width: 414px;
        margin: 0 auto;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, rgba(122, 191, 191, .5) 0%, rgba(122, 191, 191, .5) calc((100% - 414px) / 2), transparent calc((100% - 414px) / 2), transparent calc((100% + 414px) / 2), rgba(122, 191, 191, .5) calc((100% + 414px) / 2), rgba(122, 191, 191, .5) 100%);z-index: -1;
    }
    header {
        padding: 10px 15px;
        height: 80px;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 414px;
        z-index: 1000;
    }
    .logo {
        width: 50%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        animation: liftAndHoverTo414 0.5s ease;
    }
    .search-bar {
        position: relative;
        justify-content: center;
        width: calc(100% - 80px);
        margin-left:40px;
        margin-right: 40px;
        top: 90px;
    }
    .avatar-container svg:hover {
        stroke: #1a9b00;
    }
    nav {
        top: 80px;
    }
    nav a {
        padding: 0.8em 1.5em;
    }
    .recipe-container {
        margin-top: 70px;
    }
    .icon-section {
        justify-content: space-around;
    }
    .icon-label {
        font-size: 20px;
    }
    .hero-image {
        max-width: 100%;
    }
    .hero-image-container p {
        margin-top: 12px;
        margin-bottom: 22px;
        padding: 0 12px 0 22px;
        line-height: 1.6;
        margin-left: -15px;
    }
    .recipe-grid {
        margin: 15px;
    }
    .recipe-directions ol {
        margin-left: -32px;
    }
    .recipe-ingredients ul li {
        margin-left: -35px;
    }
    aside {
        padding: 15px;
        gap: 20px;
    }
    aside section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        align-items: start;
    }
    aside section a {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    aside section img {
        max-width: 80%;
    }
    aside section h3 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
    }
    aside section p {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        display: block;
        margin-top: 5px;
    }
    aside section .rating {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        margin-top: 5px;
    }
    .social-media {
        gap: 15px;
    }
    .social-item svg {
        width: 40px;
        height: 40px;
    }
    .social-name {
        font-size: 20px;
    }
    .social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        padding: 5px;
        border-radius: 10%;
        width: 70px;
        height: 70px;
        justify-content: center;
    }
    .social-item:hover {
        background-color: #fb9f5954;
    }
    .social-item svg:hover {
        stroke: #ff6f43;
    }
    .footer-img {
        max-width: 180px;
        margin-top: -20px;
        margin-bottom: 20px;
    }
    .footer-left > p {
        margin: 25px 60px;
        margin-bottom: -60px;
    }
}

/* Media Query min-width 768 */
@media (min-width: 768px) {
    body {
        font-size: 100%;
        max-width: 768px;
        margin: 0 auto;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, rgba(122, 191, 191, .5) 0%, rgba(122, 191, 191, .5) calc((100% - 768px) / 2), transparent calc((100% - 768px) / 2), transparent calc((100% + 768px) / 2), rgba(122, 191, 191, .5) calc((100% + 768px) / 2), rgba(122, 191, 191, .5) 100%);
        z-index: -1;
    }
    header {
        padding: 10px 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 768px;
        z-index: 1000;
        box-sizing: border-box;
    }
    .hamburger-container {
        display: none;
    }
    .logo {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 80px;
        height: 100px;
        transform: none;
        animation: liftAndHoverTo768 0.5s ease;
    }
    .avatar-container {
        position: absolute;
        top: 5px;
        right: 18px;
        margin: 0;
    }
    .avatar-container .sign-in-up {
        display: none;
    }
    .avatar-container::after {
        content: "Sign In";
        margin-top: -10px;
        color: var(--dark-color);
        cursor: pointer;
        font-family: "Bebas Neue", serif;
        font-size: 20px;
    }
    .avatar-container svg:hover {
        stroke: #1a9b00;
    }
    .search-bar {
        position: fixed;
        top: 10px;
        right: 100px;
        width: 200px;
        margin: 0;
        left: 350px;
        z-index: 1001; 
        min-width: 300px;
    }
    .category-images {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        margin-top: 120px;
    }
    .category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    .category-item:hover {
        background-color: #f08330;
    }
    .category-item img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }
    .category-item span {
        margin-top: 5px;
        font-size: 20px;
        color: var(--highlight-color);
    }
    .recipe-container {
        align-items: flex-start;
        margin-top: 200px; 
    }
    .recipe-intro {
        text-align: left;
        margin-left: 20px;
    }
    .icon-section {
        position: absolute;
        top: 278px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        background-color: rgba(255, 255, 255, 0.7);
        padding: 5px;
        display: flex;
        justify-content: space-between;
        max-width: 758px;
        z-index: 1;
    }
    .recipe-details {
        text-align: center;
        margin: 0 auto;
        max-width: 600px;
    }
    .recipe-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 20px;
    }
    .recipe-ingredients {
        text-align: left;
    }
    .recipe-ingredients ul li {
        margin-left: -23px;
    }
    .recipe-directions {
        text-align: left;
    }
    .recipe-directions ol {
        width: 500px;
        margin-left: -23px;
        padding-left: 20px;
    }
    .recipe-directions li {
        width: 100%;
        margin-bottom: 15px;
        line-height: 1.5;
        padding-left: 5px;
    }
    aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 20px;
        text-align: left;
        max-width: 768px;
    }
    aside h2 {
        grid-column: 1 / -1;
        text-align: center;
        margin: 0 0 20px 0;
        width: 100%;
    }
    aside section {
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        align-items: start;
    }
    aside section a {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    aside section h3 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
    }
    aside section p {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        display: block;
        margin-top: 5px;
    }
    aside section .rating {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        margin-top: 5px;
    }
    .footer-content {
        display: flex;
        flex-direction: row;
        gap: 20px;
        text-align: left;
        justify-content: space-between;
        width: 100%;
    }
    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
    }
    .footer-img {
        order: -1;
        max-width: 160px;
        height: auto;
        margin: 0 0 10px 60px;
    }
    .footer-left p {
        margin: 0 0 0 60px;
        padding: 0;
        text-align: center;
        width: 160px;
        position: static;
    }
    .social-media {
        justify-self: end;
        display: flex;
        justify-content: space-evenly;
        gap: 45px;
        order: 0;
        width: 400px;
        font-size: 20px;
    }
    .social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        padding: 5px;
        border-radius: 10%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
    .social-item:hover {
        background-color: #fb9f5954;
    }
    .social-item svg {
        width: 40px;
        height: 40px;
        transition: stroke 0.3s ease;
    }
    .social-item svg:hover {
        stroke: #ff6f43;
    }
}
/* Media Query min-width 1280 */
@media (min-width: 1280px) {
    * {
        box-sizing: border-box;
    }
    body {
        font-size: 100%;
        max-width: 1280px;
        margin: 0 auto;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, rgba(122, 191, 191, .5) 0%, rgba(122, 191, 191, .5) calc((100% - 1280px) / 2), transparent calc((100% - 1280px) / 2), transparent calc((100% + 1280px) / 2), rgba(122, 191, 191, .5) calc((100% + 1280px) / 2), rgba(122, 191, 191, .5) 100%);
        z-index: -1;
    }
    header {
        padding: 10px 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1280px;
        z-index: 1000;
    }
    .logo {
        width: 120px;
        height: 132px;
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
    }
    .category-images {
        display: flex;
        justify-content: center;
        gap: 60px;
        flex-grow: 1;
        margin: 0;
    }
    .category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease, height 0.3s ease;
    }
    .category-item:hover {
        background-color: #f08330;
        height: 105px;
    }
    .category-item img {
        width: 80px;
        height: 80px;
    }
    .category-item span {
        font-size: 20px;
    }
    .avatar-container {
        display: flex;
        align-items: center;
        position: static;
        margin: 0;
        width: auto;
        white-space: nowrap;
        
    }
    .avatar-container svg:hover {
        stroke: #1a9b00;
    }
    .avatar-container::after {
        content: "Sign In";
        margin-left: 1px;
        color: var(--dark-color);
        cursor: pointer;
        font-family: "Bebas Neue", serif;
        line-height: 1;
        margin-top: -2px;
    }
    .hamburger-container {
        display: none;
    }
    .search-bar {
        position: absolute;
        top: 158px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        z-index: 2;
        min-width: 300px;
    }
    .search-bar input {
        width: 100%;
        padding: 10px;
        height: 50px;
        border: 1px solid var(--highlight-color);
        font-size: 16px;
        font-family: 'Montserrat', sans-serif;
        border-right: none;
    }
    .search-bar svg {
        background-color: var(--highlight-color);
        padding: 10px;
        stroke: var(--light-color);
        width: 60px;
        height: 50px;
        border: 1px solid var(--highlight-color);
        border-left: none;
    }
    .recipe-container {
        position: relative;
        margin-top: 135px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .recipe-intro {
        text-align: center;
        margin-top: 60px;
    }
    .hero-image-container {
        display: grid;
        grid-template-columns: 80px 600px auto;
        width: 100%;
        align-items: stretch;
        margin-top: 20px;
        gap: 0;
    }
    .hero-image-container p {
        margin-left: 0;
    }
    .icon-section {
        grid-column: 1 / 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px;
        border: 1px solid var(--highlight-color);
        margin-top: 0;
        height: 100%;
        align-self: start;
        position: relative;
        top: 0;
        width: 80px;
    }
    .icon-container {
        margin-bottom: 30px;
        width: 100%;
    }
    .icon-container:last-child {
        margin-bottom: 0;
    }
    .full-label {
        display: none;
    }
    .short-label {
        display: block;
    }
    .hero-image {
        grid-column: 2 / 3;
        width: 100%;
        max-width: 600px;
        height: auto;
        display: block;
        margin: 0;
    }
    .hero-description-1 {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        position: relative;
        top: -10px;
        left: -18px;
        margin: 0;
        padding: 0px 10px 0 20px;
        line-height: 1.6;
        width: auto;
        max-width: fit-content;
    }
    .hero-description-2 {
        grid-column: 3 / 4;
        position: relative;
        grid-row: 1 / 2;
        top: 75px;
        margin-top: 0;
        padding: 0 10px 0 20px;
        line-height: 1.6;
        left: -18px;
        width: auto;
        max-width: fit-content;
    }
    .recipe-details {
        width: 100%;
        max-width: 1280px;
        background-color: var(--dark-color);
        color: var(--accent-color);
        padding: 20px;
        text-align: center;
        margin-top: 0px;
    }
    .recipe-details h2 {
        color: var(--accent-color);
        text-align: center;
        margin-bottom: 20px;
    }
    .recipe-details > p {
        display: inline-block;
        margin: 0 15px;
        padding: 0;
        min-width: 180px;
        text-align: center;
    }
    .recipe-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 20px 0;
        width: 100%;
    }
    .recipe-directions ol {
        width: 1000px;
        margin-left: -23px;
        padding-left: 25px;
    }
    .recipe-directions li {
        width: 100%;
        margin-bottom: 15px;
        line-height: 1.5;
        padding-left: 5px;
    }
    .recipe-ingredients ul li {
        margin-left: -23px;
    }
    aside {
        width: 100%;
        max-width: 1280px;
        padding: 20px 0;
        text-align: center;
        display: block;
    }
    aside h2 {
        text-align: center;
        margin: 0 0 20px 0;
    }
    aside section {
        display: inline-block;
        width: 23.5%;
        margin: 0 0.25%;
        vertical-align: top;
        text-align: left;
    }
    aside section a {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
    aside section img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    aside section h3,
    aside section p,
    aside section .rating {
        margin: 0 0 10px 0;
        text-align: left;
        margin-left: 35px;
    }
    aside section .rating {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .social-media {
        display: flex;
        justify-content: flex-start;
        gap: 25px;
        padding-left: 10px;
        font-size: 20px;
    }
    .social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        padding: 10px;
        border-radius: 10%;
        width: 80px;
        height: 80px;
        justify-content: center;
    }
    .social-item:hover {
        background-color: #ec7d2895;
    }
    .social-item svg {
        width: 80px;
        height: 80px;
        transition: stroke 0.3s ease;
    }
    .social-item svg:hover {
        stroke: #ff6f43;
    }
    footer {
        position: relative;
        max-width: 1280px;
        margin: 0 auto;
    }
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1280px;
        margin: 0 auto;
    }
    .footer-img {
        order: -1;
        width: 160px;
        height: 160px;
        margin: 0 20px 0 0;
        border-radius: 50%;
        object-fit: cover;
    }
    .footer-left p:nth-child(2) {
        margin: 0;
        padding: 0;
        text-align: left;
        position: absolute;
        top: 50px;
        left: 188px;
        z-index: 10;
    }
    .footer-left p:nth-child(3) {
        margin: 0;
        padding: 0;
        text-align: left;
        position: absolute;
        top: 66px;
        left: 182px;
        z-index: 10;
    }
}
/* Media Print */
@media print {
    /* Reset everything */
    html, body {
        margin-left: 100px !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        font-size: 8pt;
        line-height: 1;
        background: none !important;
    }

    /* Hide everything except recipe content */
    header, nav, aside, footer, .hero-image-container, .icon-section {
        display: none !important;
    }

    /* Basic recipe container */
    .recipe-container {
        display: block !important;
        margin: 0 !important;
        margin-bottom: 60px !important;
        padding: 1mm !important;
        width: 100% !important;
        position: static !important;
        top: 0 !important;
        page-break-before: avoid !important;
        page-break-inside: avoid !important;
    }
    .search-bar {
        display: none !important;
    }

    /* Show essentials with no spacing */
    .recipe-intro,
    .recipe-details,
    .recipe-grid {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .recipe-details h2,
    .recipe-grid h2 {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 20px;
    }

    .recipe-details p {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .recipe-ingredients ul,
    .recipe-directions ol {
        display: block !important;
        padding-left: 4mm !important;
        margin: 0 !important;
    }

    .recipe-ingredients ul li,
    .recipe-directions ol li {
        display: list-item !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Page setup */
    @page {
        size: A4;
        margin: 1mm !important;
    }
}
