/* tool.css */
:root {
    --mystic-purple: #2d1b4e;
    --mystic-gold: #c5a059;
    --mystic-black: #0f0a1a;
}

body {
    background-color: var(--mystic-black);
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .font-cinzel {
    font-family: 'Cinzel', serif;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -1;
}

.tool-container {
    max-width: 1000px;
    width: 100%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Pendulum Animation */
.pendulum-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pendulum-string {
    position: absolute;
    top: 0;
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--mystic-gold));
    transform-origin: top center;
}

.pendulum-bob {
    position: absolute;
    bottom: -20px;
    left: -19px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #fdfcfb 0%, var(--mystic-gold) 100%);
    border-radius: 50% 50% 50% 50% / 0% 0% 100% 100%;
    clip-path: polygon(50% 0%, 100% 100%, 50% 85%, 0% 100%);
    box-shadow: 0 0 20px var(--mystic-gold);
}

/* Tool Interface */
.board-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: rgba(45, 27, 78, 0.4);
    border: 2px solid var(--mystic-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.result-display {
    margin-top: 30px;
    padding: 20px 40px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--mystic-gold);
    border-radius: 10px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--mystic-gold);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.result-display.show {
    opacity: 1;
}

.btn-mystic {
    margin-top: 30px;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--mystic-gold);
    color: var(--mystic-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-mystic:hover {
    background: var(--mystic-gold);
    color: var(--mystic-black);
    box-shadow: 0 0 15px var(--mystic-gold);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: rgba(15, 10, 26, 0.95);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    z-index: 100;
}

.bottom-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav a:hover {
    color: var(--mystic-gold);
}

.nav-home {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--mystic-gold);
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 100;
    transition: transform 0.3s;
}

.nav-home:hover {
    transform: scale(1.1);
}

