@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

:root {
    --white-color: #fff;
    --grey-color: #777;
    --background-color: #242333;
    --available-seat-color: #444451;
    --selected-seat-color: #6feaf6;
    --occupied-seat-color: #fff;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    color: var(--white-color);
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Lato', sans-serif;
    margin: 0;
}

.movie-container {
    margin: 20px 0;
}

.movie-container select {
    background-color: var(--white-color);
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    padding: 5px 15px 5px 15px;
    appearance: none;
}

.container {
    /* give the effect of the screen tilted toward the seats */
    perspective: 1000px;
    margin-bottom: 30px;
}

.seat {
    background-color: var(--available-seat-color);
    height: 12px;
    width: 15px;
    margin: 3px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.seat.selected {
    background-color: var(--selected-seat-color);
}

.seat.occupied {
    background-color: var(--occupied-seat-color);
}

/* add margins to indicate access routes to seat rows */
.seat:nth-of-type(2) {
    margin-right: 18px;
}

.seat:nth-last-of-type(2) {
    margin-left: 18px;
}

/* indicate seat availability on mouse hover */
.seat:not(.occupied):hover {
    cursor: pointer;
    transform: scale(1.2);
}

.showcase .seat:not(.occupied):hover {
    cursor: default;
    transform: scale(1);
}

.showcase {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--grey-color);
}

.showcase li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.showcase li small {
    margin-left: 2px;
}


.row {
    display: flex;
}

.screen {
    background-color: var(--white-color);
    height: 70px;
    width: 100%;
    margin: 15px 0;
    /* tilt screen to make it appear smaller */
    transform: rotateX(-45deg);
    /* add effect of a lighted screen */
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.7);
}

p.text {
    margin: 5px 0;
}

p.text span {
    color: var(--selected-seat-color)
}