/* cinema-booking.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');


/* Show Selector */
.show-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.movie-picker,
.time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .movie-picker select,
    .time-picker select {
        background-color: white;
        border: 0;
        border-radius: 5px;
        font-size: 14px;
        padding: 8px 15px;
        min-width: 200px;
        cursor: pointer;
    }

/* Seat Styles */
.seat {
    background-color: #fcf3df;
    width: 30px;
    height: 25px;
    margin: 12px 6px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.sofa {
    height: 30px;
    width: 72px !important;
}

.seat.selected {
    background-color: #ffb2da;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 178, 218, 0.5);
}

.seat.reserved {
    background-color: #ffa500;
    cursor: not-allowed;
}

    .seat.reserved.my-reservation {
        background-color: #ff6b6b;
        animation: pulse 2s infinite;
    }

.seat.occupied {
    background-color: #282d5a;
    cursor: not-allowed;
}

.row {
    display: flex;
    justify-content: center;
}

.container .seat:not(.occupied):not(.reserved):hover {
    cursor: pointer;
    transform: scale(1.2);
    transition: transform 0.1s;
}

/* Animation for my reservations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Legend */
.legend {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

    .legend li {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .legend li small {
            font-size: 14px;
        }

/* Container */
.container {
    perspective: 1000px;
    margin-bottom: 30px;
    margin-top: 60px;
}

.screen {
    width: 100%;
    height: 70px;
    background-color: #fff;
    margin: 15px 0;
    transform: rotateX(-45deg);
    border-radius: 1px;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.7);
    background-size: cover; /* <------ */
    background-repeat: no-repeat;
    background-position: center center;
}

.movieTitle {
    color: #282d5a;
    font-weight: bold;
    font-size: 120%;
    padding: 25px 5px;
    text-align: center;
}

/* Booking Controls */
.booking-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

#bookHelptext {
    margin: 10px 0;
    font-size: 16px;
    opacity: 0.8;
}

/* Buttons */
button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

    button.book {
        background-color: #4CAF50;
        color: white;
    }

        button.book:hover {
            background-color: #45a049;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

    button.confirm {
        background-color: #2196F3;
        color: white;
    }

        button.confirm:hover {
            background-color: #1976D2;
        }

    button.cancel {
        background-color: #f44336;
        color: white;
    }

        button.cancel:hover {
            background-color: #d32f2f;
        }

/* Reservation Timer */
.reservation-timer {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

    .reservation-timer p {
        margin: 0 0 10px 0;
        font-size: 14px;
    }

#timerDisplay {
    font-weight: bold;
    font-size: 18px;
    color: #4CAF50;
}

.timer-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background-color: #4CAF50;
    transition: width 1s linear;
    border-radius: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #56582b;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

    .modal-content h3 {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .modal-content p {
        margin: 15px 0;
        font-size: 18px;
    }

.card-reader-icon {
    font-size: 48px;
    margin: 20px 0;
    animation: cardPulse 2s infinite;
}

@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    z-index: 2000;
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

    .toast.success {
        background-color: #4CAF50;
        color: white;
    }

    .toast.error {
        background-color: #f44336;
        color: white;
    }

    .toast.warning {
        background-color: #ff9800;
        color: white;
    }

    .toast.info {
        background-color: #2196F3;
        color: white;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .show-selector {
        flex-direction: column;
        width: 100%;
    }

    .movie-picker select,
    .time-picker select {
        width: 100%;
    }

    .seat {
        width: 25px;
        height: 20px;
        margin: 8px 4px;
    }

    .sofa {
        width: 60px !important;
        height: 25px;
    }

    .legend {
        font-size: 12px;
        gap: 10px;
    }

    button {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

    button:disabled:hover {
        transform: none;
        box-shadow: none;
    }

#movie-booking-modal {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 1000;
    &.one

{
    transform: scaleY(.01) scaleX(0);
    animation: unfoldIn 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal-background

{
    .modal

{
    transform: scale(0);
    animation: zoomIn .5s .8s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

&.out {
    transform: scale(1);
    animation: unfoldOut 1s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal-background

{
    .modal

{
    animation: zoomOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}
}

&.two {
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.0);
    animation: fadeIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    opacity: 0;
    animation: scaleUp .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    animation: scaleBack .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

&.out {
    animation: quickScaleDown 0s .5s linear forwards;
    .modal-background

{
    animation: fadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    animation: scaleDown .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    animation: scaleForward .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}

&.three {
    z-index: 0;
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.6);
    .modal

{
    animation: moveUp .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    z-index: 1;
    animation: slideUpLarge .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

&.out {
    .modal-background

{
    .modal

{
    animation: moveDown .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    animation: slideDownLarge .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}

&.four {
    z-index: 0;
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.7);
    .modal

{
    animation: blowUpModal .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    z-index: 1;
    animation: blowUpContent .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

&.out {
    .modal-background

{
    .modal

{
    animation: blowUpModalTwo .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

+ .content {
    animation: blowUpContentTwo .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}

&.five {
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.0);
    animation: fadeIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    transform: translateX(-1500px);
    animation: roadRunnerIn .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}

&.out {
    animation: quickScaleDown 0s .5s linear forwards;
    .modal-background

{
    animation: fadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    animation: roadRunnerOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}
}

&.six {
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.0);
    animation: fadeIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    background-color: transparent;
    animation: modalFadeIn .5s .8s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    h2,p

{
    opacity: 0;
    position: relative;
    animation: modalContentFadeIn .5s 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-svg {
    rect

{
    animation: sketchIn .5s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}
}

&.out {
    animation: quickScaleDown 0s .5s linear forwards;
    .modal-background

{
    animation: fadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    animation: modalFadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    h2,p

{
    animation: modalContentFadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-svg {
    rect

{
    animation: sketchOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}
}
}
}

&.seven {
    transform: scale(1);
    .modal-background

{
    background: rgba(0,0,0,.0);
    animation: fadeIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    height: 75px;
    width: 75px;
    border-radius: 75px;
    overflow: hidden;
    animation: bondJamesBond 1.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    h2,p

{
    opacity: 0;
    position: relative;
    animation: modalContentFadeIn .5s 1.4s linear forwards;
}

}
}

&.out {
    animation: slowFade .5s 1.5s linear forwards;
    .modal-background

{
    background-color: rgba(0,0,0,.7);
    animation: fadeToRed 2s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    .modal

{
    border-radius: 3px;
    height: 162px;
    width: 227px;
    animation: killShot 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
    h2,p

{
    animation: modalContentFadeOut .5s .5 cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

}
}
}
}

.modal-background {
    display: table-cell;
    background: rgba(0,0,0,.8);
    text-align: center;
    vertical-align: middle;
    .modal

{
    background: #030e25;
    padding: 50px;
    display: inline-block;
    border-radius: 3px;
    position: relative;
    .modal-svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 3px;
    rect

{
    stroke: #fff;
    stroke-width: 2px;
    stroke-dasharray: 778;
    stroke-dashoffset: 778;
}

}
}
}
}


@keyframes unfoldIn {
    0% {
        transform: scaleY(.005) scaleX(0);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(.005) scaleX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes fadeIn {
    0% {
        background: rgba(0,0,0,.0);
    }

    100% {
        background: rgba(0,0,0,.7);
    }
}

@keyframes fadeOut {
    0% {
        background: rgba(0,0,0,.7);
    }

    100% {
        background: rgba(0,0,0,.0);
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(.8) translateY(1000px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0px);
        opacity: 1;
    }
}

@keyframes scaleDown {
    0% {
        transform: scale(1) translateY(0px);
        opacity: 1;
    }

    100% {
        transform: scale(.8) translateY(1000px);
        opacity: 0;
    }
}

@keyframes scaleBack {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(.85);
    }
}

@keyframes scaleForward {
    0% {
        transform: scale(.85);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes quickScaleDown {
    0% {
        transform: scale(1);
    }

    99.9% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes slideUpLarge {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes slideDownLarge {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0%);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(150px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(150px);
    }
}

@keyframes blowUpContent {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    99.9% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(0);
    }
}

@keyframes blowUpContentTwo {
    0% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blowUpModal {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes blowUpModalTwo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes roadRunnerIn {
    0% {
        transform: translateX(-1500px) skewX(30deg) scaleX(1.3);
    }

    70% {
        transform: translateX(30px) skewX(0deg) scaleX(.9);
    }

    100% {
        transform: translateX(0px) skewX(0deg) scaleX(1);
    }
}

@keyframes roadRunnerOut {
    0% {
        transform: translateX(0px) skewX(0deg) scaleX(1);
    }

    30% {
        transform: translateX(-30px) skewX(-5deg) scaleX(.9);
    }

    100% {
        transform: translateX(1500px) skewX(30deg) scaleX(1.3);
    }
}

@keyframes sketchIn {
    0% {
        stroke-dashoffset: 778;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes sketchOut {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 778;
    }
}

@keyframes modalFadeIn {
    0% {
        background-color: transparent;
    }

    100% {
        background-color: white;
    }
}

@keyframes modalFadeOut {
    0% {
        background-color: white;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes modalContentFadeIn {
    0% {
        opacity: 0;
        top: -20px;
    }

    100% {
        opacity: 1;
        top: 0;
    }
}

@keyframes modalContentFadeOut {
    0% {
        opacity: 1;
        top: 0px;
    }

    100% {
        opacity: 0;
        top: -20px;
    }
}

@keyframes bondJamesBond {
    0% {
        transform: translateX(1000px);
    }

    80% {
        transform: translateX(0px);
        border-radius: 75px;
        height: 75px;
        width: 75px;
    }

    90% {
        border-radius: 3px;
        height: 182px;
        width: 247px;
    }

    100% {
        border-radius: 3px;
        height: 162px;
        width: 227px;
    }
}

@keyframes killShot {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(300px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes fadeToRed {
    0% {
        background-color: rgba(black,.6);
    }

    100% {
        background-color: rgba(red,.8);
    }
}

@keyframes slowFade {
    0% {
        opacity: 1;
    }

    99.9% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}