
@import url('https://fonts.googleapis.com/css2?family=Alkalami&family=Pacifico&display=swap');


:root {
    --border-color:#c72727;
    --secondary-color: #f99500;
    --light-color: #f3f3f3;
    --dark-color: #333;
    --nav-color: #0031c5;
    --hero-text-color: #c4a856;
    --btn-primary:#836611;
    --btn-hover: hwb(45 14% 38%);
    --link-on-purple: #eabd34;
    --link-on-purple-hover: #ffb158;
    --max-width: 1100px;
}

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

/* general styling  */

html,body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.4;
}

.center-text {
    text-align: center;
}

img {
    border-radius: 15px;
}

a {
    color: var(--link-on-purple);
    text-decoration: none;
}

a:hover {
    color: var(--link-on-purple-hover);
}

p {
    margin: 10px 0;
}

.navbar {
    display: flex;
    flex-direction: row;
    background-color: var(--nav-color);
    height: 6vh;
    padding: 10px 1rem;
    justify-content: space-between;
}

.navbar * {
    z-index: 1000;
}

.navbar ul{
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

.navbar a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0 10px;
}

.navbar .logo {
    color: var(--light-color);
}

/* Diary Navigation */
.diarynav {
    display: flex;
    flex-direction: row;
    height: 6vh;
    padding: 10px 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.diarynav ul{
    display: flex;
    flex-direction: row;
    list-style-type: none;
    justify-content: space-between;
}

.diarynav li{
    padding-right: 10px;
}


header .hero {
    background: url('../img/hero.jpg') no-repeat center/cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 94vh;
}

header .hero .hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 5rem;
    color: var(--hero-text-color);
}

section {
    padding: 0 20px;
}

section .intro-text h1 {
    font-family: 'Alkalami', serif;
    text-align: center;
    width: 200px;
    border-bottom: solid var(--border-color)  1px;
    padding-top: 20px;
}

section .intro-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

/* layouts */

.text-with-image-rght {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.text-with-image-left {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.image-container {
    align-self: center;
}

.image-container img{
    width: 100%;
    background: #333;
}

.text-container {
    padding: 20px;
}

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

.food-grid img {
    max-height: 12rem;
}

footer {
    height: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--nav-color);
    color: #fff;
}

/* media queries */

@media(max-width: 750px) {
    header .hero .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .diarynav {
        justify-content: space-around;
    }

    /* .text-with-image-rght {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .text-with-image-left {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        margin-top: 1rem;
    } */

    .text-with-image-rght {
        display: flex;
        flex-direction: column;
    }

    .text-with-image-left {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
    }

    .image-container img{
        max-height: 20rem;
    }
}

@media(max-width: 460px) {
    .diarynav ul {
        flex-direction: column;
    }

    .diarynav {
        display: block;
    }
}


@media(max-width: 290px) {

    header .hero .hero-title {
        font-size: 1rem;
    }

    .navbar {
        height: 100%;
        flex-direction: column;
    }

    .navbar ul {
        flex-direction: column;
    }

    .text-with-image-rght {
        display: flex;
        flex-direction: column;
    }

    .text-with-image-left {
        display: flex;
        flex-direction: column;
    }
}