a {color: #eee; text-decoration: none}
a:hover {color: #0000ff;}
body {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  overflow-y: auto;
  background: linear-gradient(#fafbfb, #e6e7e8);
  margin: 0px;
}

#jeeFaceFilterCanvas {
  max-width: 100%;
  max-height: 100%;
  width: 868px;
  height: 684px;
  border-radius: 20px;
  background: url(../images/default-camera.png) no-repeat center center, linear-gradient(180deg, #F0F6FF 0%, #F4F6FF 45.19%, #F9F5FF 100%);
  background-size: 164px 48px, cover;
}


#threeCanvas{
  z-index: 11;
  position: absolute;
  max-height: 100%;
  max-width: 100%;
  left: 50%;
  top: 50%;
  width: 100vmin;
  transform: translate(-50%, -50%) rotateY(180deg);
}

.canvas-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 10px; /* Space between canvas and buttons */
  justify-content: center;
}

#glassesSelector {
  display: flex;
  gap: 8px;
  height: 90px;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
}

.selector-button-wrapper {
  width: 55px;
  height: 67px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E4E4E7;
  box-shadow: 0px 4px 10px 0px #0000001A;
  cursor: pointer;
}

.selector-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: #F3F4F6;
  transition: transform 0.2s, background-color 0.2s;
  width: 36px;
  height: 30px;
  border-radius: 8px;
}

.selector-button-wrapper.selected {
  background: linear-gradient(180deg, #9B5AF7 0%, #507AF6 100%);
}

.selector-button-img {
  width: 30px;
  height: auto;
  max-height: 30px;
}

.selector-button:hover {
  background: #fff;
  transform: translateY(-2px);
}

.selector-button:active {
  transform: translateY(0);
}

.selector-button-wrapper.selected .selector-button {
  background: rgba(255, 255, 255, 0.2);
}

.notification-bar-wrapper {
  max-width: 60%;
  width: 816px;
  min-height: 50px;
}

.notification-bar {
  width: 816px;
  max-width: 100%;
  height: auto;
  background: #9ea7d0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 15px;
  position: relative;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 14px;
}

.notification-bar.hide {
  display: none;
}

.notification-close {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 5px;
  top: 5px;
  background-color: #000;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
}

.selector-wrapper {
  min-height: 112px;
  max-width: 60%;
  width: 868px;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  background: #FFFFFF;
}

.selector-glass-name {
  color: #374151;
  font-weight: 400;
  font-family: sans-serif;
  font-size: 12px;
  width: 56px;
  height: auto;
  box-sizing: border-box;
  text-align: center;
  border-radius: 5px;
  min-height: 11px;
  padding: 5px;
}

.color-selector-wrapper {
  max-width: 60%;
  width: 868px;
  min-height: 88px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E4E4E7;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 10px 0px #0000001A;
}

#colorSelector {
  display: flex;
  gap: 5px;
  flex-direction: row;
  padding: 8px 10px;
  box-sizing: border-box;
}

.color-button-name-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  width: 70px;
  height: auto;
  min-height: 47px;
}

.color-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #6d6c6c;
  margin: 0;
  cursor: pointer;
}

.color-button-name-wrapper.selected .color-button {
  border: 1px solid #fff;
  outline: 2px solid #9333EA;
  position: relative;
}

.color-button-name-wrapper.selected .color-button::after {
  content: "✔";
  color: #9333EA;
  font-size: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  left: 50%;
  line-height: 16px;
  background: #fff url(../images/tick-violet.png) no-repeat center;
}

.selection-title {
  font-family: sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
  margin: 10px auto 1px;
}

#colorSelector .selection-title {
  margin-bottom: 0;
}

.selector-button-wrapper.selected .selector-glass-name {
  color: #fff;
}

.color-name {
  color: #4B5563;
  font-family: sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  width: 70px;
  text-align: center;
}

.color-button-name-wrapper.selected .color-name {
  color: #9333EA;
}

/* Toast styling */
.toast {
  visibility: hidden; /* Hidden by default */
  min-width: 280px;
  max-width: 90%;
  height: auto;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  position: absolute;
  z-index: 100; /* Ensure it's on top of other content */
  left: 50%;
  /* Centers the toast horizontally */
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  padding: 7px;
  font-size: 14px;
  box-sizing: border-box;
  width: 668px;
  background-color: #4b5563;
  top: 40px;
  font-family: sans-serif;
}

/* Class to show the toast */
.toast.show {
  visibility: visible;
  opacity: 1;
}

.camera-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 60%;
  max-height: calc(90% - 205px);
  width: 868px;
  height: 684px;
}

/* Container for the tooltip */
.tooltip-container {
  display: inline-block;
  cursor: pointer;
  text-align: center;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: 6px;
}

/* The info icon (the "i") */
.info-icon {
  line-height: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
  border: 2px solid #4b5563;
  margin-top: 4px;
  font-family: sans-serif;
}

.info-icon:hover {
  transform: scale(1.1);
}

/* The tooltip box */
.tooltip-text {
  visibility: hidden;
  width: 375px;
  max-width: 90vw;
  background-color: #4b5563;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 120%; /* Position the tooltip well above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  font-size: 12px;
  font-family: sans-serif;
}

/* Small arrow for the tooltip */
.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #4b5563 transparent transparent transparent;
}

/* Show the tooltip on hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%); /* Keep the transform stable on hover */
}

#selected-frame-name {
  width: 118px;
  height: 36px;
  opacity: 1;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  font-family: Inter;
  font-weight: 400;
  font-size: 14px;
  line-height: 36px;
  color: #fff;
  position: absolute;
  left: 20px;
  bottom: 20px;
  visibility: hidden;
  text-align: center;
}

#selected-frame-name.show {
  visibility: visible;
}
