/* Ensure body and html take up the full screen */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Hide scrollbars */
  }
  
  /* Make sure the game canvas fills the screen */
  #gameCanvas {
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    display: block; /* Remove any space below the canvas */
    background-color: #000; /* Set a default background color */
  }
  

  /* Style for the button */
  .fullscreen-btn {
    z-index: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    width: 30px;  /* Set fixed width */
    height: 30px;  /* Set fixed height for perfect circle */
    border-radius: 50%;  /* Makes it a circle */
    font-size: 12px;
    display: flex;
    justify-content: center;  /* Center the icon horizontally */
    align-items: center;  /* Center the icon vertically */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.fullscreen-btn:hover {
    background-color: #0056b3;
}

.fullscreen-btn i {
    font-size: 20px;  /* Adjust the icon size to fit the circle */
}


  
  /* Mobile Controls */

/* Styling for both joysticks */
.joystick {
    width: 60px; /* Smaller size of the joystick */
    height: 60px;
    border-radius: 50%; /* Circular shape */
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    position: absolute;
    z-index: 10;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white; /* Icon color */
    font-size: 24px; /* Icon size */
}

#joystickLeft {
    left: 10px; /* Position the left joystick */
}

#joystickRight {
    right: 10px; /* Position the right joystick */
}

/* Optional: Add a light color when the joystick is active */
.joystick.active {
    background-color: rgba(0, 255, 0, 0.5); /* Green when active */
}




/* Basic control container styles */
.other-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left-side controls (2 buttons) */
.left-controls {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.left-controls .action-btn {
    width: 60px;  /* Smaller size for buttons */
    height: 60px;  /* Smaller size for buttons */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 20px;  /* Adjust icon size to fit the smaller button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Right-side controls (2 buttons) */
.right-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-controls .action-btn {
    width: 60px;  /* Smaller size for buttons */
    height: 60px;  /* Smaller size for buttons */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 20px;  /* Adjust icon size to fit the smaller button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Top-side controls (4 buttons) */
.top-controls {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 80%;
    gap: 10px;
}

.top-controls .action-btn {
    width: 60px;  /* Smaller size for buttons */
    height: 60px;  /* Smaller size for buttons */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 20px;  /* Adjust icon size to fit the smaller button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


#jumpButton,#crunchButton
{
    font-size: 35px;
}


body, * {
    user-select: none;  /* Disables text selection */
}


body {
    margin: 0;
    overflow: hidden;
  }
  
  /* Default styles for the landscape message */
  .landscape-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
  }
  
  /* Content visibility */
  .content {
    display: block;
  }
  
  @media screen and (orientation: portrait) {
    .landscape-message {
      display: flex;
    }
  
    .content {
      display: none;
    }
  }
  