@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');

html {
    font-size: 10px;
    background-color: #f3e6e8;
    background-image: linear-gradient(315deg, #f3e6e8 0%, #d5d0e5 74%);
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Shadows Into Light', cursive;
    margin: 0;
    padding: 0;
}


h1 {
    font-size: 8rem;
    margin-bottom: 30px;
    text-align: center;
}

.score {
    color: rgb(104, 94, 114);
    margin-top: 22px;
}

.start {
    text-align: center;
}

button {
    background: rgba(190, 19, 19, 0.8);
    border: 3px solid red;
    border-radius: 5px;
    font-size: 6rem;
    color: white;
    padding: 20px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5), -2px -2px 5px rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: pulse 0.8s linear infinite;
}

button:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.7), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    transform: translateY(2px);
}

.game {
    height: 33vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: 1 0 33.33%;
    overflow: hidden;
    position: relative;
}

.hole:after {
    background: url(dirt.svg) bottom center no-repeat;
    background-size: contain;
    content: '';
    height: 70px;
    width: 100%;
    bottom: -30px;
    display: block;
    position: absolute;
    z-index: 2;
}

.mole {
    background: url('mole.svg') bottom center no-repeat;
    background-size: 50%;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 100%;
    transition: all 0.4s ease;
}

.hole.up .mole {
    top: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}



.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup h2 {
    margin-bottom: 20px;
    font-size: 6rem;
    color: #333;
}

.popup button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 6rem;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background: #218838;
}

/* Show the popup */
.popup.show {
    visibility: visible;
    opacity: 1;
}

/* Hide the popup */
.popup.hidden {
    visibility: hidden;
    opacity: 0;
}



.footer {
    position: fixed;
    top: 94.5%;
    width: 100%;
    text-align: center;
    font-size: 3.5rem;
    color: #666;
}

.privacy-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.privacy-link:hover {
    text-decoration: underline;
    color: #0056b3;
}


@media(max-width: 420px){
    img{
        width: 100%;
        height: 42.5vh;
    }
    button{
        font-size: 6rem;
    }

    .footer{
        top: 93%;
    }
}

@media(min-width: 767px){
    img{
        width: 100%;
        height: 37.5vh;
    }
    button{
        font-size: 5rem;
    }

    .footer{
        top: 93%;
    }
}
    

@media(min-width: 819px){
    img{
        width: 100%;
        height: 35vh;
    }
    button{
        font-size: 5rem;
    }

    .footer{
        top: 93%;
    }
}


    
