/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: #000;
    position: relative;
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Floor */
.floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-image: url('images/floor.png');
    background-repeat: repeat-x;
    background-position: center bottom;
    z-index: 1;
}

/* Cave Walls */
.left-cave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 100vh;
    background-image: url('images/left-cave.png');
    background-repeat: repeat-y;
    background-position: left bottom;
    z-index: 2;
}

.right-cave {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-image: url('images/right-cave.png');
    background-repeat: repeat-y;
    background-position: right bottom;
    z-index: 2;
}

/* Magic 8 Ball Container (above walls) */
.magic-container {
    position: relative; /* Important: make this relative */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

#magic8ball {
    width: 600px;
    max-width: 80vw;
    cursor: pointer;
    transform-origin: center center;
}

/* Message Display */
#message {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; /* a percentage so it scales with the container */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 4vw; /* Use relative unit for responsiveness */
    color: white;
    font-weight: bold;
    padding: 10px;
    z-index: 4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Adjust font size for larger screens, if desired */
@media (min-width: 600px) {
    #message {
        font-size: 24px; /* On larger screens, can revert to a px value if you prefer */
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 90% { transform: translate(-10px, 0); }
    20%, 80% { transform: translate(10px, 0); }
    30%, 50%, 70% { transform: translate(-20px, 0); }
    40%, 60% { transform: translate(20px, 0); }
}

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Banner */
.banner {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 80%; 
    max-width: 1800px;
}

.banner img {
    width: 100%;
    height: auto;
    min-width: 800px;
}

@media (max-width: 900px) {
    .banner {
        width: 95%;
    }
    .banner img {
        min-width: unset;
    }
}

/* Remove modal stuff */
.modal, .modal-content {
    display: none;
}

