body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #ffffff;
}

.links {
    position: absolute;
    display: flex;
    flex-direction: column;
    font-style: bold;
    top: 60px;
    left: 35px;
    z-index: 4;
}

.third-links {
    display: none;
    flex-direction: column;
    margin: 10px 0 10px 30px;
    z-index: 4;
}

.link {
    margin-top: 4px;
    opacity: 0;
    transition: opacity 1s, transform 0.1s ease-out;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    text-decoration: none;
    font-size: 12px;
    color: #000000;
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.bold-bracket {
    font-weight: 900;
}

.third-link {
    margin-top: 7px;
    opacity: 0;
    transition: opacity 0.5s, transform 0.1s ease-out;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    text-decoration: none;
    font-size: 10px;
    color: #8a8a8a;
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.link:hover, .third-link:hover {
    z-index: 4;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    grid-auto-rows: 120px;
    grid-gap: 80px; 
    padding: 70px 60px 150px 150px; 
    box-sizing: border-box;
    width: calc(100vw - 450px);
    margin-left: 450px; 
    height: 100vh; 
    overflow-y: auto; 
    position: relative; 
    top: 0; 
    z-index: 1 !important;
}

.img-container {
    position: relative;
    text-align: center;
    z-index: 1 !important;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100%);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.image-grid img {
    width: 120px;
    height: auto;
    max-height: 200px; 
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;  
    transition: transform 0.3s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
    z-index: 2 !important;
}

.image-grid img.bounce-in {
    animation: bounceIn 0.8s forwards;
}

.image-grid img:hover {
    transform: scale(1.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
}


.hover-border {
    transform: scale(1.3) !important;
    border: 2px solid transparent; 
    outline: 3px solid rgb(255, 171, 53); 
    outline-offset: 8px; 
    box-shadow: 0 0 0 4px rgb(255, 188, 245), 0 0 0 8px linear-gradient(45deg, #FFBCF5, #FFC0CB);
    z-index: 1 !important;

}



.caption {
    margin-top: 10px;
    color: #7b7b7b;
    transition: opacity 0.5s, transform 0.1s ease-out;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    font-size: 10px;
    z-index: 1 !important;
}


@media (max-width: 400px) {
    .image-grid {
        width: 100%; 
        grid-template-columns: 1fr; 
        position: static;
        margin-left: 0;
    }
}

.initial-image-overlay {
    top: 30px;
    left: 200px;
    position: fixed;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1500;
    overflow: hidden;
    cursor: move;
    font-family: "Courier New", Courier, monospace;
    animation: fadeInBounce 0.6s ease-in-out;
}

.initial-overlay-image {
    width: 600px;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: contain;
    z-index: 1600;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.image-overlay {
    position: fixed;
    top: 50px;
    left: 100px;
    width: 60%; 
    height: 60%; 
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    z-index: 1500 !important;
    overflow: hidden;
    cursor: pointer; 
    font-family: "Courier New", Courier, monospace;
}

.image-overlay-mobile {
    position: fixed;
    top: 50px;
    left: 100px;
    width: 60%; 
    height: 70%;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    cursor: pointer; 
    font-family: "Courier New", Courier, monospace;
}

.image-overlay.fadeInBounce {
    animation: fadeInBounce 0.6s ease-in-out;
}

.image-overlay.visible {
    opacity: 1;
}

.overlay-header {
    background: linear-gradient(to bottom, rgba(146, 146, 146, 0.21), rgba(220, 220, 220, 0.532));
    border-bottom: 1px solid #bbb;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;  
    position: relative;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 1500;
}

.overlay-header-iframe {
    background: linear-gradient(to top, rgba(255, 112, 217, 0.285), rgba(115, 0, 153, 0.364));
    border-bottom: 1px solid #bbb;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;  
    position: relative;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 1500;
}

.overlay-header-intro {
    background: rgba(218, 218, 218, 0.48); 
    border-bottom: 1px solid #bbb;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;  
    position: relative;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 1500;
}

.overlay-title-artist {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    font-weight: normal; 
    color: #3f3f3f;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    font-size: 12px;
}

.overlay-title-artist span {
    margin: 0 5px;
}

.overlay-close {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    position: absolute;
    right: 10px;
}

.overlay-close:hover {
    color: #000;
}


.overlay-content {
    display: flex;
    height: 100%;
    background-color: white;
}

.overlay-image-container {
    flex: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    overflow-y: auto; 
}

.overlay-image {
    width: 100%; 
    margin-bottom: 10px; 
}

.overlay-description {
    flex: 1;
    padding: 10px;
    border-left: .9px solid #ccc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666666;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    font-size: 12px;
}

.artist-name {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    color: #666666;
    font-family: 'consolas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, serif;
    font-size: 12px;
}

.description-text {
    font-size: 12px;
    text-align: left;
    padding: 20px;
    width: 100%;
    margin-top: 10px; 
}

.overlay-resizable-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    bottom: 0;
    right: 0;
    cursor: se-resize;
}

.overlay-iframe-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(155, 60, 149, 0.567);
    backdrop-filter: blur(3px); 
    -webkit-backdrop-filter: blur(3px); 
}

.overlay-iframe-content {
    display: flex;
    height: 100%;
    align-items: center;
}

.overlay-iframe {
    border: none;
    display: block;
}

.overlay-image-container canvas {
    display: block;
    width: 100%;
    height: auto;
    margin: 0; 
    padding: 0; 
}

.overlay-image-container a {
    display: block;
    margin: 0; 
    padding: 0;
}

.background-image {
    position: relative;
    z-index: -1;
    opacity: 1;
    transition: transform 1s ease, opacity 1s ease;
    transform: translateY(100%); /* Start off-screen below */
}

/*speech bubbble fix*/
.speech-bubble {
    position: absolute;
    width: 300px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    box-shadow: 100px 100px 100px rgba(0, 0, 0, 0.26);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1700 !important;
    opacity: 0;
    transition: opacity 1s ease;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    top: 10px; 
    right: -20px; 
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(255, 255, 255);
}

.speech-bubble-mobile {
    position: absolute;
    width: 300px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    box-shadow: 100px 100px 100px rgba(0, 0, 0, 0.26);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 1s ease;
}

.speech-bubble-mobile:after {
    content: '';
    position: absolute;
    bottom: 10px; 
    right: -20px; 
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(255, 255, 255);
}