:root {
  --dark_blue : #273c75;
  --dark_blue_hover : #192a56;
  --navy_blue : #40739e;
  --light_blue : #0097E6;
  --pensive : #dcdde1;
  --dark_grey : #7f8fa6;
  --light_green: #44bd32;
  --light_blue_backing : #40739e;
  --blue_blue : #487eb0;
  --dark_button : #444;
  --toolbar_height : 105px;
  --dark: #444;
  --darker: #222;
  --radial_dark_gradient : radial-gradient(#444, rgba(0, 0, 0, 0.6));
}

* {
  font-family: Klee One;
  user-select: none;
}

body,
html {
  width: 100%;
  height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: sans-serif;
  background: #353b48;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 3px;
  height: 40px;
  box-shadow: 1px 1px 3px black;
  transition: all 0.1s ease;
  position: relative;
}

label {
  font-size: 14px !important;
}

.label_icons {
  font-size: 20px;
  width: 20px;
}

button:active {
  top: 2px;
  box-shadow: 0 0 1px black;
}

label {
  position: relative; /* Needed for top to work */
  cursor: pointer;
}

label:active {
  top: 2px;
  box-shadow: 0 0 1px black;
}


input:not([type="color"]):not([type="range"]) {
  width: 90%;
  height: 40px;
  outline: 0;
  border: none;
  border-radius: 4px;
  padding-left: 5px;
  font-size: 18px;
  background: var(--pensive);
}

input[type="range"] {
  -webkit-appearance: none; /* Remove default styling */
  width: 150px;
  height: 4px;
  background: transparent;
}

/* Track (line) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--pensive);
  border-radius: 2px;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--pensive);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #f0c243; 
  cursor: pointer;
  margin-top: -6px;
    box-shadow: 2px 2px 10px black;
}
input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #f0c243;
  cursor: pointer;
}



#board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;


    border: 30px solid transparent;
    border-image: url(../img/wood.png) 30 round;
    box-sizing: border-box;
}

canvas {
	touch-action: none;
	display: block;
  pointer-events: none;
}


.shared_boards {
    width: 100%;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    background: url(../board.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center -105px; /* Move image up by 105px */
    border: 30px solid transparent;
    border-image: url(../img/wood.png) 30 round;
    box-sizing: border-box;
}



.shared_boards {
    width: 100%;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    background: url(../board.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border: 30px solid transparent;
    border-image: url(../img/wood.png) 30 round;
    box-sizing: border-box; /* Include border in width */
}

/*
.shared_boards {
    width: 90%;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    background: url(../board.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border: 30px solid transparent;
    border-image: url(../img/wood.png) 30 round;
}
    */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #2f3640;
  color: white;
  align-items: center;
  position: fixed;
	top: 0;
	left: 0;
  right: 0;
  width: 100%;
  min-height: var(--toolbar_height);
  height: auto;
  box-sizing: border-box;
	z-index: 10;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
  padding: 10px;
}

.toolbar > * {
  flex-shrink: 0;
}

.toolbar img,
.toolbar button,
.toolbar label {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toolbar img:hover,
.toolbar button:hover,
.toolbar label:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.toolbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.toolbar div {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 68, 68, 0.6);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.toolbar div:hover:not([style*="pointer-events: none"]) {
  background: rgba(88, 88, 88, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modern CSS Tooltips */
.toolbar div[data-tooltip] {
  position: relative;
}

.toolbar div[data-tooltip]:hover {
  z-index: 999999;
}

.toolbar div[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 999999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toolbar div[data-tooltip]::after {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 999999;
}

.toolbar div[data-tooltip]:hover::before,
.toolbar div[data-tooltip]:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

#hide_toolbar_icon {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 999999;
  margin: 0px;
  background: #706fd3;
  padding-top: 3px;
  box-shadow: 2px 2px 10px black;
}


#logo {
  max-width: 150px;
  height: auto;
  border-radius: 3px;
  object-fit: contain;
  pointer-events: none;
  cursor: default;
}

#color_picker {
  font-size: 26px !important;
  background: transparent;
  margin-top: 10px;
}

#eraser_icon_button {
  font-size: 26px !important;
  background: transparent;
  box-shadow: none;
}

#line_width_slider {
  background: transparent;
    font-size: 32px !important;
    margin-top: 10px;
}

#thicknessPicker {
	outline: 0;
}

.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(255, 255, 255, 1);
  border-top-color: var(--light_blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 99999;
  box-shadow: 2px 2px 10px black;
}

.sign_in_modal, .sign_up_modal {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 2px 2px 10px black;
  background: transparent;
  color: white;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
}

#instruct_box, #message_box, #edit_board_name_box, #name_lesson_modal, #line_thickness_modal, #share_lesson_modal, #cancel_premium_modal, #sizing_modal, #add_text_to_board_modal, #image_modal {
  position: absolute;
  top: 150px;
  right: 0;
  margin: 30px;
  width: 140px;
  height: auto;
  padding: 10px;
  border: 1px solid var(--pensive);
  background: var(--radial_dark_gradient);
  color: white;
  font-size: 18px;
  box-shadow: 2px 2px 10px black;
  z-index: 22;
  border-radius: 4px;
}

#sizing_modal, #image_modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#instruct_box {
  visibility: hidden;
  width: 150px;
}

#line_thickness_modal {
  width: 192px !important;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.center_screen {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 300px !important;
}

/* Modal animations for smoother appear/disappear */
/* animations removed: modal will appear/disappear immediately */

#edit_board_name_box, #name_lesson_modal, #share_lesson_modal, #cancel_premium_modal, #add_text_to_board_modal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#cancel_premium_modal {
  flex-direction: column;
}

#remove_membership_button {
  background: #b33939;
  color: white;
}

#cancel_premium_modal_button {
  margin-top: 10px;
  background: #d1ccc0;
  margin-bottom: 10px;
  margin-top: 15px;
}

#share_lesson_modal > p{
    margin-top: 5px;
}

#lesson_url {
  text-align: center !important;
  color: yellow !important;
  font-weight: bold !important;
  cursor: pointer !important;
  margin-bottom: 10px !important;
}

#edit_board_name_box span {
  font-size: 16px;
}


#name_lesson_modal p {
  text-align: center;
}

#name_lesson_modal span {
  font-size: 16px;
}

#name_lesson_modal_input {
  margin-bottom: 10px;
}

#edit_board_name_box_input {
  width: 98%;
  margin-top: 10px;
}

/* Old modal-based lesson styles were removed — lessons are rendered in the side panel now. */

.truncate {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
}

.eraser-cursor {
  cursor: url('/chalkboard/img/icons/eraser.png') 24 44, auto;
}

.chalk-cursor {
  cursor: url('/chalkboard/img/icons/chalk.png') 0 0, auto;
}

#new_board_button {
   /* background: #cc8e35;*/
    color: white;
}

#new_lesson_button {
 /* background: #cd6133;*/
  color: white;
}

#show_lesson_board_info {
  display: block;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

#banner_lesson_name {
  margin: 5px;
}

#banner_board_name {
   margin: 5px;
}

#save_button {
 /* background: var(--light_blue);*/
  color: white;
}

#my_boards_button {
 /* background: var(--light_blue_backing);*/
  color: white;
}


/* Lesson items are now rendered as side-panel buttons; modal styles removed. */

/* delete icon inside side panel lesson button */
.side_panel_buttons .lesson_delete {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
}
.side_panel_buttons .lesson_delete:hover {
  background: rgba(255,255,255,0.06);
  color: #ff9b9b;
}
.side_panel_buttons .lesson_name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lessons search input in side panel */
#side_panel_lessons_search {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: white;
  box-sizing: border-box;
}
#side_panel_lessons_search::placeholder {
  color: gold;
  opacity: 0.9;
}

/* size the delete svg inside lesson button */
.side_panel_buttons .lesson_delete img {
  width: 14px;
  height: 14px;
  display: block;
}

/* Recording indicator in toolbar */
.record-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: record-blink 1s steps(1, start) infinite;
}
@keyframes record-blink {
  0% { opacity: 1; }
  50% { opacity: 0.1; }
  100% { opacity: 1; }
}
.record-timer {
  font-size: 13px;
  margin-left: 6px;
  color: #ffd66b; /* gold-ish */
  vertical-align: middle;
}

.slider {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
  cursor: pointer;
  flex-shrink: 0;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:checked + .slider {
  background-color: #4caf50;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

#save_board {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: auto;
  background: var(--light_blue);
  box-shadow: 2px 2px 10px black;
  border-radius: 6px;
  padding: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#save_board_input {
  margin-top: 10px;
}

#save_board_button, #cancel_board_button {
  height: 34px;
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 8px;
  background: #0097e6;
  color: white;
  border: 1px solid var(--pensive);
}

#save_board_button {
  background: var(--light_green);
  color: black;
}

#cancel_board_button {
  background: var(--pensive);
  color: black;
  margin-left: 10px;
}


  .side_panel {
    position: fixed;
    left: 0;
    width: 220px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    color: white;
    border: none;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 10;
  }



  #close_message_box, #close_edit_board_name_box, .edit_name_icon, #close_instruct_box, .delete_lesson {
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }
  
  /* #close_side_panel removed — closing is now toggled from toolbar */

  .side_panel_buttons {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    width: calc(100% - 20px);
    margin: 8px 10px;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }
  
  .side_panel_buttons:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
  }

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

 #are_you_sure_check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 10px;
  background: var(--light_blue_backing);
  box-shadow: 2px 2px 10px black;
  border-radius: 4px;
  z-index: 9999;
 }

 #button_yes, #button_no {
  width: auto;
  height: auto;
  border-radius: 4px;
  outline: 0;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
 }

 #button_yes {
  background: #b33939;
  margin-right: 10px;
  color: white;
 }

 #button_no {
  background: #d1ccc0;
  color: black;
 }

 #premium_badge {
  position: fixed;
  bottom: 0;
  right: 0;
  width: auto;
  height: 30px;
  padding: 5px;
  box-shadow: 2px 2px 10px black;
  background: #706fd3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  z-index: 999999999;
 }

 #premium_text {
  font-size: 12px;
  color: white;
  margin-left: 5px;
 }

 #cancel_premium {
  font-size: 10px;
  color: #f8db0b;
  cursor: pointer;
  margin-left: 10px;
  margin-top: 11px;
 }

  /********** animations *******************/
  .bounce-in-right_speed_1 {
    animation: bounce-in-right 0.4s ease-out 1;
}

.bounce-in-right_speed_2 {
    animation: bounce-in-right 0.6s ease-out 1;
}

.bounce-in-right_speed_3 {
    animation: bounce-in-right 0.8s ease-out 1;
}

.bounce-in-left_speed_1 {
    animation: bounce-in-left 0.4s ease-in 1;
}

.bounce-in-left_speed_2 {
    animation: bounce-in-left 0.6s ease-in 1;
}

.bounce-in-left_speed_3 {
    animation: bounce-in-left 0.8s ease-in 1;
}



#stripe_modal {
  position: absolute;
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 0px;
  z-index: 10;
  background: var(--light_blue_backing);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
}

#close_stripe_modal {
  position: fixed;
  top: 0;
  right: 0;
  margin: 15px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  text-shadow: none;
  font-size: 30px;
}

#stripe_frame {
  border: none;
  width: 50%;
  height: 100%;
}

#shapes_modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-height: 500px;
  background: var(--radial_dark_gradient);
  border: 1px solid white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  align-items: center;
}

.shape.preview {
  position: relative !important;
  margin: 0 !important;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.shape.preview:hover {
  transform: scale(1.15) !important;
}

.chalk_text {
  font-family: 'Chalkboard', sans-serif;
  padding: 0.5rem;
  cursor: move;
  z-index: 5;
  background: transparent;
  white-space: nowrap;
  width: auto !important;
}

.chalk_image {
  z-index: 5;
  cursor: move;
  border: 0px solid white;
  box-sizing: border-box;
  width: auto !important;
}

.chalk_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}





@keyframes spin {
  to { transform: rotate(360deg); }
}



#highlight_box {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 999;
}

#highlight_box span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, yellow);
  animation: animateTop 2s linear infinite;
}
@keyframes animateTop {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#highlight_box span:nth-child(2) {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, yellow);
  animation: animateRight 2s linear infinite;
  animation-delay: 0.5s;
}
@keyframes animateRight {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

#highlight_box span:nth-child(3) {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, transparent, yellow);
  animation: animateBottom 2s linear infinite;
}
@keyframes animateBottom {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

#highlight_box span:nth-child(4) {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, transparent, yellow);
  animation: animateLeft 2s linear infinite;
  animation-delay: 0.5s;
}
@keyframes animateLeft {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}






/* 2d shapes */

.shape {
  position: absolute;
  box-sizing: border-box;
  z-index: 5;
  cursor: move;
}

/* Circle */
.shape[data-shape-type="circle"] {
  border-radius: 50%;
}

/* Ellipse / Oval */
.shape[data-shape-type="ellipse"] {
   border-radius: 50%;
}

/* Triangle (pointing up) */
.shape[data-shape-type="triangle"] {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 60px solid #78e08f;
  background: transparent;
}

/* Diamond (rotated square) */
.shape[data-shape-type="diamond"] {
  transform: rotate(45deg);
}

/* Parallelogram */
.shape[data-shape-type="parallelogram"] {
  transform: skew(20deg);
}

/* Trapezoid */
.shape[data-shape-type="trapezoid"] {
  width: 0;
  height: 0;
  border-bottom: 60px solid var(--trapezoid-color, #007bff);
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  background: none;
}

/* Regular polygons — simulate with clip-path */
.shape[data-shape-type="pentagon"] {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.shape[data-shape-type="hexagon"] {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.shape[data-shape-type="heptagon"] {
  clip-path: polygon(
    50% 0%,
    90% 20%,
    100% 60%,
    75% 100%,
    25% 100%,
    0% 60%,
    10% 20%
  );
}
.shape[data-shape-type="octagon"] {
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
}
.shape[data-shape-type="decagon"] {
  clip-path: polygon(
    50% 0%,
    80% 10%,
    100% 35%,
    100% 65%,
    80% 90%,
    50% 100%,
    20% 90%,
    0% 65%,
    0% 35%,
    20% 10%
  );
}



/* 3d shapes */

/* Shared base style */
.shape[data-shape-type^=""] {
  position: absolute;
  box-sizing: border-box;
  z-index: 5;
  cursor: move;
}

/* Main cube face */
.shape[data-shape-type="cube"] {
  position: relative;
  background-color: green;
  width: 50px;
  height: 50px;
  transform: rotateX(0deg) rotateY(0deg);
  box-sizing: border-box;
}


/* Right face */
.shape[data-shape-type="cube"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 20px;
  height: 100%;
  background-color: #3a6a96;
  transform: skewY(-45deg);
  transform-origin: left top;
}

/* Top face */
.shape[data-shape-type="cube"]::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #5b9bd5;
  transform: skewX(-45deg);
  transform-origin: bottom left;
}

/* Cylinder body */
.shape[data-shape-type="cylinder"] {
  position: relative;
  background: linear-gradient(to bottom, #d2691e, #a0522d); /* optional vertical shading */
  border-radius: 50% / 10%;
  overflow: hidden;
}

/* Top face of cylinder */
.shape[data-shape-type="cylinder"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: radial-gradient(circle at center, #f4a460, #cd853f);
  border-radius: 50%;
  z-index: 1;
}


/* Sphere */
.shape[data-shape-type="sphere"] {
  border-radius: 50%;
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3);
}

/* Hemisphere */
.shape[data-shape-type="hemisphere"] {
  border-radius: 100px 100px 0 0 / 100px 100px 0 0;
  overflow: hidden;
}

/* star */
.shape[data-shape-type="star"] {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

/* Responsive toolbar for smaller screens */
@media (max-width: 1200px) {
  .toolbar {
    font-size: 12px;
    gap: 6px;
    padding: 8px;
  }
  
  .toolbar div {
    padding: 6px 10px;
  }
  
  #logo {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .toolbar {
    font-size: 11px;
    gap: 4px;
    padding: 6px;
  }
  
  .toolbar div {
    padding: 4px 8px;
  }
  
  #logo {
    max-width: 100px;
  }
  
  .toolbar img:not(#logo) {
    width: 24px !important;
  }
}
