* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: url("https://harrowick.neocities.org/Lore/Entities/websiteentityselect.png") no-repeat center center fixed;
  background-size: cover;
}

/* entity page title */
header {
  position: absolute;
  top: 0px;
  left: 700px;
  z-index: 3;
}

.title-img {
  margin-top: -2%;
  margin-left: -7%;
  max-width: 457px;
  height: auto;
  transform: scale(0.95);
}

/* return home */
.home-btn {
  position: fixed;
  cursor: pointer;
  z-index: 5;
  filter: brightness(0.8) contrast(0.9);
  transition: filter 0.3s ease, transform 2s ease;
}

.home-btn:hover {
  filter: brightness(1) contrast(1);
}

.hidden-home {
  transform: translateX(-100%);
}

/* carousel code */
.carousel-container {
  position: absolute;
  top: 39%;
  left: 25%;
  width: 1000px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-bottom-images {
  position: relative;
  width: 100%;
  height: 150px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  left: -50px;
}

.arrow-img {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  max-width: 284px;
  height: auto;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.arrow-img:hover {
  filter: brightness(1.2);
}

.arrow-img:active {
  filter: brightness(0.9);
}

#prevBtn {
  left: -10%;
}

#nextBtn {
  right: -10%;
}

.carousel-image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

.carousel-image:hover {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.carousel-image.hidden {
  display: none;
}

.carousel-image.slide-out-right {
  animation: slideOutRight 0.5s ease forwards;
}

.carousel-image.slide-out-left {
  animation: slideOutLeft 0.5s ease forwards;
}

.carousel-image.slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

.carousel-image.slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

.bottom-image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}

.bottom-image.hidden {
  display: none;
}

.bottom-image.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.bottom-image.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* keyframes */
@keyframes slideOutRight {
  from { transform: translateX(-50%); opacity: 1; }
  to   { transform: translateX(50%);  opacity: 0; }
}

@keyframes slideOutLeft {
  from { transform: translateX(-50%);  opacity: 1; }
  to   { transform: translateX(-150%); opacity: 0; }
}

@keyframes slideInLeft {
  from { transform: translateX(-150%); opacity: 0; }
  to   { transform: translateX(-50%);  opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50%);  opacity: 0; }
  to   { transform: translateX(-50%); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* pagination widget for entities */

.portrait-nav-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 543px;
  height: 513px;
  padding: 40px 45px 50px 45px;
}


.portrait-container-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 543px;
  height: 513px;
  z-index: -1;
  pointer-events: none;
  object-fit: none;
}

/* the grid itself: 2 columns, 2 rows */
.portrait-grid {
  position: relative;
  width: 494px;
  height: 440px;
}

.portrait-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.portrait-page.active {
  opacity: 1;
  pointer-events: all;
}

/* 2x2 grid thing for the pagination containerrr thing in the top right */
.portrait-row {
  display: flex;
  
  flex: 1;
}

.portrait-link {
  display: block;
  width: 242px;
  height: 215px;
  cursor: pointer;
  transition: filter 0.3s, transform 0.3s;
  filter: brightness(0.85) contrast(0.95);
}

.portrait-link:hover {
  filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transform: scale(1.05);
}

.portrait-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}









/* portrait dots! (left/right arrows) */
.portrait-dots-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 5;
  margin-top: 450px; 
}

.portrait-dot {
  cursor: pointer;
  width: 30px;
  height: auto;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  display: block;
}

.portrait-dot:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.portrait-dot:active {
  filter: brightness(0.8);
  transform: scale(0.95);
}








