html,
body {
display: flex;
justify-content: center;
background-color: var(--body-bg-color);
width: 100vw;
height: 100svh;
margin: 0;
padding: 0;
color: var(--color-text-dark);
font-weight: 900;
font-family: Consolas, monospace;
z-index: 0;
position: fixed;
overflow-x: hidden;
overflow-y: hidden;
text-align: center;
align-items: center;
}

#curtain {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9989;
cursor: progress;
object-fit: contain;
background-color: var(--body-bg-color);
}

.transparent {
opacity: 0;
}

/* ----- TOOLBAR START ----- */

#headholder {
top: 0;
height: 10svh;
width: 100vw;
position: absolute;
z-index: 9980;
}

.hold {
transform: translate(0%, -100%);
}

.return {
position: relative;
width: 100%;
height: 100%;
cursor: pointer;
background-color: var(--color-white);
border-radius: 0 0 6px 6px;
box-shadow: 0 0 0.3125em 0.0625em #9a9999;
}

.return:hover {
background-color: var(--color-bg-hover);
box-shadow: 0 -0.0625em 0.5em 0 #404040a6;
}

.toolbar-slot {
position: absolute;
top: 50%;
height: 50%;
transform: translateY(-50%);
}

.left-slot {
left: 2%;
}

.center-slot {
left: 50%;
transform: translate(-50%, -50%);
}

.right-slot {
right: 2%;
}

.toolbar-slot img {
display: block;
height: 100%;
width: auto;
}

/* ----- TOOLBAR END ----- */

#DOM_container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1;
text-align: center;
overflow: clip;
}

#home_container {
width: min(92vw, 142.222222svh);
height: min(50.625vw, 80svh);
margin: auto;
position: relative;
overflow: clip;
container-type: size;
}

.logo_container {
width: 100%;
height: 21%;
margin: 0% auto 0.5% auto;
}

img#logo {
height: 100%;
aspect-ratio: 5/1;
margin: 0% auto 0% auto;
}

.elements {
width: 100%;
height: 36%;
margin: .5% 0% 0% 0%;
}

._4box {
height: 100%;
width: auto;
aspect-ratio: 1/1;
border: none;
cursor: pointer;
margin: 0% 0.43% 0% 0.43%;
}

._4box:hover {
box-shadow: 0 0.3125em 0.25em 0 #00000061;
}

img#GD {
background-color: var(--color-wind);
}

img#WS {
background-color: var(--color-fire);
}

img#GA {
background-color: var(--color-water);
}

img#AV {
background-color: var(--color-earth);
}

.info_btn_container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 26%;
margin: 4% 0% 0%;
}

#info-btn {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
aspect-ratio: 16/9;
background-color: #000000;
color: #000000;
border: solid #5d4122;
border-width: 5px 5px 10px;
border-radius: 2%;
cursor: pointer;
box-shadow: inset 0 0 0.625em rgba(0, 0, 0, 0.5);
position: relative;
overflow: hidden;
transition: text-shadow 0.2s ease;
margin: 0% auto;
font-size: 1.1cqh;
}

#info-btn:hover {
color: #414141;
text-shadow: 0px 0px 10px rgba(129,162,150,0.9);
background: radial-gradient(circle, #000000 0%, #808080 100%);
}

.info-content {
width: 99%;
height: 99%;
text-align: center;
box-sizing: border-box;
line-height: 1.5;
pointer-events: none;
color: inherit;
}

#info-btn img.info-svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 25%;
width: auto;
}

#footholder {
display: flex;
bottom: 0;
height: 10svh;
width: 100vw;
position: absolute;
z-index: 9980;
}

#finep {
font-size: .5vw;
position: absolute;
bottom: 0;
text-align: center;
left: 50%;
transform: translateX(-50%);
}

._example-holder {
width: 100%;
height: 60%;
background-color: #FF003F;
margin: 0;
padding: 0;
}

.click_dat {
display: flex;
font-size: 1.1cqw;
width: 100%;
height: 3.422%;
margin: 2.5% 0% 0% 0%;
justify-content: center;
}

.tap_dat {
display: none;
}

._blurb-holder {
position: absolute;
bottom: 0%;
width: 100%;
height: 30%;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}

.glassbox {
width: 99%;
height: 86%;
margin: auto;
overflow: hidden;
background-color: var(--color-glass-bg);
border-radius: 6px;
display: flex;
justify-content: center;
align-items: center;
container-type: size;
}

.maintext {
width: 92%;
height: auto;
color: #ffffff;
font-size: min(3cqw, 16cqh);
line-height: 1.3;
display: block;
margin: auto;
text-align: justify;
text-align-last: left;
overflow: visible;
overflow-wrap: normal;
word-break: normal;
hyphens: none;
flex: 0 0 auto;
}

video {
width: 57%;
height: auto;
aspect-ratio: 16/9;
margin: 1.1% 0% 0% 0%;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button {
filter: brightness(0) saturate(100%) invert(94%) sepia(20%) saturate(500%) hue-rotate(25deg);
}

/* ----- PORTAIT ----- */

@media all and (orientation:portrait) {
.toolbar-slot {
height: 30%;
}

#DOM_container {
flex-direction: column;
}

#home_container {
width: 98vw;
height: 80svh;
}

.logo_container {
height: 12.5cqh;
width: min(100%, 62.5cqh);
margin: 0.6cqh auto 1.7cqh;
aspect-ratio: 5/1 !important;
}

img#logo {
height: auto;
width: 91%;
aspect-ratio: 5/1 !important;
margin: 0% auto 0% auto;
}

.elements {
width: auto;
height: 50%;
aspect-ratio: 1/1 !important;
margin: 0.6cqh auto 1.2cqh;
}

._4box {
width: auto;
height: 48%;
aspect-ratio: 1/1 !important;
border: none;
margin: 0.3% 0.15% 1% 0.15%;
}

.info_btn_container {
width: 100%;
height: 23%;
margin: 5cqh auto 0.6cqh;
}

#info-btn {
width: auto;
height: 100%;
aspect-ratio: 16/7.28 !important;
font-size: min(1.8cqw, 1cqh);
margin: 0% auto 0% auto;
}

.click_dat {
display: none;
}

.tap_dat {
display: flex;
justify-content: center;
align-items: center;
font-size: min(3.2cqw, 1.8cqh);
width: 100%;
height: 3.1%;
margin: 0.6cqh 0% 0% 0%;
}

._blurb-holder {
position: absolute;
bottom: 1.2%;
width: 100%;
height: 35%;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}

.glassbox {
width: 97%;
height: 100%;
margin: auto;
padding: 0;
overflow: hidden;
border-radius: 6px;
container-type: size;
}

.maintext {
font-size: min(5cqw, 11cqh);
text-align: left;
}

video {
width: 90%;
height: auto;
aspect-ratio: 16/9;
margin: 21.5% 0% 0% 0%;
background-color: azure;
}
}

/* ----- PORTAIT END ----- */
/* Site-wide link reset: page styles supply the color and decoration. */
a:any-link {
  color: inherit;
  text-decoration: none;
}

/* Keep keyboard focus inside the existing toolbar and artwork. */
._4box[data-wde-keyboard]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.return[data-wde-keyboard]:focus-visible {
  outline: 3px solid #000;
  outline-offset: -4px;
}

/* Shared page loader. */
#loading_fx{width:clamp(88px,18vw,132px);height:auto;text-align:center;color:var(--color-text-dark,#777);font:600 12px/1.5 Arial,sans-serif;letter-spacing:.16em;opacity:0;animation:wde-loader-enter .15s ease-out .18s forwards}#loading_fx svg{display:block;width:72%;height:auto;margin:0 auto 18px}#loading_fx .loading-dots{display:flex;justify-content:center;gap:6px;margin-top:12px}#loading_fx i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:wde-loader-dot 1.2s ease-in-out infinite}#loading_fx i:nth-child(2){animation-delay:.15s}#loading_fx i:nth-child(3){animation-delay:.3s}@keyframes wde-loader-enter{to{opacity:1}}@keyframes wde-loader-dot{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){#loading_fx{animation:none;opacity:1}#loading_fx i{animation:none;opacity:.65}}
