@keyframes colorChange {
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; } 
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}
body {
    background: linear-gradient(-45deg, #0D1B2A, #1A2C42, #233C5A, #2D4D72, #375F8A, #417FA2);
    background-size: 400% 400%;
    animation: colorChange 22s ease infinite;
    background-attachment: fixed;
    margin: 0;
    font-family: Arial, sans-serif;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

h1 {
    color: #333;
}

.welcome-heading {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #e7f7ff, #b0eeff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    text-decoration: none;
    font-weight: bold;
    color: #565454;
    background: linear-gradient(45deg, #9fdfff, #beb9f0); 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.button:focus,
.button:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(150, 230, 160, 0.5);
}

/* --- Previous Styles for context --- */
.header-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    max-width: 80%;
    margin: 20px auto; 
}

.header-container h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: auto;
}

.header-container .button {
    background: linear-gradient(to bottom, #89f7fe, #a5fad5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-container .button:hover {
    background: linear-gradient(to bottom, #dfeaeb, #a5fad5);
    -webkit-background-clip: text;
    background-clip: text;
    background-color: rgba(255, 255, 255, 0.15); 
    transform: translateY(-2px);
}

.header-container .button:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2); 
}

.module-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.info-container {
    margin: 20px auto;
    max-width: 80%;
    background-color: white;
    border-left: 4px solid #32acaa;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
}
@media (max-width: 768px) {
    .header-container h1 {
        display: none;
    }
    .header-container {
        width: 85%;
        justify-content: space-evenly;
    }
    
}
/* progress styles */

.table-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto; 
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse; 
}

th, td {
    padding: 12px; 
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold; 
}

tr:hover {
    background-color: #f9f9f9;
}

.completed-row {
    background-color: #d4edda; 
}
.landing-container {
    text-align: center;
}

.landing-container h1 {
    margin-bottom: 20px;
}

.landing-container a.button {
    display: block;
    margin: 10px auto;
    padding: 15px 10px;
    width: 300px;
    text-decoration: none;
    background-color: #4CAF50;
    color: rgb(86, 90, 87);
    border-radius: 10px;
    font-size: 18px;
    transition: background-color 0.3s;
}

/* Styles for the Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(80px);
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    position: relative;
    border-radius: 10px;
    text-align: left;
    max-width: 600px;
    width: 80%;
    height: 37vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.popup-content h1 {
    text-align: center;
    margin-bottom: 0px;
}

.popup-content h2 {
    text-align: center;
    margin-bottom: 60px;
}

.popup-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    position: relative;
}

.popup-question {
    margin-top: 40px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    position: absolute;
    text-align: center;
    justify-content: center;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
}

/* Only active questions can receive pointer events */
.popup-question:not(.active) {
    pointer-events: none;
}

.popup-question.active {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.popup-question.slide-out {
    opacity: 0;
    transform: translateX(-100%) translateY(-50%);
}

.popup-question.slide-in {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.popup-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.popup-buttons button {
    margin: 5px;
    padding: 10px 20px;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 0 0 auto;
    min-width: 80px;
}

.popup-buttons button.yes-button {
    background-color: #90EE90;
}

.popup-buttons button.yes-button:hover {
    background-color: #73c973;
}

.popup-buttons button.no-button {
    background-color: #F08080;
}

.popup-buttons button.no-button:hover {
    background-color: #e36b6b;
}
.ring-progress-wrapper {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.ring-box {
    width: 100%;
    max-width: 180px;
    margin: 10px 0;
    padding: 15px;
    border-radius: 0.8rem;
    text-align: center;
    color: #e0e0e0;
    background: rgba(28, 28, 28, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.ring-box h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #90ee90;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.progress-icon {
    color: #90ee90;
    font-size: 1.5rem;
    margin-right: 8px;
}

.progress-label {
    font-weight: bold;
    margin-right: 8px;
}

.progress-value {
    margin-left: auto;
}

.ring-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #90ee90;
}

.progress-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
    position: relative;
}

.progress-ring__bg {
    stroke: #ddd;
    stroke-width: 10;
    fill: transparent;
}

.progress-ring__fg {
    stroke: url(#ringGradient);
    stroke-width: 10;
    fill: transparent;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s;
}

.ring-text {
    fill: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

.contrib-container {
    display: flex;
}

.contrib-week {
    display: flex;
    flex-direction: column;
    margin-right: 3px;
}

.day-square {
    width: 14px;
    height: 14px;
    margin-bottom: 3px;
    border-radius: 2px;
    background-color: #eee;
    transition: background-color 0.3s;
}

.count-1 {
    background-color: #9be9a8;
}

.count-2 {
    background-color: #40c463;
}

.count-3 {
    background-color: #30a14e;
}

.count-4 {
    background-color: #216e39;
}