/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  background-color: var(--secondary-color2);
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe {
     width: 100%;
}
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat";
}

/* Color Palette */
:root {
  --primary-color: #1E3A8A;  /* Navy Blue */
  --secondary-color: #1E40AF; /* Slightly lighter blue */
  --accent-color: #FBBF24;    /* Gold */
  --text-color: #ffffff;      /* White */
  --bg-color: #F3F4F6;        /* Light Gray */
  --secondary-color2: #0099ff; 
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: var(--primary-color);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background-color: #3fe0d0;
  transition: width 0.3s;
}

.navbar .logo {
  color: var(--text-color);
  font-size: 1.5em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 1em;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links a:active {
  color: var(--accent-color);
}

/* Banner */
.banner {
  background: linear-gradient(180deg, #0a0a0a, #1e3a8a);
  color: var(--text-color);
  padding: 4em 2em;
  text-align: center;
}

.banner-content h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.banner-content p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

.intro-video {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  margin-top: 1em;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content Section */
#home .content {
  background-color: var(--bg-color);
  padding: 3em 2em;
  text-align: center;
}

#home h2 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

#home p {
  font-size: 1.1em;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 160%;
}

#redirect .content {
  padding: 3em 2em;
  text-align: center;
  line-height: 160%;
}

#redirect .button {
  display: inline-block;
  padding: 20px 100px;
  font-size: 2rem;
  color: #ffffff;
  background-color: #1e40af; /* Accent color for the button */
  border: none;
  border-radius: 8px;
  text-decoration: none;
}

#redirect .button:hover {
  text-decoration: underline;
}

#redirect .button:active {
  text-decoration: underline;
  color: var(--accent-color);
}

#redirect h2 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}


.worlds-section {
  padding: 3em 2em;
  text-align: center;
  background: rgb(2,0,36);
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(15,0,119,1) 50%, rgba(0,127,255,1) 100%);
  position: relative;
  overflow: hidden;
}

.worlds-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.2;
  z-index: -1;
  animation: moveStars 50s linear infinite;
}

@keyframes moveStars {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


.worlds-section h1 {
  font-size: 3rem; 
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-color);
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #0088ff; /* Glowing effect */
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.8), rgba(0, 136, 255, 0.8));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flicker 5s infinite alternate;
  text-align: center;
  padding: 20px 40px; 
  border: 3px solid #00ffff; /* Simple border */
  max-width: 800px;
  margin: auto;
  margin-bottom: 5%;
}

.worlds-section h2 {
  font-size: 2em;
  color: #00ffff;
  margin-bottom: 2.5%;
}

.worlds-section h3 {
  font-size: 1.5em;
  color: #00ffff;
  margin-bottom: 4%;
  padding-top: 3%;
}

.worlds-section p {
  font-size: 1.2em;
  color: #00ffff;
  margin-bottom: 2em;
  padding-top: 3%;
}

.worlds-container {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 5em;
  margin: 0 auto;
  max-width: 800px; 
}

.divider {
  width: 100%;
  max-width: 1000px;
  border-bottom: 2px solid var(--accent-color);
}

.world-card1 {
  width: 100%;
  background-color: #00506699;
  border: 3px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5%;
  transition: transform 0.3s;
  box-shadow: 0 0 0 0px #0099ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.world-card2 {
  width: 100%;
  background-color: #00506699;
  border: 3px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5%;
  transition: transform 0.3s, box-shadow 0.3s ease;
}

.world-card3 {
  width: 100%;
  background-color: #00506699;
  border: 3px solid #00ffff;
  border-radius: 20px;
  padding: 5%;
  transition: transform 0.3s, box-shadow 0.3s ease;
}


.world-card1:hover {
  box-shadow: 0 0 20px 10px #ff0000;
}

.world-card2:hover {
  box-shadow: 0 0 20px 10px #ffa600;
}

.world-card3:hover {
  box-shadow: 0 0 20px 10px #e5ff00;
}

.world-thumbnail {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1em;
}

.world-card h2 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

.world-card p {
  font-size: 20px;
  color: #666;
  margin-bottom: 1.5em;
  font-weight: 600;
}

.world-button {
  display: inline-block;
  padding: 1em 3em;
  background-color: transparent; /* Transparent background */
  color: var(--accent-color); /* Border and text color */
  text-decoration: none;
  font-weight: bold;
  border: 3px solid var(--accent-color); /* Border initially visible */
  border-radius: 5px;
  transition: all 0.4s ease-in-out; /* Smooth transition effect */
  position: relative;
  overflow: hidden; /* Prevents background spill */
}

/* Hover Effect - Fill Inside */
.world-button:hover {
  background-color: var(--accent-color); /* Fill inside */
  color: #000; /* Change text color for contrast */
}

/* Active Effect - Click Animation */
.world-button:active {
  background-color: #eab308;
  transform: scale(0.95); 
}

.section-banner {
  background-color: #232231;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.section-banner video {
  margin-top: 20px;
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Section: Mission */
.section-mission {
  background-color: var(--secondary-color2);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.section-mission p {
  max-width: 700px;
  margin: 0 auto;
}
.container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 20px;
}

/* Footer */
footer {
  background-color: #222831;
  color: #ffffff;
  text-align: center;
  padding: 15px 0;
}

@keyframes flicker {
  0% { opacity: 1; text-shadow: 0 0 3px #00ffff, 0 0 6px #0088ff; }
  50% { opacity: 0.85; text-shadow: 0 0 4px #00ffff, 0 0 8px #0088ff; }
  100% { opacity: 1; text-shadow: 0 0 3px #00ffff, 0 0 6px #0088ff; }
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1200px;
  position: relative;
  margin: auto;
  padding-top: 2%;
  padding-bottom: 2%;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 1%;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.slideshow-container .active, .dot:hover {
  background-color: #717171;
}

/* About Section */

#about {
  background-color: var(--secondary-color2);
}
.about-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 2em;
}

.section-title {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 1em;
  display: inline-block;
  padding-bottom: 5px;
}

.about-text {
  font-size: 1.2rem;
  color: var(--text-color);
  padding-bottom: 5%;
  line-height: 1.6;
}

/* Grid Layout for Key Features */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  text-align: left;
  flex-direction: column;
}

.about-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5em;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.about-item h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.about-item p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
}

.divider {
  width: 100%;
  max-width: 1200px;
  padding: 10px auto;
  margin: auto;
  margin-bottom: 2%;
  border-bottom: 2px solid var(--accent-color);
}

.site-footer {
  background-color: #3a3838; 
  color: #ffffff; 
  text-align: center;
  padding: 1.5% 0;
  font-size: 18px;
}

.footer-content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.footer-content a:hover {
  text-decoration: underline;
}
