@import url('https://fonts.googleapis.com/css2?family=Saira+Extra+Condensed:wght@200&display=swap');

:root {
  --yellow: #fccf23;
  --violet: #52134b;
  --gray: rgb(82, 81, 81);
  --white: rgba(255, 255, 255, 0.856);
}

* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 17px;
}

body {
  background-color: black;
  color: var(--white);
  display: flex;
  align-items: center;
  flex-direction: column; /*tip*/
  justify-content: center;
  height: 100vh;
  width: 90vw;
  max-width: 320px;
  margin: auto;
  text-align: center;
}

select,
ul,
button,
#screen {
  width: 100%;
}

select {
  background-color: var(--white);
  appearance: none;
  border-radius: 5px;
  padding: 6px 15px;
  margin-bottom: 20px;
  cursor: pointer;
}
select:focus,
button:focus {
  outline: 0;
}

ul {
  padding: 0;
  list-style: none;
  display: flex;
  margin-bottom: 30px;
  justify-content: space-around;
}

ul li .seat {
  margin: auto;
  display: inline-block;
}
small {
  margin-left: 3px;
}

.cinema-container {
  perspective: 800px;
}

#screen {
  height: 50px;
  background-color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px;
  transform: rotateX(-45deg);
}

.row {
  display: flex;
}

.seat:nth-of-type(2),
.seat:nth-of-type(8) {
  margin-right: 15px;
}
.seat {
  height: 14px;
  width: 16px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background-color: var(--violet);
  margin: 4px;
  /* border-bottom: solid 3px rgba(145, 144, 144, 0.664); */
}

.seat.selected {
  background-color: var(--yellow);
}
.seat.sold {
  background-color: var(--gray);
}

.row .seat:not(.sold) {
  cursor: pointer;
  transition: transform 0.4s;
}
.row .seat:not(.sold):hover {
  transform: scale(1.2);
  transition: 0.4s;
}

p {
  margin: 30px 0;
  border-top: solid 1px var(--gray);
}
span {
  color: var(--yellow);
  font-size: 20px;
  margin: 0 3px;
}

button {
  color: var(--white);
  height: 38px;
  background-color: var(--violet);
  border: 0;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.4s;
}
button:hover {
  background-color: var(--yellow);
  color: black;
  transition: 0.4s;
}
