*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  background-color: #071228;
  line-height: 1.6;
  font-size: 15px;
  padding: 80px 0 30px 0;
}
a:link,
a:visited {
  text-decoration: none;
  color: #333;
}

#container {
  width: 60%;
  height: 100%;
  margin: 0 auto;
  /* border: 2px solid #333; */
  overflow: hidden;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 18px;
}

.box {
  background-color: #b6b0b06c;
  text-align: center;
  height: 250px;
  padding-top: 10px;
  transition: all 0.3s ease-in-out;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  text-transform: capitalize;
  overflow: hidden;
}
.box a > div {
  padding-right: 45px;
  height: 100%;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.box-1 {
  background-image: url("./images-1/apple.png");
}
.box-2 {
  background-image: url("./images-1/spotify.png");
}
.box-3 {
  background-image: url("./images-1/Uber.png");
}
.box-4 {
  background-image: url("./images-1/yulu.png");
}
.box-5 {
  background-image: url("./images-1/pic01.jpg");
  background-size: contain;
  background-color: rgb(205, 229, 239);
}
.box-6 {
  background-image: url("./Cdnjs/favicon.webp");
  background-position: center;
  background-size: contain;
}
.box-7 {
  background-image: url("./images-1/hostinger.png");
}
.box-8{
  background-image: url('./images-1/Safran.png');
}
.box a {
  color: #e1d7b7;
}
.box-7 a,
.box-5 a {
  color: rgb(105, 102, 102);
}
.box a > div > header {
  width: 80px;
  text-align: left;
}
.box:hover {
  cursor: pointer;
  box-shadow: 1px 1px 5px rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}
.box:hover a {
  color: #f60;
}

@media (min-width: 320px) and (max-width: 480px) {
  body {
    padding: 10px 0 40px 0;
  }
  #container {
    width: 100%;
    padding: 0 0 100px 0;
    gap: 50px;
    /* border: 2px solid rebeccapurple; */
  }
  .box {
    height: 200px;
    border-radius: 0;
    overflow: visible;
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;

  }
  .box a > div {
    padding-right: 0;
  }
  .box a > div > header {
    width: auto;
    font-size: 12px;
    color: #fff;
    position: relative;
    bottom: -40px;
    /* border: 2px solid red; */
  }
  .box:hover h2 {
    color: #f60;
  }
}