body {
    font-family: "Pixelify Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url(./assets/Images/intro-backing.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: auto;
    overflow: hidden;
}

#hammer {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    image-rendering: pixelated;
    transform-origin: 50% 100%;
    width: 80px;
    height: auto;
    transform: rotate(-45deg);
}

.hammer-animation {
    animation: hammerSmack 0.3s steps(3) forwards;
}

@keyframes hammerSmack {
    0% { transform: rotate(-45deg); }
    66% { transform: rotate(60deg); }
    100% { transform: rotate(-45deg); }
}

#title-container{
    display: flex;
    justify-content: center;
}

#game-title {
    font-size: 10vw;
    background: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExczd6OG95a2w3YTE5OTRhM3FlYzNodGtkdnZkbWd6ZzFrdm9meWZpayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/xUPGcM9CazM9H5KrEA/giphy.webp') no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 100%;
    background-position: center;
    background-size: cover;
    text-transform: uppercase;
    margin: 20px;
    cursor: default;
}

#intro-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#name-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid bisque;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1.25rem;
}

#name-form > label {
    margin-top: 10px;
}

#name-form > input {
    border: none;
    background-color: bisque;
}

#name-form > input:nth-last-child(n){
    margin-bottom: 10px;
}

#intro-button-container{
    display: flex;
    gap: 20px;
}

button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

#name-form > button {
    
}

#start-button {
    margin-top: 20px;
}

#game-screen {
    display: none;
    width: 90%;
    max-width: 1200px;
    height: 60%;
    background-color: #8B4513;
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#game-area {
    width: 100%;
    height: 100%;
    background-color: #87CEEB;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#settings {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

#grass-area {
    background-image: url('./assets/Images/grass-texture.png');
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    width: auto;
    z-index: 2;
}

#mole-holes {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 100%;
    bottom: 0;
}

.mole-hill {
    position: relative;
    width: 500px;
    height: 20px;
    background-image: url('./assets/Images/dirt-mound.png');
    background-position: center;
    background-size: cover;
}

.mole {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: auto;
    display: none;
    cursor: pointer;
    z-index: -2;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.mole-up {
    display: block;
}

#start-game-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#player-name {
    font-size: 2rem;
    background: url('https://media1.giphy.com/media/fSRQtBAzrPokPCItuu/giphy.webp?cid=790b761198e539u3jl86u3kupq1dtgrofhsbtjhdun5w9e5a&ep=v1_gifs_search&rid=giphy.webp&ct=g') no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 100%;
    background-position: center;
    background-size: cover;
    text-transform: uppercase;
    cursor: default;
}

.hidden {
    display: none;
}

#ending-screen {
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 1000;
}

#game-over-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 1;
}

#ending-area {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

#name-display {
    font-size: 4rem;
    background: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExdXoyeXoydm1qa3RyaTg0N3VrdmhuMTllZnY2MTcxbG50NG1kY2MwdSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/cMhglZMLwT8e1jYkfC/giphy.webp') no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 100%;
    background-position: center;
    background-size: cover;
    text-transform: uppercase;
    cursor: default;
    margin-bottom: 3rem;
    text-align: center;
}

#score-count {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

#restart-button {
    margin-top: 2rem;
}

/* for the button styling */
.glow-on-hover {
    text-align: center;
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}