@import "https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css";
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");
@import "https://unpkg.com/cal-heatmap/dist/cal-heatmap.css";

:root {
    --primary: #f4ea9f;
    --secondary: #2f577f;
}

/* Animation border green that disappear after 1s */
@keyframes borderGreen {
  0% {
    border: 1em solid #52e752;
  }
  100% {
    border: 1em solid transparent;
  }
}

.invisibleBorder {
    border: 1em solid transparent;
}
/* class that use the animation */
.borderGreen {
  animation: borderGreen 2s;
}

.card-title a {
    text-decoration: none;
}

.outline-menu-link {
    border-radius: 100px;
    font-size: small;
    color: var(--bs-dark-text-emphasis);
    border-color: var(--bs-dark-text-emphasis);
}

.no-border-last-child:last-child {
    border: none;
}

.app-bg-secondary {
    background-color: var(--secondary);
}

.pointer-cursor {
    cursor: pointer;
}

.yellow-shadow {
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
}

.auto-hide {
    animation: hideAnimation 6s forwards;
    animation-delay: 2s;
}

.auto-hide::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    animation: borderAnimation 6s forwards;
    animation-delay: 2s;
}

@keyframes hideAnimation {
    100% {
        display: none;
    }
}

@keyframes borderAnimation {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
        display: none;
    }
}

svg.animate {
    width : 2em;
    height: 2em;
}

svg.animate path {
    animation: dash 0.75s linear both;
    animation-delay: 0.5s;
}

@keyframes dash {
    0% { stroke-dashoffset: 210; }
    75% { stroke-dashoffset: -220; }
    100% { stroke-dashoffset: -205; }
}

.book-progress-bar {
    --bs-progress-height: 0.4rem;
    --bs-progress-bar-bg: var(--primary);
    --bs-progress-bg: rgba(0, 0, 0, 0.4);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.book-progress-bar {
    .completed {
        background-color: #52e752;
    }
}

canvas.drawing, canvas.drawingBuffer {
    position: absolute;
    left: 0;
    top: 0;
}

#liveCamera {
    video {
        max-width: 100%;
        object-fit: cover;
        aspect-ratio: 5/2;
    }
    canvas {
        max-width: 100%;
    }
}

.christmas-button {
    animation: christmasGlow 3s ease-in-out infinite;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
}

.christmas-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: christmasShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.christmas-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(118, 225, 118, 0.6), 0 0 30px rgba(241, 92, 92, 0.4);
}

@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(118, 225, 118, 0.4);
        border-color: #76e176;
    }
    33% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 15px rgba(241, 92, 92, 0.5);
        border-color: #f15c5c;
    }
    66% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 215, 0, 0.4);
        border-color: #ffd700;
    }
}

@keyframes christmasShimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}
