body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
}

.image-container {
    position: relative;
    width: 290px;
    height: 595px;
    border: 5px solid #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
}

#mariah-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
}
#message {
    margin-top: 20px;
    font-size: 1rem;
    color: #ff0000;
    font-weight: bold;
}
.ice-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/frozen.png');
    background-size: cover;
    opacity: 1;
    z-index: 2;
}

/* Keyframes for cracking effect */
@keyframes crack {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
    }
}

/* Keyframes for refreezing effect */
@keyframes refreeze {
    from {
        opacity: 0.2;
    }
    to {
        opacity: 1;
    }
}

/* When refrozen, start cracking again after button click */
.cracking {
    animation: crack 30s forwards;
}

/* Add the faster freezing effect when freeze button is clicked */
.freeze {
    animation: refreeze 0.5s forwards;
}

/* Hidden class to hide the message */
.hidden {
    visibility: hidden;
}

/* Visible class to display the message */
.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
