/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Landing page */
.landing-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.landing-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: fade-in 2s ease 0.5s forwards;
}

.landing-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: -1;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header for non-homepage */
.header {
  position: relative;
  min-height: 60px;
  background: #000;
}

/* CSS-only Mobile Menu Toggle */
.menu-toggle-checkbox {
  display: none;
}

.menu-toggle-button {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 30px;
  cursor: pointer;
  z-index: 11;
  color: #fff;
  padding: 16px 18px;
  user-select: none;
}

.menu-icon-close {
  display: none;
}

.menu-toggle-checkbox:checked ~ .menu-toggle-button .menu-icon-open {
  display: none;
}

.menu-toggle-checkbox:checked ~ .menu-toggle-button .menu-icon-close {
  display: inline;
}

.mobile-logo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 10;
}

.menu-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  z-index: 9;
  cursor: pointer;
}

.menu-toggle-checkbox:checked ~ .menu-overlay {
  display: block;
  opacity: 0.333;
  animation: menuBgIntro 0.125s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -200px;
  width: 200px;
  height: 100%;
  z-index: 10;
  background: white;
  padding: 70px 0 20px 0;
  box-shadow: 0 0 32px #00000044;
}

.menu-toggle-checkbox:checked ~ .mobile-menu {
  display: block;
  right: 0;
  animation: menuIntro 0.125s;
}

.mobile-menu .menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  padding-right: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  border-left: 6px solid transparent;
}

.mobile-menu .menu-item:hover {
  border-left-color: rgba(0, 0, 0, 0.2);
}

.mobile-menu .menu-item-active {
  border-left-color: #000;
}

@keyframes menuBgIntro {
  0% { opacity: 0; }
  100% { opacity: 0.333; }
}

@keyframes menuIntro {
  0% { right: -200px; }
  100% { right: 0; }
}

@media (min-width: 810px) {
  .menu-toggle-button,
  .mobile-logo,
  .menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

/* Typography */
h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Open Sans", serif;
  font-size: 30px;
  font-weight: 700;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Open Sans", serif;
  font-size: 30px;
  font-weight: 700;
}

h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  opacity: 0.7;
}

ul {
  padding: 0 0 0 20px;
  list-style-type: square;
}

ol {
  padding: 0 0 0 20px;
}

li {
  padding-left: 5px;
  margin: 0 0 10px 0;  
}

/* Top Menu */
.top-menu {
  display: none;
  position: absolute;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  color: #fff;
  font-size: 14px;
  z-index: 10;
}

.top-menu-item {
  padding: 20px 0 18px 0;
  margin: 0 10px;
  border-bottom: 4px solid transparent;
  color: #fff;
  opacity: 0.75;
  transition: opacity 333ms;
  white-space: nowrap;
  text-decoration: none;
}

.top-menu-item-selected {
  border-bottom: 4px solid rgba(255, 255, 255, 0.733);
  opacity: 1;
}

.top-menu-item:hover {
  opacity: 1;
}

.top-menu-drop-down {
  display: block;
}

.top-menu-drop-down-logo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 10;
}

.top-menu-drop-down-title {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
  color: #ddd;
  font-weight: 600;
}

@media (min-width: 810px) {
  .top-menu {
    display: flex;
  }
  .top-menu-drop-down {
    display: none;
  }
  .top-menu-drop-down-logo {
    display: none;
  }
  .top-menu-drop-down-title {
    display: none;
  }
}

/* Button */
.button {
  background: #000;
  user-select: none;
  color: #fff;
  padding: 10px 20px;
  margin: 10px 0;
  font-weight: 500;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: box-shadow 999ms;
}

@media (min-width: 810px) {
  .button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.533);
  }
}

/* Footer */
.main.footer {
  width: 100%;
  min-height: 100px;
  background: #000;
  margin: 0;
  padding: 50px 20px;
}

.footer-columns {
  display: flex;
  color: #fff;
  font-size: 14px;
}

.footer-column {
  width: 50%;
}

.footer-link {
  display: block;
  color: #fff;
  padding: 0 20px 15px 0;
  opacity: 0.6;
  transition: opacity 333ms;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 1;
}

.footer-text {
  opacity: 0.6;
  padding: 0 20px 15px 0;
}

.footer-bottom {
  margin: 30px 0 0 0;
  color: #fff;
}

.footer-copyright {
  font-size: 10px;
  padding: 20px;
  opacity: 0.6;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  border: none;
}

th {
  padding: 5px 10px 8px 0;
  border-bottom: 2px solid #888;
  text-align: left;
  overflow-x: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid #888;
  vertical-align: top;
  overflow-x: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

td:first-child {
  font-weight: 700;
}

/* Forms */
label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  user-select: none;
}

input, textarea, select, option {
  font-family: "Open Sans", serif;
  font-size: 20px;
  display: block;
  outline: none; 
  border: 1px solid #888; 
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  -webkit-box-shadow: 0px 0px 3px #0091ea;
  box-shadow: 0px 0px 3px #0091ea;
}

::placeholder { 
  opacity: 0.85; 
}

/* Menu item */
.menu-item {
  border-left: 6px solid transparent;
}

.menu-item-active {
  border-left: 6px solid #000;
}

.menu-item:hover {
  border-left: 6px solid rgba(0, 0, 0, 0.2);
}

/* Link card */
.link {
  position: relative;
  padding: 5px 10px;
  min-height: 59px;
  margin: 10px 0;
  background: #efefef;
  border: 1px solid rgba(0, 0, 0, 0.133);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 3px 6px transparent;
  display: flex;
  align-items: center;
}

.link:hover {
  background: #e4e4e4;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.133);
}

.link a {
  color: #000;
  text-decoration: none;
}

/* Landing */
.landing {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(2);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.533);
}

/* Cover image */
.cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Layout */
.main {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: #fff;
}

.margin-left {
  flex-grow: 1;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04));
}

.margin-right {
  flex-grow: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04));
}

.center {
  flex-grow: 999;
  max-width: 960px;
  margin: 20px 10px 0 10px;
}

/* Two column layout */
.two {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.left { 
  flex-direction: column; 
}

.right { 
  flex-direction: column; 
}

.half-text {
  position: relative;
  flex-grow: 50;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 10px;
}

/* Image */
.image {
  position: relative;
  width: 100%; 
  max-width: 100%; 
  box-sizing: border-box;
  background-size: cover;
  background-position-y: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius);
  aspect-ratio: 3 / 2;
}

.image-zoomed {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; 
  height: 100vh; 
  max-width: 100vw; 
  max-height: 100vh; 
  z-index: 200;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile/Desktop visibility */
.mobile {
  display: block;
  padding: 30px;
}

.desktop { 
  display: none; 
}

@media (min-width: 810px) {
  .mobile { display: none; }
  .desktop { display: flex; }
  .left { flex-direction: row; }
  .right { flex-direction: row-reverse; }
  .center { margin: 20px 30px 0 30px; }
  .half-text { padding: 10px 20px; flex-grow: 50; }
}

/* Font sizes */
@media screen and (min-width: 0px) { body { font-size: 16px; } }
@media screen and (min-width: 810px) { body { font-size: 16px; } }
@media screen and (min-width: 1024px) { body { font-size: 16px; } }

/* Button fade in */
.button-fade-in {
  opacity: 1;
  animation: buttonFadeIn 0.666s;
}

@keyframes buttonFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Gallery browse */
.gallery-browse {
  color: #fff;
  border-radius: 50%;
  font-size: 26px;
  padding: 5px;
  user-select: none;
  opacity: 0.5;
  box-shadow: 0 0 8px transparent;
  backdrop-filter: blur(4px);
  text-shadow: 0 0 6px transparent;
  transition: opacity 500ms;
}

.gallery-browse:hover {
  opacity: 1;
  box-shadow: 0 0 8px rgba(128, 216, 255, 0.267);
}

/* Image hint */
.image-hint {
  opacity: 0;
  transition: opacity 666ms;
}
    
.image:hover .image-hint {
  opacity: 1;
}

.hint {
  opacity: 0;
  transition: opacity 666ms;
}
    
.show-hint:hover .hint {
  opacity: 1;
}
