body {
    margin: 0;
    font-family: Calibri, sans-serif;
    text-align: center;
    background-color: #e1e1e180;
    overflow: hidden;
}

.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.5s ease-in-out;
}

.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.5s ease-in-out;
    pointer-events: none;
    z-index: 3;
}

.bubble-text {
    color: rgb(255, 255, 255);
    border-radius: 50%;
    cursor: default;
    outline: none;
    display: inline-block;
    width: auto;
    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;
    line-height: 1.1;
    z-index: 4;
}


.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 {
    width: 100px;
    height: 100px;
    background-size: cover;
    position: absolute;
    z-index: 1000;
    bottom: 10px;
    left: 45px;
    background-image: url('./icons/docked-icon.png');
}

.sunk-icon {
    width: 100px;
    height: 100px;
    background-size: cover;
    position: absolute;
    z-index: 1000;
    bottom: 10px;
    right: 50px;
    background-image: url('./icons/sunk-icon.png');
}

.logo-icon {
    width: 420px;
    height: 60px;
    background-size: cover;
    position: absolute;
    z-index: 1000;
    top: 10px;
    left:5px;
    background-image: url('./icons/output_image.png');
}

#addBubbleButton {
    user-select: none;
    position: absolute;
    bottom: 120px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    z-index: 1000;
}

#addBubbleBtn:hover {
    background-color: #0056b3;
}

.fade-out {
    opacity: 1;
    transform: scale(0);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.temp-bubble {
    transition: all 0.5s ease-in-out;
    cursor:default;
}

#details-container {
    position: fixed;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    overflow-y: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width:fit-content;
    max-width: 400px;
    min-height: 200px;
    height: auto;
    max-height: 90vh;
    padding: 16px;
}

.details-page {
    position: relative;
    background-color: #A5D6A7;
    color: rgb(28, 28, 28);
    border-radius: 15px;
    padding: 6px 2px 2px 8px;
    width: 20vw;
    min-height: 60px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    transition: opacity 0.5s ease, transform 0.5s ease;;
}

.info-icon {
    user-select: none;
    position: absolute;
    padding-left: 4px;
    padding-top: 4px;
    width: 8px;
    height: 8px;
    cursor: pointer;
}

.details-header {
    user-select: none;
    padding-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
}

.details-content {
    font-size: 13px;
    text-align: left;
    color: rgb(58, 58, 58);
    padding-bottom: 12px;
}

.details-content:empty::before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

.details-content:focus {
    outline: none;
}

.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.2s ease-in-out, transform 0.1s 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;
}

#note-container {
    position: fixed;
    top: 50%;
    left: 60%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 48%;
    max-height: 90vh;
    overflow-y: auto;
    align-content: flex-start;
    max-width: fit-content;
}

@media (min-width: 700px) {
    #details-container {
        left: 28%;
        width: 25%;
        max-width: 300px;
    }
    #note-container{
        left: 55%;
        width: 45%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    #details-container {
        left: 18%;
        width: 25%;
        max-width: 400px;
    }
    #note-container {
        left: 45%;
        width: 55%;
        grid-template-columns: repeat(4, 1fr);
    }
}

.sticky-note {
    width: 115px;
    height: 115px;
    background-color: #FFF000;
    color: rgb(28, 28, 28);
    font-size: 12px;
    text-align: left;
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    border: 1px solid #E0E0E0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(var(--rotation));
    margin: 10px;
    overflow: hidden;
}

.note-text {
    text-align: left;
    justify-content: center;
    align-items: center;
    outline: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding-bottom: 12px;
}

.note-text[contenteditable="true"]:empty:before {
    content: "Click to edit";
    color: #999;
    font-style: italic;
    pointer-events: none;
    display: block; 
}

.note-text[contenteditable="true"]:empty {
    color: #999;
    border-bottom: 1px dashed #999;
}


.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;
    top: 100px;
    left: 45px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000; 
}

.note-char-counter{
    user-select: none;
    font-size: 10px;
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding-top: 4px;
    color: #969595;
}

.detail-char-counter{
    user-select: none;
    font-size: 10px;
    position: absolute;
    right: 7px;
    bottom: 4px;
    color: #969595;
}