
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 
}

body {
    background: url('../assets/movie-2.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1; 
}

header {
    margin-bottom: 30px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff8a65, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 18px rgba(255, 82, 82, 0.5);
}

p {
    font-size: 1rem;
    opacity: 0.75;
}


.input-output-box {
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
    padding: 25px; 
    border-radius: 18px;
    max-width: 600px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}


.input-box {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #FF675A; 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(255, 179, 71, 0.2); 
    color: black;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(255, 138, 101, 0.2);
}

.input-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.input-box:focus {
    background: white;
    box-shadow: 0px 5px 15px rgba(255, 138, 101, 0.4);
    transform: scale(1.02);
}



button {
    margin-top: 15px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #ff8a65, #ff5252);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 12px rgba(255, 82, 82, 0.3);
    text-transform: uppercase;
}

button:hover {
    background: linear-gradient(90deg, #ff5252, #ff8a65);
    transform: scale(1.05);
    box-shadow: 0px 5px 18px rgba(255, 82, 82, 0.5);
}


.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


#movie-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease-in-out;
}

#movie-container.show {
    opacity: 1;
    transform: scale(1);
    min-height: 150px;
}


.movie-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff8a65;
}


.movie-year {
    font-size: 1.3rem;
    color: #ff5252;
}


.movie-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-top: 10px;
}


.loading {
    font-size: 1rem;
    color: #ff9966;
    animation: fadeIn 0.5s ease-in-out infinite alternate;
}

.error {
    font-size: 1rem;
    color: #ff5e62;
    font-weight: bold;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    margin-top: 30px;
    font-size: 1rem;
    text-align: center;
    opacity: 0.85;
    color: #ffffff;
}

.footer-link {
    color: #ff8a65;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-link:hover {
    color: #ff5252;
    text-decoration: underline;
}


.loading-spinner {
    border: 4px solid rgba(255, 138, 101, 0.3);
    border-top: 4px solid #ff8a65;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite, flicker 1.5s infinite alternate;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ff7f50;
    animation: typing 1.5s infinite alternate;
}


@keyframes typing {
    0% { content: "Finding the perfect movie"; }
    33% { content: "Finding the perfect movie."; }
    66% { content: "Finding the perfect movie.."; }
    100% { content: "Finding the perfect movie..."; }
}