::-webkit-scrollbar {
    width: 8px;
    background-color: hsla(0,0%,100%,.1)
}

::-webkit-scrollbar-thumb {
    background-color: hsla(0,0%,100%,.3);
}

html, body {
    padding:0;
    margin:0;
    width:100%;
    height:100%;
    color:#fff;
    background:url(sprites/background.png) no-repeat;
    background-color:#B0DBF6;
    background-size:cover;
    user-select: none;
    -webkit-user-drag: none;
    overflow:hidden;
}

body.inverted {
    filter:brightness(150%);
}

* {
    font-family:'Lucida Console', monospace;
    font-size:15px;
}

#middle {
    display:flex;
    justify-content:center;
    align-items:center;
}

#footer {
    position:fixed;
    background:#222;
    color:#fff;
    border:1px solid #000;
    padding:3px;
    width:100%;
    height:23px;
    z-index:997;
    box-shadow:0px 2px 30px #000;
}

#footer>a {
    box-shadow:0px 0px 3px #fff inset;
    padding:5px;
    user-select: none;
    text-decoration: none;
    position:relative;
}

#footer a {
    color:rgb(95,95,200);
}

#footer a:hover {
    text-shadow:0px 0px 2px rgb(95,95,200);
}

#footer .important {
    color:rgb(50,200,100);
    text-shadow:0px 0px 2px rgb(50,200,100);
    transition:text-shadow 0.2s ease-in-out;
}

#footer .important:hover {
    text-shadow:0px 0px 2px #fff;
}

.tooltip {
    position: absolute;
    background:url(sprites/darkNoise.jpg),#000;
    color: white;
    width:200px;
    padding: 10px;
    border:1px solid #fff;
    pointer-events:none;
    z-index:997;
    box-shadow:1px 1px 5px #000;
}

#middle {
    position:relative;
    width:256px;
    left:50%;
    top:200px;
}

#comment {
    position:absolute;
    width:400px;
    font-size:18px;
    left:-200px;
    top:-115px;
    padding:8px;
    background-color:#22222260;
    border-radius:8px;
    /*box-shadow:0px 0px 5px #000 inset;*/
    text-shadow:1px 1px 2px #000;
    text-align: center;
    z-index:997;
}

#treeContainer {
    position:absolute;
    min-width:400px;
    left:-200px;
    text-align: center;
    font-size:16px;
    /*background:#22222260;*/
    padding:5px;
    top:-50px;
    text-shadow:1px 1px 2px #000;
    font-weight:bold;
    z-index:997;
}

#treesContainer,#tps {
    position:relative;
    z-index:997;
    font-size:20px;
}

/* Existing CSS for #bigTree */
#bigTree {
    position:absolute;
    width:360px; /* Adjust the width to make the tree smaller */
    height:360px; /* Adjust the height to maintain the aspect ratio */
    left:-180px; /* Adjust the left position if needed */
    top:240px; /* Adjust the top position if needed */
    background:url(sprites/bigtree.png) no-repeat;
    background-size: cover;
    z-index:500;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: bottom center; /* Set the transform origin to the bottom center */
}

/* Add new CSS below */

/* Styles for the different tree sizes */
.treeSize1 { transform: scale(1); }
.treeSize2 { transform: scale(1.1); }
.treeSize3 { transform: scale(1.2); }
.treeSize4 { transform: scale(1.3); }
.treeSize5 { transform: scale(1.4); }
.treeSize6 { transform: scale(1.5); }
.treeSize7 { transform: scale(1.6); }
.treeSize8 { transform: scale(1.7); }
.treeSize9 { transform: scale(1.8); }
.treeSize10 { transform: scale(1.9); }


/* Ensure you have the base styles for your tree, water, and compost elements */
#bigTree {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Add other base styles for your elements as needed */



.bigTreeHover:hover {
    transform:scale(1.05);
    filter:brightness(110%);
    cursor: pointer;
}

.bigTreeAction:active {
    transform:scale(1.0);
    filter:brightness(90%);
}

@keyframes wobble {
    0% { transform:scale(1.0); }
    40% { transform:scale(1.2); }
    60% { transform:scale(1.0); }
    80% { transform:scale(1.1); }
}

#rightPanel {
    position:absolute;
    top:0px;
    right:0;
    background:url(sprites/darkNoise.jpg),#333;
    background-size:100% 100%,cover;
    border-left:1px solid #000;
    height:100vh;
    z-index:996;
    overflow:auto;
}

#leftPanel {
    position:absolute;
    top:25px;
    left:0;
    background:url(sprites/darkNoise.jpg),#333;
    border-right:1px solid #000;
    height:100vh;
    z-index:996;
    overflow:hidden;
}

#leftPanel>div {
    position:relative;
    width:256px;
    height:64px;
}

#store {
    position:relative;
}

#store>div {
    position:relative;
    background:#555 no-repeat;
    border:1px solid #000;
    width:256px;
    height:64px;
    padding-left:72px;
    cursor:pointer;
}

#store>div:hover {
    background-color:#666;
}

#store>div:active {
    background-color:#444;
}

#store>div.grayed {
    background-color:#222;
    color:#f00;
    cursor:default;
}

#store>div .amount {
	position:absolute;
	right:8px;
	top:8px;
	font-size:48px;
	color:#000;
	opacity:0.2;
}

#missions {
    position:relative;
}

#missions>div {
    position:relative;
    background:#555 no-repeat;
    border:1px solid #000;
    width:256px;
    height:auto;
    cursor:pointer;
    top: 20px;
    padding: 10px 0;
}

#missions>div:hover {
    background-color:#666;
}

#missions>div:active {
    background-color:#444;
}

#missions>div.shaded {
    background-color:#444;
    cursor:default;
}

#missions>div.grayed {
    background-color:#222;
    color:#f00;
    cursor:default;
}

#shop {
    position:relative;
}

#shop>div {
    background:rgba(255,255,255,0) no-repeat;
    width:32px;
    height:32px;
    background-size:32px;
    padding:5px;
    margin:2px;
    box-shadow:0px 0px 5px #fff inset;
    background-size:cover;
    border:1px solid #ddd;
    z-index: 997;
}

#treeFloor {
    position:fixed;
    bottom:0;
    width:100%;
    height:32px;
    z-index:100;
}

moni {
    background:url(sprites/tree.png) no-repeat;
    background-size:16px;
    width:16px;
    height:16px;
    display:inline-block;
    position:relative;
    top:4px;
    margin-right:-8px;
}

#treeFloor.small { background:url(sprites/treefloor_small.png) repeat-x; }
#treeFloor.medium { background:url(sprites/treefloor_medium.png) repeat-x; }
#treeFloor.large { background:url(sprites/treefloor_large.png) repeat-x; }

.menu {
    font-size:18px;
    background:rgba(255,255,255,0.5);
    padding:5px;
    color:#fff;
    display:block;
    cursor:pointer;
    text-shadow:0px 0px 3px #000;
    border-bottom:1px solid #000;
    font-weight:bold;
}

.menu:hover {
    background:rgba(255,255,255,0.75);
}

#rightPanel>#header {
    font-size:2em;
    font-weight:bold;
    text-align: center;
    padding:50px 0px 15px 0px;
}

#factoryName {
    position:absolute;
    text-align:center;
    font-size:18px;
    font-weight:500;
    width:400px;
    left:-200px;
    top:-155px;
    text-shadow:0px 0px 3px #000;
}

#factoryName:hover {
    text-shadow:
        0px 0px 2px #f00,
        0px 0px 4px #0f0,
        0px 0px 6px #00f;
    cursor:pointer;
}


#separatorLeft {
    width:16px;
    height:100%;
    background:#85513d;
    border-right:1px solid #000;
    box-shadow:2px 0px 30px #000;
    position:absolute;
    left:257px;
    z-index:977;
}

#separatorRight {
    width:16px;
    height:100%;
    background:#85513d;
    border-left:1px solid #000;
    box-shadow:-2px 0px 30px #000;
    position:absolute;
    right:331px;
    z-index:977;
}

#pops {
    position:absolute;
    left:0px;
    top:0px;
    z-index:929;
    pointer-events:none;
}

.pop {
    font-weight: bold;
    color:#fff;
    width:200px;
    height:20px;
    font-size:20px;
    text-align: center;
    text-shadow:0px 0px 5px #000;
}

.container {
    display: flex;
    margin-top: 6px;
    height: 32px !important;
}

.container button {
    width: 100%;
    height: 100%;
    background: #333;
    color: #fff;
    border: 1px solid #FFD700;
    font-size: 1.25rem;
}

.container button:hover {
    background: #444;
}

.container button.selected {
    background: #666;
}

#uploadButton {
    position: relative;
    left: 25%;
    width: 50%;
    height: 25px;
    background: #333;
    color: #fff;
    border: 1px solid #FFD700;
    text-align: center;
    font-size: 15px;
}

#submitButton {
    position: relative;
    top: 620px;
    left: 0%;
    width: 100px;
    height: 25px;
    background: #333;
    color: #fff;
    border: 1px solid #FFD700;
    text-align: center;
    font-size: 15px;
}

#imageInput {
    position: relative;
    top: 0px;
}

#imagePreviewContainer {
    margin-top: 20px;
    height: 540px;
    width: 720px;
}

#imagePreview {
    display: none; 
    max-width: 100%; 
    max-height: 100%;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none;
}

.tabcontent .spacing {
    margin-left: 6px;
}

.tabcontent .spacing > p, .tabcontent .spacing p span {
    font-size: 1.10rem !important;
}

.tabcontent .spacing p {
    color: #999;
}

.tabcontent .spacing p span {
    color: #fff;
}

.backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    z-index: 998;
}

.imgmodal {
    display: none;
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#center-modal {
    position: absolute;
    width: 0;
    left: 50%;
    top: 128px;
}

#modal-content {
    position: absolute;
    width: 320px;
    left: -160px;
    background: url(sprites/darkNoise.jpg);
    color: #fff;
    border: 1px solid #FFD700;
    padding: 2px 12px;
    box-shadow: 0 2px 16px #222;
    z-index: 999;
}

#modal-content .header {
    font-size: 1.25rem !important;
    width: 100%;
    text-align: center;
    font-weight: 700;
}

#modal-img {
    position: absolute;
    width: 720px;
    height: 720px;
    left: -360px;
    background: url(sprites/darkNoise.jpg);
    color: #fff;
    border: 1px solid #FFD700;
    padding: 2px 12px;
    box-shadow: 0 2px 16px #222;
    z-index: 999;
}

#modal-img .header {
    font-size: 20px;
    width: 100%;
    text-align: center;
    font-weight: 700;
}

.flex {
    display: flex;
}

.ms-auto {
    margin-inline-start: auto;
}

.me-auto {
    margin-inline-end: auto;
}

.mx-auto {
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.close-button {
    position: absolute;
    color: #ccc;
    top: -16px;
    right: 16px;
    font-size: 2rem !important;
}

.close-button:hover {
    color: #fff;
}

#modal-content .modal-p {
    line-height: 18px;
}