/* Define the custom font */
@font-face {
    font-family: 'Basic';
    src: url('basic.otf') format('opentype'); /* Path to your font file */
}

/* Basic body styling with background image and centered content */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('background.png'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Basic', sans-serif; /* Use the custom font */
    color: white; /* This changes the text color to white for the entire body */
}

/* Container for centralizing content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* Center text within the container */
    position: relative; /* Ensure the container is a reference point for absolute positioning */
}

/* Styling for balance display */
.balance {
    font-size: 36px; /* Adjust font size as needed */
    margin-bottom: 8px; /* Adjust spacing */
    display: flex; /* Flex to align items */
    align-items: center; /* Center items vertically */
}

/* Balance icon styling */
.balance-icon {
    width: 50px;  /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between the icon and text */
}

/* Clickable square styling with transition effect */
.clickable-square {
    width: 200px; /* Set size */
    height: 200px; /* Set size */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px; /* Adjust spacing */
    cursor: pointer;
    background: url('clicker.png') no-repeat center center; /* Background image */
    background-size: cover; /* Ensure the image covers the element */
    background-color: transparent; /* Make the background color transparent */
    transition: transform 0.1s ease-in-out; /* Smooth transition for size change */
}

/* Prevent the blue highlight on touch devices */
.clickable-square {
    -webkit-tap-highlight-color: transparent; /* Disables blue highlight on tap */
    outline: none; /* Removes the focus outline */
}

/* Class for shrinking the clickable square */
.clickable-square.shrink {
    transform: scale(0.95); /* Shrink effect */
}

/* Ensure the image inside clickable square does not overflow */
.clickable-square img {
    max-width: 100%;
    max-height: 100%;
    display: block; /* Remove extra space below the image */
}

/* Container for energy display */
.energy-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px; /* Adjust spacing */
}

/* Energy icon styling */
.energy-icon {
    width: 20px; /* Set the desired width for the icon */
    height: auto; /* Maintain aspect ratio */
    margin-right: 8px; /* Space between icon and energy text */
}

/* Styling for the energy count */
.energy {
    font-size: 24px; /* Adjust font size as needed */
}

/* Button container in the bottom-left corner */
.button-container {
    position: absolute; /* Absolute positioning */
    bottom: 20px; /* Distance from the bottom */
    left: 20px; /* Distance from the left */
    text-align: center;
}

/* Style for button with image */
.button {
    width: 120px; /* Set width */
    height: 120px; /* Set height to match width */
    padding: 0; /* Remove padding */
    border: none;
    border-radius: 10px; /* Slightly rounded corners */
    cursor: pointer;
    background: none; /* Remove default background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure the image does not overflow the button */
    transition: box-shadow 0.2s ease-in-out; /* Smooth transition for shadow */
    -webkit-tap-highlight-color: transparent; /* Disables blue highlight on tap */
    outline: none; /* Removes the focus outline */
}

.button img {
    width: 100%; /* Make image fill the button */
    height: 100%; /* Make image fill the button */
    object-fit: cover; /* Ensure the image covers the button area */
}

.button:hover img {
    opacity: 0.8; /* Optional hover effect */
}

.button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional hover shadow effect */
}

/* +1 Text Effect Styling */
.plus-one {
    position: absolute;
    font-size: 25px;
    color: white;
    animation: slideUp 1s ease-out forwards;
    pointer-events: none;
    z-index: 10; /* Ensure it's above other elements */
}

/* Animation for sliding up and fading out */
@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}
