/* all styles are here, except few local in elements
.class, #id= */

/* general */
body, html * {
  /* ..fade-in animation when body loads.. */
  animation: fadeInAnimation ease 2s; 
  animation-iteration-count: 1; 
  animation-fill-mode: forwards;
  /* ..end of animation.. */
  
  /* height: 100%; */
  /* margin: 0; */
  /* color: coral; */
  @import url("google fonts");
  scroll-behavior: smooth;
}

/* fade-in animation when body loads */
@keyframes fadeInAnimation { 
  0% { 
      opacity: 0; 
  } 
  100% { 
      opacity: 1; 
  } 
}

.center {
  margin: auto;
  width: 100%;
  text-align: center;
  background-color: cornsilk;
  border: 0px solid rgb(60, 36, 192);
  padding: 0px;
}

.left {
  text-align: left;
}

/* footer */
.footer {
  margin: auto;
  width: 100%;
  text-align: center;
  background-color: cornsilk;
  border: 0px solid rgb(60, 36, 192);
  padding: 1px;
}

/* navigation ------------------------------------------*/
/* todo: on full screen is moving to the right */
.nav {
  margin: auto;
  width: 100%;
  padding-inline-start: 0px;
  background-color: bisque; 
  list-style-type: none;
  text-align: center;
  margin: 0;
  padding: 0;
}
/* nav inline-block  */
.nav li {
  display: inline-block;
  font-size: 20px;
  padding: 6px;
}
/* Style the top navigation bar */
.topnav {
  overflow: hidden;
  background-color: rgba(251, 183, 35, 0.781);
}
/* Style the topnav links */
.topnav a {
  float: left;
  display: block;
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
/* Change color on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* expand list like a dropdows, using a checkbox-------------------- */
.expand-details {
  list-style: none;
}
.expand-details li > input + * {
  display: none;
}
.expand-details li > input:checked + * {
  display: block;
  list-style: none;
}
.expand-details li > input {
  display: none;
}

/* grid of products -------------------------------------------------*/
.grid-layout {
  display: grid;
  grid-column-gap: 50px;
  grid-row-gap: 50px;
  grid-template-columns: auto auto;
  background-color: rgba(255, 255, 255, 0);
  padding: 10px;
}
.grid-element {
  background-color: rgba(255, 255, 255, 0);
  border: 0px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 20px;
  text-align: center;
}

/* links --------------------------------------------------- */
a:link {
  color: crimson;
}
a:visited {
  color: blueviolet;
}
a:hover {
  color: goldenrod;
}

/* forms --------------------------------------------- */
form {
	width: 210px;
	margin: 10px auto;
	text-align: center;
	position: relative;
}
input {
  /* position: relative; */
  /* display: block; */
  margin: 10px auto 10px;
  border-radius: 5px;
  color: white;
  background-color: coral;
  border: none;
  box-shadow: 0, 5px, 0, crimson;
  font-size: 16px;
  width: 110px;
  border: 2px solid #999;
  height: 25px;
  -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
  /* box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3); */
}

/* buttons----------------------------------------- */
button {
  /* position: relative; */
  width: 75%;
  height: 40px;
  /* display: block; */
  margin: 30px auto 30px;
  border-radius: 5px;
  color: white;
  background-color: coral;
  border: none;
  box-shadow: 0, 5px, 0, crimson;
}
button:hover {
  top: 2px;
  box-shadow: 0, 3px, 0, crimson;
}
button:active {
    top: 5px;
    box-shadow: none;
}
button:focus {
    outline: none;
}

/* modal ------------------------------------------------ */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  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 */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s
}
/* modal content + it's parts*/ 
.modal-content {
  position: fixed;
  bottom: 0;
  background-color: #fefefe;
  width: 100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s
}
.modal-header {
  padding: 2px 6px;
  background-color: cornsilk;
  color: coral;
}
.modal-body {
padding: 2px 14px;
background-color:bisque;
}
.modal-footer {
  padding: 2px 20px;
  background-color: cornsilk;
  color: coral;
}
/* close modal btn */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* Animation */
@-webkit-keyframes slideIn {
  from {bottom: -300px; opacity: 0} 
  to {bottom: 0; opacity: 1}
}
@keyframes slideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}
@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}
@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}


/* table ---------------------------------------- */
main {
  display: flex;
  justify-content: center;
}
table {
  max-width: 100%;
}
tr:nth-child(odd) {
  background-color: #eee;
}
th {
  background-color: #555;
  color: #fff;
}
th,
td {
  text-align: left;
  padding: 6px 6px;
}

/* images -------------------------------*/
.productimg {
  width: 300px !important;
  height: 300px !important;
}

/* hover over images and show a background text-------- */
.hoverimg,
.hoverimg * {
  box-sizing: border-box;
}
.hoverimg {
  position: relative;
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}
.hoverimg img {
  max-width: 100%;
}
.hoverimg .hoverimg-layer_bottom {
  display: block;
}
.hoverimg .hoverimg-layer_top {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  padding: 15px;
  -moz-transition: all 0.6s ease-in-out 0s;
  -webkit-transition: all 0.6s ease-in-out 0s;
  -ms-transition: all 0.6s ease-in-out 0s;
  transition: all 0.6s ease-in-out 0s;
}
.hoverimg:hover .hoverimg-layer_top,
.hoverimg.active .hoverimg-layer_top {
  opacity: 1;
  cursor: pointer;
}
.hoverimg .hoverimg-text {
  text-align: center;
  font-size: 36px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
