/*---RIBBIT ROOM STYLES---*/

.content.page {
    margin-top: 8rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    height: 75vh;
    position: relative;
    min-height: 400px;
}

.ribbit-animation {
    position: fixed;
    font-weight: bold;
    pointer-events: none;
    z-index: 9999;
    font-family: inherit;
    letter-spacing: 0.05em;
}

.ribbit-buttons{
    display: flex;
    gap: 1.5rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media screen and (max-width: 500px) {
    .ribbit-buttons{
        max-width: 220px;
    }
}

.ribbit-btn {
    width: 100px;
    height: 100px;
    text-align: center;
    text-wrap: inherit;
    touch-action: manipulation;
}

.ribbit-letter {
    display: inline-block;
    position: relative;
    animation: letterExplode 2s ease forwards;
}

@keyframes letterExplode {
    0% {
        transform: translate(0, 0) scale(0) rotate(var(--initial-rotation));
        opacity: 0;
    }
    10% {
        transform: translate(0, -50px) scale(1) rotate(var(--initial-rotation));
        opacity: 1;
    }
    15% {
        transform: translate(0, 0) scale(1) rotate(var(--initial-rotation));
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0) rotate(var(--rotation));
        opacity: 0;
    }
}

.sound-credits {
    position: absolute;
    bottom: 1rem;
}

.sound-credits p {
    color: var(--text-lighter-color);
}

.sound-credits a {
    color: inherit;
    text-decoration: underline;
}

/* Ambient toggle styles matching wtb-aas pressed button pattern */
.ambient-btn {
    --button-color: var(--spot-color);
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--button-color);
    background-color: unset;
    outline: 2px solid var(--button-color);
    border-radius: .25rem;
    padding: .5rem 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    min-width: 60px;
    touch-action: manipulation;
}

.ambient-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: .25rem;
    outline: 2px solid var(--button-color);
    padding-bottom: .5rem;
}

.ambient-btn.pressed {
    background-color: var(--spot-color);
    color: var(--bg-color);
    transform: translateY(.5rem);
}

.ambient-btn.pressed::after {
    padding-bottom: 0;
}

.ambient-controls {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ambient-controls label {
    font-size: 1.1rem;
    color: var(--text-color);
}