/* css/styles.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('../images/background.jpg'); /* Optional: Set a background color for the page */
    background-repeat: repeat;
    background-size: initial;
}

.frame {
    width: 90%; /* Adjust as needed */
    max-width: 900px; /* Maximum width for larger screens */
    margin: 20px auto; /* Center the frame and add vertical margin */
    border: 22px solid #8B4513; /* Frame border color (e.g., brown) */
    border-radius: 20px; /* Rounded corners for the frame */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Add a shadow for depth */
    position: relative;
}

.canvas {
    position: relative;
    width: 100%;
    /* Maintain a 3:2 aspect ratio */
    padding-top: 66.6667%; /* (2 / 3) * 100% */
    overflow: hidden;
    background-color: #000; /* Optional: Background color behind the image */

    h2{
        position: relative;
        z-index: 100;
        text-align: center;
    }
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover; /* Adjust to 'contain' if needed */
}

#placeholder{
    display: none;
}

#hotspot {
    position: absolute;
    cursor: pointer;
    /* Initially hidden; will be displayed via JavaScript */
    display: none;
    /* Optional: Visual styling for testing */
    /*background-color: rgba(255, 0, 0, 0.3);*/
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    width: 50%;
    position: relative;
}

#puzzle-modal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px; /* Center the image and add bottom margin */
    border-radius: 10px; /* Optional: add rounded corners */
}

#puzzle-modal iframe{
    max-width: 100%;
    display: block;
    margin: 0 auto 20px; /* Center the image and add bottom margin */
    border-radius: 10px;
    display: none;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
}

/* Sparkle container within the hotspot */
.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual sparkle styles */
.sparkle {
    position: absolute;
    width: 10px; /* Adjust size as needed */
    height: 10px; /* Adjust size as needed */
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    animation: sparkle-animation 2s infinite;
}

/* Keyframes for sparkle animation */
@keyframes sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}