.container {
    max-width: 100%;
    margin: 0 auto;
    grid-template-columns: none;
    
}

.main-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    box-shadow: none;
    overflow: unset;
    border-radius: 0;
    padding: 0;
    
}

.edit-btn {
    background-color: #cc2e2e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #cf4545;
}

.game-item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* min-width: 250px; */
    overflow: hidden;
    height: 300px;
    position: relative;
    justify-content: center;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}


.toast {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff3535;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0; /* 처음에는 투명하게 만듭니다 */
    transition: opacity 0.5s ease-in-out; /* 부드러운 효과를 위해 트랜지션을 추가합니다 */
    font-weight: bold;
    white-space: nowrap;
    display: none;
}

/* 알림이 나타날 때 적용할 클래스 */
.toast.show {
    opacity: 1; /* 투명도를 1로 만들어 보이게 합니다 */
    display: block;
}

.thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2등분 */
    width: 100%;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.meta-main {
    flex: 1;  /* 남은 공간 다 차지 */
    min-width: 0; /* 텍스트 넘칠 때 ellipsis 적용 가능 */
}

.meta h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    font-size: 1.1rem;
}

.meta-item,.author{
    display: flex;
    gap: 5px;
    color: #606060;
    font-size: 14px;
}

.share {
    display: flex;
    justify-content: center; /* Center the button */
    z-index: 1;
    flex-shrink: 0;
}

.share-btn {
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #27ae60; /* Darker green on hover */
}

.share-btn:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Slightly stronger shadow on focus */
}


.add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .main-container {
        padding: 5px;
    }
}