* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: #000000;
  font-family: "Opulent", sans-serif;
  color: #ffffff;
}

section {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  justify-items: center;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-direction: column;
}

.painting,
.name {
  align-items: center;
  justify-items: center;
}

img {
  width: 100vw;
  height: 97vh;
  object-fit: contain;
}

p {
  padding: 0.5rem;
  text-align: center;
}

/* buttons */

.buttons {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 700px) {
  img {
    width: 100vw;
    height: auto;
  }
}
