html {
    background-image: url("/images/home/PlantBackground.png");
}

body {
    background-color: transparent;
}

footer {
    background-color: white;
}

.main {
    background-color: #2f5b4c;
    width: 100%;
    background-image: url("/images/home/PlantBackground.png");
}

.plant-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    gap: 0px;
    padding: 5pt;
    margin-top: 37vh;
}

.plant-space {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 4em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    gap: 8px;
}

.floracore-body {
    cursor: pointer;
    position: absolute;
    height: 17em;
    left: 80vw;
    top: 12em;
    transform: rotate(20deg);
    z-index: 1;
}

.plant-space::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/images/home/screen_2x.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(-74deg);
    transform-origin: center;
    top: -57pt;
    z-index: -1;
}

.plant-buttons {
    font-family: "Times New Roman", Times, serif;
    font-size: 2em;
    border-width: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    gap: 8px;
    background: url("/images/home/buttons_background.webp");
    background-size: 100% 100%;
    width: 210pt;
}

.food-button,
.water-button,
.light-button {
    align-self: center;
    display: inline-block;
}

.food-button:hover,
.water-button:hover,
.light-button:hover {
    animation: plant-shake 0.8s ease-in-out infinite;
}

@keyframes plant-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.floracore-expression {
    position: absolute;
    height: 6em;
    left: 84.5vw;
    top: 15.5em;
    transform: rotate(20deg);
}

.spin {
    animation: spin-animation 1s ease-in-out;
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.food-bar-track {
    background-color: #ff0000;
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
    height: 12px;
    left: 80vw;
    top: 12em;
}

.food-bar-fill {
    background-color: #4caf50;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.4s ease;
    height: 12px;
    left: 80vw;
    top: 12em;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 2em;
    left: 87vw;
    top: 4em;
    transition: width 0.4s ease;
    position: absolute;
}

.stat-label {
    font-weight: bold;
    color: white;
}

.water-bar-track {
    background-color: #0f3267;
    border-radius: 4px;
    height: 12px;
    width: 100%;
    overflow: hidden;
}

.water-bar-fill {
    background-color: #1ce2b4;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.4s ease;
}

.light-bar-track {
  background-color: #433912;
  border-radius: 4px;
  height: 12px;
  width: 100%;
  overflow: hidden;
}

.light-bar-fill {
  background-color: #d0ff51;
  height: 100%;
  border-radius: 4px 0 0 4px;
  transition: width 0.4s ease;
}