:root {
    --color-1: rgb(137, 70, 204);

    /* 기본 요소 스타일 */
    --tile-size: 75px;

    /* 알림 요소 스타일 */
    --dot-size: 7px;
}

/** 
 * 컨테이너 스타일 
 * Key-Value 페어
 */
.grid-pair {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 5px;
}

/** 
 * 컨테이너 스타일 
 * table row 쌓기
 */
.grid-table-row {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    padding: 5px;
}

/** 
 * 컨테이너 스타일 
 * table row 쌓기
 */
.grid-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 5px;
}

/** 
 * 컨테이너 스타일 
 * 단순 가로 나열
 */
.flex-row {
    display: flex;
    gap: 10px;
}

/* 테이블 요소 스타일 */
.table-theme-1 {
    gap: 5px;
}

.table-theme-1 > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-theme-1 > * {
    background-color: var(--color-1);
    box-shadow: 4px 4px 3px rgba(0, 0, 0, 0.75);
    border-radius: 5px;

    min-width: var(--tile-size);
    min-height: var(--tile-size);

    color: white;
    font-weight: 1000;
    white-space: pre-wrap;
}

.table-theme-1 > * {
    transition: transform 0.2s ease;
}
.table-theme-1 > *:hover {
    transform: scale(1.03);
}

/* 테이블 요소 스타일 */
.table-theme-2 {
    color: gray;
}
.table-theme-2 > * {
    padding: 10px;
    border-bottom: solid 1px lightgray;
}

/* Bedge UI */
.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    width: fit-content;
}
  
.badge > img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 3px lightgray;
}

/* 깜빡이는 빨간 점 */
.update-dot {
    position: relative;
}
.update-dot::after {
    content: '';
    font-size: var(--dot-size);
    text-align: center;
    color: white;

    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(90%, -50%);

    width: var(--dot-size);
    height: var(--dot-size);
    background: rgb(255, 86, 86);
    border-radius: 50%;
    
    animation: dot-blink 1s step-end infinite;
}

/* 깜빡임 애니메이션 */
@keyframes dot-blink {
    50% {
        opacity: 0;
    }
}
