body {
    font-family: Candara, Helvetica, sans-serif;
    text-align: center;
    background: url("./assets/frog_bg.jpg");
    background-size: tile;
    font-size: 20px;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes wiggle2 {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
  
  

#game-container {
    display: flex;
    
}

#rules {
    margin: 0 auto; /* Space between rules and the board */
    padding: 10px; /* Add padding around the text */
    background-color: #efffeb; /* Light background for the rules section */
    border-radius: 12px; /* Optional: to match the board style */
    width: 400px;
}

#game-over-banner {
    position: fixed; /* Or 'absolute' if you want it relative to a specific container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent black background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    z-index: 1000; /* Ensure it's on top of other elements */
}

#game-win-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 0, 0.75); /* A green tint for a win screen */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    z-index: 1000;
    flex-direction: column;
}


#banner-text {
    display: inline-block;
    vertical-align: middle;
}

#game-info-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    height: 55px;
    background-color: #00230f;
    color: white;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative; /* Needed to position the button relative to the banner */
}

#watch-frogs-button {
    display: inline-block; /* Inline block positioning */
    vertical-align: middle; /* Align vertically with the text */
    background-color: green;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'FancyFont', sans-serif;
    font-size: 1em;
    cursor: pointer;
    margin-left: 100px; /* 100px space from the text */
}




#board {
    display: grid;
    grid-template-columns: repeat(5, 120px); /* 5 columns, each 120px */
    grid-template-rows: repeat(5, 120px); /* 5 rows, each 120px */
    width: 600px; /* Adjust based on your total grid size */
    height: 600px;
    position: relative;
    background: url("./assets/game_board.png");
    background-size: cover;
    border: 10px solid rgb(0, 0, 0);
    border-radius: 12px;
}

.tile {
    width: 120px; /* 600 / 5 */
    height: 120px;
    position: relative;
}

.monster {
    width: 60%;
    height: auto;
    transition: transform 0.3s ease;
    animation: wiggle 1s;
    transform-origin: center;

}

.monster.wiggle {
    animation: wiggle2 1s;
}

.food {
    width: 40%;
    height: auto;
    margin-top: 5px;
    animation: wiggle 1s;
}

.player {
    width: 30%;
    height: auto;
    margin-top: 5px;
    animation: wiggle 1s;
}

.monster:hover {
    transform: scale(1.5); /* Optional: Slight zoom on hover */
}

.dialog-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 400px;
    padding: 10px;
    background: white;
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
    z-index: 10;
    overflow: hidden;

}

.dialog-box h3 {
    margin-top: 0;
    color: #2c3e50; /* or any color you prefer */
}


.dialog-box p {
    color: #34495e; /* or any color you prefer */
}

.tile:hover .dialog-box {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}



#card-piles-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust the space between the piles */
    margin-top: 20px; /* Space from the game board */
}

.card-pile {
    width: 220px; /* Width of the card image */
    height: 280px; /* Height of the card image */
    position: relative; /* For positioning the card images absolutely if needed */
    border: 6px solid rgb(0, 0, 0);
    border-radius: 12px;
}

.card-pile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the pile area */
    
}



.card-pile {
    /* ... existing styles ... */
    position: relative; /* Needed for absolute positioning of children */
}

.draw-button {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%); /* Center the button */
    color: red; /* Text color */
    background-color: white; /* Button background color */
    padding: 5px 10px; /* Padding around the text */
    border: 1px solid red; /* Red border for the button */
    border-radius: 5px; /* Round corners */
    font-weight: bold; /* Bold text */
    cursor: pointer; /* Change cursor to indicate it's clickable */
    z-index: 1; /* Ensure the button is above the pile image */
    /* Additional arrow button styling if needed */
}


#left-display {
    display: list-item;
    margin: 0 auto;
}

#turn_order {
    height: 350px;
    width: 350px;

    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;

    background: url("./assets/turn_order.png");
    background-size: cover;
    border: 10px solid rgb(0, 0, 0);
    border-radius: 12px;
}

.player-card {
    height: 175px;
    width: 725px;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Changed to column to stack sanity counter on top */
    justify-content: flex-start; /* Align content to the top */
    position: relative; /* Set position relative for absolute child positioning */
    border: 10px solid rgb(0, 0, 0);
    border-radius: 12px;
}

#Shell {
    background: url("./assets/shell-abilities.png") no-repeat center center;
    background-size: cover;
}

#Shell-p {
    background: url("./assets/shell-abilities-p.png") no-repeat center center;
    background-size: cover;
}

#Jos {
    background: url("./assets/jos-abilities.png") no-repeat center center;
    background-size: cover;
}

#Jos-p {
    background: url("./assets/jos-abilities-p.png") no-repeat center center;
    background-size: cover;
}

.sanity-display {
    position: absolute; /* Positioning it absolutely within the player-card */
    top: 3px; /* Adjust based on design */
    right: 125px; /* Adjust based on design */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    padding: 5px 10px; /* Space around the text */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold;
}


.sanity-counter {
    display: inline; /* Keeping the counter inline with the sanity label */
    font-size: 48px; /* Adjust the font size as needed */
    color: rgb(0, 92, 84); /* Change the color to red */
}

.update-container {
    height: 240px; /* Adjust the height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
    border: 1px solid #ccc; /* Optional, for visibility */
    padding: 10px;
    background-color: white; /* Or any color you prefer */
}

.update-message {
    transition: opacity 0.5s ease; /* Smooth transition for the fading effect */
}

.opacity-full {
    opacity: 1; /* Full opacity */
}

.opacity-medium {
    opacity: 0.66; /* Medium opacity */
}

.opacity-light {
    opacity: 0.33; /* Light opacity */
}

.opacity-none {
    opacity: 0; /* No opacity */
}

#eat-food-container {
    padding: 50px;
}

#directional-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Position relative to allow absolute positioning within */
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#middle-row {
    display: flex;
    position: absolute;
    top: 50%; /* Align the middle row with the vertical center */
    transform: translateY(-50%); /* Offset the transform to align properly */
}

.arrow-button {
    padding: 10px; /* Adjust padding to change button size */
    margin: 0; /* Reset margin for precise positioning */
    border: 1px solid #ccc; /* Light gray border */
    background-color: #fff; /* White background */
    cursor: pointer; /* Change mouse cursor on hover */
    font-weight: bold; /* Make the text bold */
    border-radius: 5px; /* Rounded corners for buttons */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.arrow-button:hover {
    background-color: #f2f2f2; /* Slightly darker background on hover */
}

/* Specific width for Left and Right to make them less wide */
#move-left, #move-right {
    width: 80px; /* Set a fixed width */
    text-align: center; /* Center the text */
}

/* Position the Up and Down buttons */
#move-up, #move-down {
    width: 80px; /* Set a fixed width */
    margin: 40px 0; /* Add margin for spacing */
}

/* Adjust positioning of Up and Down buttons to create diamond shape */
#move-up {
    position: absolute;
    bottom: 0; /* Move to the bottom */
    left: 50%;
    transform: translateX(-50%);
}

#move-down {
    position: absolute;
    top: 0; /* Move to the top */
    left: 50%;
    transform: translateX(-50%);
}


#attack-control-container {
    display: flex;
    justify-content: center; /* Center children horizontally */
    align-items: center;     /* Center children vertically */
}

.arrow-button {
    margin: 0 10px; /* Ensure equal spacing on the left and right */
    /* Other styling for buttons */
}

.highlighted {
    border: 0px solid green;
    box-shadow: 0 0 10px green;
    transition: all 0.3s ease;
}

#round-indicator-container {
    margin: 20px auto;
    text-align: center;
}

#game-progress-label {
    text-align: center; /* Center align the text */
    margin-bottom: 10px; /* Spacing between label and slider */
}

#round-number {
    font-weight: normal; /* Non-bold as specified */
    margin-top: 5px; /* Space below the 'Game Progress' label */
}

#round-indicator {
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    height: 20px;
    width: 300px;
    margin: 0 auto; /* Center the slider within the div */
    position: relative;
    overflow: hidden;
}

#round-slider {
    background-color: #76b947;
    border-radius: 8px;
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}





.giant-spin {
    animation: spin 1s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


@keyframes attack-vibrate {
    0% { transform: translate(0, 0) rotate(0); }
    10% { transform: translate(-5px, 5px) rotate(-20deg); }
    20% { transform: translate(5px, -5px) rotate(20deg); }
    30% { transform: translate(-5px, 5px) rotate(-10deg); }
    40% { transform: translate(5px, -5px) rotate(10deg); }
    50% { transform: translate(0px, 0px) rotate(0); }
    100% { transform: translate(0px, 0px) rotate(0); }
}

.attack-effect {
    animation: attackSpinEffect 1.5s ease-in-out;
    filter: brightness(200%);
    border: 2px solid red; /* Optional: adds a red border to highlight the attack */
}

.attack-animation {
    animation: attackSpinEffect 1s ease-in-out forwards;
}

@keyframes attackSpinEffect {
    0% { 
        transform: translateX(0) rotate(0deg);
    }
    50% { 
        transform: translateX(0%) rotate(360deg);
    }
    100% { 
        transform: translateX(0) rotate(0deg);
    }
}


.fart-animation {
    animation: fartShrinkGrowEffect 1s ease-in-out forwards; /* Adjusted animation duration for better visibility */
}

@keyframes fartShrinkGrowEffect {
    0%, 100% { 
        transform: scale(1); /* Start and end at normal size */
    }
    10% {
        transform: scale(0.5); /* Abruptly shrink */
    }
    90% {
        transform: scale(0.5); /* Stay shrunk for most of the animation */
    }
    100% {
        transform: scale(1); /* Return to normal size */
    }
}


@keyframes fartFadeEffect {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.fart-icon {
    width: 140%; /* Adjust to cover the tile */
    height: auto;
    position: absolute;
    top: 40%;
    left: 40%;
    transform: translate(-60%, -50%); /* Center the icon within the tile */
    z-index: 2; /* Ensure it overlays other elements within the tile */
}


.move-animation {
    transition: transform 0.5s ease-in-out;
}

.poisoned-icon {
    display: inline-block;
    width: 20px; /* Adjust size as needed */
    height: 20px;
    background: url('./assets/skull_icon.png') no-repeat center center;
    background-size: contain;
    margin-left: 5px; /* Space from the player's name or health bar */
}