*,
*::before,
*::after {
    box-sizing: border-box;
}
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #0a0c10;
    min-height: 100%;
}

body {
    background-color: #0a0c10;
    background: radial-gradient(circle, #1a1d25, #0a0c10);
    color: #e8d8a8;
    font-family: "Fredoka", sans-serif;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.wall {
    display: grid;
    place-items: center;
    padding: 24px;
    height: 100%;
}
.plaque {
    width: 100%;
    max-width: 80vh;
    aspect-ratio: 1;
    border-radius: 18px;
    padding: 16px;
}
svg {
    width: 100%;
    height: 100%;
}
text {
    fill: #e8d8a8;
    font-size: 13px;
    letter-spacing: 1.4px;
}
.grooves {
    transform-origin: 150px 150px;
    animation: spin-intro 2.5s ease-out 1 forwards;
}
.center-label-group {
    cursor: pointer;
}
.center-label-group:active {
    transform: scale(0.98);
    transform-origin: 150px 150px;
}
#record-whole {
    transform-origin: 150px 150px;
}
.rewind {
    animation: rewind-spin .9s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}
@keyframes rewind-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-720deg); }
}
@keyframes spin-intro {
    0% {
        transform: rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg);
        opacity: 1;
    }
}
a text {
    cursor: pointer;
    transition: fill 260ms ease, opacity 260ms ease;
}
@media (hover: hover) {
    .grooves a:hover text {
        fill: #fff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }

    .grooves:hover a:not(:hover) {
        opacity: 0.3;
        filter: blur(1px);
    }
}
.grooves a {
    transform-origin: 150px 150px;
}
.grooves a.active text {
    fill: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.center-label {
    fill: #e8d8a8;
}
.center-text {
    fill: #0f1115;
    font-size: 6px;
    text-anchor: middle;
    font-weight: bold;
}
.main-menu {
    position: fixed;
    left: 5%;
    bottom: 5%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-align: left;
    z-index: 100;
}
.menu-item {
    color: #e8d8a8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: "Fredoka", sans-serif;
}
.menu-item:hover {
    color: #fff;
}
.social-links {
    position: fixed;
    right: 5%;
    bottom: 5%;
    display: flex;
    gap: 15px;
    z-index: 400;
    pointer-events: auto;
}
.social-links a {
    color: #e8d8a8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
    pointer-events: auto;
}
.social-links a:hover {
    color: #fff;
}
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #e8d8a8;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.98);
    z-index: 300;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.overlay-content {
    max-width: 600px;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.5s ease forwards;
}
.overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}
.overlay h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #e8d8a8;
}
.overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* BBC Introducing links in About overlay */
.overlay-content p a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
}
.overlay-content p a:visited {
    color: #fff;
}
.overlay-content p a:hover {
    color: #e8d8a8;
    border-color: #e8d8a8;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.close-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #e8d8a8;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 310;
}
.close-overlay:hover {
    transform: rotate(90deg);
    color: #fff;
}

/* Contact link - specific styling to override general link styles */
a.contact-link {
    display: inline-block;
    color: #e8d8a8;
    font-size: 1.5rem;
    text-decoration: none;
    border-bottom: 2px solid #e8d8a8;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    margin-top: 20px;
}
a.contact-link:hover {
    color: #fff;
    border-color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .wall {
        padding: 16px;
        overflow: hidden;
    }
    .plaque {
        max-width: none;
        width: 160vw;
        transform: translateX(-50%);
    }
    .hamburger-btn {
        display: block;
    }
    .main-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 12, 16, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 40px;
        z-index: 150;
    }
    .main-menu.active {
        display: flex;
    }
    .menu-item {
        font-size: 2rem;
    }
    .social-links {
        left: 50%;
        bottom: 20px;
        right: auto;
        transform: translateX(-50%);
        z-index: 400;
    }
}