@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Titan+One&display=swap');

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Bree Serif", serif;
}

body{
  background-color: #f0f0f0;
}

/* Style for header */

header{
  font-family: "Bree Serif", serif;
  background: #0cc7de;
  color: white;
  height: 10%;
  display: flex; 
  flex-direction: row;
  align-items: center; 
}

header img{
  width: 60px;
  height: 60px;
}

/* Base styling for toolbar container */
.tool-bar {
  display: flex; 
  flex-direction: column;
  align-items: center; 
  padding: 10px; 
  margin: 10px 0px 265px 20px;
  background-color: #dbd8d8; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
  border-radius: 8px;
}

/* Styling for each tool option in the toolbar */
.toolbarOptions {
  position: relative;
  margin: 5px 0;
  cursor: pointer;
}

.toolbarOptions img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.toolbarOptions img:hover {
  transform: scale(1.1); 
  box-shadow: 0 0 8px #666; 
}

.toolbarOptions::after {
  content: attr(title);
  position: absolute;
  top: 50%;
  left: 110%; 
  transform: translateY(-50%);
  white-space: nowrap;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75em;
  display: none; 
  z-index: 20;
}

.toolbarOptions:hover::after {
  display: block;
}

/* Responsive adjustments for very small screens */
@media (max-width: 400px) {
  .tool-bar {
    width: 100%; 
    align-items: stretch; 
  }
  .toolbarOptions img {
    width: 100%;
    height: auto;
  }
}


/* main cointainer for the whole code  */
.card{
  display: flex;
  justify-content: space-between;
  margin-right: 20px;
}

/* Canvas Styling */
.centre-canvas {
  margin-top: 10px;
  overflow: auto;
  position: relative;
  border: 1px solid #ccc;
  box-shadow: 5px 5px 15px 0 #dbd8d8;
}

/* Annotation list Styling */
.annotation-bar {
  display: flex;
  flex-direction: column; 
  justify-content: space-between; 
  margin: 10px 30px 300px 0px;
  border-radius: 5px;
  background-color: #0fcce3;
  width: 350px;
  padding: 15px; 
  box-shadow: 0 6px 10px #92e7f0; 
  position: relative; 
  overflow: hidden; 
  scrollbar-width: thin; 
  scrollbar-color: #bde4ff transparent; 
}

.annotation-bar h2 {
  text-align: center;
  font-size: 2em;
  position: relative;  
  padding-bottom: 10px;
  color: aliceblue;
  text-shadow: 2px 2px 4px #92e7f0;
}

.annotation-bar h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0; 
  transform: translateX(-50%); 
  width: 50%;
  height: 3px;
  background: #bde4ff; 
}

.annotation-bar ul {
  max-height: 260px; 
  overflow-y: auto;  
  padding: 10px;
  margin: 10px 0px 10px 0px;
}

.annotation-bar li {
  list-style: none;
  background-color: #92e7f0;
  height: 40px;  
  border-radius: 8px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s; 
}

.annotation-bar li:hover {
  background-color: #bde4ff;  
  transform: translateY(-2px);  
}

.annotation-bar::-webkit-scrollbar {
  width: 4px; 
}

.annotation-bar::-webkit-scrollbar-thumb {
  background-color: #bde4ff;  
  border-radius: 2px; 
}

.annotation-bar::-webkit-scrollbar-track {
  background-color: transparent;  
}

.annotation-bar::-webkit-scrollbar-thumb:hover {
  background-color: #bde4ff; 
}

/* Styling for buttons */
.buttonOptions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding: 10px;
  position: relative;  
}

.buttonOptions::before {
  content: '';  
  display: block;
  height: 3px; 
  background: #bde4ff; 
  width: 50%;  
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);  
}

.buttonOptions button {
  margin-left: 10px; 
}

.buttonOptions button:first-child {
  margin-left: 0; 
}