@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap');

/* Styling */

* {
    box-sizing: border-box;
}

:root { /* warna warna yang digunakan*/
    --primary-color: #594545;
    --secondary-color: #FFF8EA;
    --primary-dark: #9E7676;
    --secondary-dark: #815B5B;
}

body {
    background-color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-dark);
}

header a {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 1.5rem;
}

header a span {
    font-weight: 100;
}

.search {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: inherit;
}

.search:focus {
    outline: 0;
    background-color: var(--secondary-color);
}

.search::placeholder {
    color: var(--secondary-color);
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.movie { /*buat edit bagian tampilan list film*/
    width: 300px;
    margin: 1rem;
    border-radius: 3px;
    box-shadow: 0.2px 4px 5px #100F0F; /* buat bikin bayangan*/
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.movie img {
    height: 480px;
    width: 100%;
}

.movie-info {
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.container {
    height: 125px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem;
    letter-spacing: 0.5px;
}

.movie-info h3 {
    margin-top: 0;
    margin-right: 1rem;
}

.movie-info span {
    background-color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.movie-info span.green {
    color: rgb(119, 255, 119);
}

.movie-info span.orange {
    color: rgb(255, 191, 73);
}

.movie-info span.red {
    color: rgb(255, 48, 48);
}

.date {
    color: var(--primary-color);
    padding: 0.5rem 1rem 0.5rem;
    letter-spacing: 0.5px;
}

.date h4 {
    font-weight: 500;
}

.overview {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--secondary-color);
    background-color: var(--primary-dark);
    padding: 1rem;
    max-height: 100%;
    transform: translateY(101%);
    transition: transform 0.3s ease-in;
}

.movie:hover .overview {
    transform: translateY(0);
}

.no-results {
    color: white;
}

.pagination {
    display: flex;
    margin: 75px 0px;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.page {
    padding: 20px;
    cursor: pointer;
}

.page.disabled {
    cursor: not-allowed;
    color: grey;
}

.current {
    padding: 10px 20px;
    border-radius: 5px;
    border: 3px solid var(--secondary-dark);
    font-size: 20px;
    font-weight: 600;
}

@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}