* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.menuBar{
  font-size: large;
}
.dropdown {
  font-size: medium;
}
.flex-container {
  display: flex;
  margin: 10;
  background-color: #003366;
  justify-content: center;
  align-items: flex-end;
  position: sticky;
  top: 0;
  z-index: 1;
}
.flex-container>div {
  background-color: #003366;
  width: 100px;
  text-align: center;
  line-height: 75px;
  font-size: 10px;
}
.icon {
  font-size: 40px;
  color: #F5F1DE; 
  position: relative;
  top: 0.2em;
}
.icon:hover {
  color:black;
}
a:link {
  text-decoration: none;
  color: #F5F1DE;
}
a:visited {
  color:black !important;
}
a:hover {
  text-decoration: underline;
  color: black;
}
a:active {
  text-decoration: underline;
  color:black;
}
.colour {
  color: #F5F1DE;
}
.dropdown-content {
  display: none;  /*controls whether the basket stays open or no*/
  width: auto;
  position: absolute;
  background-color: #EEEEEE;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
}
.menu {
  width: 100%;
}
.basket {
  width: auto;
}
.searchResults {
  text-align: center;
  border: 1px solid black; 
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 15px;
  position: sticky;
  top: 75px;
  background-color: white;
}
.footer {
  background-color: #003366;
  bottom: 0;
}
.page-container {
  margin:5vw
}
.dropdown-content a {
  color: black;
  padding: 12px 12px;
  text-decoration: none;
  display: block;
  text-align: center;
}
.menu-table, .menu-th, .menu-td {
  border:1px solid black;
  border-collapse: collapse;
  text-align: center;
}
.basket-table{
  text-align: left;
  padding: 2px 5px; /* smaller padding */
  line-height: 2.5;
}
.dropdown-content a:hover {background-color: #6e6d6d;}
.dropdown:hover .dropdown-content {
  display: block;
}
.product-container {
  border:1px solid black;
}
.container2 {
  position: relative;
  width: 70%;
  cursor: pointer;
  overflow: visible; /* allow icon to float outside */
}
.search-box {/* The expanding search box */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-195%);
  border: 2px solid rgba(136,139,141,0);
  border-radius: 10px;
  width: 25px; /* initial width */
  height: 25px;
  background: rgba(209,203,193,0);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: width 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}
.search-box input[type="search"] {/* Search input */
  border: none;
  outline: none;
  padding-left: 10px;
  width: 0;
  transition: width 0.5s ease;
  background: transparent;
  font-size: 16px;
  color: black;
  -webkit-appearance: none;  /* Remove the browser's default clear (x) */
  -moz-appearance: none;
  appearance: none;
}
.icon2 {/* Floating icon */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-50%, -225%);
  font-size: 20px;
  color:#F5F1DE;
  z-index: 2;
  transition: right 0.5s ease, transform 0.5s ease;
}
.container2:hover .search-box {  /* Hover triggers box expansion and input appears */
  width: 90px;
  background: rgba(209,203,193,1);
  border-color: rgba(136,139,141,1);
}
.container2:hover .search-box input[type="search"] {
  width: 240px; /* expand input to fill box */
}
.container2:hover .icon2 {
  right: 90px; /* icon slides with box */
  transform: translate(-50%, -225%);
}
.carousel-slide {
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  transition: transform 0.5s ease;
}
@media (hover: none) and (pointer: coarse) {
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: larger;
}
.flex-container {
  display: flex;
  margin: 10;
  background-color: #003366;
  justify-content: center;
  align-items: flex-end;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: large;
}
.menuBar{
  font-size: large;
}
.dropdown {
  font-size: medium;
}

.flex-container>div {
  background-color: #003366;
  width: 100px;
  text-align: center;
  line-height: 75px;
  font-size: 10px;
}

.icon {
  font-size: 40px;
  color: #F5F1DE; 
  position: relative;
  top: 0.2em;
}

.icon:active {
  color:black;
}

a:link {
  text-decoration: none;
  color: #F5F1DE;
}

a:visited {
  color:black !important;
}

a:active {
  text-decoration: underline;
  color:black;
}

.colour {
  color: #F5F1DE;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #EEEEEE;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
}

.menu {
  width: 100%;
}

.basket {
  width: 100%;
  font-size: smaller;
}

.searchResults {
  text-align: center;
  border: 1px solid black; 
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 15px;
  position: sticky;
  top: 75px;
  background-color: white;
}

#checkout {
  font-size: xx-large;
}

.page-container {
  margin:5vw
}

#searchResult {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr)); /* exactly 3 columns */
  gap: 40px;
}

.productName {
  background-color: blue;;
  padding: 10px;
  width: 950px;
  height: 100px;
  text-align: center;
}

.addToBasket {
  background-color: blue;;
  padding: 10px;
  width: 950px;
  height: 100px;
  text-align: center;
}

.productPrice {
  background-color: blue;
  height: 50px;
}

.productColour {
  background-color: red;
}

.productPriceValue {
  text-align: center;
}

.result-container {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  width: 100%;
  box-sizing: border-box; 
}

.result-container table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.result-container img {
  width: 100%;        /* fill the width of its cell */
  height: auto;       /* maintain aspect ratio */
  display: block;
  aspect-ratio: 1 / 1;   /* makes it a square */
  object-fit: cover;     /* remove inline spacing issues */
}

.dropdown-content a {
  color: black;
  padding: 12px 12px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.menu-table, .menu-th, .menu-td {
  border:1px solid black;
  border-collapse: collapse;
  text-align: center;
}

.basket-table{
    text-align: left;
    padding: 2px 5px; /* smaller padding */
    line-height: 2.5;
}

.dropdown-content a:active {background-color: #6e6d6d;}

.dropdown:active .dropdown-content {
  display: block;
}

.product-container {
  border:1px solid black;
}

.container2 {
  position: relative;
  width: 70%;
  cursor: pointer;
  overflow: visible; /* allow icon to float outside */
  right: 90px;
  background: rgba(209,203,193,1);
  border-color: rgba(136,139,141,1);
}

.search-box { /* The expanding search box */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-195%);
  border: 2px solid rgba(136,139,141,1);
  border-radius: 10px;
  width: 90px; /* initial width */
  height: 25px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(209,203,193,1);
}

.search-box input[type="search"] { /* Search input */
  border: none;
  outline: none;
  padding-left: 10px;
  width: 240px;
  background: transparent;
  font-size: 16px;
  color: black;
  -webkit-appearance: none;   /* Remove the browser's default clear (x) */
  -moz-appearance: none;
  appearance: none;
}

.icon2 { /* Floating icon */
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translate(-50%, -225%);
  font-size: 20px;
  color:#F5F1DE;
  z-index: 2;
}
}