@media screen and (max-width: 200px) {
    .music {
        display: none;
    }
    .logo {
        width: 95%;
    }
}

body {
    background-image: url('../img/Math-01.gif');
}

.logo {
    animation: jrjButtonGlowPulse 2.6s ease-in-out infinite;
    filter:
        drop-shadow(0 0 6px rgba(154, 219, 85, 0.72))
        drop-shadow(0 0 14px rgba(154, 219, 85, 0.52));
    transition: filter 0.12s ease, transform 0.12s ease;
}

.menu-home-link:hover .logo,
.menu-home-link:focus-visible .logo {
    filter:
        invert(1)
        hue-rotate(180deg)
        drop-shadow(0 0 8px rgba(154, 219, 85, 0.92))
        drop-shadow(0 0 18px rgba(154, 219, 85, 0.7));
    transform: translateY(-1px);
}

@keyframes jrjButtonGlowPulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 5px rgba(154, 219, 85, 0.62))
            drop-shadow(0 0 12px rgba(154, 219, 85, 0.44));
    }
    50% {
        filter:
            drop-shadow(0 0 12px rgba(154, 219, 85, 1))
            drop-shadow(0 0 28px rgba(154, 219, 85, 0.82));
    }
}

table td img {
    width: 220px !important;
    max-width: 92%;
    height: auto;
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-home-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-home-arrow {
    color: beige;
    font-size: 26px;
    text-decoration: none;
    text-shadow: 1px 1px 0 #000;
}

.menu-nav-shell {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 5px outset beige;
    background-color: beige;
    background-image: url('../img/Stones-Marble4.jpg');
    background-position: center;
    background-size: auto;
    background-repeat: repeat;
    box-sizing: border-box;
}

.menu-nav-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: transparent;
}

.menu-nav-cell {
    position: relative;
    text-align: center;
    vertical-align: middle;
    padding: 4px 0;
    background: transparent;
}

.menu-nav-table tr:last-child .menu-nav-cell {
    padding-top: 7px;
    padding-bottom: 1px;
}

.menu-nav-cell a img {
    transition: filter 0.12s ease;
}

.menu-nav-cell a:hover img,
.menu-nav-cell a:focus-visible img {
    filter: invert(1) hue-rotate(180deg);
}

.menu-nav-table tr:not(:last-child) .menu-nav-cell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 6px;
    background: linear-gradient(
        to bottom,
        rgba(255, 245, 220, 0.55) 0,
        rgba(171, 134, 73, 0.2) 50%,
        rgba(86, 54, 0, 0.34) 50%,
        rgba(52, 31, 0, 0.14) 100%
    );
    pointer-events: none;
}

.aggregatron-wrap {
    text-align: center;
    margin: 8px 0;
}

.aggregatron-menu-link {
    position: relative;
    display: block;
    width: 120px;
    margin: 0 auto;
    line-height: 0;
}

.aggregatron-menu-logo {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.aggregatron-menu-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    mix-blend-mode: normal;
    filter: saturate(2.2) contrast(1.35) brightness(1.2);
    background: linear-gradient(90deg, #ff4fd8, #4fe3ff, #fff84f);
    background-size: 220% 220%;
    animation: aggregatronGradientFlow 1.8s linear infinite;
    -webkit-mask-image: url('../img/aggregatron.png');
    mask-image: url('../img/aggregatron.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left top;
    mask-position: left top;
}

@keyframes aggregatronGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.webrings {
    border: 5px outset beige;
    background-image: url('../img/Stones-Marble4.jpg');
    padding: 2px 8px;
    margin: 10px 0;
    text-align: center;
}

.webrings-title {
    margin: 0;
    font-weight: bold;
    color: beige;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 0.08em;
    line-height: 1;
}

.webrings-toggle:hover .webrings-title,
.webrings-toggle:focus-visible .webrings-title {
    color: #9adb55;
    text-shadow: 0 0 6px rgba(154, 219, 85, 0.72), 1px 1px 0 #000;
}

.webrings-toggle {
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.webrings-toggle::-webkit-details-marker {
    display: none;
}

.webrings-toggle::before {
    content: '[+] ';
}

.webrings[open] .webrings-toggle::before {
    content: '[-] ';
}

.webring-card {
    margin: 6px auto;
    padding: 6px 8px;
    max-width: 260px;
    background: rgba(245, 245, 220, 0.92);
    border: 1px dashed #5a3d00;
    color: #201400;
    font-size: 12px;
    line-height: 1.35;
}

.webring-card a {
    color: #0037a6;
    text-decoration: underline;
}

.webring-card--accent {
    border-color: #8ac63f;
}

.webring-label {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: #674100;
}

.webring-inline {
    display: inline-block;
    margin: 0 2px;
}
.menu-bg-link {
    display: inline-block;
}

.menu-cursor-pointer { cursor: pointer; }
.menu-cursor-help { cursor: help; }
.menu-cursor-wait { cursor: wait; }
.menu-cursor-crosshair { cursor: crosshair; }
.menu-cursor-not-allowed { cursor: not-allowed; }
.menu-cursor-progress { cursor: progress; }
.menu-cursor-no-drop { cursor: no-drop; }

.menu-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
body {
    padding-bottom: 28px;
    box-sizing: border-box;
}

.menu-copyright {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 3px 8px 4px;
    text-align: center;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.08em;
    color: beige;
    text-shadow: 1px 1px 0 #000;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(245, 245, 220, 0.35);
}
.menu-copyright a,
.menu-copyright a:visited,
.menu-copyright a:hover,
.menu-copyright a:focus-visible {
    color: inherit;
    text-decoration: none;
}