/* Base body settings */
body {
  background-image: url('https://portfolioivan.neocities.org/Sprites/background%20test.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: #596020;
  font-family: papyrus;
  transition: background-color 1.5s ease, color 1.5s ease;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden; /* prevents horizontal scroll */
}

h1 {
  font-size: 75px;
}
/* Side scroll box */
#side-scrollbox {
  position: absolute;
  top: 200px;
  left: 500px;
  width: 800px;           
  max-width: 804px;     
  height: 90vh;         
  max-height: 1025px;
  overflow-y: auto;
  padding: 12px;
  line-height: 1.5;
  background-color: #DEE9D4;
  border-radius: 30px;
  border: 5px solid #596020;
  box-shadow: 0px 0px 4px rgba(0,0,0,0.4);
  image-rendering: pixelated;
}


/* Floating images base style */
.floating-image {
  position: fixed;
  top: 50%;
  width: 140px; /* adjust size as you like */
  z-index: 10;
}

/* Left image */
.floating-image.left {
  left: 20px;
  transform: translateY(-50%) scaleX(-1);
  animation: float-left 6s ease-in-out infinite;
}

/* Right image */
.floating-image.right {
  right: 20px;
  transform: translateY(-50%);
  animation: float-right 4s ease-in-out infinite; /* now faster */
}

/* Smooth up & down for left image */
@keyframes float-left {
  0%   { transform: translateY(-50%) scaleX(-1) translateY(0); }
  50%  { transform: translateY(-50%) scaleX(-1) translateY(-40px); }
  100% { transform: translateY(-50%) scaleX(-1) translateY(0); }
}

/* Smooth up & down for right image */
@keyframes float-right {
  0%   { transform: translateY(-50%) translateY(0); }
  50%  { transform: translateY(-50%) translateY(-30px); }
  100% { transform: translateY(-50%) translateY(0); }
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
}

form input,
form textarea {
  width: 100%;
  padding: 8px;
  border: 2px solid #596020;
  border-radius: 8px;
  background-color: #F5F8F0;
  font-family: papyrus;
  font-size: 16px;
  box-sizing: border-box;
}

form button {
  background-color: #596020;
  color: #DEE9D4;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #7C8A34;
}

/* Dark mode toggle */
#darkModeToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 14px;
  font-family: papyrus;
  font-size: 14px;
  background-color: black;
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  min-width: 100px;  
}

#darkModeToggle:hover {
  background-color: white;
  color: black;
}
