/* style for corkboard */
.controlling-bar-stuff {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 100%;
    padding: 10px;
    z-index: 10;
}

.btn-add-note, .btn-add-photo, .btn-add-sticker {
    background: #f8f2cc;
    color: rgb(130, 67, 7);
    width: 7em;
    height: 2.8em;
    border-radius: 30px;
    border-bottom-left-radius: 5px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 6px 6px 12px #8c4e21;
    font-family:'Courier New', Courier, monospace;
    transition: all 0.3s ease;
}

/* hover effect */
.btn-add-note:hover, .btn-add-photo:hover, .btn-add-sticker:hover {
    background: #ffaf60;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-add-note {
    position: absolute;
    top: 31px;
    right: 73px;
}

.btn-add-photo {
    position: absolute;
    top: 101px;
    right: 73px;
}

.btn-add-sticker {
    position: absolute;
    top: 171px;
    right: 73px;
}


/* note */
/* note */
/* note */

/* note creator overlay*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000000;
    background-color: rgba(0, 0, 0, 0.3);
    animation: fadeInOverlay 0.4s ease forwards;
}

/* note creator */
.note-creator {
    position: relative;
    top: 17px;
    left: 6px;
    background: #ffe26c; /* default yellow */
    border-radius: 15px;
    padding: 25px;
    width: 275px;
    height: 275px;
    z-index: 10000001;
    transform: translateY(100vh); /* initial position is at the bottom of the screen */
    opacity: 0; /* initial opacity is 0 */
    animation: slideIn 0.4s ease forwards;
}

/* fade out class when disappearing */
.note-creator.fade-out {
    animation: slideOut 0.4s ease forwards !important;
}

/* enter animation: slide in from bottom */
@keyframes slideIn {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* disappear animation: from center to top */
@keyframes slideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}


/* overlay fade out class */
.overlay.fade-out {
    animation: fadeOutOverlay 0.4s ease forwards !important;
}

/* overlay fade in animation */
@keyframes fadeInOverlay {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* overlay fade out animation */
@keyframes fadeOutOverlay {
    0% {
        background-color: rgba(0, 0, 0, 0.3);
    }
    100% {
        background-color: rgba(0, 0, 0, 0);
    }
}


/* color picker */
.color-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: translateY(-2.5px);
}

.color-option.selected {
    border-color: #333;
}

.pink { 
    background-color: #ffcdd2;
    border-color: #f19289;
}
.yellow { 
    background-color: #ffe26c;
    border-color: #ffb429;
}
.blue { 
    background-color: #c5e4fe; 
    border-color: #99b3ea;
}

.note-creator textarea {
    width: 100%;
    height: 60%;
    resize: none;
    border: none;
    outline: none;
    font-size: 16px;
    font-family:'Courier New', Courier, monospace;
    background: transparent;
}



/* sticker */
/* sticker */
/* sticker */

/* sticker sidebar overlay */
.sticker-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* sticker sidebar */
.sticker-sidebar {
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 15px 5px;
    margin-top: 10px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    overflow: hidden;
}

/* sticker title*/
.sticker-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: rgb(130, 67, 7);
    font-family: 'Courier New', Courier, monospace;
    writing-mode: horizontal-tb; /* horizontal text arrangement */
    text-orientation: mixed;
}

/* sticker container */
.sticker-container-area {
    flex: 1;
    padding: 10px 10px 20px 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d28e5e #f8e5c9;

    /* WebKit (Chrome, Safari, Edge) */
    &::-webkit-scrollbar {
        width: 8px;
    }
    
    &::-webkit-scrollbar-track {
        background: #f8e5c9;
        border-radius: 4px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #d28e5e;
        border-radius: 4px;
    }
    
    &::-webkit-scrollbar-thumb:hover {
        background: #af6b3a;
    }
}

.sticker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: visible;
    align-items: center;
    flex-grow: 1;
    padding-bottom: 10px;
}

.sticker-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sticker-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
}

.sticker-name {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    color: rgb(130, 67, 7);
    font-size: 12px;
}

.sticker-sidebar-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row-reverse;
}

.sticker-categories {
    width: 50px;
    background: #f8e5c9;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #8c4e21;
}

.category-item {
    padding: 12px 8px;
    margin: 5px 0;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    color: rgb(130, 67, 7);
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.category-item:hover {
    background: #ffaf60;
    transform: rotate(180deg) translateY(-2px);
}

.category-item.active {
    background: #af6b3a;
    color: #f8f2cc;
    font-weight: bold;
}

/* single sticker item */
.sticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition: all 0.2s ease;
    flex: 1;
}

.sticker-item:active {
    cursor: grabbing;
}

.sticker-item:hover {
    background: #ffaf60;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.sticker-created {
    position: fixed;
    width: 100px;
    height: 100px;
    cursor: grab;
    user-select: none;
    z-index: 1000;
}


/* selection stuff */
/* selection stuff */
.selection-container {
    position: absolute;
    pointer-events: none;
}

.selection-box {
    position: absolute;
    border: 3px dashed #6eb8f1;
    pointer-events: none; /* don't interact with the moouse click */
    z-index: 1001;
}

.control-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4980f6;
    border-radius: 50%; /* let it be a circle */
    border: 2px solid white;
    pointer-events: auto; /* allow interaction with mouse */
    z-index: 1002;
}

.control-point.top-left {
    cursor: nw-resize;
}

.control-point.top-right {
    cursor: ne-resize;
}

.control-point.bottom-left {
    cursor: sw-resize;
}

.control-point.bottom-right {

    cursor: se-resize;
}

/* control point for rotation: line and the point */
.control-point.rotation {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    cursor: grab;
    width: 2px;
    height: 30px;
    background: #6eb8f1;
    border: none;
    border-radius: 0;
    z-index: 1002;
}

.control-point.rotation::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4980f6;
    border: 2px solid white;
    border-radius: 50%;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(-50%);
}

.control-point.rotation:active {
    cursor: grabbing;
}


/* deleting stuff */
/* deleting stuff */
.delete-confirmation {
    position: relative;
    top: 17px;
    left: 6px;
    background: #f8f2cc;
    border-radius: 15px;
    padding: 25px;
    width: 250px;
    height: 150px;
    z-index: 10000001;
    font-family:'Courier New', Courier, monospace;
    color: rgb(130, 67, 7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.delete-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-delete-btn, .cancel-delete-btn {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family:'Courier New', Courier, monospace;
}

.confirm-delete-btn {
    background: #89f1b1;
    border-color: #26b286;
}

.cancel-delete-btn {
    background: #f19289;
    border-color: #df6e6e;
}

.cancel-delete-btn:hover, .confirm-delete-btn:hover {
    transform: translateY(-3px);
}






/* buttons */
/* buttons */
/* buttons */
.note-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.cancel-btn, .create-btn {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family:'Courier New', Courier, monospace;
}

.cancel-btn {
    background: #f19289;
    border-color: #df6e6e;
}

.create-btn {
    background: #89f1b1;
    border-color: #26b286;
}

.cancel-btn:hover, .create-btn:hover {
    transform: translateY(-2px);
}

/* hide control button */
.btn-hide-control {
    position: absolute;
    top: 241px;
    right: 73px;
    background: #f8f2cc;
    color: rgb(130, 67, 7);
    width: 7em;
    height: 2.8em;
    border-radius: 30px;
    border-bottom-left-radius: 5px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 4px 4px 8px #8c4e21;
    font-family:'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-hide-control:hover {
    background: #ffaf60;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-hide-controls:active {
    transform: translateY(-1px) scale(0.95);
}

/* hide all buttons class */
.hide-all-buttons .controlling-bar-stuff,
.hide-all-buttons .btn-hide-control {
    display: none !important;
}

.hide-all-buttons #corkboard {
    cursor: default;
    pointer-events: auto;
    z-index: 10;
}

.hide-all-buttons .selection-container {
    opacity: 0;
    pointer-events: none;
}

.hint-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8f2cc;
    border-radius: 15px;
    padding: 20px 30px;
    width: 280px;
    min-height: 120px;
    z-index: 10000001;
    font-family:'Courier New', Courier, monospace;
    color: rgb(130, 67, 7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 4s ease forwards;
    pointer-events: none;
}

.hint-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

@keyframes fadeInOut {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9); 
    }
    15% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    85% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.9);
    }
}


#corkboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://s21.ax1x.com/2025/09/25/pVIiVdU.jpg') center/cover;
    background-size: cover;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 1; /* this keeps corkboard in background */
}

body {
    margin: 0;
    height: 100vh;
    background-color: rgb(240, 224, 213);
    position: fixed;
    overflow: hidden;
}

/* style for the beian information */
#beian-info {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

#beian-info a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    background-color: rgba(234, 213, 188, 0.8);
    border-radius: 3px;
    display: inline-block;
}

#beian-info a:hover {
    color: #333;
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.9);
}