@font-face {
    font-family: "Delius Swash Caps";
    src: url("../fonts/DeliusSwashCaps-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: "Delius Swash Caps";
    background: #fffaf0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-top: 10rem; /* Adjusted padding to ensure it clears the header */
    display: flex;
    flex-direction: column;
    align-items: center;
}
button {
    padding: 1rem 1.8rem;
    font-size: 1.8rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background: #c9d5bb;
}

/* Logo */
/* Headings */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background-color: #fff5f5;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8rem;
    z-index: 1000;
    border-radius: 20px;
}
/* Headings */
h1 {
    margin: 1rem 0;
    text-align: center;
    width: 100%;
    font-size: 3.5rem;
    color: #efbedd;
}
/* Spacer after header */
header + * {
    margin-top: 10rem;
}

/* Logo */
img.header-logo {
    width: 10rem;
    margin: 1rem;
    margin-top: 1rem;
    border-radius: 20px;
}

/* Hamburger Button */
.hamburger {
    font-size: 2.5rem;
    background-color: #c9def0;
    border: none;
    cursor: pointer;
    color: #286567;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: #c9def0;
}

/* Navigation Menu */
.nav {
    display: none;
    background: #c9d5bb;
    padding: 1rem;
    position: absolute;
    top: 10rem;
    left: 20px;
    width: 200px;
    border-radius: 10px;
    text-align: center;
}

.nav ul {
    list-style: none;
    padding: 0;
    font-size: 20px;
}

.nav li {
    margin: 0.8rem 0;
}

.nav a {
    text-decoration: none;
    color: white;
    background-color: #c9def0;
    padding: 10px;
    display: block;
    font-weight: bold;
    border-radius: 5px;
}

.nav a:hover {
    background-color: #d9cdfb;
}

.nav.show {
    display: block;
}

.goal-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffeaa7;
    color: mediumpurple;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
    z-index: 9999;
    animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}
/* Pet Selector Dropdown */
#petSelector {
    font-size: 1.4rem;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #f3dac6;
    border: none;
    color: #286567;
    width: 250px;
    text-align: center;
    cursor: pointer;
}

#petSelector option {
    background-color: #ffb6b9;
    color: #fff;
}

/* Dashboard Container (Profiles) */
#dashboardContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem; /* Space between dropdown and pet profiles */
    width: 100%;
}

/* Pet Profile Card */
.profile-card {
    background: #ffeaea;
    border-radius: 20px;
    padding: 2rem;
    width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
}

div.pet-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffb6b9;
    margin: 0 auto 1rem;

    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem; /* Makes the emoji larger */
}

.pet-name {
    font-size: 2rem;
    color: skyblue;
    margin-bottom: 1rem;
}

/* Task Styles */
.task {
    margin-bottom: 2rem;
}

.task label {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.3rem;
}

.checkboxes {
    margin-bottom: 0.5rem;
}

.checkboxes input {
    width: 3rem;
    height: 2rem;
    margin: 0.5rem;
    cursor: pointer;
}
/* Progress Bar */
.progress-container {
    height: 40px; /* Adjusted for better visibility */
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #90caf9; /* Default color */
    border-radius: 10px;
    transition:
        width 0.3s ease,
        background-color 0.3s ease; /* Ensure smooth transition */
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
}
.goal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: darkorange;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.goal-popup.show {
    display: block; /* Display when shown */
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows interaction with other elements underneath */
    z-index: 9999; /* Ensure it's above everything else */
}
paragraph {
    color: #286567;
}
label {
    color: #286567;
    font-size: 1.5rem;
    margin-top: 1rem;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d9cded; /* Violet */
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: white;
    z-index: 1000;
}
