* {
    font-family: Arial, sans-serif;
}

html {
    background-color: #51d0de;
}

html, body {
    min-height: 100vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

input[type="submit"]{
    border: none;
    border-radius: 10px;
    background-color: rgba(34, 112, 197, 0.79);
    width: fit-content;
    padding: 1.5rem;
    font-size: clamp(1rem, 2vw, 2rem);
}

input[type="submit"]:hover {
    background-color: rgba(85, 143, 205, 0.79);
}

input[type="submit"]:active {
    background-color: rgba(34, 112, 197, 0.79);
}

.movieContainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    flex: 1;
    max-width: 800px;
    width: 100%;
    min-height: 0;
    gap: 10px;
}

.moviePoster {
    max-width: 500px;
    width: 40%;
}


.moviePoster img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.movieDetails {
    text-align: left;
    width: 50%;
    line-height: 1.5;
}

.title {
    font-size: 2em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
}

.release_date {
    font-size: 1em;
    font-weight: bold;
    margin-top: 0;
}

progress {
    width: 100%;
    height: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

/* Background */
progress::-webkit-progress-bar {
    background-color: #eee;
}

/* HIGH */
progress.rating-high::-webkit-progress-value {
    background-color: #2ecc71;
}

/* MEDIUM */
progress.rating-medium::-webkit-progress-value {
    background-color: #f1c40f;
}

/* LOW */
progress.rating-low::-webkit-progress-value {
    background-color: #e74c3c;
}

/* Firefox */
progress.rating-high::-moz-progress-bar {
    background-color: #2ecc71;
}

progress.rating-medium::-moz-progress-bar {
    background-color: #f1c40f;
}

progress.rating-low::-moz-progress-bar {
    background-color: #e74c3c;
}


@media (max-width: 600px) {
    .moviePoster,
    .movieDetails {
        width: 100%;
    }

    .movieContainer {
        justify-content: center;
    }
}
