/*
Theme Name: forum2025
Author: Dialog
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: forum2025
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 2.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
  opacity: 1;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: smooth;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}


@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Thin.woff2') format('woff2'),
       url('assets/fonts/Nekst-Thin.woff') format('woff'),
       url('assets/fonts/Nekst-Thin.ttf') format('truetype'),
       url('assets/fonts/Nekst-Thin.eot') format('embedded-opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Light.woff2') format('woff2'),
       url('assets/fonts/Nekst-Light.woff') format('woff'),
       url('assets/fonts/Nekst-Light.ttf') format('truetype'),
       url('assets/fonts/Nekst-Light.eot') format('embedded-opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Regular.woff2') format('woff2'),
       url('assets/fonts/Nekst-Regular.woff') format('woff'),
       url('assets/fonts/Nekst-Regular.ttf') format('truetype'),
       url('assets/fonts/Nekst-Regular.eot') format('embedded-opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Medium.woff2') format('woff2'),
       url('assets/fonts/Nekst-Medium.woff') format('woff'),
       url('assets/fonts/Nekst-Medium.ttf') format('truetype'),
       url('assets/fonts/Nekst-Medium.eot') format('embedded-opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-SemiBold.woff2') format('woff2'),
       url('assets/fonts/Nekst-SemiBold.woff') format('woff'),
       url('assets/fonts/Nekst-SemiBold.ttf') format('truetype'),
       url('assets/fonts/Nekst-SemiBold.eot') format('embedded-opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Bold.woff2') format('woff2'),
       url('assets/fonts/Nekst-Bold.woff') format('woff'),
       url('assets/fonts/Nekst-Bold.ttf') format('truetype'),
       url('assets/fonts/Nekst-Bold.eot') format('embedded-opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nekst';
  src: url('assets/fonts/Nekst-Black.woff2') format('woff2'),
       url('assets/fonts/Nekst-Black.woff') format('woff'),
       url('assets/fonts/Nekst-Black.ttf') format('truetype'),
       url('assets/fonts/Nekst-Black.eot') format('embedded-opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Nekst', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Preloader Styles */
.preloader {
  /* position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #111111 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out !important;
  margin: 0 !important;
  padding: 0 !important; */
}

.preloader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Cascading Text Animation Styles for Preloader */
.cascading-text {
   position: relative;
   line-height: 150px;
   text-align: center;
   font-family: 'Nekst', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
   font-weight: 700;
}

.cascading-text__replay {
   line-height: 25px;
   font-size: 12px;
   color: #fff;
   cursor: pointer;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translateX(-50%);
   animation: fadeIn 0.75s;
   padding: 5px;
   opacity: 0.5;
   transition: transform 0.25s;
}

.cascading-text__replay:hover {
   opacity: 1 !important;
   transform: translateX(-50%) translateY(-10%);
}

.cascading-text[data-animated] .cascading-text__replay {
   display: none;
}

.cascading-text__letter {
   font-size: clamp(1.25rem, 4.286vw - 0.143rem, 5rem);
   line-height: 1.2;
   display: inline-block;
   transform-style: preserve-3d;
   animation-duration: 0.248s;
   animation-fill-mode: forwards;
}

.cascading-text__letter:nth-of-type(1) { animation-delay: 0.05s; }
.cascading-text__letter:nth-of-type(2) { animation-delay: 0.124s; }
.cascading-text__letter:nth-of-type(3) { animation-delay: 0.198s; }
.cascading-text__letter:nth-of-type(4) { animation-delay: 0.272s; }
.cascading-text__letter:nth-of-type(5) { animation-delay: 0.346s; }
.cascading-text__letter:nth-of-type(6) { animation-delay: 0.42s; }
.cascading-text__letter:nth-of-type(7) { animation-delay: 0.494s; }
.cascading-text__letter:nth-of-type(8) { animation-delay: 0.568s; }
.cascading-text__letter:nth-of-type(9) { animation-delay: 0.642s; }
.cascading-text__letter:nth-of-type(10) { animation-delay: 0.716s; }
.cascading-text__letter:nth-of-type(11) { animation-delay: 0.79s; }
.cascading-text__letter:nth-of-type(12) { animation-delay: 0.864s; }
.cascading-text__letter:nth-of-type(13) { animation-delay: 0.938s; }
.cascading-text__letter:nth-of-type(14) { animation-delay: 1.012s; }
.cascading-text__letter:nth-of-type(15) { animation-delay: 1.086s; }
.cascading-text__letter:nth-of-type(16) { animation-delay: 1.16s; }
.cascading-text__letter:nth-of-type(17) { animation-delay: 1.234s; }
.cascading-text__letter:nth-of-type(18) { animation-delay: 1.308s; }
.cascading-text__letter:nth-of-type(19) { animation-delay: 1.382s; }
.cascading-text__letter:nth-of-type(20) { animation-delay: 1.456s; }
.cascading-text__letter:nth-of-type(21) { animation-delay: 1.53s; }
.cascading-text__letter:nth-of-type(22) { animation-delay: 1.604s; }
.cascading-text__letter:nth-of-type(23) { animation-delay: 1.678s; }

.cascading-text--swap[data-animated] .cascading-text__letter:nth-of-type(2n) {
   transform: translateX(-15px);
   animation-name: swap-right;
}

.cascading-text--swap[data-animated] .cascading-text__letter:nth-of-type(2n+1) {
   transform: translateX(15px);
   animation-name: swap-left;
}

.tx--red {
   color: #cbffaf;
}

.tx--white {
   color: #ffffff;
}

/* Keyframe Animations */
@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 0.5; }
}

@keyframes swap-right {
   25% {
      transform: translateX(-15px) translateY(-100%);
   }
   75% {
      transform: translateX(0) translateY(-100%);
   }
   100% {
      transform: translateX(0) translateY(0);
   }
}

@keyframes swap-left {
   25% {
      transform: translateX(15px) translateY(100%);
   }
   75% {
      transform: translateX(0) translateY(100%);
   }
   100% {
      transform: translateX(0) translateY(0);
   }
}

/* No body modifications to prevent jumping */

#preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: #111111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out !important;
  /* Block scroll without affecting body */
  touch-action: none !important;
  overscroll-behavior: none !important;
}

#preloader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}