/* Algemene styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    padding: 20px;
}

.poster-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.poster-container {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

.film-poster {
    width: 180px;
    border-radius: 5px;
    margin-right: 20px;
}

.recensies-container, .form-container {
    flex: 1;
    text-align: left;
    margin-right: 10px;
}

.recensies-container h3 {
    margin-top: 0;
}

.recensie {
    background: #eee;
    padding: 8px;
    margin: 5px 0;
    margin-right: 5px;
    border-radius: 5px;
}

.form-container {
    flex: 1;
    text-align: left;
}

.recensie-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.recensie-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
}

.recensie-form select, .recensie-form button {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.recensie-form button {
    background: #007bff;
    color: white;
    font-weight: bold;
    border: none;
}

/* Popup voor korting */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.popup .close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

.hidden {
    display: none;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .poster-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .film-poster {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .recensies-container, .form-container {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .poster-container {
        padding: 10px;
    }

    .recensies-container, .form-container {
        margin: 10px 0;
        padding: 0 10px;
    }

    .recensie {
        text-align: left;
    }

    .recensie-form textarea, .recensie-form select, .recensie-form button {
        width: 100%;
    }
}