/* General Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f8ff;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0077b6;
    padding: 15px 30px;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.navbar .login-container {
    flex-grow: 1;
    text-align: right; 
}

/* Animated Water Benefits Image */
.image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.animated-image {
    width: 80%;
    max-width: 800px;
    animation: fadeInZoom 2s ease-in-out;
}

/* Animation: Fade in with zoom */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    font-size: 30px;  /* Adjust the size as needed */
    font-weight: bold;  /* Makes the text bold */
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;  /* Adjust logo size */
    height: auto;
    margin-right: 8px; /* Adds space between logo and text */
}

/* Sections */
section {
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

#app {
    background: #e0f7fa;
    padding: 40px;
    border-radius: 10px;
}
.login-btn {
    background-color: white;
    color: #0077b6;
    border: none;
    padding: 10px 60px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin: auto;
    margin-left: 30px; 

    
}

.login-btn:hover {
    background-color: #ddd;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 10% auto;
    width: 300px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #0077b6;
    border-radius: 5px;
}

.modal-content button {
    background-color: #0077b6;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

.modal-content button:hover {
    background-color: #005f7a;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#loginMessage {
    margin-top: 10px;
    font-size: 14px;
}
/* Game Section */
#game {
    margin-top: 50px;
    text-align: center;
}

.game-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #cce7ff;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
}

.bucket {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background-color: #0077b6;
    border-radius: 20px;
}

.water-drop {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: #00aaff;
    border-radius: 50%;
    animation: dropFall 2s linear infinite;
}

@keyframes dropFall {
    0% {
        top: -30px;
    }
    100% {
        top: 100%;
    }
}

/* Water Droplet for Game Over */
.water-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #00aaff;
    color: white;
    font-size: 24px;
    padding: 20px;
    border-radius: 50%;
    text-align: center;
    width: 100px;
    height: 100px;
    display: none; /* Hidden initially */
    justify-content: center;
    align-items: center;
    display: flex;
}

.set-goal {
    margin-bottom: 30px;
}

input {
    padding: 10px;
    font-size: 16px;
    width: 80px;
    margin-right: 10px;
}

button {
    background-color: #0077b6;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #005f7a;
}

/* Water Tracking */
.cup {
    background-color: #fff;
    border: 4px solid #0077b6;
    color: #0077b6;
    border-radius: 0 0 40px 40px;
    height: 330px;
    width: 150px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cups {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.cup-small {
    width: 50px;
    height: 95px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    text-align: center;
    font-size: 14px;
    line-height: 95px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cup-small.full {
    background-color: #0077b6;
    color: white;
}

.text {
    font-size: 18px;
    margin-top: 10px;
}

.remained {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.remained span {
    font-size: 20px;
    font-weight: bold;
}

.remained small {
    font-size: 12px;
}

.percentage {
    background-color: #0077b6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 30px;
    height: 0;
    transition: 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: #e0f7fa;
    padding: 60px;
    text-align: center;
}

.hero-section h1 {
    font-size: 36px;
    color: #0077b6;
}

.hero-section p {
    font-size: 18px;
    margin-top: 10px;
}

/* Facts Section */
.facts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px;
}

.fact-card {
    background: white;
    width: 250px;
    height: 200px;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #0077b6;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInCard 1s ease forwards;
}

.fact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.fact-card h2 {
    font-size: 22px;
    color: #0077b6;
}

.fact-card p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Animation for Fact Cards */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer */
footer {
    background: #8cbbd8;
    color: rgb(1, 1, 1);
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}