body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #000000;
}

.title-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.2rem 0;
    background: #ffffff;
    pointer-events: none;
    z-index: 10;
}

.title {
    font-size: 80pt;
    font-weight: bold;
    animation-name: animation;
    animation-timeline: scroll();
}

@keyframes animation {
0% {
    background-color: rgb(255, 255, 255);
    top: 0%;
    font-size: 100pt;
}
100% {
    background-color: white;
    top: 0%;
    font-size: 25pt;
}
}

@keyframes fade-background {
    
    0% {
        background: rgb(0, 0, 0);
    }
    100% {
        background: white;
    }
}

.listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 8rem;
}

.listing-item {
    border: 2px solid #000;
    height: 280px;
    background: #fff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.listing-item .image-placeholder {
    width: 100%;
    height: 70%;
    background: #e3e3e3;
    border-bottom: 2px solid #000;
}

.listing-item .listing-text {
    padding: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
}

.listing-item .item-name {
    font-weight: bold;
    line-height: 1.2;
}

.listing-item .item-condition {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.2;
}

.listing-item .item-price {
    font-weight: normal;
    line-height: 1.2;
}

.listing-item:hover {
    background: #ecebeb;
}

input[type="checkbox"] {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    position: relative;
    display: flex;
    padding: 2rem;
    overflow-y: auto;
}

.modal-detail {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.modal-image {
    flex: 0 0 50%;
    background: #ffffff00;
    border: 2px solid #000;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-info .item-name {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.modal-info .item-condition {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.3;
}

.modal-info .item-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-info .item-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #000;
}

input[type="checkbox"]:checked ~ .modal {
    display: flex;
}

