@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body {
    font-family: "Lora", serif;
}

/* styling - darkreader disabled (chrome) */

body {
    background-color: white;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid black;
    background-color: white;
    width: 100%;
}

#logo {
    max-width: 20%;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 15px;
    font-weight: bold;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
}

.nav-links a:hover {
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    cursor: pointer;
    color: rgb(81, 49, 9);
    font-weight: bold;
}

#btn {
    border: none;
    background-color: white;
    font-size: 1.1rem;
    margin-right: 10px;
}

#btn:hover {
    border: none;
    background-color: white;
    font-size: 1.3rem;
    cursor: pointer;
}

.meals {
    width: 100%;
}

.meals a {
    text-decoration: none;
    color: black;
}

.recipe-links {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    flex-direction: row;
    flex-shrink: 1;
    padding: 10px;
    gap: 1rem;
    width: 100%;
    border-bottom: 1px solid black;
    font-weight: bold;
}

.card-container {
    margin: 20px auto;
    display: grid;
    grid-template: repeat(3 , 1fr) / repeat(3 , 1fr);
    max-width: 80%;
    gap: 1.2rem;
}

.card {
    position: relative;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.495);
}

.card:hover {
    position: relative;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.495);
    transform: scale(1.05);
    z-index: 1;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
}

.card-container p {
    color: white;
    position: absolute;
    bottom: 0%;
    background-color: rgba(0, 0, 0, 0.437);
    width: 100%;
    text-align: center;
    padding: 15px;

}

/* hidden card text styling */

.hidden {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    align-content: center;
    height: 45%;
    font-size: 0.8rem;
}

.hidden:hover {
    opacity: 1;
}


/* footer styling start */

.footer {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    background-color: rgb(83, 82, 82);
    padding: 15px;
    gap: .65rem;
    color: white;
}

.footer p {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.footer p a {
    text-decoration: none;
    color: white;
}

.icons a {
    margin:  0 10px;
    color: white;
}

/* footer styling end */


/* recipe-of-the-month page styling start */

.recipe {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px auto;
    width: 100%;
}

h1, h2 {
    background-color: beige;
    padding: 20px;
    margin-bottom: 20px;
    color: rgba(94, 57, 12, 0.828);
    font-size: 30px;
    text-align: center;
}

.recipe img {
    width: 40%;
    max-height: 300px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 5px 5px 5px black;;
}

#image-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 550px;
    margin: auto;
}

.recipe li {
    list-style: decimal;
    font-size: 1rem;
    margin: .2rem auto;
    max-width: 1000px;
}

.recipe li:hover {
    font-size: 1.2rem;
    cursor: pointer;
    background-color: rgba(231, 220, 139, 0.421);
    font-weight: bold;
}

.recipe p {
    padding: 20px;
    text-align: center;
}

/* recipe-of-the-month page styling end */


/* about page styling end */

.about-us {
    height: 100%;
    display: grid;
    grid-template: repeat(1,1fr) / repeat(2,1fr);
}

h3 {
    font-size: 30px;
    text-align: center;
    margin-top: 30px;;
    color: rgba(94, 57, 12, 0.828);
}

.about p {
    text-align: center;
    width: 60%;
    margin: 15px auto;
    font-size: 20px;
}

.newsletter {
    position: relative;
    border-left: 5px solid rgba(66, 39, 7, 0.532);
}

#newsletter-symbol {
    margin: 0 12%;
    width: 100%;
    max-width: 80%;
    height: 75%;
}

.newsletter p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.484);
    padding: 1.2rem;
}

.newsletter a {
    list-style: none;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 1.4rem;
}

.newsletter a:hover {
    color: rgb(221, 249, 252);
    font-size: 1.8rem;
}

/* about page styling end */


/* media queries */


/* mobile <= 480px */

@media (max-width: 480px) {
    
.header {
    width: 100%;
    padding: 5px auto;
}

.nav-links a {
   font-size: .6rem;
}

#btn {
   font-size: .6rem;
}

.nav-links a:hover {
    text-decoration: none;
    color: black;
    font-size: .8rem;
    cursor: pointer;
    color: rgb(81, 49, 9);
}

.recipe-links {
    padding: 2px;
}

.recipe-links li {
    font-size: .6rem;
}


.card-container {
    grid-template: repeat(9,1fr) / repeat(1, 1fr);
    gap: .2rem;
}

.hidden:hover {
    opacity: 0;
}

.footer p {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    width: 100%;
    margin: auto;
}

.about-us {
    grid-template: repeat(2,1fr) / repeat(1,1fr);
}

#newsletter-symbol {
    width: 100%;
}

.newsletter a:hover {
    color: rgb(221, 249, 252);
    font-size: 1.5rem;
}

#image-text {
    font-size: 1rem;
}

.recipe li {
    list-style: decimal;
    font-size: 1rem;
    margin: auto;
    max-width: 800px;
    text-align: center;
}

.recipe li:hover {
    font-size: 1.1rem;
    cursor: pointer;
    color: rgba(94, 57, 12, 0.828);
}

.newsletter {
    margin-top: 40px;
}

}


/* tablets <= 786px */

@media (min-width: 480px) and (max-width: 786px) {


.nav-links a {
   font-size: .8rem;
}

#btn {
   font-size: .8rem;
}

.recipe-links li {
    font-size: .8rem;
}

.card-container {
    grid-template: repeat(5,1fr) / repeat(2, 1fr);
    gap: .2rem;
}

.hidden:hover {
    opacity: 0;
}

}
