body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Nunito', Verdana, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bgLayer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: background-position;
}

@keyframes animateStripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 0;
  }
}

@keyframes scrollBackground {
  from { background-position: 0 0; }
  to { background-position: -2048px 0; }
}

.layer1 { background-image: url('Background_Assets/bgBaseColor.webp'); animation: scrollBackground 100s linear infinite; }
.layer2 { background-image: url('Background_Assets/bigClouds.webp'); animation: scrollBackground 130s linear infinite; }
.layer3 { background-image: url('Background_Assets/smallCloud.webp'); animation: scrollBackground 60s linear infinite; }
.layer4 { background-image: url('Background_Assets/bottomClouds.webp'); animation: scrollBackground 200s linear infinite; }
.layer5 { background-image: url('Background_Assets/topClouds.webp'); animation: scrollBackground 500s linear infinite; }





.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  
  width: auto;
  margin: 30px 20px 0 20px;
  z-index: 60; 
}

.floating-banner {
  position: relative;
  flex-grow: 1;
  margin-right: 20px;
  
  min-height: 150px;
  border-radius: 15px;
  box-shadow: 6px 6px 0px #8B5A2B;
  border: 0px dashed #8B5A2B;
  background: rgba(255, 245, 227, 0.8);
  color: #5D4037;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  display: flex;
  align-items: center;
  padding: 0 30px;
}
.floating-banner h1 { margin: 0; color: #5D4037; }
.banner-text { color: white; font-size: 1.5rem; font-weight: bold; margin: 0; }

.card-container {
  position: relative;
  z-index: 10; 

  margin-top: 50px;
  margin-bottom: 50px;
}

.card {
  margin-left: 20px;
  width: 90%;
  max-width: min(1100px, calc(100vw - 660px));
  min-width: 300px; 
  min-height: 800px;
  
  border-radius: 15px;
  box-shadow: 6px 6px 0px #57381b;
  border: 0px dashed #8B5A2B;
  background: rgba(255, 245, 227, 0.8);
  color: #5D4037;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  display: flex; justify-content: space-around; align-items: center;
  padding: 20px; box-sizing: border-box;
}

.menu-buttons-container { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.menu-button {
  display: inline-block; background-color: #a16d2b; color: white;
  padding: 10px 20px; border-radius: 15px; text-decoration: none; font-weight: bold;
  min-width: 120px; text-align: center; transition: background-color 0.3s ease;
}
.menu-button:hover { background-color: #8a5c24; }



.side-ui-container {
  position: absolute;
  display: inline-block;
  
  width: 600px; max-width: 40%;
  bottom: 35%; right: 20px;
  z-index: 50; 
  pointer-events: none;
}

.image-button {
  position: relative; display: block;
  width: 600px; height: auto; text-decoration: none;
  border-radius: 15px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; pointer-events: auto; /* enable clicks */
  line-height: 0; transform-origin: bottom right;
  box-shadow: 6px 6px 0px #57381b;
  margin-bottom: 20px;
}
.image-button:hover { transform: scale(1.02); }
.image-button:active { transform: scale(1.01); }
.comms-img { width: 100%; height: auto; display: block; }
.char-img { width: 100%; height: auto; display: block; }

.ruru-Icon {
  width: 50%; height: auto;
  position: absolute; right: 15px; top: -150px;
  pointer-events: none;
}


.solid-overlay {
  position: absolute;
  top: 250px; 
  left: 0;
  width: 100%;
  min-height: calc(100% - 180px); 
  height: 100%; 
  background-color: #8B5A2B; 
  border-top: 4px solid #57381b;
  z-index: 5;
  
  background-image: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.05) 25%,
    transparent 25%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.05) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: animateStripes 2s linear infinite;
}



@media screen and (max-width: 1500px), screen and  (max-height: 850px){
  
  .solid-overlay {
    top: 220px;
    height: auto;
    min-height: 150vh;
  }
  
  .scroll-layout {
    display: flex; flex-direction: column; align-items: center; padding-bottom: 50px;
  }
  
  .header-container { width: 90%; margin: 30px 0; }
  
  .card-container { width: 100%; display: flex; justify-content: center; }
  .card {
    margin-left: 0; margin-top: 20px;
    width: 90%; max-width: 800px; min-height: 600px;
  }

  .side-ui-container {
    position: relative; bottom: auto; right: auto;
    width: 90%; max-width: 600px;
    margin-top: 50px; text-align: center;
  }
  
  .image-button { width: 100%; }
  .ruru-Icon { top: -150px; right: 15px; min-width: 50px; min-height: 50px;}
}

@media screen and (max-width: 768px) {
  .ruru-Icon {
    display: none !important;
  }
  .side-ui-container {
    position: relative; bottom: auto; right: auto;
    width: 90%; max-width: 600px;
    margin-top: 0px; text-align: center;
  }
}



.page-transition {
  position: fixed; top: 50%; left: 50%;
  width: 100vmax; height: 100vmax;
  background-color: #a16d2b; border-radius: 50%;
  z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-transition.active {
  transform: translate(-50%, -50%) scale(1.5); opacity: 1; pointer-events: all;
}


.home-button {
  position: fixed; bottom: 20px; right: 20px;
  width: 60px; height: 60px; display: block;
  z-index: 2000; background: transparent;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.home-button:hover { transform: scale(1.2); transform-origin: center center; }
.home-icon { width: 100%; height: 100%; object-fit: contain; display: block; }



















