body {
    background: #440000;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    max-width: 550px;
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

h1, h2 {
    text-align: center;
    color: #000000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.genres {
    color: #000000; /* Set the text color to black */
	font-size: 10px; /* Adjust the font size as needed */
}
.rating-text {
    color: #000000; /* Set the text color to black */
	font-size: 26px; /* Adjust the font size as needed */
}
.release-date {
    color: #004400; /* Set the text color to black */
	font-size: 10px; /* Adjust the font size as needed */
}
.content-rating {
    color: #000000; /* Set the text color to black */
	font-size: 10px; /* Adjust the font size as needed */
}
.dateshow {
    color: #000000; /* Set the text color to black */
	font-size: 10px; /* Adjust the font size as needed */
}
.descript{
	   color: #000000; /* Set the text color to black */
	   font-size: 10px; /* Adjust the font size as needed */
}
.header {
	   color: #000000; /* Set the text color to black */
	   font-size: 14px; /* Adjust the font size as needed */
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th:nth-child(2), td:nth-child(2) { /* Target the second <th> and <td> which is for the movie title */
    min-width: 200px; /* Adjust as needed */
    white-space: nowrap; /* Prevents the text from wrapping */
    overflow: hidden; /* Keeps the content within the cell */
    text-overflow: ellipsis; /* Adds an ellipsis if the text is too long */
}

.movie-photo {
    max-width: 150px; /* Reduced size for modal */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.movie-photo:hover {
    transform: scale(1.5);
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #45a049;
}
  

.close {
    color: #aaa;
    float: right; /* Positions the close button to the right */
    font-size: 28px; /* Makes the close button larger */
    font-weight: bold;
    padding: 0 10px; /* Adds some padding */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

li img {
    max-width: 110px; /* Adjusted size for list items */
    margin-right: 10px;
}

li p {
    margin: 0;
}
 /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

    .modal-content {
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        width: 90%; /* Adjust the width as needed */
        max-width: 600px; /* Adjust the max-width as needed */
        border-radius: 5px;
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
        color: #000; /* Change text color to black */
    }

    /* Style for movie options */
    .movie-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .movie-option img {
        max-width: 150px; /* Adjust the image size as needed */
        max-height: 175px; /* Adjust the image size as needed */
        margin-right: 10px;
    }
.sort-form {
    text-align: center; /* Center the sort form */
    margin-bottom: 20px; /* Add some space below the form */
}
/* Responsive adjustments */
/* Mobile adjustments */
@media (max-width: 600px) {
    body {
        padding: 5px; /* Reduced padding for smaller screens */
        max-width: none; /* Allows the body to expand to full width */
    }

    .movie-photo {
        max-width: 100px; /* Smaller images for mobile */
        height: auto;
    }

    .rating-text {
        font-size: 18px; /* Smaller font size for mobile */
    }

    th, td {
        padding: 5px; /* Smaller padding for table cells on mobile */
    }

    th:nth-child(2), td:nth-child(2) { /* Adjust title cell styles for mobile */
        min-width: 0; /* Allows the title cell to shrink on small screens */
        white-space: normal; /* Allows text to wrap in title cell on small screens */
        overflow: visible; /* Allows content to be visible */
        text-overflow: clip; /* Default clipping of text */
    }

    .modal-content {
        width: 95%; /* Full width minus a little padding */
        margin: 15% auto; /* Adjusted margin for smaller screens */
        max-width: none; /* No max-width to restrict the size */
    }

    .close {
        font-size: 24px; /* Slightly smaller close button on mobile */
    }

    /* Any other mobile-specific styles you want to add */
}