:root {
    --tom-blue: #37474f;
    --wall-color: #ffecd2;
    --floor-color: #5d4037;
    --hole-black: #1a1a1a;
    --cheese-yellow: #ffc107;
    --cheese-holes: #ffb300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--wall-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Align to floor */
    overflow: hidden;
    font-family: 'Comic Neue', cursive;
    position: relative;
}

/* --- THE WALL TEXT --- */
.text-container {
    position: absolute;
    top: 20%;
    text-align: center;
    z-index: 10;
}

h1 {
    font-family: 'Bangers', cursive;
    font-size: 8rem;
    color: #d32f2f;
    /* Cartoon Red */
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 0;
    line-height: 0.8;
    letter-spacing: 2px;
    transform: rotate(-3deg);
}

h2 {
    font-size: 2rem;
    color: var(--tom-blue);
    margin-top: 1rem;
}

p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn {
    background: var(--tom-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    border: 3px solid black;
    transition: transform 0.2s;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.1) rotate(3deg);
    background: #d32f2f;
}

/* --- THE FLOOR --- */
.floor {
    width: 100%;
    height: 15vh;
    background: var(--floor-color);
    border-top: 8px solid #3e2723;
    z-index: 5;
    position: relative;
}

/* --- THE MOUSE HOLE --- */
.mouse-hole-container {
    position: absolute;
    bottom: 15vh;
    /* Sit on top of floor */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hole-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

/* Make sure link doesn't affect layout */
.hole-link:focus-visible {
    outline: 3px solid #8d6e63;
    outline-offset: 6px;
}

/* Optional: slight reaction on click */
.hole-link:active .hole {
    transform: scale(0.97);
}

/* The Arch */
.hole {
    width: 160px;
    height: 180px;
    background: var(--hole-black);
    border-radius: 100px 100px 0 0;
    border: 6px solid #d7ccc8;
    border-bottom: none;
    position: relative;
    box-shadow: inset 0 20px 40px black;
    transition: transform 0.2s;
}

/* Interaction: Mouse gets scared */
.mouse-hole-container:hover .eyes {
    transform: scale(0.6) translateY(20px);
    opacity: 0.7;
}

/* --- JERRY'S EYES --- */
.eyes {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.eye {
    width: 30px;
    height: 40px;
    background: white;
    border-radius: 50%;
    position: relative;
    animation: blink 4s infinite;
}

.pupil {
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lookAround 5s infinite;
}

/* --- THE CHEESE (Using CSS Borders) --- */
.cheese-trap {
    position: absolute;
    bottom: 15vh;
    left: calc(50% + 120px);
    /* Place to right of hole */
    z-index: 6;
}

.cheese-wedge {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 50px 90px;
    border-color: transparent transparent var(--cheese-yellow) transparent;
    position: relative;
    filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.3));
}

/* Holes in the cheese */
.cheese-wedge::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--cheese-holes);
    border-radius: 50%;
    top: 25px;
    left: -60px;
    box-shadow: 20px 10px 0 var(--cheese-holes), 40px -5px 0 -3px var(--cheese-holes);
}

/* --- ANIMATIONS --- */
@keyframes blink {

    0%,
    96%,
    100% {
        transform: scaleY(1);
    }

    98% {
        transform: scaleY(0.1);
    }

    /* Quick blink */
}

@keyframes lookAround {

    0%,
    40% {
        transform: translate(-50%, -50%);
    }

    /* Center */
    50% {
        transform: translate(-80%, -50%);
    }

    /* Look Left */
    60% {
        transform: translate(-50%, -50%);
    }

    /* Center */
    70% {
        transform: translate(-20%, -50%);
    }

    /* Look Right */
    100% {
        transform: translate(-50%, -50%);
    }

    /* Center */
}

@media (max-width: 600px) {
    h1 {
        font-size: 5rem;
    }

    .cheese-trap {
        left: calc(50% + 60px);
    }
}

#overlay-image1 {
    position: absolute;
    bottom: 68px;
    left: 85%;
    transform: translateX(-50%);
    width: 500px;
    z-index: 7;
    pointer-events: none;
    /* Allow clicks to pass through */
}

#overlay-image2 {
    position: absolute;
    bottom: 15vh;
    left: 15%;
    transform: translateX(-50%);
    width: 600px;
    z-index: 7;
    pointer-events: none;
    /* Allow clicks to pass through */
}

@media (max-width: 768px) {

    #overlay-image1,
    #overlay-image2 {
        display: none;
    }
}