body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

canvas {
  display: block;
  z-index: 1;
  touch-action: none;
}

#debug {
  position: fixed;
  top: 10px;
  left: 10px;
  color: #a5a5a5;
  background: rgba(0, 0, 0, 0);
  padding: 5px 10px;
  font-family: monospace;
  z-index: 100;
}

#websiteLabel, #versionLabel {
  position: fixed;
  right: 10px;
  background-color: rgba(0,0,0,0.5);
  color: #a5a5a5;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 1s ease;
}

#websiteLabel { top: 10px; }
#versionLabel { top: 50px; }

#lastPush {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0,0,0,0.5);
  color: #a5a5a5;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.8;
}

#controlsMessage {
  position: fixed;
  top: 10px;
  left: 50%;
  background-color: rgba(0,0,0,0.6);
  transform: translateX(-50%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
  transition: opacity 1s ease;
}


button {
  background-color: transparent;
  color: #a5a5a5;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: right;
  display: block;
}

#optionsWrapper {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: sans-serif;
  user-select: none;
  text-align: right;
  display: flex;
  align-items: flex-end;
  gap: 10px;    
  z-index: 1200;
  
}

#optionsContent {
  display: flex;          
  flex-direction: row;    
  gap: 10px;              
  overflow: hidden;
  max-width: 0;           
  transition: max-width 0.4s ease;  
  background: rgba(0,0,0,0.5);
  padding: 0px;      
  border-radius: 8px;
  white-space: nowrap ;
  pointer-events: auto;
}

#optionsContent.expanded {
  max-width: 500px; 
  padding: 0px 10px;
  font-size: 14px;   
  height: 28px
}

#optionsContent button {
    padding: 3px 12px 3px;
    font-size: 14px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0); 
    color: #a5a5a5;
    border: 1px solid #575757;         
    white-space: nowrap;                
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;  
}

#bottomRightButtons {
  display: flex;
  align-items: center;
  gap: 10px;
}


#contactBtn, #aboutBtn, #optionsToggle {
  background-color: rgba(0,0,0,0.5);
  color: #a5a5a5;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}


.about-page {
  background: transparent;
  position: relative;
  z-index: 1;
}

.about-page h1, .about-page p, .about-page a {
  position: relative;
  z-index: 3;
}

.about-page a {
  color: #4cafef;
  text-decoration: none;
  font-weight: bold;
}

.about-page a:hover {
  text-decoration: underline;
}


.page-404 {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-404 #overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: 600px;
  max-height: 90vh;     
  overflow-y: auto;   
  padding: 20px;
  text-align: center;
  z-index: 10;
  pointer-events: auto;
  box-sizing: border-box;
  background: rgba(0,0,0,0.5); 
  border-radius: 8px;
}


.page-404 #overlay::-webkit-scrollbar {
  width: 6px;
}

.page-404 #overlay::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 3px;
}


.page-404 h1 {
  font-size: clamp(1.5rem, 6vw, 4rem);  
}

.page-404 p {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  margin: 8px 0 15px;
}

.page-404 a {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  padding: clamp(6px, 2vw, 12px) clamp(12px, 4vw, 20px);
  color: #4cafef;
  text-decoration: none;
  border: 1px solid #4cafef;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
  pointer-events: auto;
}

.page-404 a:hover {
  background: #4cafef;
  color: #000;
}

.contact-page canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.contact-page #overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-page #popup {
  z-index: 2;
  position: relative;
  background: rgba(0,0,0,0.7);
  color: #eee;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.contact-page #popup h2 {
  margin-top: 0;
}

.contact-page #popup img#instagramLogo {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}


.contact-page #popup a.donateBtn,
.contact-page .backBtn {
  display: block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: transparent;
  color: #4cafef;
  border: 1px solid #4cafef;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.contact-page #popup a.donateBtn:hover,
.contact-page .backBtn:hover {
  background-color: #4cafef;
  color: #000;
}

#rightAdStrip {
  position: fixed;
  right: 10px;     
  top: 100px;       
  bottom: 150px;    
  width: 160px;     
  display: flex;
  justify-content: center;
  align-items: start;
  z-index: 500;
}

#leftsidewrapper {
  position: fixed;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 1000;
}

#mobileControls {
  display: none;
  flex-direction: column;
  gap: 10px;
  -webkit-touch-callout: none; 
  -webkit-user-select: none;   
  -moz-user-select: none;   
  -ms-user-select: none;   
  user-select: none; 
  touch-action: manipulation; 
}

#FlatBtn {
  padding: 6px 12px;
  font-size: 14px;
  text-align: center;
  border-radius: 8px;
  border: none;
  background:  rgba(0,0,0,0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#mobileControls button {
  width: 40px;
  height: 40px;
  font-size: 24px;
  text-align: center;
  border-radius: 15%;
  border: none;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (hover: none) and (pointer: coarse) {
  #mobileControls {
    display: flex;
  }
}


#landscapeOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
}

#landscapeOverlay .popup {
  background: rgba(0, 0, 0, 0.95);
  color: white;
  width: 90vw;
  max-width: 95vw;
  padding: 10vh 5vw;
  border-radius: 5vw;
  text-align: center;
  font-size: 6vw;
  line-height: 7vw;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
  position: relative;
}

#landscapeOverlay.show .popup {
  opacity: 1;
  transform: scale(1);
}

#landscapeOverlay .close-btn {
  position: absolute;
  top: 2vh;
  right: 3vw;
  cursor: pointer;
  font-weight: bold;
  font-size: 8vw;
}

#landscapeOverlay .buttons {
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  align-items: center;
}

#landscapeOverlay button {
  padding: 3vh 6vw;
  font-size: 5vw;
  border: none;
  border-radius: 3vw;
  cursor: pointer;
  font-weight: bold;
  min-width: 50vw;
  text-align: center;
}

#landscapeOverlay button.go {
  background-color: #4caf50;
  color: white;
}

#landscapeOverlay button.dismiss {
  background-color: #f44336;
  color: white;
}


