body {
    font-family: Arial, sans-serif;
    margin: 50px;
    background-image: url('bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
    background-attachment: fixed;
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: clamp(0px, 0.5vw, 10px);
    height: calc(100vh - 130px);
    width: clamp(80vw, 90vw, 95vw);
    max-width: calc(100vw - 100px);
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.grid-item {
    font-weight: bold;
    background-size: 100%;
    background-image: url('bubble.png');
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    box-shadow: none;
    transition: transform 0.2s;
    word-break: break-all;
    font-size: clamp(12px, 2vw, 24px);
    color: white;
    cursor: pointer;
    opacity: 1;
    aspect-ratio: 1 / 1;
    width: clamp(75px, 10vw, 100px);
    height: clamp(75px, 10vw, 100px);
    margin: 0 auto;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item.hidden {
    animation: fadeTo10Percent 0.5s forwards;
}

.grid-item.restoring {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeTo10Percent {
    to {
        opacity: 0.1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}