@font-face {
    font-family: "Bugrino-Light";
    src: url("https://guesswho.studio/fonts/BugrinoTrials-Light.otf") format("opentype");
}

@font-face {
    font-family: "Bugrino-Regular";
    src: url("https://guesswho.studio/fonts/BugrinoTrials-Regular.otf") format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

body {
    overflow: hidden;
}

.container {
    background-color: #f8f8f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 20px;
    color: #000;
    font-family: "Bugrino-Light", serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

.main-grid {
    display: grid;
    grid-template-rows: 57px auto auto;
    height: auto;
    width: 100%;
}

.row1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-bar {
    display: grid;
    font-size: 16px;
    grid-template-columns: 1fr 1fr 1fr;
}

.tabs {
    height: 280px;
    display: grid;
    grid-template-columns: 197px 177px auto;
    padding-bottom: 14px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
}

.cell-info {
    padding: 7px;
}

button {
    background: none;
    border: none;
}

.pointer:hover {
    cursor: pointer;
}

.artwork-name-box {
    height: auto;
    display: flex;
    align-items: center;
}

.align-right {
    margin-left: auto;
}

.artwork-name {
    padding: 7px;
}

.artwork-image-box {
    display: flex;
    height: 100%;
    align-items: center;
}

.works {
    height: auto;
}

.work-item-box {
    height: 300px;
    display: grid;
    grid-template-columns: 178px 196px 533fr 512fr;
    border-top: 1px solid #000;
    padding-top: 0;
}

body {
    overflow: auto;
}

.underline {
    text-decoration: underline;
}

#label-all:hover, #label-ill:hover, #label-design:hover {
    cursor: pointer;
}

.notice {
    display: none; /* 默认不显示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 设置高度为100%，以便垂直居中 */
    background-color: rgba(255, 255, 255, 1); /* 使用半透明背景 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    z-index: 1000;
    font: 300 50px "Bugrino-Light";
}

.content {
    display: block;
    height: auto;
}

@media (max-width: 991px) {
    .notice {
        display: flex; /* 在小屏幕上显示 */
    }

    .content {
        display: none; /* 在小屏幕上隐藏内容 */
    }
}

.flip-animation {
    transition: transform 0.2s ease-in-out;
    width: fit-content;
}

.flip-animation:hover {
    transform: scaleX(-1);
}

/*以下是用于image-viewer显示的部分*/
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

#gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8F8F8F80;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-grid {
    display: grid;
    grid-template-rows: auto;
}

.popup-row1, .popup-row2, .popup-row3 {
    display: grid;
}

.popup-row3 {
    grid-template-columns: 1fr 1fr;
}

.popup-row2 {
    position: relative;
}

.popup-hover-overlay {
    position: absolute;
    top: 0; /* 与父容器顶部对齐 */
    left: 0; /* 与父容器左侧对齐 */
    width: 100%; /* 宽度与current-div相同 */
    height: 100%; /* 高度与current-div相同 */
    z-index: 2; /* 层级高于current-div */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#popup-hover-overlay-left:hover {
    cursor: pointer;
}

#popup-hover-overlay-right:hover {
    cursor: pointer;
}

#prev-button {
    justify-self: left;
}

#next-button {
    justify-self: right;
}

#close-gallery {
    justify-self: right;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #000;
    font-family: "Bugrino-Light", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: transform 0.2s ease-in-out;
}

#close-gallery:hover {
    transform: scaleX(-1);
}

#gallery-container {
    text-align: center;
}

#gallery-image {
    max-height: 66vh;
}

button {
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
}

/*image viewer部分结束*/