* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background: #ffffff;
    color: #222;
    padding: 16px;
    max-width: 375px;
}

/*-------------------------------------------------HOME------------------------------------------------------------*/

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    aspect-ratio: 1 / 1;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card:active {
    transform: scale(0.98);
}

#sites .card{
    color: black;
    justify-content: flex-end;
    text-align: center;
    align-items: center;
}

#DTC {
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: black;
    text-align: center;
}

#recipe1 {
    background-image: url('title.jpg');
}

#recipe2 {
    background-image: url('images/octitle.jpg');
}

#recipe3 {
    background-image: url('images/stitle.webp');
}

#site1 {
    background-image: url('images/site1.png');
}

#site2 {
    background-image: url('images/site2.png');
    text-align: bottom;
}

#site3 {
    background-image: url('images/site3.png');
}
/*-------------------------------------------------NAV BAR------------------------------------------------------------*/

nav {
    width: 100%;
    background: #FFF;
    border: 1px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#navBurger {
    text-align: center;
    padding: 10px;
    font-size: 2rem;
    font-weight: semi-bold;
    pointer-events: none;
    border-bottom: 1px solid #000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav > ul > li {
    flex: 1;
    text-align: center;
    position: relative;
    border-left: 1px solid #000;
}

nav > ul > li:first-child {
    border-left: none;
}

nav a {
    display: block;
    padding: 15px;
    color: #000;
    text-decoration: none;
}

nav a:hover {
    background: #f5f5f5;
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border: 1px solid #000;
}

nav > ul > li.clicked > ul {
    display: flex;
}

nav ul ul li {
    border-top: 1px solid #666;
}

/*-------------------------------------------------MOBILE------------------------------------------------------------*/

#title {
    background-image: url("title.jpg");
    background-size: cover;
    background-position: top center;
    color: white;
    height: 360px;
    padding: 40px 20px;
    margin-bottom: 24px;
    text-align: center;
}

#octitle {
    background-image: url("images/octitle.jpg");
    background-size: cover;
    background-position: top center;
    color: white;
    height: 360px;
    padding: 40px 20px;
    margin-bottom: 24px;
    text-align: center;
}

#stitle {
    background-image: url("images/stitle.webp");
    background-size: cover;
    background-position: top center;
    color: white;
    height: 360px;
    padding: 40px 20px;
    margin-bottom: 24px;
    text-align: center;
}

#title h1 {
    font-size: 28px;
    margin-bottom: 10px;
    
}

#title h2 {
    font-size: 16px;
    font-weight: normal;
}

h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

#steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
    height: auto;
}

.steps p {
    margin-bottom: 8px;
    text-align: left;
}

#steps img {
    width: 100%;
    height: 360px;
    display: block;
    object-fit: cover;
}

#acknowledgements {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
}

/*-------------------------------------------------DESKTOP------------------------------------------------------------*/

@media (min-width: 900px) {

    body {
        max-width: 1100px;
        margin: 0 auto;
        font-size: 25px;
    }

    .button {
        margin-right: 0px;
    }

    #title {
        height: 1100px;
    }

    #octitle {
        height: 1100px;
    }

    #stitle {
        height: 1100px;
    }
    
    #title h1 {
        font-size: 48px;
    }

    #title h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 36px;
    }

    h3,
    ul,
    #steps {
        margin-top: 40px;
        align-items: center;
        margin-right: auto;
        text-align: left;
    }

    #steps img {
        height: 1100px;
    }

    #acknowledgements {
        text-align: center;
    }

    #recipes, #sites {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
    justify-content: center;
    }

    .card {
    flex: 1 1 300px;
    aspect-ratio: 1 / 1;
    padding: 10px;
    position: relative;
    }

    #home {
        width: 100%;
    }
}