body, html { margin: 0; padding: 0; height: 100%; width: 100%; overflow-y: auto; }
body { display: flex; flex-direction: column; align-items: center; justify-content: start; /* Align items at the top */ }

#background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
#background-container img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 4s ease-in-out; }

#top-right-image { position: fixed; top: 1rem; right: 1.5rem; z-index: 9999; width: auto; height: 3rem; opacity: 0.6; }

.instructions-banner { position:absolute; z-index: 1; width: 24rem; height: auto; top: 0.5rem; left:0.5rem;	}
.instructions-banner-back-home { float: left; width: 2.1rem; height: 1.2rem; display: flex; justify-content: center;	border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7);	}
.instructions-banner-back-home img { width: 1.2rem; height: 1.2rem; }
.instructions-banner-ordis { float: left; width: 5.7rem; height: 1.2rem; display: flex; justify-content: center;	border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem;
		font-family: 'Crimson Pro', serif; font-weight: 500; font-size: 1rem; color: rgba(255,255,255,1); background-color: rgba(0,0,125,0.7);	}
.instructions-banner-ordis a { text-decoration: none; }
.instructions-banner-ordis span { cursor: default; }
.instructions-banner-mobiles { float: left; width: 5.7rem; height: 1.2rem; text-align: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.3);	}
.instructions-banner-mobiles a { font-family: 'Crimson Pro', serif; font-weight: 500; font-size: 1rem; text-decoration: none; color: rgba(255,255,255,0.6); }
.instructions-banner-mobiles span { font-family: 'Crimson Pro', serif; font-weight: 500; font-size: 1rem; text-decoration: none; color: rgba(255,255,255,0.6); cursor: pointer; }
.instructions-banner-reload { float: left; width: 2rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-reload img { width: 1rem; height: 1rem; margin: 0.1rem 0 0.1rem 0; }
.instructions-banner-show-hide {	float: left; width: 2rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-show-hide img { width: 1.2rem; height: 1.2rem; }

.instructions-wrapper{ position:absolute; z-index: 1; width: 15.6rem; height: auto; top: 1.7rem; left:0.5rem; padding: 0 1rem 1rem 1rem; border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-hidden { display: none; }

.instructions-screen-title { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; margin: 1rem auto 1rem auto; position: relative; }
.instructions-screen-title img { height: 64px; width: auto; z-index: 10; }
.instructions-screen-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-mouse-title { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; margin: 1rem auto 1rem auto; position: relative; }
.instructions-mouse-title img { height: 32px; width: auto; z-index: 10; }
.instructions-mouse-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-keyboard-title { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; margin: 1rem auto 1rem auto; position: relative; }
.instructions-keyboard-title img { height: 32px; width: auto; z-index: 10; }
.instructions-keyboard-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-action-previous { float:left; height: 4rem; width: 2.5rem; margin: 0 0.35rem 1rem 0.9rem; display: flex; align-items: center; justify-content: center; }
.instructions-action-previous img { height: auto; width: 2.5rem; margin: auto; }

.instructions-action-next { float:left; height: 4rem; width: 2.5rem; margin: 0 0.9rem 1rem 0.35rem; display: flex; align-items: center; justify-content: center; }
.instructions-action-next img { height: auto; width: 2.5rem; margin: auto; }

.instructions-result { float: left; height: 4rem; width: auto; display: flex; margin: 0 0 1rem 0; align-items: center; justify-content: center; }

.instructions-action { float:left; height: 4rem; width: 7.6rem; display: flex; margin: 0 0 1rem 0; align-items: center; justify-content: center; }
.instructions-action img { height: 3rem; width: auto; margin: auto; }

.instructions-spacing { float: left; width: 100%; height: 1rem; }

.instructions-commander { float: left; width: 100%; height: auto; font-family: 'Mulish', sans-serif; font-weight: 500; font-size: 0.8rem; color: #fff; letter-spacing: 0.1em; line-height: 2rem; text-align: center; background-color: rgb(0,0,125); }
.instructions-commander a { color: #fff; text-decoration: underline; }

/* Cover and Pages */

/* Default: horizontally centered in the viewport */
.centered-div { display: flex; align-items: center; justify-content: space-between; height: calc(100vh - 4rem); box-sizing: border-box; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); background-color: #fff; margin: 2rem auto; width: auto; position: relative; left: 0; }

/* Adjust when #instructions-hide-show is visible */
.instructions-wrapper:not(.instructions-hidden) ~ .centered-div { left: 7rem; }

.left, .right { display: flex; align-items: center; justify-content: center; flex: 0; }
.left img, .right img { height: calc(100vh - 4rem); max-height: calc(100vh - 4rem); width: auto; object-fit: contain; }

.vertical-line { width: 2px; background-color: #eee; height: 100%; }

/* Scroll Button */
.scroll-button { position: fixed; right: 2rem; z-index: 1000; cursor: pointer; background: none; border: none; padding: 0; display: inline-block; transition: filter 0.5s ease; filter: brightness(100%); }

/* Downward Button (bottom-right) */
.scroll-down { top: 50%; transform: translateY(50%); }
.scroll-up { top: 50%; transform: translateY(-50%); }
.scroll-button:hover { filter: brightness(150%); }
.scroll-button:active { filter: brightness(70%); }
