/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 20px;
}

h1 {
    margin: 0;
}

/* Story Container */
.story-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

/* Story Block */
.story-block {
    width: 300px; /* Fixed width */
    height: 300px; /* Fixed height */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    max-width: 300px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    padding: 10px 15px; /* Padding to make it look nicer */
}

.story-block:hover {
    transform: scale(1.05);
}

/* Story Info */
.story-block img {
    width: 100%;
    height: 150px; /* Makes the image rectangular, adjust the height as needed */
    object-fit: cover;
    margin-bottom: 10px; /* Adds space between image and text */
}

.story-info {
    padding: 0 10px; /* Padding on left and right */
}

.story-info h2 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.story-info p {
    font-size: 1rem;
    color: #666;
}

/* Checked Status */
.checked-status {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
    margin-top: 5px;
}

/* Green for approved stories */
.story-block-green {
    background-color: #d4edda; /* Light green */
    border-color: #c3e6cb;
}

/* Red for stories needing corrections */
.story-block-red {
    background-color: #f8d7da; /* Light red */
    border-color: #f5c6cb;
}

/* Yellow for reviewed but not yet approved stories */
.story-block-yellow {
    background-color: #fff3cd; /* Light yellow */
    border-color: #ffeeba;
}

/* Add more colors as needed */

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .story-container {
        flex-direction: column; /* Stack blocks vertically */
        align-items: center;    /* Center blocks horizontally */
    }

    .story-block {
        width: 90%; /* Take up 90% of the screen width on mobile */
        height: auto; /* Let the height adjust to content on mobile */
    }

    .story-block img {
        height: auto; /* Adjust image height proportionally */
    }
}
