html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: sans-serif;
    background-color: #212529;
    color: #f8f9fa;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-size: 0.9em;
}

header {
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 1;
}

#title-img {
    height: 50px;
}

#game-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    max-width: 1920px;
    max-height: 1080px;
    width: 100%;
    height: 100%;
}

#resource-container {
    text-align: center;
    margin-bottom: 10px;
}

#clicker-btn {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 5px;
}

#clicker-btn:hover {
    background-color: #777;
}

#shop-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 150px;
}

#shop-container {
    background-color: #343a40;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 5px;
}

.upgrade {
    background-color: #495057;
    border: 1px solid #6c757d;
    padding: 0.2rem;
    text-align: center;
    border-radius: 0.2rem;
    font-size: 0.7em;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out;
}

.upgrade:hover {
    filter: brightness(1.2);
}

.upgrade.can-buy {
    border-color: #007bff;
}

.upgrade.cannot-buy {
    border-color: #dc3545;
}

.upgrade img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.1rem;
}

.upgrade h3 {
    font-size: 0.8em;
    margin-bottom: 0.1rem;
}

.upgrade p {
    font-size: 0.7em;
    margin-bottom: 0.1rem;
}

.upgrade button {
    display: none;
}

#canvas-container {
    position: relative;
    width: 500px; /* Fixed width */
    height: 500px; /* Fixed height */
    background-image: url('assets/honeycomb.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid #6c757d;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
    overflow: hidden;
    margin: 0 auto;
    flex-grow: 0; /* Do not grow */
    flex-shrink: 0; /* Do not shrink */
}

.floating-gif {
    position: absolute;
    width: 50px;
    height: 50px;
}