* {
  box-sizing: border-box;
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  padding: 8px;
}

html {
  font-family: "Lucida Sans", sans-serif;
  background-color: #f2f4fa;
}

.header {
  text-align: center;
  font-size: 18px;
  line-height: 25px;

  position: -webkit-sticky;
  position: sticky;
  top: 0;  
  padding: 0px;
}

/* list of recipes */
.list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;  
}

.list li {
  padding: 6px;
  margin-bottom: 5px;
  background-color: #9e9ebb;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  border-radius: 5px; 
}

.list li:hover {
  background-color: #666699;
}

.list li textarea {
  max-width: fit-content;
}

/* list of ingredients */
.ingr ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.ingr li {
  padding: 3px;
  margin-bottom: 6px;
  background-color: #c3d3bd;
  color: #380b63;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  border-radius: 3px;
}

/* For mobile phones: */
[class*="col-"] {
  width: 100%;  
}
/* For mobile phones too: */
@media only screen and (max-width: 600px) {
  #ulAllRecipes { height: 250px; overflow: auto; }
}

@media only screen and (min-width: 600px) {
  /* For tablets: */
  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}  
}
@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}

a {
  text-decoration: none;
  color: #ffffff;
}

p {
  margin: 0px;
}

#searchRecipeInput {
  background-image: url('/Pictures/searchicon.png');
  background-position: 8px 7px;
  background-repeat: no-repeat;
  width: 100%;
  font-size: 16px;
  padding: 10px 20px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 8px;
}

/* icon-bar on top*/
.icon-bar {
  width: 100%;
  background-color: #9e9ebb; 
  overflow: auto;
  border-radius: 5px;
}

.icon-bar a {
  float: left;
  width: 20%;
  text-align: center;
  padding: 5px 0;
  transition: all 0.3s ease;
  color: white;
  font-size: 36px;
}

.icon-bar a:hover {
  background-color: #666699;
}

.active {
  background-color: #7ac083;
}

.createNewR {
  visibility: hidden;
  background-color: #eaebdf;
  border-radius: 4px;
  padding: 8px;
}

/* -------------------Modal window------------------------- */


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 60px; /* Location of the box */
  padding-bottom: 5px;
  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 */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 93%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s; 
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 11px;
  background-color: #666699;
  color: white; 
}
.modal-header p { margin: 6px; text-align: center; font-weight: bold; }

.modal-body {padding: 2px 11px;}

.modal-footer {
  padding: 2px 11px;
  background-color: #666699;
  color: white;
}
.modal-footer p { margin: 6px; text-align: center; font-weight: bold; }
/* -------------------Modal window end------------------------- */
.error {color: #fa5151;}

.single input {
  font-size: 18px; 
}
.single button {
  font-size: 18px; color: #fc0505a9; position: absolute;
}
table, th, td {
  border:0px solid black;
  border-collapse: collapse;
  width: 100%;
  text-align: left; 
}
.btnPlus{
  font-size: 20px; color: #8afd06a4; 
}

#formInp input {
  font-size: 19px;
  border: 0px; border-radius: 3px;
  background-color: #666699; color: white;
  width: 90%; padding: 2px; margin: 1px;
}

#header {
  text-shadow: 2px 2px 3px #7ac083;
  font-size: x-large; padding-top: 8px;
}



/* Modal delete */

body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}

/* Float cancel and delete buttons and add an equal width */
.cancelbtn, .deletebtn {
  float: left;
  width: 50%;
  font-size: 26px;
  color: white;
  border: 0px; border-radius: 5px;
}

/* Add a color to the cancel button */
.cancelbtn {
  background-color: #666699;  
}

/* Add a color to the delete button */
.deletebtn {
  background-color: #f44336;
}

/* Add padding and center-align text to the container */
.container {
  padding: 16px;
  text-align: center;
}


/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and delete button on extra small screens */
@media screen and (max-width: 300px) {
  .cancelbtn, .deletebtn {
     width: 100%;
  }
}

/* Modal delete end */
