/* Document Level Styles */
body {
    background-color: black;
    margin: 0;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    text-transform: uppercase;
    font-family: 'VT323', monospace;
    justify-content: center;
}

/* Layout Components */
#sidebarToggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #000000;
    color: gold;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    transition: left 0.3s;
}

#sidebar {
    position: absolute;
    top: 0;
    left: -300px;
    width: 290px; /* width of the sidebar minus 10px for padding */
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 10px;
    transition: left 0.3s;
    overflow-y: auto;
    z-index: 900;
}

#sidebar.open {
    left: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

footer {
    display: none;
    margin-top: 5px;
    text-align: left;
}

footer > div,
footer .btn,
footer a {
    text-align: left;
    display: block; /* This ensures each link appears on a new line */
}

/* Sub-components and Widgets */
.generate-button {
    background-color: gold;
    border: none;
    border-radius: 5px;
    color: black;
    padding: 10px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.generate-button:hover {
    background-color: darkgoldenrod;
}

#kaleidoscopeCanvas {
    z-index: 1;
    max-height: 80vh;
    max-width: 80vw;
    width: auto;
    height: auto;
    margin: auto; /* Centers the canvas */
    display: block;
    border-radius: 50%;
}

#metadataBox, #generateButton {
    margin: 1vh 0; /* Add some margin to separate the elements */
}

#metadataBox {
    margin-top: 10px;
    padding: 1vh; /* Give some space around the text */
    background-color: black;
    font-weight: 100;
    font-family: 'VT323', monospace;
    color: #5c5c5c;
    border: 1px solid #5c5c5c;
}

#metadataBox a {
    color: gold;
    text-decoration: none;
}

#metadataBox a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border: 1px;
    border-color: gold;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none; /* This will remove the underline from the link */
}

.btn-footer {
    display: block;
    margin-top: 10px;
    color: gold;
}

.btn-footer:hover {
    text-decoration: underline;
}

canvas.fade-border {
    border-color: rgba(255, 215, 0, 0.25); /* gold with 50% opacity */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: black;
    opacity: 0;
    transition: opacity 0.5s;
}

body.starry::before {
    opacity: 1;
}

#fullscreenButton {
    background: none;            /* Remove background */
    border: none;                /* Remove borders */
    color: gold;              /* Use inherited color from surrounding content */
    font: inherit;               /* Use inherited font from surrounding content */
    padding: 0;                  /* Remove padding */
    cursor: pointer;             /* Cursor appears as hand, signaling interactivity */
    outline: none;               /* Remove focus outline */
}

#fullscreenButton:hover {
    text-decoration: underline;      /* Remove underline on hover for effect */
    
}


.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}


@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}



canvas {
    margin-top: 20px;
    width: 99vmin !important;
    height: 99vmin !important;
    border-radius: 50%;
    border: 5px solid gold;
    transition: border-color 1.95s; /* Add this line */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    box-sizing: border-box;
}

#loader {
    z-index: 10;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    background-color: gold;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite;
}

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

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

#originalImageLink {
    color: gold;
    text-decoration: none;
}

#originalImageLink:hover {
    text-decoration: underline;
}

/* Keyframes */
@keyframes dotPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}
