/*
    1)  Disseny de les interficies
    2)  HTML
    3)  Media queries
    4)  Grid
    5)  Definir el tema (colors etc...)

*/
#menufiltre{
    margin-top: 10px; 
}
.dnone{
    display: none;
}
.dblock{
    display: block;
}
#menufiltre .divfiltre{
    border: 1px solid grey;
    margin-bottom: 10px;
}
#menufiltre li{
    text-decoration: none;
    list-style: none;
}
#menufiltre ul{
    padding: 0px;
    margin: 0px;
    position: static;
}
#menufiltre p{
    margin: 0px;
    /*position: fixed;*/
}
.pagines{
    float: right;
}

.filtretitol, .mostrarmes{
    background-color: gainsboro;
    padding: 4px;
    padding-left: 10px;
}
.filtretitol{
    background-color: #00ccff;
    font-weight: bold;
    color: white;
}
.filtretitol p:first-letter{
    text-transform: uppercase;
}
.menubotiga{
    position: relative;
    z-index: 0;
}
.menubotiga button, div.webcart button{
  padding:8px 30px;
  border-radius: 6px;
  border:none;
  display:inline-block;
  color:#fff;
  background-color: #28a8e0;
  height:30px;
}
.menubotiga button:hover {
  background-color:#1b8aba;
}
.nomfiltres li{
    margin: 6px;
}
.sort:focus {
  outline:none;
}
.sort:after {
  display:inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid transparent;
  content:"";
  position: relative;
  top:-10px;
  right:-5px;
}
.sort.asc:after {
  border-top: 5px solid #fff;
  position: relative;
  top:4px;
  right:-5px;
}
.sort.desc:after {
  border-bottom: 5px solid #fff;
  position: relative;
  top:-4px;
  right:-5px;
}
/*carrito*/
.cart{
    display: none;
    position: absolute;
    z-index: 20;
    right: 0;
    top: 0;
    overflow: auto;
    background-color: grey;
    border-top: 4px orange solid;
    box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.2);

}
#dadescart{
    border-radius: 0px;
    background-color: white;
    color: grey;
    text-align: center;
}

.cart button{
    margin: 4px;
    background: linear-gradient(270deg, #ff3d00 -13.97%, #ffa800 105.15%);
}
div.cart{
    background-color: white;
}
.cart div{
    background-color: white;
    display: block;
    text-align: center;
}
.carrito a{
    display: inline-block !important;
    padding-left: 0px !important;
}
.cart img{
    width: 50px;
    height: auto;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  .modal-content {
    background-color: #fefefe;
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 1200px;
  }
  .modal img{
    width: 90%;
    height: auto; 
}
.elements img{
    width:60%;
    height: auto; 
}
  .close {
    margin-right: 20px;
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
@import url('https://fonts.googleapis.com/css?family=Alata|Lato&display=swap');
.elements{
    border: 1px solid black;
    text-align: center;
    margin: 10px;
}

.w33{
    width: 32%;
}
.preu{
    color: orange;
}
.detalls{
    background-color: red;
    color: white;
    padding: 10px;
}
/* aixo va al media query 1028 osigui el del pc

header nav.menu li.carrito:hover{
    border: 1.5px solid white;
    color: black;
}*/

.cartQuantity {
    padding: 0px 5px;
    border-radius: 6px;
    color: #000;
    background: -webkit-gradient(linear, right top, left top, color-stop(-13.97%, #ff3d00), color-stop(105.15%, #ffa800));
    background: linear-gradient(270deg, #ff3d00 -13.97%, #ffa800 105.15%);
}
.marca{
    padding-top: 8px;
}
.marca, .model{
    background-color: #00ccff;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 4px;
    margin: 0px;
}
#menufiltre{
    grid-area: menufiltre;
}
#shop nav{
    grid-area: filtre;
}
#content{
    grid-area: articles;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
}

.ambfiltres{
    grid-template-areas:
        "filtre filtre"
        "menufiltre articles";
}
.sensefiltres{
    grid-template-areas:
        "filtre filtre"
        "articles articles";
}

#shop{
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: auto;

}
/*Buto de comprar*/
.buyButton {
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    height: 25px;
    background: linear-gradient(270deg, #ff3d00 -13.97%, #ffa800 105.15%);
    box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: none;
    position: relative;
    transform: translateY(-50%);
    transition: box-shadow 0.2s;
}



main {
    margin: 0 auto;
    overflow: auto;
    background-color: white;
    padding: 33px;

}
body {
    margin: 0;
    background-image: url(img/fons4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

img {
    width: 100px;
    height: 100px;
}

th,
td {
    padding-bottom: 10px;

}


nav.logo img{
    height: 50px;
    width: 50px;
    padding-right: 5px;
}
nav.logo{
    grid-area: logo;
    display: grid;
    text-align: left;
    grid-template-columns: 0.1fr 1fr;
}
nav.menu{
  height: 100%;
  width: 0px;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #111;
  overflow: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

nav.menu a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 28px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

nav.menu a:hover {
  color: #f1f1f1;
}

nav.menu .tancar {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}
header{
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-template-areas:
        "logo menu";
    height: 80px;
}
.menuicona{
    text-align: right;
    grid-area: menu;
    line-height: 40px;
    padding: 0 20px;
    display: inline-block;

}
.tbanner {
    grid-area: banner;
    text-align: center;
    font-size: 65px;
    font-family: Arial;
}
#banner{
    background-image: url(img/fons3.jpg);
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    display: grid;
    grid-template-columns: 15% 1fr 15%;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        ". . ."
        ". banner ."
        ". . .";
}
.tcoets {
    grid-area: titol;

}
#coets {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "titol";
}
#coets p{
    text-align: center;
}

#coets img{
    width: 100%;
    height: 400px;
}
#info {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
}

#info iframe{
    width: 100%;
    height: 250px;
}

#news {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "titol";
}
#news h4{
    text-align: center;
}
#news p{
    text-align: left;
}
#news img{
    width: 100%;
    height: 300px;
}
table {
    width: 800px;
    background: #34495E;
    color: #fff;
    border-radius: .4em;
}
div.scroll {
    grid-area: taula;
    overflow:scroll;
    width:100%;
}
#taula {
    display: grid;
    grid-template-columns: 5% 1fr 1fr 5%;
    grid-template-areas: "titol titol titol titol"
        ". taula taula . ";
}
tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-color: lighten(#34495E, 10%);
}
td:first-child {
    padding-top: .5em;
}
td:last-child {
    padding-bottom: .5em;
}

td:before {
    font-weight: bold;
    width: 6.5em;
    display: inline-block;
}
th, td {
    margin: .5em 1em;
    padding: 0.5em !important;

}
th, td:before {
    color: #dd5;
}
p,span{
    font-family: 'Lato', sans-serif;
}
h1,h2,h3,h4,h5{
    font-weight: bold;
    font-family: 'Alata', sans-serif;
    font-size: 1.2em;
}
footer{
    padding-top: 20px;
}

@media (min-width: 1281px) {
    main {
        width: 1100px;
    }
    header nav.menu{
        top: auto;
        right: auto;
        z-index: auto;
        position:static;
        overflow-x: auto;
        padding: 0px;
        width: 100%;
        grid-area: menu;
        display: grid;
        text-align: right;
        background-color: white;
    }
    header nav.menu li {
        line-height: 40px;
        list-style: none;
        padding: 0 10px;
        display: inline-block;
        border: 1.5px solid white;
        border-bottom: 2px solid white;
    }

    header nav.menu li.carrito:hover{
        border: 1.5px solid white;
        color: black;
    }
    header nav.menu a{
        padding: 0px 4px 4px 12px;
        font-size: 16px;
        color: black;
    }
    header nav.menu li:hover {
        color: #fefefe;
        border-radius: 2px;
        border: 1.5px solid;
        border-bottom: 2px solid aquamarine;
    }
    .menuicona{
        visibility: hidden;
    }
    .tancar{
        visibility: hidden;
    }
    .tbanner {
        font-size: 65px;
    }
    #banner{
        height: 400px;
        grid-template-columns: 15% 1fr 15%;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-areas:
            ". . ."
            ". banner ."
            ". . .";
    }

    #coets {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "titol titol titol titol";
    }

    #coets img{
        width: 90%;
        height: 200px;
    }

    #info {
        grid-template-columns: 1fr 1fr;
    }

    #info iframe{
        width: 95%;
        height: 250px;
    }

    #news {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "titol titol";
    }
    #news img{
        width: 95%;
        height: 300px;
    }
    #taula {
        grid-template-columns: 10% 1fr 1fr 10%;

    }
    table {
        width: 100%;
    }
    div.scroll {
        overflow:hidden;
    }

}


@media (min-width: 768px) and (max-width: 1281px){
    main {
        width: 90%;
        max-width: 1100px;
    }

    #coets {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0.5fr;
        grid-template-areas:
            "titol titol";
    }

    #coets img{
        width: 95%;
        height: 300px;
        max-height: 300px;
    }
    .tbanner {
        font-size: 65px;
    }
    #banner{
        height: 400px;
        grid-template-columns: 15% 1fr 15%;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-areas:
            ". . ."
            ". banner ."
            ". . .";
    }
    #info {
        grid-template-columns: 1fr;
    }

    #info iframe{
        width: 95%;
        height: 400px;
    }
    #news {
        grid-template-columns: 1fr;
        grid-template-areas: "titol";
    }
    #news img{
        width: 95%;
        height: 400px;
    }
    table{
        width: 1000px;
    }

}
