
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* General Styling */
body {
    background: #1F1F1F;
    color: white;
    margin: 0;
    padding: 0;
    display: block;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Menu Icon */
/* Menu Icon (☰) */
.menu-icon {
    position: fixed;  /* Keeps it always in place */
    top: 15px;        /* Distance from the top */
    right: 15px;      /* Distance from the right */
    font-size: 24px;  /* Make it readable */
    cursor: pointer;
    background: #333; /* Set the color you want */
    color: #BBB;     /* Make the text visible */
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;    /* Ensure it stays above other elements */
    z-index: 4;
}

.menu-icon.hidden {
    opacity: 0;      /* Fully transparent */
    pointer-events: none; /* Prevents clicks when hidden */
}

/* Sidebar (Initially Hidden Completely Off-Screen) */
.sidebar {
  position: fixed;
  top: 0;
  right: -600px;
  width: 500px;
  max-width: 100vw;
  height: 100%;
  background-color: #222;
  color: white;
  transition: right 0.4s ease-in-out;
  padding: 20px;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 4;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* When Sidebar is Open */
.sidebar.open {
    right: 0; /* Slide into view */
}


/* Close button */
.sidebar .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.screen-container {
    position: relative; /* Ensures absolute positioning works inside */
    display: inline-block; /* Prevents unnecessary stretching */
    height: 320px;
    width: 320px;
}

#main-image {
    position: absolute;
    display: block; /* Removes default inline spacing */
    top: -3%;
    left: -3%;
    width: 106%; /* Ensure it scales properly */
    height: 106%;
    z-index: 1;
}

#canvas-pixels {
    position: absolute;
    top: 25%;
    left: 0%;
    width: 100%;
    height: auto;
    z-index: 3; /* Places it above the image */
    pointer-events: none; /* Allows clicks to go through to buttons below */
    image-rendering: pixelated;
    image-rendering: crisp-edges; /* Alternative for some browsers */
}

.icon {
    position: absolute;
    width: auto;
    height: 10%;
    z-index: 2;
}

#icon-0 {
    top: 8%;
    left: 10%;
}
#icon-1 {
    top: 8%;
    left: 33%;
}
#icon-2 {
    top: 8%;
    left: 57%;
}
#icon-3 {
    top: 8%;
    left: 80%;
}
#icon-4 {
    top: 82%;
    left: 10%;
}
#icon-5 {
    top: 82%;
    left: 33%;
}
#icon-6 {
    top: 82%;
    left: 57%;
}
#icon-7 {
    top: 82%;
    left: 80%;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.1s ease-in-out 20;
}

.container {
    display: flex;
    flex-direction: column;  /* Stack elements vertically */
    align-items: center;     /* Center horizontally */
    justify-content: center; /* Center vertically */
    height: 100vh;           /* Full height of viewport */
    gap: 75px;
}

.button-container {
    display: flex;
    justify-content: center; /* Horizontally centers buttons */
    align-items: center; /* Vertically centers buttons */
    gap: 25px;
}

/* Action Buttons */
.action-btn {
    background: linear-gradient(180deg, #606060, #404040);
    color: #f8f8f8;
    border: 2px solid #2a2a2a;
    width: 60px; /* Smaller width */
    height: 30px; /* Compact height */
    border-radius: 15px; /* Soft, pill shape */
    /*box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.1),
                inset 2px 2px 3px rgba(0, 0, 0, 0.3),
                2px 2px 4px rgba(0, 0, 0, 0.4);*/
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
  }
  
.action-btn:hover {
    background: linear-gradient(180deg, #6a6a6a, #4a4a4a);
}
  
.action-btn:active {
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.3),
                inset 2px 2px 3px rgba(255, 255, 255, 0.1);
    transform: translateY(2px); /* Very subtle press effect */
}

#AC {
    position: relative;
    font-size: 20px;
    width: 70px; 
    height: 38px;
    border-radius: 25px;
}
  
  
/* On/Off Switch */
/* The switch - the box around the slider */
.switch {
    position: relative;
    width: 60px;
    height: 34px;
}
  
/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
  
input:checked + .slider {
    background-color: #007AFF;
}
  
input:focus + .slider {
    box-shadow: 0 0 1px #007AFF;
}
  
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
  
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}
  
.slider.round:before {
    border-radius: 50%;
}

/* upload / download */
.file-controls {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    padding: 10px;
}

/* Upload Button */
.up-down {
    font-size: 15px;
    cursor: pointer;
    padding: 12px 20px;
    border: none;
    border-radius: 25px; /* Candy-style rounded buttons */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    font-weight: 500;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.2); /* Soft shadow effect */
    background: dimgray;
    color: white;
}

.up-down:hover{
    transform: scale(1.05);
    background: #1F1F1F;
}

/* Automatic care checkbox */

input#carebot {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

label[for="carebot"] {
    display: inline-flex;
    align-items: center; 
    font-size: 20px;
    cursor: pointer;
  }

label[for="carebot"]::before {
    content: "\f08a";
    font-family: "Font Awesome 7 Free";
    font-weight: 400;
    margin-right: 0.3em;
    color: #ff327c;
    font-size: 22px;
}

input#carebot:checked + label[for="carebot"]::before {
    content: "\f004";
    font-weight: 900;
}

/* Swagger and GitHub Links */

.bottom-right-links {
    position: absolute;
    bottom: 20px;
    right: 5px;
    display: flex;
    align-items: center;
    height: 40px;
}

.swagger-link {
    position: absolute;
    right: 50px;
    font-size: 18px;
}

.github-link {
    position: absolute;
    right: 10px;
    font-size: 22px;
}

.swagger-link, .github-link {
    color: rgba(255, 255, 255, 0.7);
}

.swagger-link:hover, .github-link:hover {
    color: #fff;
}
