* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: #ff3434;
}

.logo {
    width: 90px;
    /* Thu nhỏ logo */
    height: auto;
    display: flex;
}


/* Thanh tìm kiếm */

.search-container {
    display: flex;
    align-items: center;
    background: #eee;
    border-radius: 25px;
    padding: 8px 15px;
    width: 350px;
}

.search-container input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    width: 100%;
    padding: 5px;
}

.search-container .icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.search-container input:focus {
    border-color: #d41a2f;
    outline: none;
}

.search-container .icon:hover {
    color: #d41a2f;
    cursor: pointer;
}


/* Phần bên phải (Đăng nhập) */

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-section a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.right-section a:hover {
    color: white;
}


/* Menu chính */

.menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    background-color: #ff5b5b;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    height: 50px;
    display: flex;
    margin-top: 5px;
    padding: 10px 15px;
    transition: 0.3s;
}

.menu a:hover {
    color: white;
    text-decoration: underline;
}


/* Line phân cách */

.line {
    width: 100%;
    height: 3px;
    background: black;
    margin: 0 auto;
}


/* Header */

.Header {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 50px;
    justify-content: center;
    display: flex;
}


/* Body từng trang */

.Body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* Body trang Login/SignUp */

.Body_Login {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}


/* Danh sách phim */

.movie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}


/* Image setting */

.image {
    gap: 10px;
    padding: 1% 1%;
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
}

.image img {
    height: 420px;
    width: 300px;
    border-radius: 20px;
}

.image p {
    display: block;
}


/* Lịch xem phim */

.schedule-box {
    border: 3px solid black;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.title {
    font-weight: bold;
    margin-bottom: 10px;
}

.time-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.time-button {
    padding: 10px 15px;
    border: 2px solid black;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.time-button:hover {
    background: black;
    color: white;
}

.contain {
    justify-content: center;
}


/* Hiệu ứng trượt */

.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-active {
    opacity: 1;
    transform: translateY(0);
}


/* Login form */

.container {
    margin-top: 100px;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-group {
    display: block;
    position: relative;
    width: 350px;
    margin: 5px auto;
}

.form-group>* {
    display: block;
    margin-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #d41a2f;
    color: black;
    width: 100%;
    flex-shrink: 0;
}

.buy-ticket-btn {
    border-radius: 10px;
    border-width: 3px;
    font-weight: bold;
    font-size: 20px;
    size: 50px;
    padding: 15px 15px 15px 15px;
    margin-top: 10px;
    display: inline-block;
}

.buy-ticket-btn:hover {
    cursor: pointer;
    transition: background-color 0.5s ease;
    color: white;
    background-color: #d41a2f;
}


/* Bảng giá vé */

.price-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.price-table th {
    background-color: #ff3434;
    color: white;
}

.price-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.price-table tr:hover {
    background-color: #f1f1f1;
}


/* Thanh toán */

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-title {
    font-weight: bold;
    font-size: 24px;
    color: #ff3434;
    margin-bottom: 15px;
}

.payment-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

#pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#pay-button:enabled {
    background: #d41a2f;
    color: white;
}


/* Trang profile */

.profile-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.profile-item {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.profile-item strong {
    color: #ff3434;
    margin-right: 10px;
}

.profile-container a {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.profile-container a:hover {
    color: #d41a2f;
}

.edit-form {
    margin-top: 20px;
    display: none;
}

.edit-form.active {
    display: block;
}

.edit-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.edit-form button {
    padding: 10px 20px;
    background: #ff3434;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.edit-form button:hover {
    background: #d41a2f;
}


/* Trang vé */

.ticket-table {
    margin-top: 30px;
    width: 100%;
    border-collapse: collapse;
}

.ticket-table th,
.ticket-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.ticket-table th {
    background: #ff5b5b;
    color: white;
}

.toggle-edit {
    margin-top: 10px;
    padding: 5px 10px;
    background: #ff3434;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-edit:hover {
    background: #d41a2f;
}


/* Trang giới thiệu */

.intro {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.intro h1 {
    font-size: 28px;
    color: #ff3434;
    margin-bottom: 20px;
    font-weight: bold;
}

.intro-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.intro-img:hover {
    transform: scale(1.05);
}

.intro p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro p strong {
    color: #d41a2f;
}


/* Ảnh */

.gallery {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery img {
    width: 30%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Trang yêu cầu login để mua vé */

.login-prompt {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.login-message {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.login-link {
    text-decoration: none;
    color: #ff3434;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.login-link:hover {
    color: #d41a2f;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Trang mua vé (Phần chọn ghế) */

.seat-layout {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    /* 5 dòng */
    grid-template-columns: repeat(10, 1fr);
    /* 10 ghế mỗi dòng */
    gap: 15px;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.screen {
    width: 70%;
    margin: 0 auto 20px;
    padding: 10px;
    background: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
}

.seat {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.seat-available {
    border-color: #28a745;
    background: #e9f5e9;
}

.seat-available:hover {
    background: #d4edda;
}

.seat-vip {
    border-color: #ffc107;
    background: #fff3cd;
}

.seat-vip:hover {
    background: #ffeeba;
}

.seat-taken {
    border-color: #dc3545;
    background: #f8d7da;
    cursor: not-allowed;
}

.seat-selected {
    border-color: #17a2b8;
    background: #d1ecf1;
    font-weight: bold;
}

.seat-info {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
}