﻿body {
    background: url("./background.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(236, 30, 30);
    text-align: center;
   
}
.logo-container {
    position: fixed; /* Keeps the logo in place */
    top: 20px; /* Position from the top */
    left: 20px; /* Position from the left */
    background: linear-gradient(45deg, #ffb347, #ffcc33, #ff6f61);
    padding: 20px 40px;
    border-radius: 25px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Main Text Styling */
.logo-text {
    font-family: 'Lobster', cursive;
    font-size: 3em;
    color: #fff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4),
                 -2px -2px 3px rgba(255, 255, 255, 0.6);
    margin: 0;
    cursor: pointer;
}
.logo-text:hover{
    color: #f507a5;
}

/* Subtext Styling */
.logo-subtext {
    font-family:  'Luckiest Guy', cursive;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3em;
    color: rgb(236, 30, 184);
    cursor: pointer;
}
h1:hover{
    color: #e90b8d;
}



#rules {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 20px;
    width: 150px; 
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    color: #333;
    font-family: 'Luckiest Guy', cursive;
}

#rules h2 {
    font-size: 1.8em;
    color: #ec66cb;
    font-family: 'Luckiest Guy', cursive;
    cursor: pointer;
}

#rules ul {
    list-style-type: none;
    padding: 0;
    
}

#rules li {
    margin: 5px 0;
    cursor: pointer;
}

li:hover{
    color: #e90b8d;
}



#board {
    width: 90vw;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    background-color: lightblue;
    border: 5px solid slategray;
    border-radius: 10px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    touch-action: none;
}

#board img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

#board img.candy-hint {
    animation: candyHintPulse 1s ease-in-out infinite;
    border-radius: 12px;
    box-shadow:
        0 0 0 4px rgba(255, 235, 59, 0.95),
        0 0 18px rgba(255, 64, 129, 0.9),
        0 0 32px rgba(255, 193, 7, 0.75);
    transform: scale(1.08);
    z-index: 2;
}

@keyframes candyHintPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.25);
    }
}

#combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Luckiest Guy', cursive;
    font-size: 4em;
    color: #ffeb3b;
    text-shadow: 4px 4px 0px #e91e63;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#combo-display.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 600px) {
    .logo-container {
        position: static;
        margin-bottom: 20px;
        padding: 10px 20px;
    }
    .logo-text {
        font-size: 2em;
    }
    #rules {
        position: static;
        transform: none;
        width: 80%;
        margin: 20px auto;
    }
    h1 {
        font-size: 2em;
    }
}
button{
    padding: 10px 20px;
    font-size: 16px;
    background-color: #e90b8d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Luckiest Guy', cursive ;
}
button:hover{
    background-color: #5e0231;
}

/* Back To Home Button */
.project-back-button {
    position: fixed;
    top: 30px;
    right: 25px;
    z-index: 9999;

    padding: 10px 18px;

    background: linear-gradient(45deg, #ff4da6, #ff7b54);
    color: white;

    border-radius: 12px;
    text-decoration: none;

    font-family: 'Luckiest Guy', cursive;
    font-size: 1rem;

    box-shadow: 0 6px 16px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

.project-back-button:hover {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(45deg, #e90b8d, #ff5722);
}
