body,
html {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 width: 100vw;
 height: 100vh;
left: 0;
right: 0;
top: 0;
 background-color: black;
 color: white;
  font-family: 'Patrick Hand', cursive;
  overflow-x: hidden;
  background-image: url('images/BG.png');
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

h3 {
 width: 100vw;
 text-align: center;
 color: #b86bff;
 font-size: 28px;
  position: absolute;
  top: 3%;
  background-color: rgba(0, 0, 0, 0.5);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

h3 img {
  margin-right: 20px;
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: -2px;
}

h3 i {
  margin-right: 10px;
  margin-left: 20px;
  font-size: 24px;
}

canvas {
 background-color: white;
 color: black;
 cursor: crosshair;
 left: 0;
 right: 0;
}

.left-panel {
 width: 100vw;
 height: 100vh;
  position: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

 padding: 10px;
}

.right-panel {
 width: 100%;
 padding: 10px;
 display: none;
  overflow-x: hidden;
}

.buttons {
 padding-top: 10px;
 padding-bottom: 10px;
 width: 100vw;
 justify-content: space-between;
  font-family: 'Patrick Hand', cursive;
}

.note-input {
 margin-bottom: 10px;
}

.note {
 margin-bottom: 20px;
 padding: 10px;
 border-bottom: 1px solid #555;
 animation: fadeIn 0.5s ease-in;
 background: rgba(0, 0, 0, 0.7);
 border-radius: 15px;
 border: 2px solid #b86bff;
 box-shadow: 0 0 15px rgba(184, 107, 255, 0.2);
 transition: transform 0.3s ease;
}

.note:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-name {
 font-weight: bold;
}

.note-name i {
 margin-right: 20px;
}

.note-date {
 color: #b86bff; /* Gold color for date */
 font-size: 20px;
 margin-left: 2px;
}

.note-date i {
 margin-right: 25px;
}

.note-time {
 color: #00ff00; /* Green color for time */
}

.note-content {
 color: #ffffff; /* White color for note content */
  font-size: 20px;
}

/* Load Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap");

.buttons {
 display: flex;
 justify-content: center; /* Center items horizontally */
 align-items: center; /* Center items vertically */
 margin-left: 10px;
 margin-right: 10px;
 width: 90%;
 left: 0;
}

.addNameContainer {
 display: flex;
 justify-content: center; /* Center items horizontally */
 align-items: center; /* Center items vertically */
 margin-left: 10px;
 margin-right: 10px;
 width: 100vw;
 left: 0;
}

#memberName {
 width: 100%;
 height: 35px;
 background-color: #333;
 font-size: 20px;
 color: white;
 border: 1px solid #555;
 border-radius: 5px;
 padding-left: 10px;
 padding-right: 10px;
  font-family: 'Patrick Hand', cursive;
}

#addName,
.buttons button {
 width: 100%;
 height: 40px;
 background-color: #222;
 color: white;
 border: 1px solid #555;
 border-radius: 5px;
 font-size: 16px;
 cursor: pointer;
  font-family: 'Patrick Hand', cursive;
}

#addName:hover,
.buttons button:hover {
 background-color: purple;
}

#selectName {
display: flex;
 justify-content: center;
 align-items: center; /* Center items vertically */
 margin-left: 10px;
 margin-right: 10px;
 width: 100%;
 left: 0; 
}

#nameSelector {
 width: 100%;
 height: 40px;
 background-color: #111;
 color: lime;
 border: 1px solid #555;
 border-radius: 5px;
 text-align: center;
 font-size: 25px;
  font-family: 'Patrick Hand', cursive;
}
#deleteName {
 width: 100%;
 height: 40px;
 background-color:#222;
 color: red;
 border: 1px solid #555;
 border-radius: 5px;
 text-align: center;
 font-size: 16px;
  font-family: 'Patrick Hand', cursive;
}

#deleteName:hover {
 background-color: purple;
}

#eraseButton {
 color: red;
}
#updateButton {
 color: lime;
}

#writeMessage,
#closeMessage {
  position: fixed;
  top: 0;
  width: 100vw;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  height: auto;
  background-color: black;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #b86bff;
}

#closeMessage {
 margin-bottom: 20px
}
#writeMessage:hover,
#closeMessage:hover {
 color: red;
 background-color: #111;
}

#noteInput {
 position: fixed;
 bottom: 0;
left: 0;
 right: 0;
 width: 100vw;
 height: 50px;
 background-color: black;
 font-size: 20px;
 color: white;
 border: none;
 border-top: 1px solid #b86bff;
z-index: 9999;
 padding-left: 20px;
 padding-right: 20px;
 padding-top: 10px;
  font-family: 'Patrick Hand', cursive;

}

footer {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: white;
}

#notes {
  position: absolute;
  top: 16%;
  bottom: 60px;
  max-height: calc(84vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border: 2px solid #b86bff;
  border-radius: 10px;
  padding: 10px 20px 160px 20px;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  font-size: 20px;
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
}

.note-delete {
  float: right;
  margin-right: 5%; /* Change this value to adjust the position */
}

.note-delete:hover {
  color: red;
}

#resetNameIcon {
position: fixed;
top: 8%;
left: 2%;
color: #b86bff;
font-size: 10px;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 0 10px rgb(247, 247, 247, 0.6);
  z-index: 9999;
}

#resetNameIcon:hover {

color: white;

  box-shadow: 0 0 10px rgb(68, 255, 0, 0.9);

}

.notification {
    display: none;
    position: fixed;
  text-align: center;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: lime;
    padding: 20px;
    font-size: 2em;
    border-radius: 10px;
    z-index: 1000;
    padding: 20px;
   box-shadow: 0 0 20px rgb(247, 247, 247, 0.3);
}

#audioControl {
position: fixed;
top: 1%;
right: 5%;
color: red;
z-index: 9999999999;
background-color: rgb(0, 0, 0, 0.5);
padding: 10px;
border-radius: 10px;
cursor: pointer;
  box-shadow: 0 0 20px rgb(250, 250, 250, 0.8);
}

#inputContainer #inputIcons {
display: flex;
  position: fixed;
  bottom: 80px;
flex-direction: row;
justify-content: left;
align-items: center;
  gap: 40px;
  left: 5%;
width: 100%;
right: 5%;
  z-index: 9999999999;
  cursor: pointer;
  font-size: 20px;

}

.file-attachment {
  display: inline-block;
  background-color: #2c2c2c;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px 0;
}

.file-attachment i {
  margin-right: 5px;
}

.uploaded-image {
  display: block;
  margin: 10px auto; /* Center the image and add vertical spacing */
  max-width: 200px;    /* Set the maximum width to 200 pixels */
  height: auto;      /* Maintain aspect ratio */
  cursor: pointer;   /* Indicate that the image is clickable */
}

.control-panel {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  border: 1px solid #b86bff;
  border-radius: 5px;
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.control-panel button {
  background-color: #b86bff;
  border: none;
  color: black;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  border-radius: 5px;
}

.control-panel button:hover {
  background-color: #864fba;
}

.control-panel button:active {
  background-color: #b86bff;
}

emoji-picker {
    --category-emoji-size: 1.375rem;
    --emoji-size: 1.375rem;
    --emoji-padding: 0.5rem;
    --border-size: 0;
    --background: #000000;
    --indicator-color: #385ac1;
    --input-border-color: #555;
    --input-font-color: #fff;
    --input-placeholder-color: #aaa;
    --num-columns: 8;
    width: 300px;
    height: 400px;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

emoji-picker::part(emoji) {
    color: initial;
}

emoji-picker::part(nav-button) {
    color: #fff;
}

emoji-picker::part(indicator) {
    background-color: #385ac1;
}

emoji-picker::part(category-name) {
    color: #fff;
}

emoji-picker::part(search-field) {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
}

#emojiIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#emojiIcon:hover {
    color: #b86bff;
}


/* Add this CSS to your styles.css file */
.clear-all-btn {
    position: fixed;
    top: 10px;
    margin: 0 auto;
    background-color: transparent;
    border: none;
    cursor: pointer;
  z-index: 9999;
}

.clear-all-btn .fa-trash-alt {
    font-size: 16px;
    color: white; /* Purple color */
}

.clear-all-btn:hover .fa-trash-alt {
    color: red; /* Lighter purple on hover */
}

#greeting {
position: fixed;
top: 10px;
margin: 0 auto;
font-size: 12px;
  padding: 10px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 10px rgb(255, 255, 255, 0.3);
}

#giphyIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#giphyIcon:hover {
    color: #a061db;
}

#jokeIcon:hover {
    color: #844fb5;
}

#biochemFactIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#biochemFactIcon:hover {
    color: #8e55c3;
}

#moleculeIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#moleculeIcon:hover {
    color: #8b54c0;
}

#aiFacts {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#aiFacts:hover {
    color: #00ff9d;
}

/* Parent container */
.parent-container {
    position: relative;
}

/* Molecule viewer */
.moleculeViewer {
    position: absolute;
    bottom: 0; 
    margin: 0 auto;
    width: 100px;
    height: 100px;
    background-color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.moleculeViewer canvas {
  width: 100%;
  height: 100%;
  /* Remove margin-top here */
}

#businessAdviceIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#businessAdviceIcon:hover {
    color: #b86bff;
}

#startupTipIcon {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

#startupTipIcon:hover {
    color: #b86bff;
}