html,body {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    padding: 0;
}

.temp-bubble {
    position: fixed !important;
    top: 50% !important;
    left: 1.5vw !important;
    transform: translateY(-50%) !important;
    
    width: 20vw !important;
    height: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: left !important;

    font-family: 'temp-bubble', sans-serif !important;
    font-size: clamp(14px, 2.4cqw + 1.8cqh - 8px, 64px) !important;

    line-height: 1.15 !important;

    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;

    color: #BEECE1 !important;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5) !important;

    border-radius: 0% !important;
    z-index: 4 !important;
    padding: 0 !important;
    cursor: default !important;
    transition: all 0.4s ease-in-out !important;
    /* container-type: size; */
}

.temp-bubble-rank {
    position: absolute;
    top: clamp(-100px, -20% - 1.5vh - 1.5vw + 50px,-40px - 2vw);
    left: 5%;
    /* border: 1px solid rgb(200, 220, 220); */
    transform: translateX(-50%);
    display: inline-block;
    padding-left: clamp(1.66px, 0.35cqw + 0.25cqh - 1.66px, 8px);
    padding-right: clamp(2px, 0.4cqw + 0.3cqh - 2px, 10px);
    padding-top: clamp(4px, 0.8cqw + 0.6cqh - 4px, 20px);
    padding-bottom: 0px;
    border-radius: 10px;
    font-family: 'temp-bubble', sans-serif;
    font-size: clamp(15px, 2.4cqw + 1.8cqh - 11px, 57px) !important;
    color: #BEECE1 !important;
}


    /* transition: opacity 0.5s ease, transform 0.5s ease; */
#details-container {
    position: fixed;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vh + 10px, 50px);
    overflow: hidden !important;
    left: 21vw;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease-in-out;
    width: clamp(50px,20vw,1500px);
    min-height: 50vh;
    height: auto;
    max-height: 90vh;
    padding: 0.5vmin;
}

#details-container .details-page {
    position: relative;
    background-color: #BEECE1;
    color: rgb(28, 28, 28);
    border-radius: 15px;
    padding: 6px 3px 2px 1px;
    min-width: 19vw;
    min-height: 8vh;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease-in-out;
    container-type: inline-size;
    container-name: details-page;
}

#details-container .details-page .details-header {
    user-select: none;
    padding-bottom: 4px;
    font-size: clamp(7px, 2cqw + 0.65vh + 1px, 27px);
    font-weight: bold;
    resize: none;
}

.info-icon {
    user-select: none;
    position: absolute;
    padding-left: clamp(1px, 2cqw, 5px);
    padding-top: clamp(1px, 0.5cqw + 0.1625vh - 0.3px, 7px);
    width: clamp(7px, 2cqw + 0.65vh - 1px, 27px);
    height: clamp(7px, 2cqw + 0.65vh - 1px, 27px);
    cursor: pointer;
    background-image: url('./icons/sunk-icon.png');
}


#details-container .details-page .details-content {
    font-size: clamp(8px, 2cqw + 0.65vh + 2px, 28px);
    text-align: left;
    color: rgb(58, 58, 58);
    padding-bottom: clamp(12px, 2.4cqw + 0.8vh + 2px, 27px);
    padding-left: 8px;
    resize: none;
}

.details-content:empty::before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

.details-content:focus {
    outline: none;
}

.detail-char-counter{
    user-select: none;
    font-size: clamp(6px, 2cqw + 0.65vh , 24px);
    position: absolute;
    right: 7px;
    bottom: 4px;
    padding-top: 3px;
    color: #969595;
}


.sticky-note {
    color: rgb(28, 28, 28);
    text-align: left;
    display: flex;
    transform: translate(-50% , -50%) !important;
    padding: 5px;
    padding-bottom: 8px !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    border: 1px solid #E0E0E0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.33);
    transform: rotate(var(--rotation)) !important;
    transition: all 0.1s ease-in-out;
    overflow: hidden !important;
}

.note-text {
    text-align: left;
    font-size: 1.5vmin; 
    justify-content: center;
    align-items: center;
    outline: none;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    cursor:text !important;
    padding-bottom: 15px;
    width: 100%;
    text-wrap: balance !important;
    overflow: hidden;
    word-wrap: break-word;
}



.note-text[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
    pointer-events: none;
    display: block; 
}


.corner-fold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-top: 15px solid transparent; 
    border-right: 15px solid #f4f4a7;   
    border-bottom: 15px solid #f4f4a7;  
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.2);
}

.back-button {
    user-select: none;
    position: absolute;
    border-radius: 50%;
    width: clamp(12.5px,2.5vmin + 2.5px,30px);
    height: auto; 
    border: none;
    background-color: transparent;
    aspect-ratio: 1 / 1;
    /* box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4); */
    transition: 0.3s;
    top: clamp(40px, 3.85vw + 0.5vh + 15px,80px);
    left: clamp(13px,0.1vw + 10px,25px);
    padding: clamp(6.25px,1.25vmin + 1.25px,15px);
    cursor: pointer;
    z-index: 1000; 
    background-image: url('./icons/back.png');
}

.back-button:hover {
    /* background-color: #0056b3; */
    scale: 1.2;
}


.note-char-counter{
    user-select: none;
    font-size: clamp(1px, 1.3vmin - 1.5px, 28px) !important;
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding-top: 4px;
    color: #969595;
}


.custom-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 1000;
    white-space: pre-wrap;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
.diamond-note {
    transform: rotate(45deg);
    border-radius: 0;
}

.diamond-note .note-text {
    transform: rotate(-45deg);
}

  