@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #eeeeee;
  font-family: swap;
}
nav {
  width: 100%;
  padding: 12px 0;
  background: #eeeeee;
  box-shadow: -3px -3px 7px #ffffff, 3px 3px 5px #ceced1,
    inset -3px -3px 7px #ffffff, inset 3px 3px 5px #ceced1;
}
nav .menu {
  max-width: 1270px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu .logo a {
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  color: #31344b;
}
.menu ul {
  list-style: none;
  display: flex;
  align-items: center;
}
.menu ul a {
  margin: 0 8px;
  text-decoration: none;
  font-size: 18px;
  color: #31344b;
  font-weight: 400;
  display: inline-flex;
  padding: 10px 12px;
  box-shadow: -3px -3px 7px #ffffff, 3px 3px 5px #ceced1;
  position: relative;
  transition: all 0.3s ease;
}
.menu ul a:hover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset -3px -3px 7px #ffffff, inset 3px 3px 5px #ceced1;
}

.menu ul a:hover {
  color: #3498db;
}
nav label.btn {
  color: #31344b;
  font-size: 18px;
  cursor: pointer;
  display: none;
}
nav label.cancel {
  position: absolute;
  top: 25px;
  right: 30px;
}
#check {
  display: none;
}
@media (max-width: 940px) {
  .menu ul {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 400px;
    padding-top: 45px;
    height: 100%;
    background: #ecf0f3;
    box-shadow: 0 5px 10px #b0b0b5;
    z-index: 12;
    transition: all 0.3s ease;
  }
  .menu ul a {
    display: block;
    font-size: 23px;
    width: 100%;
    margin-top: 30px;
    box-shadow: none;
    text-align: center;
  }
  .menu ul a:hover:before {
    box-shadow: none;
  }
  nav label.bars {
    display: block;
  }
  #check:checked ~ label.bars {
    display: none;
  }
  #check:checked ~ ul label.cancel {
    display: block;
  }
  #check:checked ~ ul {
    left: 0;
  }
}

/* Main Header */

div#main-header {
  font-family: "Jost", sans-serif;
  margin: 10rem;
  color: black;
  width: 90%;
  display: block;
  margin: 4rem auto;
  padding: 2em;
  border-radius: 0.75rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  background: #eeeeee;
  box-shadow: 0 0 0 #cacaca, 0 0 0 #ffffff, inset 4px 4px 8px #cacaca,
    inset -4px -4px 8px #ffffff;
}
h1 {
  font-size: 3em;
  text-align: center;
  color: #6b7280;
}

/* Grid */

.gridcontainer {
  margin: 3.8rem;
  padding: 2rem;
  box-shadow: -2px -2px 4px 0 #ffffff, 0 40px 40px 0 #cacaca;
  z-index: 10;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* grid-template-columns: repeat(4, minmax(0, 1fr)); */
  grid-gap: 20px 20px;
  align-items: stretch;
  margin: 2px;
}

.grid > article {
  border: 1px solid #ccc;
  /* box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 0 #6d28d9,4px 4px 8px #cacaca,-4px -4px 8px #ffffff;,inset 0 0 0 0 #cacaca,inset 0 0 0 0 #ffffff; */
  box-shadow: 0 0 0 #cacaca, 0 0 0 #ffffff, inset 4px 4px 8px #cacaca,
    inset -4px -4px 8px #ffffff;
  background-color: #eeeeee;
  cursor: pointer;
  border: none;
  position: relative;
  transition: box-shadow 0.5s ease, background-color 0.5s ease;
  padding: 1.5rem;
}

.grid > article img {
  object-fit: cover;
  width: 100%;
  height: 26vh;
}

.grid .text {
  padding: 20px;
}

button {
  padding: 10px 10px;
  border: none;
  border-radius: 75px;
  margin-top: 10px;
  color: #666;
  letter-spacing: 3px;
  font-size: 1.2rem;
  font-weight: 400;
  justify-content: center;
  align-items: center;
  /* box-shadow: 
    10px 10px 30px 10px rgba(82, 68, 68, 0.3),
    -8px -8px 10px 10px rgba(145, 142, 142, 0.3); */
  text-shadow: -2px -2px 5px #fff, 2px 2px 5px #d1d9e6;
  box-shadow: -18px -18px 30px #fff, 18px 18px 30px #d1d9e6,
    inset 0 0 0 transparent, inset 0 0 0 transparent;
}

button:hover {
  letter-spacing: 5px;

  box-shadow: 0 0 0 #cacaca, 0 0 0 #ffffff, inset 4px 4px 8px #cacaca,
    inset -4px -4px 8px #ffffff;
}

button:active {
  letter-spacing: 3px;
  box-shadow: inset 4px 4px 8px 1px rgba(90, 90, 90, 0.3),
    inset -1px -1px 3px 1px rgba(255, 255, 255, 0.3);
}

/* Footer */

footer h1 {
  margin: 9rem 0 3rem 0;
  position: relative;
  text-align: center;
  color: #4b4747;
  font-family: "Cormorant Garamond", serif;
  bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer h1:before {
  position: absolute;
  content: "";
  bottom: -25px;
  width: 26%;
  height: 2px;
  background-color: orange;
}

footer .frame {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  width: 400px;
  margin: 0 0 4rem 0;
  /* position: relative;
  left: 37%; */
  left: 50%;
  position: relative;
  top: 50%;
  transform: translate(-50%, -20%);
  box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9,
    7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001;
  transition: box-shadow 0.6s cubic-bezier(0.79, 0.21, 0.06, 0.81);
  border-radius: 10px;
}

footer .btn {
  height: 35px;
  width: 35px;
  border-radius: 3px;
  background: #e0e5ec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9,
    7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001;
  transition: box-shadow 0.6s cubic-bezier(0.79, 0.21, 0.06, 0.81);
  font-size: 16px;
  color: rgba(42, 52, 84, 1);
  text-decoration: none;
}
footer .btn:active {
  box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, 0.5),
    -4px -4px 6px 0 rgba(116, 125, 136, 0.2),
    inset -4px -4px 6px 0 rgba(255, 255, 255, 0.5),
    inset 4px 4px 6px 0 rgba(116, 125, 136, 0.3);
}
