.glowing-letter {
    color: red !important;
    transition: color 4s cubic-bezier(0, 0, 0.2, 1);
}
body {
    background-color: #000;
    color: #bbbbbb;
    font-family: 'Pirata One', cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.ouija-board {
  width: 800px;
  height: 500px;
  background-image: url('images/stardust.jpeg');
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  border: 20px solid #000000;
  border-radius: 55px;
  position: relative;
    overflow: hidden; /* Clip glass highlights to rounded edges */
  flex-shrink: 0; /* Prevent board from shrinking */

  /* Outer glow */
  box-shadow:
    0 0 5px #ffffff49,
    0 0 10px #ffffff6b,
    0 0 30px #8233e95c,

    /* Inner glow */
    inset 0 0 2px #cfcfcf,
    inset 0 0 75px #e0f4fd25;
}

/* Glass overlay sitting above board contents (except the planchette) */
.ouija-board::after {
    content: "";
    position: absolute;
    inset: 0; /* cover entire board area */
    border-radius: 35px;
    pointer-events: none; /* don't block clicks */
    /* Subtle glass tint and soft reflections */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 38%, rgba(255,255,255,0.00) 60%),
        radial-gradient(120% 80% at 20% -10%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.00) 60%),
        radial-gradient(120% 80% at 80% 110%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.00) 60%);
    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,0.18), /* rim highlight */
        inset 0 12px 30px rgba(255,255,255,0.06), /* soft inner sheen */
        0 8px 20px rgba(0,0,0,0.35); /* subtle lifted depth */
    z-index: 7; /* above decorations (z=5) but below planchette (z=10) */
}

/* Angled glare streak for realism */
.ouija-board::before {
    content: "";
    position: absolute;
    top: -12%;
    left: -10%;
    width: 130%;
    height: 42%;
    transform: rotate(-10deg);
    border-radius: 35px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35) 0%,
        rgba(255,255,255,0.18) 32%,
        rgba(255,255,255,0.06) 60%,
        rgba(255,255,255,0.00) 100%
    );
    filter: blur(1px);
    opacity: 0.25;
    z-index: 8; /* slightly above the base glass layer */
}

.board-title {
    font-size: 55px;
    text-align: center;
    margin-top: 11px;
    color: #ffffff;


}

.letters, .options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.letter, .option {
    font-size: 29px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid #262626;
    border-radius: 10px;
    background-color: #000000;
    box-shadow: -1px 2px .2px #bdbdbd;
    transition: color 3.5s, background-color 0.3s ease, box-shadow 0.3s ease;
}


/* Removed .letter.planchette-hovered, .option.planchette-hovered */
/*.options are the yes no buttons*/
.options {
    margin-top: 40px;
}

.option {
    width: 100px;
}

#planchette-wrapper {
    width: 90px;
    height: 78px; /* Equilateral height */
    position: absolute;
    top: 300px;
    left: 355px;
    transition: all 2s ease-in-out;
    z-index: 4;
}



#planchette-body {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -1px;
    left: -4px;  /* Adjusted to center the planchette */
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%); /* Flipped Triangle shape */
    background-color:rgba(181, 181, 181, 0.33); /* Solid translucent color */
    border: 3px solid rgb(255, 255, 255);
    z-index: 4;
}

#planchette-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background-color:rgb(255, 255, 255);
    transform-origin: top left;
    transform: rotate(60deg);
    z-index: 4;
}

#planchette-body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background-color: rgb(255, 255, 255);
    transform-origin: top right;
    transform: rotate(-60deg);
    z-index: 4;
}



#divinated-word-container {
    text-align: center;
    margin-top: 20px;
    height: 58px; /* Increased height for padding */
    padding-bottom: 30px; /* Added padding */
}

#divinated-word {
    font-size: 55px;
    letter-spacing: 2px;
    color: rgb(255, 0, 0);
    text-shadow: 0 0 0px #8b8b8b, 3px 2px 2px #000000;
    -webkit-text-stroke:1px rgb(180, 180, 180);
}

#skull-decoration {
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: 200px;
    height: 200px;
    z-index: 5;
}

#goat-decoration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 200px;
    height: 200px;
    z-index: 5;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    body {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        justify-content: center;
        padding: 10px;
        padding-bottom: 0px;
    }

    .ouija-board {
        width: calc(100vw - 30px);
        height: auto;
        padding: 5px 10px;
        margin-bottom: 40px;
       
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #divinated-word {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .ouija-board {
        padding: 4px 8px;
        border-width: 5px;
        border-radius: 40px;
    }

    .letters, .options {
        gap: 3px;
    }

    .letter, .option {
        font-size: 14px;
        width: 26px;
        height: 26px;
    }

    .option {
        width: 60px;
    }

    .board-title {
        font-size: 30px;
    }

    #divinated-word {
        font-size: 30px;
    }

    #planchette-wrapper {
        width: 50px;
        height: 43px;
        left: calc(50% - 25px);
    }

    #skull-decoration, #goat-decoration {
        width: 80px;
        height: 80px;
    }
    .decorations-container {
        margin-top: 5px;
        margin-bottom: 3px;
    }
}

/* Extra small screens - prevent letter wrapping */
@media (max-width: 400px) {
    .ouija-board {
        padding: 3px 6px;
    }

    .letters, .options {
        gap: 2px;
    }

    .letter, .option {
        font-size: 15px;
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .option {
        width: 55px;
    }

    .board-title {
        font-size: 26px;
        margin-top: 5px;
    }

    #divinated-word {
        font-size: 35px;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 15px 20px;
    margin-top: 10px;
    font-size: 14px;
    color: #bbbbbb;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

footer a {
    color: #8233e9;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
