.d-none{
    display:none;
}

ul{
    list-style-type: none;
    padding: 0;
    margin: 0
}

.interact{
    pointer-events: all;
}

button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    background-color: #1a73e8; 
    border: 4px solid #0e4d92; 
    border-radius: 12px;
    box-shadow: 0 8px 0 #0e4d92, 0 10px 20px rgba(0, 0, 0, 0.4); 
    cursor: pointer;
    transition: all 0.2s ease, transform 0.1s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}


button:hover {
    background-color: #559eff; 
    border-color: #1a73e8;
    box-shadow: 0 6px 0 #0e4d92, 0 15px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px); 
}


button:active {
    transform: translateY(4px); 
    box-shadow: 0 2px 0 #0e4d92, 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #0e4d92; 
}


button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 0;
}

button:hover::before {
    opacity: 0.3; 
}


@keyframes glow {
    0%, 100% { box-shadow: 0 8px 0 #0e4d92, 0 10px 20px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 8px 0 #ffca28, 0 10px 20px rgba(0, 0, 0, 0.6); }
}

button.glowing {
    animation: glow 1.5s infinite alternate;
}
#meters {
    position: absolute;
    top: 20px;
    right   : 20px;
    font-size: 30px; 
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.5); 
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
    font-family: 'Press Start 2P', cursive; 
    width: 260px; 
    height: 120px; 
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    flex-direction: column; 
    align-items: flex-start; 
}

#target-meters {
    font-size: 18px;
    color: #ffea00;
}

#meters span {
    color: #ffea00; 
}

#target-distance {
    color: #ffca28; 
    font-size: 24px;
}

#distance {
    color: #ffca28; 
    font-size: 30px; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px #ffea00, 0 0 30px #ffea00; 
    white-space: nowrap; 
    overflow: hidden; 
}

#referenceLineMessage {
    position: fixed;
    bottom: 20px; 
    right: 20px;  
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    font-family: Arial, sans-serif; 
    font-size: 14px; 
    padding: 10px;
    border-radius: 5px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); 
    opacity: 1; 
    transition: opacity 0.3s ease; 
}



#birthdayCard {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    background: linear-gradient(135deg, #6ec1e4, #38b484);
    border: 4px solid #205b8f;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#birthdayCard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0));
    animation: shine 3s linear infinite;
    transform: rotate(45deg);
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(50%, 50%) rotate(45deg); }
}

#birthdayCard h1 {
    font-size: 48px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(38, 180, 137, 0.6);
    margin: 0;
    padding: 0;
    animation: glow 1.5s ease-in-out infinite;
    transition: transform 0.3s ease-in-out;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(38, 180, 137, 0.6); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(38, 180, 137, 1); }
}

#birthdayCard:hover h1 {
    transform: scale(1.1);
}


@keyframes cardAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


@keyframes textAnimation {
    0% {
        color: #01baef; 
        text-shadow: 0px 0px 15px rgba(164, 201, 243, 0.8);
    }
    50% {
        color: #ffeb8f; 
        text-shadow: 0px 0px 25px rgba(255, 235, 143, 0.8);
    }
    100% {
        color: #01baef; 
        text-shadow: 0px 0px 35px rgba(209, 240, 224, 0.8);
    }
}

#progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #333; 
    border-radius: 5px;
    margin-top: 10px;
}

#progress-bar {
    height: 100%;
    width: 0%; 
    background-color: #00ff00;
    border-radius: 5px;
    transition: width 0.2s ease-in-out; 
}





#high-scores {
    text-align: center;
    padding: 20px;
    background-color: #005d77; 
    border: 0px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    width: 250px;
    position: absolute;
    top: 28%;
    left: 40%;
}

#high-scores h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

#high-scores ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#high-scores ul li {
    background-color: #cceeff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    color: #333;
    font-size: 18px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


#high-scores ul li:hover {
    background-color: #b3d9ff;
    transform: scale(1.05);
}

#game-title{
    font-size:40px;
    color:#ffffff;
    font-weight:bold;
}

#bubble-container{
    font-size:20px;
}

#best-container{
    font-size: 20px;
}