body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    text-shadow: 2px 2px 4px #000;
    position: relative;
    z-index: 1;
}
.game-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1000px;
}
.creature {
    position: absolute;
    background-size: contain;
    animation: shake 0.5s infinite;
}
.info {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    font-size: large;
    color: white;
    text-shadow: 2px 2px 4px #000;
}
.info p {
    margin-left: 3rem;
    font-size: 1.5rem;
}
button {
    background-color: lightblue;
    border-radius: 1rem;
    margin-right: 3rem;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
button:hover, .instructions:hover {
    background-color: lightcoral;
}
.instructions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    margin: 2rem;
    border: 2px solid #000;
    border-radius: 2rem;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: lightblue;
}

.instructions h2 {
    margin-top: 0;
}

.instructions ul {
    padding-left: 20px;
}
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.creature {
    position: absolute;
    background-size: contain; 
    background-repeat: no-repeat; 
}

.caught-message {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    font-size: 16px;
    color: black;
}
