.modal {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
}

.modal-content {
  background-color: #071d34;
  color: white;
  padding: 0 20px 5px 20px;
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
  width: 350px;
  overflow: auto;
}

.modal .streaming-providers .material-symbols-outlined {
  font-size: 0.7rem;
  position: relative;
  top: 1px;
}

.modal.hidden {
  display: none;
}

.close {
  color: #aaa;
  display: inline-block;
  position: relative;
  top: 0px;
  left: -18px;
  font-size: 1.5rem;
}

.close:hover,
.close:focus {
  opacity: 0.8;
  text-decoration: none;
  cursor: pointer;
}

/* hack for the close button.
might be a better way to handle it */
.modal .movie-flex {
  margin-top: -20px;
}

.modal .movie-flex {
  flex-direction: column;
}

/* placeholder content to make the modal open transition smoother */
.modal .trailer-placeholder {
  width: 278px;
  height: 208px;
  background: black;
}

.modal .screening-placeholder {
  width: 278px;
  height: 100px;
  background: #071d34;
}

.modal .placeholder-content h2 {
  color: var(--color-links);
}

/* pixel 4 */
@media (max-width: 354px) {
  .modal-content {
    width: 315px;
  }
}
