/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  min-height: 100vh;
}

h1, h2 {
  color: #2c3e50;
}
ul {
  margin-left: 20px;
}
.contact {
  margin-top: 30px;
  text-align: center;
}
.social-icons a {
  margin-right: 15px;
  font-size: 20px;
  color: #2c3e50;
  text-decoration: none;
}
.social-icons a:hover {
  color: #2980b9;
}

.can_me {
  margin: 2%;
  border: 1px solid rgb(219, 219, 219);
  box-shadow: 2px 2px 20px rgb(211, 211, 211);
}

#drawingCanvas {
  cursor: crosshair;
}

/* Resize canvas */
/* Ensure the canvas takes up a percentage of the screen width */
#drawingCanvas {
  width: 100%;   /* Full width of the screen */
  height: auto;  /* Auto-adjust height to maintain aspect ratio */
  border: 1px solid black;
  display: block;
}

/* Sidebar Navigation */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100%;
  background: #002236;
  padding-top: 60px;
  transition: left 0.3s;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
}

#sidebar .toggle-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  color: rgb(121, 20, 20);
  display: none;
  cursor: pointer;
}

/* Color Palette with Lighter Colors */
.color-grid {
  display: grid;
  grid-template-columns: repeat(7, 0fr);
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.color-grid button {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 0.3px solid white;
  border-radius: 1px;
}

/* Main Content */
#main-content {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
  transition: margin-left 0.3s;
}

/* Header Styling */
header {
  padding: 2rem;
  background: #003f64;
  color: white;
  text-align: center;
  border-radius: 10px;
  box-shadow: 3px 3px 10px rgb(0, 0, 0);
}

.ctrl-btn {
  width: 30px;
  height: 30px;
  margin: 8px;
  font-size: 15px;
  font-weight: bolder;
}

.ctrl-tool {
  width: 125px;
  height: 25px;
  margin: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  /* Sidebar moves to the top of the screen */
  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
    left: 0;
    top: 0;
  }

  #main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 10px;
  }

  #sidebar .toggle-btn {
    display: block;
  }

  /* Canvas takes up full width of screen */
  #drawingCanvas {
    width: 100%;
    height: auto;
  }

  /* Adjust footer styling for smaller screens */
  footer {
    padding: 1rem;
  }
}

.version-bloack code
{
  color: rgb(156, 156, 156);
}

/* Footer Styling */
footer {
  padding: 2rem;
  background-color: #002236;
  color: white;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 3px 3px 10px rgb(0, 0, 0);
}

/* For Printing */
@media print {
  /* Hide the sidebar during printing */
  #sidebar {
    display: none;
  }

  /* Ensure the main content takes full width */
  #main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Additional styles for better print layout */
  body {
    background-color: white;
    color: black;
  }
}


/* ************************************************* */

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1001; /* Sits on top */
  left: 10%;
  top: 5%;
  width: 80%;
  padding: 10px 0px;
  height: 90%;
  border: 1px solid rgba(191, 232, 255, 0.3);
  backdrop-filter: blur(3.3px);
-webkit-backdrop-filter: blur(9.3px);
  border-radius: 8px;
  background-color: rgba(64, 185, 255, 0.2); /* Black with opacity */
}

.model-title
{
  padding: 10px;
  margin: 20px;
  text-shadow: 0px 0px 20px #ffffff;
  color: rgb(0, 0, 0);
  font-size: 30px;
}


.modal-content {
  background-color: rgba(255, 255, 255, 0.7);
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: 15px auto;
  padding: 20px;
  border-radius: 8px;
  width: 95%;
  height: 85%;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;  
  backdrop-filter: blur(3.3px);
  -webkit-backdrop-filter: blur(9.3px);
  scrollbar-color: rgba(41, 187, 255,0.8) rgba(235, 235, 235,0);
  overflow-y: scroll; /* Scrollable content */
}

.close-btn {
  color: #000;
  float: right;
  font-size: 28px;
  right: 0;
  position: relative;
  margin-right: 20px;
  margin-left: 20px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: rgb(0, 104, 173);
}

/* Button that triggers the modal */
.scroll-to-top-btn {
  position: fixed;
  bottom: 15px;
  right: 30px;
  z-index: 1000;
  background-color: #9c8500;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
}

.scroll-to-top-btn:hover {
  background-color: #ccad00;
}

/* ************************************************* */
/* Toast styles */
.toast {
  visibility: hidden;
  min-width: 100px;
  background-color: rgba(242, 242, 242, 0.6);
  border: 1px solid skyblue;
  color: #002f51;
  text-align: center;
  border-radius: 5px;
  padding: 12px;
  position: fixed;
  font-weight: 800d;
  top: 4%;
  right: 18px; /* Align the toast to the right side */
  z-index: 1;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}


.toast.show {
  visibility: visible;
  opacity: 1;
}
/* ************************************************* */

/* Hide the message by default */
#mobileMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  backdrop-filter: blur(10px); /* Blurred background */
  z-index: 10000; /* Ensure it is above everything else */
}

/* Center the message card */
.message-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(212, 212, 212, 0.3);
  padding: 40px 20px; /* Increased padding for a larger card */
  width: 80%; /* Make the card wider */
  max-width: 600px; /* Set a max width so it doesn’t get too big on larger screens */
  border: 1px solid rgba(243, 243, 243, 0.6);
  border-radius: 10px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style for the message text */
.message-card h4 {
  /* font-size: 14px; */
  font-weight:500;
  margin-bottom: 18px;
}

.message-card p {
  font-size: 16px;
}



/* ************************************************* */


