/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    overflow-x: hidden;
}

header {
    background-color: #fff;
    color: #2196f3;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-weight: 700;
}

#homeButton {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#homeButton:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    width: 90%; 
    max-width: 1400px;
    margin-top: 20px;
}

/* Recent Movies Container */
#recent-movies-container {
    width: 100%; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* Card-like styling for each movie entry */
.movie-item {
    display: flex;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Movie Poster */
.poster {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    transition: transform 0.2s ease; 
}

/* Movie Details */
.movie-info {
    flex: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
}

.watched-by {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.rating {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    main {
        width: 95%; 
    }

    .movie-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-info {
        margin-left: 0;
        margin-top: 10px;
    }
}
