@font-face {
  font-family: 'IBMPlexMono';
  src: url('https://raw.space/fonts/IBMPlexMono-Light.woff2') format('woff2'),
       url('https://raw.space/fonts/IBMPlexMono-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Info overlay styles - Material Design drawer style */
.info-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80%;  /* Only takes up 80% of the screen */
    background-color: #fff;
    z-index: 2000;
    transition: bottom 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.info-overlay.active {
    bottom: 0;
}

/* Drawer handle indicator */
.drawer-handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 4px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 5;
}

.drawer-handle:hover {
    background-color: #bbb;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 20px 20px;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    text-align:left;
}

@media (max-width: 800px) {
    .info-content {
        padding: 30px 15px 15px 15px;
    }
    
    .info-overlay {
        height: 85%; /* Slightly taller on mobile */
    }
}

.info-header {
    position: relative;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
}

.info-body {
    padding: 20px 0;
}

.info-body h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.artwork-meta {
    font-family: 'IBMPlexMono';
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.description {
    font-family: Georgia, serif;
    font-size: 15px;
    margin-top: 14px;
    line-height: 1.6;
    color: #444;
}

.description p {
    margin-bottom: 20px;
}

#info-button {
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* position: fixed; */
    left: 15px;
    z-index: 1000;
    cursor: pointer;
    color: #333;
    font-size: 22px;
}

#info-button:hover {
    opacity: 1;
    transform: scale(1.05);
}
#info-button:visited {
    color:#333;
}

#index-button {
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    cursor: pointer;
    color: #333;
    font-size: 22px;
}

#index-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

#index-button-center {
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: fixed;
    bottom: 15px;
    right: 50%;
    z-index: 1000;
    cursor: pointer;
    color: #333;
    font-size: 22px;
}

#index-button-blog {
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin: 0px auto 20px auto;
    text-align: center;
    cursor: pointer;
    color: #333;
    font-size: 22px;
    display: block;
    width: 100%;
}

#index-button-blog:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Smooth parenthesis animation */
.parenthesis-animation {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    vertical-align: baseline;
}

.parenthesis-left,
.parenthesis-right {
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center;
    vertical-align: baseline;
    align-self: baseline;
}

.parenthesis-content {
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 1;
    transform: scale(1);
    width: 12px; /* Fixed width to prevent layout shifts */
    text-align: center;
    overflow: hidden;
    vertical-align: baseline;
    align-self: baseline;
}

/* Animation states */
.parenthesis-animation.closing .parenthesis-left {
    transform: translateX(3px);
}

.parenthesis-animation.closing .parenthesis-right {
    transform: translateX(-3px);
}

.parenthesis-animation.closing .parenthesis-content {
    opacity: 0;
    transform: scale(0.8);
}

.parenthesis-animation.closed .parenthesis-left {
    transform: translateX(6px);
}

.parenthesis-animation.closed .parenthesis-right {
    transform: translateX(-6px);
}

.parenthesis-animation.closed .parenthesis-content {
    opacity: 0;
    transform: scale(0.6);
}