

#home-page {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the button and elements */
    text-align: center; /* Centers the text lines */
    justify-content: center;
}

.grid {
    /* Use Flexbox to center the grid-container */
    display: flex;
    margin: 0; /* Remove default browser margins */
    flex-direction: column;
    align-items: center; /* Horizontally centers the grid-container */
    text-align: center; /* Centers the text in the <h5> and <p> tags below it */
}


main.container {
    padding-bottom: 250px;
}
.grid-container {
    display: inline-grid;
    grid-template-columns: 0.25fr 0.25fr 2fr;
    box-shadow: var(--pico-card-box-shadow);
    border-radius: var(--pico-border-radius);
    padding: 0 1em;
}


@media (max-width: 767px) {
    .grid-container {
        width: 95%; /* Takes up 95% of the screen width */
        margin: 0 auto; /* Centers the container */
        padding: 0 10px; /* Optional: small internal padding */
    }
}
@media (min-width: 768px) {
    .grid-container {
        width: 600px; /* Set your desired fixed width */
        margin-left: auto;
        margin-right: auto;
    }
}

.grid-item {
    /* Optional: Add styling for visibility and appearance */
    text-align: center;
}

/* 1. Define the subtle strobe animation */
@keyframes light-strobe {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 60%;
    }
    /* Slight dip for a "light" effect */
}

@media (prefers-reduced-motion: reduce) {
    .divider-icon i {
        animation-duration: 2s !important;
        animation-iteration-count: infinite !important;
    }
}

.divider-icon {
    color: var(--pico-primary);
    /* Prevent the icon itself from growing or shrinking with flex rules */
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.divider-icon i {
    animation: light-strobe 2s infinite;
    display: inline-block;
}

.line {
    position: relative;
}

.line::after {
    content: "";
    position: absolute;
    top: 50%; /* Move to the vertical middle */
    left: 50%;
    width: 2px; /* Span the full width of the item */
    height: 100%; /* Thickness of the line */
    background: var(--pico-primary); /* Line color */
    transform: translate(-50%, -50%); 
    z-index: -1; /* Use -1 to put it behind text, 1 to put it over */
}

.text {
    text-align:left;
}
.text span {
    display: inline;
    padding: 0.2em;
    border: var(--pico-primary);
    border-radius: 5px;
}

.grid-item:nth-child(8)::after {
    height: 50%;
    transform: translate(-50%, 0);
}

.grid-item:nth-last-child(8)::after {
    height: 50%;
    top: 0px;
}

.before-text {
    padding-bottom:1em;
}

.after-text {
    padding-top:1em;
}

#pinned-section {
    position: fixed;
    bottom: 0; /* Aligns to the bottom edge */
    left: 0; /* Aligns to the left edge */
    width: 100%; /* Spans the full width of the screen */
    z-index: 1000; /* Ensures it stays on top of other content */
    /* Add any Pico styles you need, like padding or background color */
    padding: 1rem;
    background-color: var(--pico-background-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1)
}

.pending-fact {
    width: fit-content;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pending-fact {
        width: 600px; /* Set your desired fixed width */
        margin-left: auto;
        margin-right: auto;
    }
}
.hidden {
    visibility: hidden;
    /* ignore screen readers */
}

.centered {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically (if the div has height) */
    width: 100%; /* Ensures the div spans the full width of the pinned section */
}

#open-score-modal-button {
    width: auto; /* Prevents the button from stretching to full width */
    margin: 0; /* Removes any default Pico margins that might cause offset */
}

.left-button-spacing {
    margin-left: 10px;
}

#first-hint-section {
    font-size: 0.8em;
    text-align: center;
    padding-bottom:1em;
}