
:root {
  --primary-color: #007bff;
  --secondary-color: #00cfff;
  --text-color: #1a1a1a;
  --bg-light: #ffffff;
  --bg-dark: #0f1116;
  --text-light: #f0f0f0;
  --font-stack: 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

.mosaic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  z-index: -2;
}

.mosaic-bg div {
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.mosaic-bg div:nth-child(1) { background-image: url('img/img1.webp'); animation-delay: 0s; }
.mosaic-bg div:nth-child(2) { background-image: url('img/img2.webp'); animation-delay: 2s; }
.mosaic-bg div:nth-child(3) { background-image: url('img/img3.webp'); animation-delay: 4s; }
.mosaic-bg div:nth-child(4) { background-image: url('img/img4.webp'); animation-delay: 6s; }
.mosaic-bg div:nth-child(5) { background-image: url('img/img5.webp'); animation-delay: 8s; }
.mosaic-bg div:nth-child(6) { background-image: url('img/img6.webp'); animation-delay: 10s; }
.mosaic-bg div:nth-child(7) { background-image: url('img/img7.webp'); animation-delay: 12s; }
.mosaic-bg div:nth-child(8) { background-image: url('img/img8.webp'); animation-delay: 14s; }
.mosaic-bg div:nth-child(9) { background-image: url('img/img9.webp'); animation-delay: 16s; }


.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 40px;
  text-align: center;
  background: transparent;
  backdrop-filter: blur(1px);
}

.hero-logo {
  max-width: 600px;
  width: 100%;
  margin-bottom: 40px;
}

nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

nav a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--secondary-color);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.section {
  padding: 100px 20px;
  text-align: center;
}

.section.light {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  text-align: justify;
}

.section.dark {
  background-color: rgba(15, 17, 22, 0.9);
  color: var(--text-light);
  backdrop-filter: blur(1px);
  text-align: justify;
}

.container-game {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  text-align:center;
}

.section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  display: table;
  margin: 20px auto 0;

}

.cta-button:hover {
  background-color: #0056b3;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  background: rgba(15, 17, 22, 0.85);
  color: var(--text-light);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

/* Unity WebGL Player Styles */
#unity-canvas {
background: #CCCCCC;
display: block;
margin: 0 auto;
}

#unity-loading-bar {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: none;
}

#unity-logo {
width: 154px;
height: 130px;
background: url('TemplateData/unity-logo-light.png') no-repeat center;
}

#unity-progress-bar-empty {
width: 141px;
height: 18px;
margin-top: 10px;
margin-left: 6.5px;
background: url('TemplateData/progress-bar-empty-light.png') no-repeat center;
}

#unity-progress-bar-full {
width: 0%;
height: 18px;
margin-top: 10px;
background: url('TemplateData/progress-bar-full-light.png') no-repeat center;
}

#unity-footer {
margin-top: 20px;
text-align: center;
}

#unity-logo-title-footer {
display: inline-block;
width: 102px;
height: 38px;
background: url('TemplateData/unity-logo-title-footer.png') no-repeat center;
vertical-align: middle;
margin-right: 10px;
}

#unity-build-title {
display: inline-block;
line-height: 38px;
font-family: arial, sans-serif;
font-size: 18px;
vertical-align: middle;
margin: 0 10px;
}

#unity-fullscreen-button {
cursor: pointer;
display: inline-block;
width: 38px;
height: 38px;
background: url('TemplateData/fullscreen-button.png') no-repeat center;
vertical-align: middle;
}

#unity-warning {
position: absolute;
left: 50%;
top: 5%;
transform: translate(-50%);
background: white;
padding: 10px;
display: none;
z-index: 10;
}

/* Mobile Unity Styles */
.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

.unity-mobile #unity-footer {
  display: none;
}

#mobile-warning {
display: none;
text-align: center;
padding: 40px 20px;
background: rgba(255, 193, 7, 0.9);
border-radius: 8px;
max-width: 600px;
margin: 0 auto;
}

#mobile-warning h3 {
color: #856404;
margin-bottom: 15px;
font-size: 1.5rem;
}

#mobile-warning p {
color: #856404;
font-size: 1rem;
margin: 10px 0;
}

#unity-game-container {
display: block;
}

.unity-mobile #mobile-warning {
  display: block;
}

.unity-mobile #unity-game-container {
  display: none;
}
