@font-face {
    font-family: 'YourFontName'; /*a name to be used later*/
    src: url("Pixelon-E4JEg.otf"); /*URL to font*/
}
#name {
    font-family: 'YourFontName';
    font-size: 40px;
    margin: 5px auto;
    margin-top: 0px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    width: 50%;
    color: crimson;
}
#name:hover {
    transform: scale(1.1); /* Increase size on hover */
}

.alert-message {
    font-family: 'YourFontName';
    margin: 0px auto;
    width: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    color: green;
}
.alert-message:hover {
    transform: scale(1.1); /* Increase size on hover */
}

#section {
    font-family: 'YourFontName';
    margin: 0px auto;
    width: 50%;
    margin-top: 10px;
    font-size: 28px;
    margin-bottom:5px;
    color:rgb(222, 35, 255);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;

}

#section:hover {
    transform: scale(1.1); /* Increase size on hover */
}

.canvas-container {
    position: fixed;
    bottom: 0;
    left: 0;
    /* width: 100vw;
    height: 100vh; */
    z-index: -1;  
}
#mouse {
    margin:0px;
    font-size: 15px;
    color: rgb(247, 255, 11);
}
#gameCanvas {
    width: 200%;
    height: 200%;
    display: block;
    background: rgb(67, 195, 255);  
}

@media (max-width: 768px) {
    h1 {
        font-size: 30px;
    }
    .hlistitem {
        width: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    .hlistitem {
        width: 100%;
    }
}


/* Body and Main Section */
body {
    font-family: 'YourFontName';
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    text-align: center;
    background-color: rgb(67, 195, 255); /* Background color for the body */
}

/* Main section styling */
#main {
    font-family: 'YourFontName';
    padding: 20px;
    z-index: 1;
    position: relative;
}


#hlistpar {
    overflow-x: auto;
    height:max-content;
    overflow-y: hidden;
    transform: rotateX(180deg);
}
#hlistpar::-webkit-scrollbar {
    height: 10px; /* Height of the scrollbar */
}

#hlistpar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Background of the scrollbar track */
}

#hlistpar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3); /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners of the scrollbar thumb */
    transition: background 0.3s ease; /* Smooth transition on hover */
}

#hlistpar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5); /* Darker color when hovered */
}

/* Firefox */
#hlistpar {
    scrollbar-width: thin; /* Make scrollbar thin */
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(255, 255, 255, 0.1); /* Color of the thumb and track */
}

/* Edge */
#hlistpar {
    -ms-overflow-style: scrollbar; /* Show scrollbar in Edge */
}

/* Horizontal List */
/* Horizontal List */
.hlist {
    padding:20px;
    transform: rotateX(180deg);
    display: flex;
    flex-wrap: nowrap; /* Prevent blocks from wrapping */
    justify-content: flex-start; /* Align items to the start */
    gap: 10px; /* Space between the blocks */
    width: max-content; /* Allow the hlist to grow based on its content */
    margin: 0 auto; /* Center the hlist if it doesn't overflow */
    padding: 10px;
}

/* List items */
.hlistitem {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping */
    width: auto; /* Let the block grow based on its content */
    min-width: 250px; /* Minimum width */
    overflow: hidden; /* Hide overflowed text */
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

/* Hover effect */
.hlistitem:hover {
    transform: scale(1.1); /* Increase size on hover */
    background-color: rgba(255, 255, 255, 1); /* Change background on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add more shadow */
}

/* Joystick styles */
#joystick-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2000;
  touch-action: none;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}
#joystick-base {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.2);
}
#joystick-knob {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #6c63ff, #4ecdc4);
  border-radius: 50%;
  position: absolute;
  left: 30px;
  top: 30px;
  transition: all 0.15s ease;
  box-shadow: 
    0 4px 12px rgba(108, 99, 255, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

#joystick-knob:active {
  transform: scale(0.95);
  box-shadow: 
    0 2px 8px rgba(108, 99, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile popup styles */
#mobile-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
#mobile-popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-align: center;
  max-width: 90vw;
  width: 350px;
}
#mobile-popup-content h2 {
  margin-top: 0;
}
#mobile-popup-content button {
  margin: 12px 8px 0 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #6c63ff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
#mobile-popup-content button:hover {
  background: #4b47b5;
}

/* Mobile site button styles */
#mobile-site-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #6c63ff;
    border-radius: 30px;
    padding: 15px 20px;
    font-family: 'YourFontName', Arial, sans-serif;
    font-size: 16px;
    color: #6c63ff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#mobile-site-btn:hover {
    background: #6c63ff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

#mobile-site-btn:active {
    transform: scale(0.95);
}


