/* Versión de móvil */

* {
    margin: 5px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}
html{
    height: 100%;
    margin:0;
    padding:0;
}

body {
    background: linear-gradient(to bottom, #3e5ce0, white);
    height:100%;
    margin:0;
    padding:0;

}

@media only screen and (min-width: 600px) {
    body {
        background: rgb(113, 169, 138);
    }
}

body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    justify-content: space-around;
}

header {
    background-color: negre;
    width: 100%;
    text-align: left;
}

h1, h2, h3, h4 {
    width: 100%;
}

nav {
    background-color: #3ee04e;
    width: 100%;
}

nav select {
    display: inline;
    background-color: white;
}

nav ul {
    display: none;
}

nav ul li {
    list-style: none;
}

main, section {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
}

aside {
    width: 100%;
    background-color: #dabc88;
}

.categories {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
}

.ofertes article {
    background-color: #005f91;
    width: 100%;
    color: white;
}

.categories article {
    background-color: #dabc88;
    width: 47%;
    color: white;
}

footer {
    background-color: #3ee04e;
    width: 100%;
}

/* Versión de tablet o desktop */

@media screen and (min-width: 936px) {
    nav {
        width: 100%;
        height: 40px;
    }
    nav select {
        display: none;
    }
    nav ul, nav ul li {
        display: inline;
    }
    main {
        width: 100%;
    }
    /*
    aside {
        display: block;
        width: 25%;
        height: 315px;
        background-color: #dabc88;
    }
    */
    .ofertes {
        flex-direction: row;
    }
    .ofertes article {
        width: 46%;
    }
    .categories article {
        width: 22%;
    }
}