body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Roboto', 'Arial', sans-serif;
  }
  
  /* canvas {
    border: 1px solid black;
  } */
  
  button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.navbar {
  position: fixed; /* Sticks it to the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensures it stays on top */
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Modal styles */
.modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-content p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.arrow-box {
  overflow-y: auto;
  max-height: 100%;
  cursor: default; /* Changed from pointer to default */
}

.arrow-box p {
  margin: 0;
  font-size: 14px;
}

/* Add a hover effect to the close button */
button.modal-close:hover {
  color: #ff3b30;
}

/* Add some transition effects */
.modal-show {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.modal-hide {
  opacity: 0 !important;
  transform: scale(0.9) !important;
}

/* Add focus styles for accessibility */
button:focus {
  outline: 2px solid #45515f;
  outline-offset: 2px;
}

/* Any interactive element should have a pointer cursor */
a, select, input[type="checkbox"], input[type="radio"], 
input[type="submit"], input[type="button"], 
.interactive, .clickable, [role="button"] {
  cursor: pointer;
}

/* Language selector styles */
#languageDropdown {
  cursor: pointer;
  color: #333;
  font-weight: 500;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Hover effect for language options */
.dropdown-item:hover {
  background-color: #f0f0f0;
}

/* Editable element indicators */
.editable-hint {
  cursor: pointer;
  border-bottom: 1px dashed #333;
}

/* Add styles for p5.js canvas editable elements */
#Canvas {
  cursor: default;
}

/* Custom cursor for editable elements on canvas */
.editable-cursor {
  cursor: pointer;
}

.error-notification {
    position: fixed;
    top: 20px;
    right: 40%;
    background: #ff5f6d;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
        
.error-icon {
    font-size: 24px;
    margin-right: 15px;
}
        
.error-message {
    flex-grow: 1;
    font-size: 14px;
    white-space: pre-line;
}
        
.error-close {
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
        
.error-close:hover {
    opacity: 1;
}