* {
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/*-------- first page ---------*/

.nav {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 1.5em;
  margin-bottom: 1em;
}

.nav a {
  font-size: 1.2em;
  text-decoration: none;
  color: #0095ff;
}

.first-page .home-div {
  display: flex;
  justify-content: space-evenly;
  gap: 2em;
  padding: 4em;
}

.home-div .text-div {
  flex-basis: 40%;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 2em;
}

.home-div .text-div h1 {
  font-size: 3em;
}

.home-div .text-div p {
  line-height: 1.8em;
  color: #565555;
}

.home-div .text-div button {
  align-self: flex-start;
  padding: 0.8em;
  border-radius: 0.5em;
  border-color: red;
  background-color: red;
}

.home-div .text-div button a {
  color: aliceblue;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 862px) {
  .home-div {
    flex-direction: column;
  }
}

@media (max-width: 330px) {
  .nav {
    flex-direction: column;
  }
}

/*-------- second page ---------*/

.second-page .intro h1 {
  padding: 0em 4.5em;
}

.Products-div {
  display: flex;
  justify-content: space-evenly;
  padding: 1em 3em;
}

.first-Products,
.second-Products,
.third-Products {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1em;
}

.salary {
  color: red;
}

.name {
  font-size: 1.5em;
}

.Products-div img {
  flex-basis: 80%;
}

.Products-div .img img:hover {
  transform: scale(1.1);
  transition: 1s;
}

.Products-div .img {
  overflow: hidden;
}

@media (max-width: 1234px) {
  .Products-div {
    flex-direction: column;
    gap: 2em;
  }
}

@media (max-width: 505px) {
  .second-page .intro h1 {
    padding: 1em;
  }
}

/*-------- third page ---------*/

.third-page .new-arrivals-div {
  padding: 4em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.new-arrivals-div p {
  margin-top: 1em;
  width: 65%;
  text-align: center;
  color: #565555;
}

.new-arrivals-watches-div {
  display: flex;
  justify-content: space-evenly;
  padding: 0em 4em 4em;
}

.first-watch,
.second-watch,
.third-watch {
  flex-basis: 20%;
}

.watch-caption {
  text-align: center;
  position: relative;
  padding: 1em;
}

.watch-caption p {
  font-size: 1.5em;
  margin: 0.2em;
}

.watch-caption .cart-div {
  position: absolute;
  background-color: rgb(173, 0, 0);
  width: 100%;
  height: 5%;
  top: 0%;
  font-size: 1.5em;
  color: aliceblue;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.watch-caption .cart-div p {
  font-size: 1.3em;
  margin: 0.5em;
  opacity: 0;
}

.watch-caption:hover .cart-div {
  opacity: 1;
  width: 100%;
  height: 80%;
  transition: 0.5s;
}

.watch-caption:hover .cart-div p {
  opacity: 1;
  transition: 0.5s;
}

.salary-div {
  background-color: rgb(228, 228, 228);
  text-align: center;
  border-radius: 0.8em;
  font-weight: bold;
  font-size: 1.5em;
  color: red;
}

@media (max-width: 556px) {
  .new-arrivals-watches-div {
    flex-direction: column;
    gap: 2em;
  }
}

/*-------- fourth page ---------*/

.fourth-page {
  display: flex;
  padding: 4.5em 1em;
  gap: 1em;
}

.div-for-3-4 {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.div1:hover img,
.div2:hover img,
.div3:hover img,
.div4:hover img {
  transform: scale(1.1);
  transition: 1s;
}

.div1,
.div2,
.div3,
.div4 {
  overflow: hidden;
  position: relative;
}

.div1::after,
.div2::after,
.div3::after,
.div4::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.div1:hover::after,
.div2:hover::after,
.div3:hover::after,
.div4:hover::after {
  background-color: rgba(0, 0, 0, 0.619);
}

@media (max-width:400px) {
  .fourth-page{
    flex-direction: column;
  }
}