@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1050px;
  width: 90%;
  margin: auto;
}                           

.navbar {
  width: 100%;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.15);
  z-index: 1001; /* Ensure navbar is above other elements */

}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .menu-items {
  display: flex;
  z-index: 4; /* Ensure canvas is below the menu */
}

.navbar .nav-container li {
  list-style: none;
  z-index: 4; /* Ensure canvas is below the menu */

}

.navbar .nav-container a {
  text-decoration: none;
  color: #0e2431;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
  z-index: 4; /* Ensure canvas is below the menu */

}

.navbar .nav-container a:hover{
    font-weight: bolder;
}


  #center-title {
    font-family: "Poppins", sans-serif;
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    left : 600PX;
    height: 100vh; /* Use viewport height to center within the window */
    text-align: center;
}
  

.nav-container {
  display: block;
  position: relative;
  height: 60px;
  
  z-index: 4; /* Ensure canvas is below the menu */

}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  top: 55px;

  left: -50px;
  opacity: 0;
  cursor: pointer;
  z-index: 4; /* Ensure canvas is below the menu */

}

.nav-container .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 53px;
  left: -50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3; /* Ensure canvas is below the menu */

}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
  z-index: 3; /* Ensure canvas is below the menu */

}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
  z-index: 3; /* Ensure canvas is below the menu */

}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
  z-index: 3; /* Ensure canvas is below the menu */

}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
  z-index: 3; /* Ensure canvas is below the menu */

}

.navbar .menu-items {
  padding-top: 120px;
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0);
  height: 100vh;
  width: 100%;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  margin-left: -50px;
  padding-left: 50px;
  transition: transform 0.5s ease-in-out;
  text-align: left;
  z-index: 3; /* Ensure canvas is below the menu */

}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  z-index: 3; /* Ensure canvas is below the menu */
  margin-left: -100px;


  font-weight: 500;
}

.logo {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 1.2rem;
  color: #0e2431;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}


.hidden {
  display: none;
}
#imageContainer {
  display: none;
  text-align: center; /* Center the image horizontally */
  margin-top: 50px; /* Increase this value to move the image further down */
  position: relative; /* Needed for positioning the canvas */
  z-index: 1;
  margin-left: -20px; /* Adjust this value to move the image more to the left */
}

#loadedImage {
  max-width: 100%;
  height: auto;
  display: inline-block; /* Make sure the image is centered within the container */
  position: relative;
  left: -20px; /* Adjust this value to move the image more to the left */
}

canvas {
  border: 1px solid rgb(255, 255, 255);
  z-index: 10; /* Ensure canvas is below the menu */
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10; /* Ensure canvas is below the menu */
}


.hidden {
  display: none;
}
/* Position the select element at the top right */
#language {
  position: absolute;
  top: 40px;
  left: 340px;
  z-index: 4; /* Ensure it stays above other elements */
  padding: 0.7rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #0e2431;
  border: none;
  background-color: transparent;
  cursor: pointer;
  width: 70px; 
}

#language-title{
  position: absolute;
  top: 53px;


  left : 250px;
}

#autotranslate-text{
  position: absolute;
  top: 53px;
  left : 450px;

}

#move-text{
  position: absolute;
  top: 53px;
  right : 350px;

}

/* Style the options inside the select element */
#language option {
  background-color: #f8f2f2;
  color: #0e2431;
  font-family: "Poppins", sans-serif;
}

/* Apply hover effect to the select element */
#language:hover {
  font-weight: bolder;
}


#fonts {
  position: absolute;
  top: 40px;
  right: 700px;
  z-index: 4; /* Ensure it stays above other elements */
  padding: 0.7rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #0e2431;
  border: none;
  background-color: transparent;
  cursor: pointer;
  width: 200px; 
}

/* Style the options inside the select element */
#fonts option {
  background-color: #f8f2f2;
  color: #0e2431;
  font-family: "Poppins", sans-serif;
}

/* Apply hover effect to the select element */
#fonts:hover {
  font-weight: bolder;
}



#sizetext {
  position: absolute;
  top: 40px;
  right: 550PX;
  z-index: 4; /* Ensure it stays above other elements */
  padding: 0.7rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #0e2431;
  border: none;
  background-color: transparent;
  cursor: pointer;
  width: 50px; 
}

/* Style the options inside the select element */
#sizetext option {
  background-color: #f8f2f2;
  color: #0e2431;
  font-family: "Poppins", sans-serif;
}

/* Apply hover effect to the select element */
#sizetext:hover {
  transform: scale(1.2);
}

.textarea-container {
  position: fixed;
  border:grey
}

.textarea-container textarea {
  position: fixed;
  top: 200px;
  left: 1250px;
  z-index: 1000; /* Ensure it stays above other elements */
  padding: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #0e2431;
  border: 2px solid grey; /* Set the border width, style, and color */
  background-color: transparent;
  cursor: pointer;
  width: 150px; 
  height: 300px;
  box-sizing: border-box; /* Ensure padding is included in the width and height */
}

.textarea-container .ok-button {
  position: fixed;
  top: 55px;
  right: 630px;
  font-size: 1.2rem;
  font-weight: 500;
  background-color: rgb(255, 255, 255); /* Blue background */
  border:none;
  border-radius:30px;
  color: rgb(0, 0, 0); /* White text */
  cursor: pointer; /* Mouse pointer on hover */
}

.textarea-container .ok-button:hover {
  transform: scale(1.2);
}

.erase-button {
  position: fixed;
  top: 55px;
  right: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  background-color: rgb(255, 255, 255); /* Blue background */

  border:none;
  border-radius:30px;

  color: rgb(0, 0, 0); /* White text */
  cursor: pointer; /* Mouse pointer on hover */
}

.erase-button:hover {
  transform: scale(1.2);
}



.loader {
  display: None;
  position: fixed;
  top: 260px;
  left: 1105px;
  transform: translate(-50%, -50%);
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #81bae0; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 570px;
  font-size: 1.2rem;
  font-weight: 500;

   
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  



/* Darker background on mouse-over */
.btn:hover {
  font-weight: bolder;

}


.btn2 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 190px;
  font-size: 1.2rem;
  font-weight: 500;
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  



/* Darker background on mouse-over */
.btn2:hover {
  transform: scale(1.2);
}


.btn3 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 250px;
  font-size: 1.2rem;
  font-weight: 500;
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  



/* Darker background on mouse-over */
.btn3:hover {
  transform: scale(1.2);
}

.btn4 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 270px;
  font-size: 1.2rem;
  font-weight: 500;
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  

/* Darker background on mouse-over */
.btn4:hover {
  transform: scale(1.2);
}

.btn5 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 300px;
  font-size: 1.2rem;
  font-weight: 500;
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  



/* Darker background on mouse-over */
.btn5:hover {
  transform: scale(1.2);
}

.btn6 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 320px;
  font-size: 1.2rem;
  font-weight: 500;
    background-color: rgb(255, 255, 255); /* Blue background */
    border:none;
  border-radius:30px;
    color: rgb(0, 0, 0); /* White text */

    cursor: pointer; /* Mouse pointer on hover */
  }
  

/* Darker background on mouse-over */
.btn6:hover {
  transform: scale(1.2);
}

.btn7 {
  position: fixed; /* Enable positioning */
  top: 55px;
  left: 610PX;
  font-size: 1.2rem;

  font-weight: 500;
  background-color: rgb(255, 255, 255); /* Blue background */
  border:none;
  border-radius:30px;
  color: rgb(0, 0, 0); /* White text */
    cursor: pointer; /* Mouse pointer on hover */
  }
  
  
/* Darker background on mouse-over */
.btn7:hover {
  transform: scale(1.2);
}


.btn8 {
  position: fixed; /* Enable positioning */
  top: 55px;
  right: 480px;
  font-size: 1.2rem;
  font-weight: 500;
  background-color: rgb(255, 255, 255); /* Blue background */
  border:none;
  border-radius:60px;
  color: rgb(0, 0, 0); /* White text */
  cursor: pointer; /* Mouse pointer on hover */
  }
  
  
/* Darker background on mouse-over */
.btn8:hover {
  transform: scale(1.2);
}