@font-face {
    font-family: 'Unica';
    src: url('font/unica-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Unica';
    src: url('font/unica-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none; /* Prevent text selection globally */
    -webkit-tap-highlight-color: transparent;
}

body, button {
    font-family: 'Unica', sans-serif;
    font-size: 16px;
    color: black;
}

button {
    cursor: pointer;
    border: none;
}

button:focus {
    outline: none;
}

a {
    all: unset;
}

.action-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    width: 100%;
    cursor: default;
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background-color: transparent;
    text-transform: lowercase;
    cursor: pointer;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100vh;
    cursor: none; /* Hide default cursor */
}

@supports (height: 100dvh) {
    .canvas-container {
        height: 100dvh;
    }
}

/* Custom cursor styling */
.custom-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: black;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100; /* Ensure custom cursor is on top of everything */
}

@media (max-width: 768px) {
    .custom-cursor {
        visibility: hidden; /* Hide custom cursor on mobile */
    }
}

.color-circle {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 1.25, 0.5, 1); /* Smooth spring animation */
}

.color-circle:hover {
    transform: scale(1.15); /* Increase size by 15% when hovered */
}

/* Selected color styling */
input[type="radio"]:checked + label .color-circle {
    
}

input[type="radio"]:checked + label .color-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; /* Same size as custom cursor */
    height: 12px; /* Same size as custom cursor */
    border-radius: 50%;
    background-color: white;
}

.color-picker {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 769px) {
    .color-picker {
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .color-picker {
        position: absolute;
        top: 24px;
        width: 100%;
    }
}

.color-picker-colors label {
    cursor: pointer;
}

.color-picker-colors {
    display: flex;
    gap: 8px;
    flex-direction: row;
    justify-content: center;
}

@media (min-width: 769px) {
    .color-picker-colors {
        flex-direction: column;
        gap: 2px;
    }
}

.color-picker-description {
    position: absolute;
    top: 54px;
    left: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out; /* Adjust the duration and timing function as needed */
    white-space: nowrap;
}

@media (min-width: 769px) {
    .color-picker-description {
        top: 24px;
    }
}

#colorPickerDescriptionColor {
    transition: color 0.1s ease-in-out; /* Add transition for color attribute */
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    z-index: 1000;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    z-index: 1001;
    height: 300px;
    width: 300px;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-buttons .link-button {
    white-space: nowrap;
}

#modalMessage {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-message {
    text-align: center;
    width: 210px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#spinner {
    display: none;
    margin-top: -16px;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

.dot {
    opacity: 0;
    animation: dot-blink 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.25s;
}

.dot:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes dot-blink {
    0%, 100% {
        opacity: 0;
    }
    25%, 50% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
}

.black {
    color: #000000;
}

.darkblue {
    color: #3D5CAA;
}

.green {
    color: #72C05C;
}

.lightblue {
    color: #47C3D2;
}

.pink {
    color: #F8B4BD;
}

.red {
    color: #EF3E32;
}

.orange {
    color: #F68C4F;
}

.yellow {
    color: #FFC549;
}

.purple {
    color: #A465A9;
}

.visuallyHiddenDecorator {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1 -1; 
    padding: 0 0;
    border-width: 0;
    clip-path: 'inset(100%)';
    clip: 'rect(0 0 0 0)';
    overflow: 'hidden';
}
