/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #181818;
    color: white;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #222;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.search-form {
    display: flex;
    gap: 10px;
}

.inputbox {
    padding: 8px;
    border: none;
    border-radius: 5px;
}

.search-button {
    padding: 8px 12px;
    border: none;
    background-color: #e50914;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

#movie-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusts based on screen size */
    gap: 20px; /* Space between the cards */
    padding: 20px;
    justify-items: center; /* Center the cards horizontally */
  }

/* Main Content */
.container {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

.movies h2 {
    text-align: center;
    background-color: #a8c7c0;  /* A calm, visible blue */
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.movie-grid .movie-card {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    background-color: #222;
}

.movie-poster {
    width: 180px; 
    height: 270px;
    object-fit: cover; 
    border-radius: 5px;
}

/* Sorting Controls */
.sorting-movies, .filtering-movies {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding: 10px;
    background: #222;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.sorting-movies label ,.filtering-movies label {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.sorting-movies select,.filtering-movies input, .sorting-controls button {
    padding: 10px 12px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

.sorting-movies select {
    background: #444;
    color: #fff;
    cursor: pointer;
}

.sorting-movies select:focus,.filtering-movies input:focus {
    outline: none;
    border: 2px solid #ff9800;
}

.sorting-movies button {
    background: #ff9800;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.sorting-movies button:hover {
    background: #e68900;
    transform: scale(1.05);
}



.star {
    font-size: 24px;
    cursor: pointer;
    color: gray; /* Default star color */
    transition: color 0.3s ease-in-out;
  }
  
  .star.active {
    color: gold; /* Highlighted star color */
  }

  /* Timer Container - Flexbox */
.timers-container {
    display: flex;
    justify-content: space-around; /* Spacing between items */
    align-items: center;
    width: 80%; /* Adjust width */
    margin: 20px auto;
    gap: 20px; /* Space between the two sections */
}

/* Timer Boxes */
.timer-section, .page-timer {
    flex: 1; /* Equal width */
    background-color: #1a1a2e;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Responsive - Stack on small screens */
@media (max-width: 768px) {
    .timers-container {
        flex-direction: column;
        width: 100%;
    }
}


/* Timer Display */
#movie-timer-display, #elapsed-time {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff5733;
    animation: pulse 1s infinite alternate;
}

/* Animation for Timer */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0.8; }
}
  
  