@import url('https://fonts.googleapis.com/css2?family=Baloo&display=swap');

body {
    font-family: 'Baloo', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e8f5e9; /* Light green background */
    color: #333;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2e7d32; /* Darker green for headings */
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    border-bottom: 2px solid #a5d6a7; /* Light green border */
    padding-bottom: 15px;
}

.intro-text {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: #4caf50; /* Green for intro text */
    font-size: 1.1em;
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wish-card {
    display: block;
    background-color: #c8e6c9; /* Lightest green for cards */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #1b5e20; /* Dark green for card text */
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #a5d6a7; /* Slightly darker green on hover */
}

/* Styles for individual detail pages */
.detail-page h1 {
    font-size: 3em;
    color: #1b5e20; /* Dark green for detail page heading */
    margin-bottom: 15px;
}

.wish-message {
    font-size: 1.3em;
    text-align: center;
    color: #388e3c; /* Medium green for wish message */
    margin-bottom: 30px;
    padding: 0 20px;
}

.cat-image-container {
    text-align: center;
    margin-top: 20px;
    border: 1px solid #a5d6a7; /* Light green border */
    border-radius: 8px;
    padding: 10px;
    background-color: #fcfcfc;
}

.cat-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #388e3c; /* Medium green for back link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1b5e20; /* Dark green on hover */
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h1 {
    color: #2e7d32;
    font-size: 2em;
    margin-bottom: 25px;
    border-bottom: none;
    padding-bottom: 0;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#secretKeyInput {
    padding: 10px 15px;
    border: 2px solid #a5d6a7;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
    width: 70%;
    margin-right: 10px;
    font-family: 'Baloo', sans-serif;
}

#secretKeyInput:focus {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

#loginButton {
    padding: 10px 20px;
    background-color: #4caf50; /* Green button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Baloo', sans-serif;
}

#loginButton:hover {
    background-color: #388e3c; /* Darker green on hover */
}

.error-message {
    color: #d32f2f; /* Red for error messages */
    font-weight: bold;
    margin-top: 15px;
}
