/* lato-300 - latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('./res/fonts/lato-v15-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Lato Light'), local('Lato-Light'),
       url('./res/fonts/lato-v15-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./res/fonts/lato-v15-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('./res/fonts/lato-v15-latin-300.woff') format('woff'), /* Modern Browsers */
       url('./res/fonts/lato-v15-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./res/fonts/lato-v15-latin-300.svg#Lato') format('svg'); /* Legacy iOS */
   unicode-range: U+000-5FF; /* Latin glyphs */
}

/* confoorta */
@font-face {
  font-family: 'Comfoorta';
  font-style: normal;
  font-weight: 300;
  src: url('./res/fonts/comfortaa-v22-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Lato Light'), local('Lato-Light'),
       url('./res/fonts/comfortaa-v22-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('./res/fonts/comfortaa-v22-latin-300.woff') format('woff'), /* Modern Browsers */
       url('./res/fonts/comfortaa-v22-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./res/fonts/comfortaa-v22-latin-300.svg#Comforta') format('svg'); /* Legacy iOS */
   unicode-range: U+000-5FF; /* Latin glyphs */
}

*{
	color:black;
  font-family: 'Lato', sans-serif;
}

.store-title-container {
  float:left;
  height: 130px;
  padding: 0px;
  margin-top: 8px;
  margin-left: 24px;
  margin-bottom: 0px;
  display: flex;
  align-items: flex-end;
}

.store-title {
  height:100%;
  padding:0px;
  margin:0px;
}

@media screen and (max-width: 920px) {
  .store-title-container {
    width: 76%;
    height: 130px;
    vertical-align: baseline;
  }
  .store-title {
    width:100%;
    height:auto;
  }
}
@media screen and (max-width: 500px) {
  .store-title-container {
    width: 70%;
    height: 130px;
    vertical-align: baseline;
  }
  .store-title {
    width:100%;
    height:auto;
  }
}

.cartLink{
  float:right;
  padding: 48px 24px;
  height: 48px;
}
.cartLink:hover {
  opacity: 0.6;
}
.cartLink:active {
  opacity: 0.4;
}

.filterBar {
  clear: both;
  padding: 0px 32px;
  margin-top: 0px;
}

.filterButton {
  border-image-source: url(./res/productBorder.png);  
  border-image-slice: 70;
  color: black;
  text-align: center;
  padding: 5px 16px;
  margin: 8px 4px;
  text-decoration: none;
  font-size: 18px;
  height: 42px;
  background-color: white;
}
.filterButton:hover {
  background-color: rgb(147, 224, 255);
}
.filterButton:active {
  background-color: rgb(80, 173, 210);
}
.filterButton img {
  height: 35px;
  margin: -9px;
}


.searchContainer {
  float:right;
  margin: 8px 0px;
}

.searchInput {
  float: left;
  font-size: 18px;
  padding: 5px 16px;
  border-image-source: url(./res/productBorder.png);  
  border-image-slice: 70;
  border-right: none; /* Prevent double borders */
  height: 42px;
  width: 340px;
}
.searchButton {
  float: left;
  color: black;
  text-align: center;
  padding: 5px 16px;
  margin: 0px -5px;
  text-decoration: none;
  font-size: 17px;
  background-color: white;
  border-image-source: url(./res/productBorder.png);  
  border-image-slice: 70;
  height: 42px;
  width: 42px;
}
.searchButton img {
  height: 25px;
  margin-left: -8px;
}
.searchButton:hover {
  background-color: rgb(147, 224, 255);
}
.searchButton:active {
  background-color: rgb(80, 173, 210);
}


/* When the screen is less than 600px wide, stack the links and the search field vertically instead of horizontally */
@media screen and (max-width: 1250px) {
  .searchContainer {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .searchInput {
    width: calc(100% - 60px);
  }
}


.productPage {
  clear: both;
  padding: 16px 32px;
}

.gallery {
  margin: 5px;
  float: left;
  width: 12%;
  aspect-ratio: 4/5;
  border: 10px solid transparent;
  padding: 0px 8px;
  border-image-source: url(./res/productBorder.png);  
  border-image-slice: 30;
  background-color: white;
  font-size: 18px;
  vertical-align: bottom;
  font-weight:bold;
  overflow: hidden;
}
@media only screen and (max-width: 2100px) {
  .gallery {
    width: 15.99999%;
  }
}
@media only screen and (max-width: 1700px) {
  .gallery {
    width: 18.99999%;
  }
}
@media only screen and (max-width: 1100px) {
  .gallery {
    width: 22.99999%;
  }
}
@media only screen and (max-width: 1000px) {
  .gallery {
    width: 32.99999%;
    margin: 6px 0;
  }
}
@media only screen and (max-width: 700px) {
  .gallery {
    width: 49.99999%;
    margin: 6px 0;
  }
}
@media only screen and (max-width: 500px) {
  .gallery {
    width: 100%;
  }
}

.galleryImg {
  
  transition: transform 0.3s;
  -webkit-transition: transform 0.3s;
  -moz-transition:transform 0.3s;
  -ms-transition:transform 0.3s;
}

.gallery:hover .galleryImg {
  transform: scale(1.15);
}

.gallery img {
  width: 100%;
  height: auto;
}

.desc {
  padding: 15px;
  text-align: center;
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 20vh; /* 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 */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border-radius: 25px;
  border: 1px solid #888;
  width: 80%;
  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: animatemodal;
  -webkit-animation-duration: 0.4s;
  animation-name: animatemodal;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatemodal {
  from 
  {
    scale: 80%;
    opacity:0
  } 
  to 
  {
    scale: 100%;
    opacity:1
  }
}

@keyframes animatemodal {
  from 
  {
    scale: 50%;
    opacity:0
  } 
  to 
  {
    scale: 100%;
    opacity:1
  }
}

/* The Close Button */
.close {
  color: gray;
  float: right;
  font-size: 48px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  height: 24px; 
  color: #000;
}

.modal-title {
  font-family: 'Comfoorta', 'Lato', sans-serif;
  margin-bottom: 32px;
  margin-top: 64px;
}

.modal-text {
  padding: 2px 0px;
  margin-left: 32vw;
  height: 52vh;
  overflow: auto; /* Enable scroll if needed */
}

.modal-footer {
  padding: 2px 16px;
  height: 20px; 
  color: #000;
}

.modal-image {
  max-width: 50vw;
  max-height: 52vh;
  padding: 0px 32px;
  float: left;
}

.subcategory-title {
  font-size: 20;
  font-weight: bold;
  clear: both;
  padding-top: 24px;
}

.purchase-note {
  clear: both;
  float: left;
  color: gray;
  padding-bottom: 12px;
  margin-top: 64px;
  font-size: 14;
}
.purchase-button {
  padding: 6px;
  color: white;
  background-color: rgb(76, 172, 88);
  border-radius: 10px;
  float: left;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  margin: 0px;
  margin-bottom: 32px;
  height:46px;
  line-height: 46px;
  width:250px;
  clear: both;
  text-decoration: none;
}
.purchase-button-arrow {
  height:14px;
  padding-left: 12px;
  padding-bottom: 4px;
  vertical-align: middle;
  
}
.purchase-button-disabled{
  background-color: rgb(196, 196, 196);
  cursor: default;
}
.purchase-button-disabled:focus, 
.purchase-button-disabled:hover {
  background-color: rgb(196, 196, 196);
  cursor: default;
}
.purchase-button-enabled:focus, 
.purchase-button-enabled:hover {
  cursor: pointer;
  background-color: rgb(98, 230, 98);
}
.purchase-button-enabled:active {
  cursor: default;
  background-color: rgb(163, 248, 163);
}
.purchase-button-img {
    height:24px;
}


.sub-option {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}

.sub-option-li {
  float: left;
  list-style: none;
  margin: 0 5px 0 0;
  height: 40px;
  position: relative;
}

.sub-option-label,
.sub-option-input {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.sub-option-input[type="radio"] {
  opacity: 0.01;
  z-index: 100;
}

.sub-option-input[type="radio"]:checked+label,
.Checked+label {
  background: rgb(147, 224, 255);
}

.sub-option-label {
  padding: 5px;
  border: 1px solid #CCC;
  cursor: pointer;
  z-index: 90;
}

.sub-option-label:hover {
  background: #DDD;
}

@media (orientation:portrait) {
  .modal {
    padding-top: 5vh;
  }
  .modal-content
  {
    max-height: 80vh;
    overflow: auto;
  }
  .modal-text
  {
    overflow: visible;
    margin: 0px 32px;
    width:85%;
  }
  .modal-image, .modal-description, .modal-options, .modal-title {
    clear: both;
    float: none;
    display: block;
    width:90%;
    margin: auto;
    padding: 16px 0px;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
  .purchase-button {
    width: 100%;
    text-align: center;
  }
  .modal-image {
    width: 90%;
    margin: auto;
    padding: 0px;
  }
  .modal-description, .modal-options
  {
    font-size: 20;
  }
  .subcategory-title {
    padding-top: 48px;
  }
  .close {
    font-size: 64px;
  }
  .modal-header {
    padding: 0px 16px;
    height: 20px; 
  }
  .modal-footer {
    padding: 0px;
    height: 8px;
  }
}



.footer {
	width:100%;
  height: 300px;
	z-index: 1;
	text-align:center;
	vertical-align: middle;
  margin-top:1000px;
	display: flex;
	flex-flow: flex-wrap;
}
.footerBlock {
	width:30vw;
	margin: auto;
	display: inline-block;
	z-index: 1;
}