@import url('https://fonts.googleapis.com/css2?family=Dangrek&display=swap');
body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    font-family: 'Dangrek', sans-serif;

    background-color: #f0f8ff;
    font-family: Arial, sans-serif;
    background: linear-gradient(0deg,rgba(91, 62, 142, 0.60) 0%, rgba(237, 180, 223, 0.60)50%, rgba(197, 232, 230, 0.6)100%),
    url('images/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

.dangrek-regular {
    font-family: 'Dangrek', sans-serif;
    font-weight: 400;
    font-style: normal;
}  

.shutterTransition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease-out, visibility 1s ease-out;
    z-index: 1000; /* Ensure it covers everything */
}

.shutterTransition.active {
    opacity: 0;
    visibility: hidden;
}

/* Hide Doug and Points Box Initially */
.hidden-during-transition {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

/* Show Doug and Points Box After Transition */
.show {
    opacity: 1;
    visibility: visible;
}

.plantBuddy{
    width: 28vmin; 
    height: 28vmin;
    position: absolute;
    left: 44%;
    top: 39%;
    z-index: 5; /* Higher than the pot */

}

.desk{
    width: 100vmin; 
    height: 100vmin;
    border: solid 10px;
    border-color: rgb(131, 30, 131);
    border-style: inset;
}

/* Clickable Shop Areas (Super Close Together) */
.click-shop {
    position: absolute;
    width: 87px;  /* Slightly smaller width */
    height: 40px; /* Reduced height */
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0); /* Temporary red for testing */
    z-index: 5; /* Ensure it's above other elements */
}

/* Position Each Clickable Shop (Super Close Together) */
.shop1 { top: 27%; left: 39%; }  /* Move right */
.shop2 { top: 27%; left: 49%; }  /* Slightly closer */
.shop3 { top: 27%; left: 59%; }  /* Move closer */
.shop4 { top: 27%; left: 69%; }  /* Tighter spacing */


/* Shop Window (Smaller Size) */
.shop-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(111, 55, 55);
    padding: 15px; /* Reduced padding */
    width: 500px; /* Set a fixed width */
    height: auto; /* Set a fixed height */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}

/* Resize the Shop Image Inside */
.shop-window img {
    width: 100%; /* Ensures image fits within window */
    height: auto; /* Maintain aspect ratio */
    max-height: 90%; /* Prevents overflow */
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 30px;
    font-size: 70px;
    color: rgb(125, 75, 75);
    cursor: pointer;
}

.start-container {
    text-align: center;
    cursor: pointer;
}
.breathing-image {
    width: 800px;
    height: 800px;
    animation: breathing 3s infinite alternate ease-in-out;
}
@keyframes breathing {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}
.start-text {
    margin-top: 20px;
    font-size: 20px;
    color: #555;

}

/* Invisible Clickable Area Over Notebook */
.click-area {
    position: absolute;
    left: 39%; /* Adjust this value based on the notebook's position */
    top: 85%; /* Adjust this value based on where the notebook starts */
    width: 25%; /* Adjust the size to match the notebook */
    height: 15%; /* Adjust to match the notebook height */
    cursor: pointer;
    background: rgba(255, 0, 0, 0); /* Temporary red overlay for debugging */
}

/* Task Window (Initially Hidden) */
.task-window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    font-size: larger;
    border: solid 10px;
    border-color: rgb(131, 30, 131);
    border-style: inset;
    background: rgb(139, 84, 166);
    background: linear-gradient(0deg, rgba(139, 84, 166,1) 0%, rgba(255,230,252,1) 35%, rgba(223,255,253,1)100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden initially */
    z-index: 10;
}

/* Timer Display */
.timer {
    font-size: 25px;
    color: rgb(141, 24, 24);
    margin-left: 10px;
}


/* LED Light Image */
.led-light {
    position: absolute;
    top: 10%; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* Adjust size */
    height: auto;
    z-index: 5;
    opacity: 0.9; /* Slight transparency */
}

/* If the LED should only appear when selected */
.led-light.hidden {
    display: none;
}

/* Glowing effect when active */
.led-light.on {
    animation: ledGlow 1.5s infinite alternate ease-in-out;
}

@keyframes ledGlow {
    0% {
        filter: drop-shadow(0 0 5px #00ffcc);
    }
    100% {
        filter: drop-shadow(0 0 15px #00ffcc);
    }
}


.a_task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.timer {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
    color: rgb(141, 24, 24);
}

/* Style Task Input Boxes */
input[type="text"], input[type="number"] {
    width: 80%; /* Make inputs wider */
    padding: 10px;
    margin: 10px 0; /* Add spacing */
    border: 2px solid #6b4f4f; /* Soft border */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Input Focus Effect */
input[type="text"]:focus, input[type="number"]:focus {
    border-color: #8b6d6d; /* Change border on focus */
    box-shadow: 0px 0px 8px rgba(139, 109, 109, 0.5);
}

/* Style the Add Task Button */
button {
    width: 25%;
    padding: 10px;
    background-color: #2f0c62; /* Soft brown */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Hover Effect */
button:hover {
    background-color: #8b6d6d;
    transform: scale(1.05);
}


/* Points Window */
.points-window {
    position: fixed;
    top: 20%;
    right: 5%;
    width: 150px;
    height: 120px;
    border: solid 10px;
    border-color: rgb(131, 30, 131);
    border-style: outset;
    background: rgb(139, 84, 166);
    background: linear-gradient(0deg, rgba(139, 84, 166,1) 0%, rgb(220, 196, 217) 35%, rgb(222, 235, 235)100%);
    color: rgb(87, 49, 106);
    font-family: 'Dangrek', sans-serif;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style Points Text */
.points-window h2 {
    font-size: 25px;
    margin-bottom: 5px;
}

#pointsDisplay {
    font-size: 30px;
    font-weight: bold;
}

/* Container for Light Bulb Buttons */
.bulb-shop {
    display: flex;
    justify-content: center;
    gap: 12px; /* Reduce gap for 5 buttons */
    margin-top: 10px;
    flex-wrap: wrap; /* Allows wrapping if needed */
}
.buy-button {
    background-color: #7a4caf; /* Purple background */
    color: white;
    font-family: 'Dangrek', sans-serif;
    font-size: 19px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 30%; /* Make buttons take up most of the container */
    
    max-width: 140px; /* Prevent them from being too wide */
    text-align: center;
}

.buy-button:hover {
    background-color: #bfa6e1;
    border-color: #8a79b1;
    transform: scale(1.05); /* Slight grow effect */

}

/* Center the shop content */
.shop-content {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap into multiple rows */
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px; /* Reduce spacing to fit all buttons */
    padding: 20px;
}

/* Rain Shop Button */
.rain-shop {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.rain-button {
    background-color: #a6dcef;
    border: 2px solid #4d92b8;
    border-radius: 25px;
    padding: 10px 20px;
    font-family: "Dangrek", sans-serif;
    font-size: 16px;
    color: #285a75;
    cursor: pointer;
    transition: 0.3s;
}

.rain-button:hover {
    background-color: #89c6e5;
    border-color: #357399;
}

/* Hide by default */
.hidden {
    display: none;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap;
    width: 100%; /* Ensure buttons stay within the shop window */
}

/* Lightbulb Display (Position Under Background Lightbulb) */
#purchasedBulb {
    position: absolute;
    top: 35%; /* Adjust to fit under the background bulb */
    left: 42%;
    transform: translateX(-50%);
    width: 400px; /* Adjust as needed */
    height: auto;
    display: none; /* Hidden by default */
    z-index: 5; /* Ensure it's visible but not above UI elements */
}

/* Rain Cloud Animation (Moves Left to Right & Disappears After 10 Seconds) */
.rain-cloud {
    position: absolute;
    top: 20%; /* Adjust to float above Doug */
    left: 20%; /* Start position */
    width: 200px; /* Adjust size */
    height: auto;
    display: none; /* Hidden by default */
    z-index: 10; /* Ensure it appears above Doug */
    opacity: 0.9; /* Slight transparency for realism */
}

/* Left-to-Right Cloud Movement */
@keyframes cloudMove {
    0% { left: 10%; }
    50% { left: 50%; }
    100% { left: 80%; }
}

/* Styled Pop-Up Notification */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #8e44ad, #c39bd3);
    color: white;
    padding: 15px 25px;
    font-size: 20px;
    font-family: 'Dangrek', sans-serif;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out forwards;
}

/* Fade In and Out Animation */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -55%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -45%); }
}
#purchasedPot {
    position: absolute;
    top: 60%; /* Adjust to align with Doug */
    left: 51%;
    transform: translateX(-50%);
    width: 200px; /* Adjust size */
    height: auto;
    display: none; /* Hide until a pot is purchased */
    z-index: 2; /* Lower than Doug */
}
