@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', open-sans;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /*cross axis here column so horizontal*/
  justify-content: center; /*main axis here column so vertical*/
}

.container {
  display: flex;
  flex-direction: column;
  width: 350px;
  height: 400px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.images {
  display: flex;
  flex-direction: row;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.images img {
  width: 350px;
  height: 370px;
  object-fit: cover;
}

.buttons {
  height: 30px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.buttons button {
  width: 50%;
  font-family: inherit;
  background-color: blueviolet;
  color: #fff;
}

button:hover {
  opacity: 0.8;
}

button:active {
  transform: scale(0.98);
}
