/* 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;
}

/* Specific Styling for this Page */
#nominations-container {
    width: 100%; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.category {
    background-color: #f9f9f9; /* Light background for category sections */
    border-radius: 5px;
    padding: 20px;
}

.category h2 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.nominee {
    cursor: pointer;
    padding: 5px 10px; 
    border-radius: 3px;
    transition: all 0.2s ease;
}

.nominee:hover {
    background-color: #e6f7ff; 
    transform: translateY(-2px); 
}

.nominee.selected {
    background-color: #e6f7ff; 
    font-weight: bold; 
    border: 1px solid #007bff; /* Add a border to the selected nominee */
}

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

.movie-container {
    width: 100%;
    max-width: 100%; 
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "poster"
        "title"; 
    transition: all 0.2s ease; 
}

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

.movie-info {
    grid-area: title;
    padding-left: 15px;
}

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

.nominations-list {
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.nominations-list div { 
    margin-bottom: 3px; 
}

.no-nominations {
    font-style: italic;
    color: #777;
}

.save-button {
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    color: #fff;
    background-color: #2196f3;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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);
}

.nominee.winner {
    background: linear-gradient(45deg, gold, #ffcc00, #ff9900);
    background-size: 200% 200%;
    animation: glitter 2s linear infinite;
    font-weight: bold;
    border: 1px solid #ffcc00;
}

@keyframes glitter {
    0% {
        background-position: 200% 0%;
    }
    100% {
        background-position: -200% 0%;
    }
}

.nominee.winner:hover {
    background: linear-gradient(45deg, #ffd700, #ffcc00, #ff9900);
    background-size: 200% 200%;
    animation: glitter 2s linear infinite;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    /* Adjust main container width for smaller screens */
    main {
        width: 90%; 
    }

    .movie-container {
        /* Stack poster and title vertically on smaller screens */
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto;
        grid-template-areas:
            "poster"
            "title"; 
    }
}

.user-picks-for-nominee {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.user-pick-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}
