/* General styling */
body {
    font-family: 'Arial', sans-serif;
    background: url('https://th.bing.com/th/id/R.6a7a745d0cf6e1478e104e6a7fee6cc1?rik=xULJFzGntGDtew&riu=http%3a%2f%2fwonderfulengineering.com%2fwp-content%2fuploads%2f2016%2f01%2fnature-wallpapers-38.jpg&ehk=dUtU7hvI%2bIv1ZAogg0%2b%2fznLW5KEYTsPob9LlywpnX1Q%3d&risl=&pid=ImgRaw&r=0') no-repeat center center fixed; /* Updated background image */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
}

/* Task box styling */
.task-box {
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 700px; /* Adjusted width */
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    animation: popup 0.5s ease-out;
}

/* Countdown timer styling */
/* Countdown timer styling */
.countdown-timer {
    font-size: 24px; /* Larger font size for better visibility */
    font-weight: bold;
    color: #ffffff; /* White color for the text */
    background: linear-gradient(135deg, #f39c12, #e74c3c); /* Gradient background */
    border-radius: 12px; /* Rounded corners */
    padding: 15px 25px; /* Extra padding */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out; /* Fade-in animation */
}

/* Animation for the countdown timer */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Task bar styling */
.task-bar {
    background: #ffffff; /* White background for individual bars */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px; /* Spacing between bars */
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out, box-shadow 0.3s;
    border: 1px solid #dcdcdc; /* Light border for separation */
}

.task-bar.blue {
    background-color: #e7f0ff; /* Light blue for pending tasks */
}

.task-bar.green {
    background-color: #d4edda; /* Light green if posted */
}

/* Apply a bright green light effect when task box is touched */
.task-bar:active {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6); /* Bright green light effect */
}

/* Text in task bars */
.task-bar p {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: bold;
}

/* Enhanced Choose File button */
.task-photo {
    display: block;
    margin: 10px 0;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.task-photo::before {
    content: 'Choose File';
    display: block;
    padding: 10px;
    border-radius: 5px;
    background: inherit;
    color: inherit;
    text-align: center;
    line-height: 1.5;
}

.task-photo:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

/* Post button styling */
.post-button {
    padding: 10px 20px;
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

.post-button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

/* Progress bar container styling */
.progress-bar-container {
    margin-top: 30px;
    position: relative;
}

/* Progress bar styling */
.progress-bar {
    height: 25px;
    background-color: #e9ecef;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background-color: #17a2b8;
    width: 0;
    transition: width 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}
