/*
Theme Name: CUBE SIX
Theme URI: https://example.com/cube
Author: Allan Sturm
Author URI: https://allansturm.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (C) 2026 Allan Sturm
Tags: one-column, custom-colors, featured-images, full-site-editing, block-styles
Description: CUBE SIX is a new lightweight WordPress theme for a six-page website. Instead of a menu, each page sits on its own face of a cube, and you move between the pages by turning the cube in any of four directions. The content stays right side up no matter which way the cube turns. A long page scrolls inside its face. On a phone, a swipe scrolls the page until the page ends, and the next swipe turns the cube. CUBE SIX can be customized using 20 options that personalize each face and set the cube's behavior.
Version: 7.10.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: cube-six
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: #111;
  font-family: Manrope, Arial, sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
}
.stage { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; }
body.admin-bar .stage { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .stage { top: 46px; }
}
.scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cube { position: relative; transform-style: preserve-3d; }
.face {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000000cc;
  border: 2px solid #ffffff;
  backface-visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}
.face.is-front {
  pointer-events: auto;
}
.inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
  pointer-events: none;
}
.face.is-front .inner {
  pointer-events: auto;
}
.label { color: #fff; font-weight: bold; line-height: 1; }
.face-page {
  display: block;
  width: calc(100% - 2 * var(--edge-margin, 0%)) !important;
  height: calc(100% - 2 * var(--edge-margin, 0%)) !important;
  max-width: calc(100% - 2 * var(--edge-margin, 0%)) !important;
  max-height: calc(100% - 2 * var(--edge-margin, 0%)) !important;
  min-height: 0;
  overflow: hidden;
  font-size: clamp(13px, calc(var(--face-size, 480px) * 0.034), 17px);
  line-height: 1.45;
  padding: 0 !important;
  margin: var(--edge-margin, 0%) !important;
  background: transparent;
  pointer-events: none;
  box-sizing: border-box;
}
.face.is-front .face-page {
  overflow: auto;
  pointer-events: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.face.is-front .face-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.face-page h1 { font-size: 1.55em !important; line-height: 1.15; }
.face-page h2 { font-size: 1.3em !important; line-height: 1.2; }
.face-page h3 { font-size: 1.15em !important; line-height: 1.25; }
.face-page h4, .face-page h5, .face-page h6 { font-size: 1em !important; }
.face-page > *:first-child { margin-top: 0; }
.face-page img,
.face-page picture,
.face-page figure,
.face-page .wp-block-image {
  display: block;
  margin: 0 !important;
  line-height: 0;
  max-width: 100%;
}
.face-page figure img,
.face-page .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
}
.face-page .alignwide,
.face-page .alignfull,
.face-page .wp-block-image.alignwide,
.face-page .wp-block-image.alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.hot { position: absolute; z-index: 5; }
.stage.is-mobile .hot { display: none; }
.stage.turning .face-page,
.stage.turning .face.is-front .face-page {
  overflow: hidden !important;
}
.stage.turning #cube-overlay-bar { display: none !important; }
.chev {
  position: absolute; border: 0; background: transparent; padding: 0;
  cursor: pointer; opacity: 1; transition: opacity 0.18s ease;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.chev i { display: block; border-style: solid; border-color: var(--chevron-color, #fff); border-width: 0 0 3px 3px; transition: border-color 0.18s ease; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .chev i { opacity: 1; }
  .hot:hover .chev i { border-color: var(--chevron-hover, #fff); }
}
.turning .hot { pointer-events: none; }
.turning .chev { opacity: 0; }
.chev:focus { outline: none; }
