.title {
    font-weight: normal;
}

#az_place,
#time_place {
    display: none;
}

#place {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 5px;
}

.paint {
    width: 100%;
    cursor: pointer;
    position: relative;
}

@keyframes show-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes scale-out {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0);
    }
}

.paint.scale-in {
    transform: scale(0);
    animation: scale-in 1s ease-in-out forwards;
}

.paint.scale-out {
    transform: scale(1);
    animation: scale-out 1s ease-in-out forwards;
}

.paint.scale-in .paint-backdrop,
.paint.scale-in img,
.paint.scale-out .paint-backdrop,
.paint.scale-out img {
    opacity: 1;
    animation: none;
}


.paint img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    opacity: 0;
    animation: show-up 0.3s ease-in-out forwards;
}

.paint_placeholder {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.placeholder-glow {
    background-color: rgb(233, 233, 233);
    animation: placeholder_animation infinite 1s ease-in-out;
}

@keyframes placeholder_animation {
    0% {
        background-color: rgb(233, 233, 233);
    }

    50% {
        background-color: rgb(233, 233, 233, 0.8);
    }

    100% {
        background-color: rgb(233, 233, 233);
    }
}

.placeholder {
    width: 100%;
    height: 100%;
}

.paint .paint-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4);

    display: flex;
    align-items: flex-end;
    transition: opacity 0.3s;
    font-size: 14px;
    z-index: 2;
    opacity: 0;
    animation: show-up 0.5s ease-in-out forwards;
}

.paint:hover .paint-backdrop {
    opacity: 0;
}

.paint-backdrop-wrapper {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 5px;
    color: white;
}

/* modal */
#modal {
    position: fixed;
    z-index: -1;
    opacity: 0;
    left: 0;
    top: 0;
    width: 99vw;
    height: 99vh;
}

.modal_backdrop {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal_content {
    position: fixed;
    top: 50%;
    left: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.modal_paint {
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
}

.modal_paint img {
    margin: 0 auto;
}
.modal_paint_content{
    padding: 16px;
    padding-top: 38px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    padding: 5px;
    cursor: pointer;
    user-select: none;
    color: rgba(32, 32, 32, 0.4);
}

#sen {
    margin-bottom: 50px;
}

/* a-z filter */
#az_container,
#time_container {
    width: 100%;
    position: relative;
}

#az_target {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100%;
    background: rgb(204, 204, 204, 0.5);
    z-index: -1;
    width: 60px;
    height: 60px;
}

#time_target {
    position: absolute;
    top: 0;
    left: 59%;
    transform: translateX(-50%);
    /* z-index: -1; */
    /* width: 60px; */
    /* height: 60px; */

    background: none;
    border-bottom: 7px solid black;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    bottom: 4px;
    display: block;
    height: 0;
    margin-left: -7px;
    top: auto;
    width: 0;
    z-index: 2;
}

.time_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time_line {
    height: 20px;
    width: 2px;
    background: #ccc;
    text-align: center;
}

#az_wrapper,
#time_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

#az_wrapper::-webkit-scrollbar,
#time_wrapper::-webkit-scrollbar {
    display: none;
}

#az_wrapper div,
#time_wrapper div {
    flex: 0 0 200px;
    width: 60px;
    height: 60px;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

#az_wrapper.dragging,
#time_wrapper.dragging {
    cursor: ew-resize;
}