body{
    background-color: #729B79;
}

/*---------------mobile first---------------*/

#container{
    background-color: #F3E8EE;
    height: 100vh;
    min-width: 400px; max-width: 800px;
    width: 400px;
    margin: auto;
    margin-top: 4vh;
}

/*----header----*/

#container header{
    background-color: #475B63;
    height: 20%;
    background-image: url(../images/cafe_header.jpg);
    background-size: cover;
    width: 100%;
}

#container header h1{
    width: 100%; height: 100%;
    position: relative;
}

header h1 span{
    font-family: 'Lobster Two', cursive;
    font-size: 40px;
    position: absolute;
    left: auto; top: 20%;
}

/*----nav----*/

#container nav{
    border: 2px solid #2E2C2F;
    border-left: 0px; border-right: 0px;
    background-color: #BACDB0;
    height: 10%;
    margin-top: 8px;
    margin-bottom: 8px;
}

nav ul{
    display: flex;
    list-style: none;
    height: 100%;
    justify-content: space-evenly;
    
}

nav ul li:nth-child(4),
nav ul li:nth-child(5)
{
    display: none;
}

nav ul li{
    height: 80%;
    width: 100px;
    align-self: center;
}

li a{
    text-decoration: none;
    display: block;
    width: fit-content;
    margin: 16px auto;
}

a > span{
    color: black;
}

nav ul li a:hover{
    opacity: .5;
}

/*----main-----*/

#container main{
    height: 50%;
}

#container main article{
    background-color: #BACDB0;
    height: 100%;
    margin: 8px;
}

main article p{
    height: 40%;
    width: 100%;
    margin-bottom: 8px;
}

main article p span{
    height: 95%;
    width: 90%;
    display: block;
    margin: 8px auto 0px auto;
    font-size: 16px;
}

main article a {
    border: lpx solid blue;
    display: block;
    height: 28%;
    width: 90%;
    margin: auto;
    text-decoration: none;
    position: relative;
    text-align: center;
    position: relative;
}

main article a:nth-child(2){
    margin-bottom: 4px;
    background-image: url(../images/cafe1.jpg);
    background-size: cover;
}

main article a:nth-child(3){
    background-image: url(../images/cafe2.jpg);
    background-size: cover;
    background-position-y: 80%;
}

main article a span{
    font-weight: bold;
    display: none;
    font-size: 30px;
    background-color: rgba(180,180,180,.7);
    padding: 15px;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

main article a:hover span{
    display: inline;
}

#container > footer{
    background-color: #475B63;
    height: 20%;
}

/*----------------------Tablets------------------*/

@media (min-width: 800px){
    #container{
        min-width: 800px; max-width: 1000px;
    }
    
    #container header{
        background-image: url(../images/cafe_header.jpg);
        background-size: cover;
    }

    #container nav{
        margin-top: 16px;
        margin-bottom: 16px;
    }
    
    header h1 span{
        left: 5%;
    }
    
    nav ul li:nth-child(4),
    nav ul li:nth-child(5)
    {
        display: block;
    }
    
    main article{
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
    }

    main article p{
        border: 1px solid transparent;
        height: 40%;
        width: 100%;
        margin-bottom: 8px;
    }
    
    main article p > span{
        height: fit-content;
        width: 80%;
        margin: 48px auto;
        font-size: 18px;
    }
    
    main article a {
        display: block;
        height: 40%;
        width: 40%;
    }
    
    main article a:nth-child(2){
        margin-bottom: 0px;
    }

}

/*-----------------------Desktops--------------------*/

@media (min-width: 1000px){
    #container{
        min-width: 1000px; max-width: 1200px;
        margin-top: 16px;
    }
    
    #container header{
        background-position-y: 30%;
    }

    header h1 span{
        top: 35%;
    }

    #container nav{
        margin-top: 16px;
        margin-bottom: 16px;
    }
    
    header h1 span{
        left: 5%;
    }
    
    nav ul li:nth-child(4),
    nav ul li:nth-child(5)
    {
        display: block;
    }
    
    main article{
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
    }

    main article p{
        border: 1px solid transparent;
        height: 40%;
        width: 100%;
        margin-bottom: 8px;
    }
    
    main article p > span{
        height: fit-content;
        width: 80%;
        margin: 48px auto;
        font-size: 18px;
    }
    
    main article a {
        display: block;
        height: 40%;
        width: 40%;
    }
    
    main article a:nth-child(2){
        margin-bottom: 0px;
    }
}