@font-face {
    font-family: 'temp-bubble';
    src: url('./fonts/THEBOLDFONT-FREEVERSION.otf') format('truetype');
    font-weight: normal;
    font-style: normal; 
}

html {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: Calibri, sans-serif;
    text-align: center;
    background-color: #e1e1e180;
    width: 100vw;
    height: 100vh;
    padding: 0;
    overflow: hidden !important;
}

.top-buttons {
    position: fixed;
    top: clamp(3px,0.8vh,10px);
    right: clamp(5px,1vw,10px);
    display: flex;
    flex-direction: row;
    gap: clamp(5px,1vw,10px);
    z-index: 1000;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
}
  
.top-buttons .display-name,
.top-buttons .share {
  font-size: clamp(8px, 0.85vw + 0.85vh - 5px, 28px);
  padding: clamp(4px,0.8vw,10px);
  width: auto;
  background-color: rgb(105, 202, 209);
  color: rgb(241, 232, 232);
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  user-select: none;
  white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: fixed;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    z-index: 1001;
    font-size: 1rem;
    flex-direction: column;         /* Stack children vertically */
    align-items: flex-start;        /* Align to the left inside the box */
}

.user-dropdown a,
.user-dropdown button {
    margin-top: 0.5rem;
    background: none;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    color: #333;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    color: #007bff;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    display: inline-block;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    background-color: #2A5782;
    transition: all 0.3s ease-in-out;
    container-type: size;
    container-name: bubble;
    /* box-shadow: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.33); */
}


.bubble .bubble-text {
    color: rgb(255, 255, 255);
    border-radius: 50%;
    cursor: default;
    outline: none;
    display: inline-block;
    width: min-content;
    height: 100%;
    min-width: 75%;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.1;
    font-size: clamp(9px,8cqw + 2px,40px) !important;
    z-index: 4;
}

.bubble.show {
    transform: scale(1);
}

.bubble-border {
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc(100%);
    height: calc(100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    z-index: 3;
}

.bubble-rank {
    position: absolute;
    top: 3%;
    left: 50%;
    padding: 1px 4px;
    border: 1px solid rgb(200, 220, 220);
    transform: translateX(-50%);
    font-size: 10px;
    color: rgb(225, 225, 225);
    border: 1px solid rgb(220, 220, 220);
    display: inline-block;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 1px;
    padding-bottom: 1px;
    border-radius: 10px;
}

.bubble:active {
    cursor: grabbing;
}

.docked-icon,
.sunk-icon {
    width: clamp(30px,10vmin,80px);          
    aspect-ratio: 1 / 1;           
    height: auto;
    background-size: contain;  
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    z-index: 1000;
    bottom: clamp(3px,0.8vh,10px);
}

.docked-icon {
    left: clamp(5px,0.75vw,10px);  
    background-image: url('./icons/docked-icon.png');
}

.sunk-icon {
    right: clamp(5px,1vw,10px); 
    background-image: url('./icons/sunk-icon.png');
}


#addBubbleButton {
    width: clamp(25px,5vmin + 5px,60px);  
    aspect-ratio:  1 / 1;
    height: auto; 
    right: clamp(10px,1vw + 2.5vmin - 2.5px,30px);
    bottom: clamp(40px,2vh + 10vmin ,120px); 
    border-radius: 50%;
    border: none;
    background-color: rgb(0, 123, 255);
    color: white;
    font-size: clamp(12.5px,2.5vmin + 2.5px ,30px);
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    position: absolute;
    z-index: 1000;
    user-select: none;
}

#addBubbleBtn:hover {
    background-color: #0056b3;
}

.fade-out {
    opacity: 1;
    transform: scale(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.context-menu {
    position: absolute;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    z-index: 1001;
    min-width: 200px;
    font-size: 14px;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-out;
}

.context-menu ul {
    user-select: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    user-select: none;
    padding: 10px 16px;
    cursor: pointer;
    /* transition: background 0.2s ease-in-out; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.context-menu li:last-child {
    border-bottom: none;
}


.context-menu li:hover {
    background: #f5f5f5;
    color: #007AFF;
}

.context-menu li:active {
    background: #eaeaea;
}

.shortcut {
    font-size: 12px;
    color: #888;
}

.zoomButton {
    top: 50%;
    width: clamp(12.5px,2.5vmin + 2.5px,30px);  
    aspect-ratio:  1 / 1;
    height: auto; 
    right: clamp(15px,1.5vw + 3.75vmin - 3.75px,45px);
    border-radius: 30%;
    border: none;
    background-color: white;
    color: #3f3f3f;    
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    z-index: 1000;
    user-select: none;
    scale: 1.25;
    transform: translateX(-100%);
    display: none;
}

#zoomInButton {
    transform: translateY(-60%);
    font-size: clamp(10px,1.75vmin + 1.75px ,25px);
}

#zoomOutButton {
    transform: translateY(+60%);
    font-size: clamp(15px,2vmin + 4px ,25px);
}


#zoomButton:hover {
    background-color: #656565;
}

