/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #e8dccc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    background: url("images/nav-border-med.svg") no-repeat;
    padding-top: 0px;
    margin: 20px 20px 0 20px;
}

.nav-button{
    font-family: "Kirang Haerang", system-ui;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: #48673c;
    padding: 1rem 1rem 0.5rem 1rem;
    margin-bottom: 34px;
    background-color: #ffeeba;
    border-radius: 20px;
    transition: background-color 0.3s;
    min-width: 200px;
    min-height: 45px;
    text-align: center;
    font-size: 2rem;
}


.nav-button:hover {
    text-decoration: underline;
}

nav a.active {
    border: 3px solid #48673c;
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    transition: all 0.3s;
    box-sizing: border-box;
    max-width: 100%;
}

.logo img:hover{
    transform: scale(1.3) rotate(5deg);

}
      
.logo img {
    width: 150px;
    height: 150px;
}

.logo h1 {
    color: #4CAF50;
    font-size: 1.5rem;
}

/* Main content */
    main {
        flex: 1;
        padding: 2rem;
        margin: 0 auto;
    } 

.general-main{
    max-width: 1200px;
}

/* About Page Styles */
.about-container {
    margin: 0 auto;
    padding: 2rem;
}

.about-header {
    margin-bottom: 2rem;
}

.about-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.about-icon img {
    width: 320px;
    height: 250px; 
    position: absolute;
    top: 240px;
    left: 240px;
}

.about-content {
    position: relative;
    background-color: #ffeeba;
    border: 6px solid #48673c;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.about-text {
    color: #880044;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-link {
    position: absolute;
    bottom: -190px;
    right: -200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#further-img {
    width: 320px;
    height: 250px; 
} 


/* Recipe Page Styles */
.recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.recipe-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recipe-icon img {
    width: 220px;
    height: 150px;
}


.recipe-description {
    flex: 1;
    font-family: "Montserrat", sans-serif;
    color: #880044;
    font-weight: bold;
    text-align: center;
    max-width: 600px;
}

.recipe-link {
    font-family: "Kirang Haerang", system-ui;
    font-weight: 400;
    font-style: normal;
    background-color: #880044;
    color: #ffeeba;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    width: 80px;
    height: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}


 a:hover{
    text-decoration: underline;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.recipe-card {
    background-color: #ffeeba;
    border-radius: 20px;
    padding: 1rem;
    border: 4px solid #48673c;
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.recipe-card h3 {
    color: #48673c;
    margin-bottom: 0.5rem;
    font-family: "Kirang Haerang", system-ui;
    font-size: 2rem;
}

.recipe-card p {
    color: #880044;
}

/* Hero and Food Items */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 1450px;
    align-items: center;
} 

.hero-text {
    color: #880044;
    padding-top: 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
}

.highlight {
    background-color: #ffeeba;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px; 
}

.hero-image img {
    width: 850px;
    height: auto;
}

.food-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    justify-content: center;
}

.food-item {
    position: relative;
    text-align: center;
}

.food-item img {
    width: 260px;
    height: 260px;
}

#tomato{
    margin-bottom: 15rem;
}
#eggplant{
    margin-top: 15rem;
}

#carrot{
    margin-bottom: 15rem;
}

#capsicum{
    margin-top: 15rem;
}

#beetroot{
    margin-bottom: 15rem;
}

.tooltip {
    background-color: #ffeeba;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4CAF50;
}

/*compost page*/

 #compost-main{
    padding-left: 200px;
} 

#compost_img{
    width: 850px;
    height: 400px;
    margin-top: 3rem;
    margin-right: 5.5rem;
}

.compost-link{
    font-family: "Kirang Haerang", system-ui;
    font-weight: 400;
    font-style: normal;
    background-color: #880044;
    color: #ffeeba;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin: 4rem;
   font-size: 1.5rem;
}

.compost-text{  
    font-family: "Montserrat", sans-serif;
    position: relative;
    background-color: #ffeeba;
    border: 4px solid #48673c;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    color: #880044;
    text-align: center;
    width: 600px;
    height: 400px;
    font-size: 1.6rem;
    margin-right: 5.5rem;
}


.compost-text-2{  
    font-family: "Montserrat", sans-serif;
    position: relative;
    background-color: #ffeeba;
    border: 4px solid #48673c;
    border-radius: 20px;
    padding: 2rem;
    color: #880044;
    text-align: center;
    width: 600px;
    height: 400px;
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-left: 5.5rem;
    margin-bottom: 2rem;
}

#compost-vege{
    width: 600px;
    height: 300px;
    margin-left: 5.5rem;
}

.compost-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Info page */

.content-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-left: 20px;
}

.carrot-icon img{
    width: 320px;
    height: 250px; 
}

#info-websites{
    color: #880044;
    font-family: "Kirang Haerang", system-ui;
    margin-left: 650px;
    margin-bottom: 25px;
    font-size: 2rem;
}

.info-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: var(--accent-yellow);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}


.resources{
    padding-left: 200px;
}



.resource-cards {
    display: flex;
    gap: 30px;
}


.resource-card {
    background-color: #ffeeba;
    border-radius: 20px;
    padding: 1rem;
    border: 4px solid #48673c;
    color: #880044;
    font-family: "Montserrat", sans-serif;
    width: 300px;
}

.resource-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
}

.resource-card a{
    font-family: "Kirang Haerang", system-ui;
    font-weight: 400;
    font-style: normal;
    background-color: #880044;
    color: #ffeeba;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    width: 40px;
    height: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;

}

.resource-card h3 {
    margin: 15px 0;
}

.resource-card p {
    margin: 15px 0;
    color: #48673c;
}

.quick-facts {
    margin-top: 50px;
    margin-left: 100px;
    color: #880044;
}

.quick-facts h2 {
    color: #880044;
    margin-bottom: 30px;
    font-family: "Kirang Haerang", system-ui;
    font-size: 2.5rem;
}

.fact-container p {
    border: 3px solid #48673c;
    border-radius: 30px; 
    background-color: #FDEFBB;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}


/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f5f5f5;
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    nav a {
        width: calc(50% - 0.5rem);
        margin: 0;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .food-items {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    #tomato{
        margin-bottom: 5rem;
    }

    #eggplant{
        margin-top: 5rem;
    }
    #carrot{
        margin-bottom: 5rem;
    }

    #capsicum{
        margin-top: 5rem;
    }
    .recipe-header {
        flex-direction: column;
        text-align: center;
    }

    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        padding: 1.5rem;
    }

    .info-link {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    nav {
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
    }

    /* .logo {
        flex-direction: column;
        text-align: center;
    } */

    .logo h1 {
        font-size: 1rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        padding: 1rem;
    }

    .about-text {
        font-size: 1rem;
    }
}