html {
  box-sizing: border-box;
  font-size: 62.5%; /* font-size: 10px; */
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #141627;
  font-family: "Roboto", sans-serif;
}

.back {
  width: 7rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: brown;
  border-radius: 1rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.back a {
  color: white;
}

.container {
  width: 100%;
  height: 80vh;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: 5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Reset Style */
a {
  text-decoration: none;
}

.box {
  width: 40rem;
  background-color: rgba(0, 255, 255, 0.24);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.8rem;
}

.main__img {
  width: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main__img img {
  width: 100%;
  border-radius: 0.8rem;
}

.other__img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin: 1rem 0;
}

.other__img div {
  width: 8rem;
  height: 8rem;
  border-radius: 0.8rem;
  border: 0.3rem solid gray;
  margin-left: 1rem;
  overflow: hidden;
}

.other__img div:first-child {
  margin-left: 0;
}

.other__img div:hover {
  border-color: rgb(6, 148, 153);
}

.other__img img {
  width: 100%;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.other__img img:hover {
  transform: scale(1.5);
}

.show__img {
  background: rgba(95, 93, 93, 0.363);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1; /*pointer-events: none;*/
  transition: 0.25s ease-out;
}

.show__img.active {
  opacity: 1;
  z-index: 1; /*pointer-events: all;*/ 
}

.show__img img {
  position: absolute;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
}

.show__img.active img {
	transform: translate(-50%, -50%) scale(1);
	transition: 0.25s ease-in-out;
  z-index: 1; /*In case of pointer-events, z-index is not needed*/
}

@media (max-width: 400px) {
  .box {
    width: 28rem;
  }

  .other__img div {
    width: 6rem;
    height: 6rem;
  }
}
