

@media screen and (min-width: 100px) and (max-width: 600px) {

.truncate {
   overflow: hidden;
   text-overflow: ellipsis!important;
   
   line-height: 1.5em; 
   max-height: 4.5em; 
}

.ele {
  overflow-wrap: break-word!important;
  padding-top: 100px!important;
   line-height: 0.2em!important; 
   vertical-align: middle!important;
   white-space: break-spaces!important;
  
  }
.cook {vertical-align: middle!important;line-height: 1em!important; max-height: 200px!important;}
.multiline-ellipsis {
  vertical-align: middle;
  
  overflow: hidden!important;
    line-clamp: 2!important;
    width: 90%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2!important;
  /*text-overflow: ellipsis;*/
  text-overflow: hidden!important;
  white-space: break-spaces; 
}
.truncate-cat {
   text-overflow: ellipsis!important;
  overflow: hidden!important;
    line-clamp: 1!important;
    white-space: nowrap!important
   line-height: 1em!important; 
   max-height: 1em!important; 
     word-wrap: break-word!important;
  word-break: break-all!important;
  text-decoration-line: none!important;
}

}


/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px){ 
  

.ellipsis {
padding-top: 0!important;
  /**height: 200px; **/
  font-size: .8rem;
 -webkit-line-clamp: 10; 
line-clamp: 10; 
overflow: hidden!important;
  }
    .thumb_recipe { width: 100%; font-size: 0;}
  .cook {line-height: 200px;}
  .left-image {width: 100%!important;}
  .cats_view {width: auto!important;}
  .wide {height: 40px!important; width: 100%!important; object-fit: fill;
  }
}

@media (min-width: 601px) and (max-width: 767.98px) {
 
.ellipsis { 
 /** height: 200px;
  font-size: .8rem;
  -webkit-line-clamp: 10; 
line-clamp: 10; 
padding-top: 0!important;
overflow: hidden!important;
  
  **/
  overflow-wrap: break-word;
  display: -webkit-box; /* Required for -webkit-line-clamp to work */
  -webkit-box-orient: vertical; /* Specifies vertical orientation for the box model */
  -webkit-line-clamp: 3; /* The desired number of lines to display before truncation */
  overflow: hidden; /* Hides the overflowing content */
  
}
.truncate {
   overflow: hidden;
   text-overflow: ellipsis!important;
   margin-left: 0px!important;
   line-height: 1.5em; 
   max-height: 4.5em; 
}

.thumb_recipe { 
width: 100%;
 }

.ele {
  overflow-wrap: break-word!important;
 
  padding-top: 100px!important;
   line-height: 0.2em!important; 
   vertical-align: middle!important;
   white-space: break-spaces!important;
  
  }
.cook {vertical-align: middle!important;line-height: 1em!important; max-height: 200px!important;}
  .wide {
  height: auto!important; width: 100%!important; object-fit: fill;
  }
  .left-image {
  width: 100%!important;
  
  }
  div.categories {
width: 100px;
height: 140px;
margin: 0 auto;
padding: 0;
}
}



/* MEDIA QUERIES */
@media screen and (min-width: 801px) and (max-width: 1000px){

div.categories {
	width: 200px;
	height: 280px;
	  margin-bottom: 0px !important;
	   padding-bottom: 0px !important;
}
div#cat_box {

  row-gap: 30px;
  grid-row-gap: 30px;
  min-height: 850px;
}
.ele {
  overflow-wrap: break-word!important;
 
  padding-top: 100px!important;
   line-height: 1em!important; 
   vertical-align: middle!important;
   white-space: break-spaces!important;
  
  }
  
.cook {vertical-align: middle!important;line-height: 1em!important; max-height: 200px!important;}

.truncate {
   overflow: hidden;
   text-overflow: ellipsis!important;
   margin-left: 0px!important;
   line-height: 1.5em; 
   max-height: 4.5em; 
}
}

@media screen and (min-width: 601px) and (max-width: 800px) {	
div#cat_box {
  width: 100%;
 /* row-gap: 3%;
  grid-row-gap: 3%;
  min-height: 500px;
 grid-template-columns: auto;*/
}
div.categories {

width: 166px;
height: 232px;
}

}

@media screen and (min-width: 500px) and (max-width: 600px) {
div#cat_box {
	/*grid-template-columns: auto;*/
  width: 100%;
  /*
  row-gap: 3%;
  grid-row-gap: 3%;
  min-height: 500px;*/
}
div.categories {
width: 180px;
height: 252px;
}
}
@media screen and (min-width: 400px) and (max-width: 499px)  {
	div#cat_box {
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  grid-template-rows: auto auto auto; /* Three rows with automatic height */
  width: 100%;
min-height: 3000px;
row-gap: 30px;
grid-row-gap: 30px;
margin: 0 auto;

/*
grid-auto-rows: 10px;*/
}

div.categories {
width: 110px;
height: 154px;
}
.recipeFloatRightLargeDiv {
height: auto;
width: 245px; 

margin: 0 auto;

}

img.recipeFloatRightLarge {
width: 245px; 
height: auto;
margin: 0 auto;
display: block;
}
/*
div.categories {
width: 300px;
height: 420px;
margin: 0 auto;
padding: 0;
}
div.categories {
width: 110px;
height: 154px;
}*/
}

@media screen and (max-width: 399px)  {
	div#cat_box {
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  grid-template-rows: auto auto auto; /* Three rows with automatic height */
  width: 100%;
min-height: 2360px;
row-gap: 0px !important;
grid-row-gap: 0px !important;
margin: 0 auto  !important;
/*
grid-template-rows: auto;*/

grid-auto-rows:  260px;
}
.recipeFloatRightLargeDiv {
height: auto;
width: 170px; 
margin: 0 auto;
clear: both;
display: block;
}

img.recipeFloatRightLarge {
width: 170px; 
height: auto;
margin: 0 auto;
clear: both;
display: block;
}
div.categories {
width: 100px;
height: 140px;
margin: 0 auto;
padding: 0;
}
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 950px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 950px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


@media screen and (min-width: 1900px) {
/*
	div.categories {
		width: 580px; 
	height: 812px;

	}
	
	div#cat_box {
min-height: 2700px;
	}*/
}
@media screen and (min-width: 1600px)  {
	#one {
background-image: url(../img/layout/640x896/appetizers_and_snacks.jpg);

} 

#two {
background-image: url(../img/layout/640x896/breads_and_rolls.jpg);

} 

#three {
background-image: url(../img/layout/640x896/cakes_and_cookies.jpg);
} 

#four {
background-image: url(../img/layout/640x896/desserts_and_candies.jpg);
} 

#five {

background-image: url(../img/layout/640x896/main_dishes.jpg);*/

} 

#six {
background-image: url(../img/layout/640x896/rice_and_beans.jpg);
} 


#seven {

background-image: url(../img/layout/640x896/salad.jpg);


} 

#eight {
	
background-image: url(../img/layout/640x896/soup_and_sandwich.jpg);

} 

#nine {
background-image: url(../img/layout/640x896/vegetarian_dishes.jpg);
}

}

@media screen and (min-width: 1800px) and (max-width: 1989px) {
/*
	div.categories {
	width: 510px; 
	height: 714px;

	}
	
		div#cat_box {
min-height: 2200px;
	}*/
}

@media screen and (min-width: 1600px) and (max-width: 1799px) {

	.categories {
	width: 500px; 
	height: 700px;
	
display: block!important;
	
	 margin: 30px auto!important;
	padding: 0px; /*the padding has to be zero because it contains an image*/

	 
	}
#cat_box {
height: auto!important;
min-height: 100%!important;

display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  grid-template-rows: auto auto auto; /* Three rows with automatic height */

 
}

}
@media screen and (min-width: 1401px) and (max-width: 1599px) {

	.categories {
	width: 400px; 
	height: 560px;
	
display: block!important;
	
	 margin: 30px auto!important;
	padding: 0px; /*the padding has to be zero because it contains an image*/

	 
	}
#cat_box {
height: auto!important;
min-height: 100%!important;

display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
  grid-template-rows: auto auto auto; /* Three rows with automatic height */

 
}

}
@media screen and (min-width: 1300px) and (max-width: 1400px) {
	div.categories {
	width: 300px; 
	height: 420px;

	}
}
	/*
			div#cat_box {
min-height: 1800px;
	}*/

@media screen and (min-width: 1200px) and (max-width: 1400px){

div.categories {
	width: 380px;
	height: 532px;
}
}

@media screen and (min-width: 1001px) and (max-width: 1199px){

div.categories {
	width: 260px;
	height: 364px;
}

.ele {
  overflow-wrap: break-word!important;
 
  padding-top: 100px!important;
   line-height: 0.2em!important; 
   vertical-align: middle!important;
   white-space: break-spaces!important;
  
  }
.cook {vertical-align: middle!important;line-height: 1em!important; max-height: 200px!important;}
}
/* Hack to add a row gap on safari doesn't work */
/*
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
 ::i-block-chrome, #cat_box {
row-gap: 30px;
grid-row-gap: 30px;
  }
}*/

