* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
}

body {
    background-color: #ededed;
    color: #696969;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

/* Header styles */
.header {
    margin-bottom: 2rem;
    color: #666;
    text-align: center;
    width: fit-content;
    margin: 0 auto 2rem;
}

.subtitle {
    font-size: 0.75rem;
    color: #696969;
    letter-spacing: 0.05em;
    font-weight: 300;
    text-align: left;
}

.title {
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: -1.25rem;
    letter-spacing: 0.02em;
    color: #696969;
}

/* Grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 61px);
    grid-template-rows: repeat(4, 61px);
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

/* Circle styles */
.circle {
    width: 61px;
    height: 61px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.white {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: default; /* Makes the cursor appear normal over white circles */
    pointer-events: none; /* Disables all click/hover interactions */
}

.gray {
    background-color: #696969;
    z-index: 20;
}

/* Special styling for gray circles that expand */
.gray.expandable {
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Default expansion (for second and third gray circles) */
.gray.expandable:hover {
    width: 203px;
    border-radius: 30px;
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* Custom expansion for first and fourth gray circles */

.expand-left:hover {
    width: 203px;
    border-radius: 30px;
    transform: translateX(-143px);
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* Link text that appears on hover */
.link-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.gray.expandable:hover .link-text {
    opacity: 1;
}

/* Arrow icon */
.arrow-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gray.expandable:hover .arrow-icon {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(4, 45px);
        grid-template-rows: repeat(4, 45px);
        gap: 8px;
    }
    
    .circle {
        width: 45px;
        height: 45px;
    }
    
    .gray.expandable:hover {
        width: 140px;
    }
    
    .expand-left:hover {
        transform: translateX(-95px);
    }
}

.title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer; /* Add cursor pointer to show it's clickable */
    display: inline-block; /* Makes the entire element clickable */
    position: relative; /* For adding an underline effect */
}

.title-link:hover {
    opacity: 0.8;
}

.title-link:hover::after {
    width: 100%;
}