* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo Da 2', cursive, sans-serif;
}

body {
    background-color: #E8F5E9; /* Soft Green */
    color: #333;
}

.app-header {
    background: linear-gradient(135deg, #FF9800, #FFC107);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo p {
    font-size: 0.9rem;
}

/* Blinking Install Button */
.blinking-btn {
    background-color: #E91E63;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.5; transform: scale(0.95); }
}

.intro-text {
    text-align: center;
    padding: 20px;
}

.intro-text h2 {
    color: #2E7D32;
    font-size: 1.5rem;
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.story-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s;
    border-top: 5px solid #4CAF50;
}

.story-card:nth-child(even) {
    border-top: 5px solid #2196F3;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.story-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #424242;
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: #E91E63;
    cursor: pointer;
}

.modal-body {
    margin: 15px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
}

.moral-box {
    background-color: #FFF9C4;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #FBC02D;
    margin-top: 20px;
    font-size: 1.1rem;
    color: #000;
}
/* Read Status Styles */
.story-card.read {
    background-color: #F5F5F5;
    border-top: 5px solid #9E9E9E;
    box-shadow: none;
}

.story-card.read .story-title {
    color: #757575;
}

.read-badge {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

