:root {
  /* --background: rgb(163, 208, 218);
    --main-content: rgb(148, 228, 255, 0.69);
    --main-text: rgb(189, 89, 209); */

  --background: rgb(80, 80, 80);
  --main-content: rgba(65, 65, 65);
  --main-text: rgb(226, 102, 0);
}

* {
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

html {
  min-height: 100%;
}

body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(65, 65, 65);
  color: hsl(27, 100%, 50%);
}

.content {
  width: 100%;
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  padding: 1rem;
}

.content > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1rem;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 5px;
  background: rgb(50, 50, 50);
}

.content h1 {
  text-align: center;
  margin: 0.25rem 0;
  font-size: 2.5rem;
}

.content .subtitle {
  color: rgb(230, 230, 230);
  text-align: center;
}

.content input {
  flex-grow: 1;
  font-size: 1.1rem;
  background: rgb(45, 45, 45);
  border: 1px solid;
  border-color: rgb(30, 30, 30);
  border-radius: 0.25rem;
  padding: 0.5rem;
  color: white;
  text-align: center;
  transition: 0.4s border-color;
}

.content input:focus {
  border-color: white;
}

.content input:focus::placeholder {
  color: transparent;
}

.content button {
  background: hsl(27, 100%, 40%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.4s;
  font-size: 1.1rem;
}

.content button:hover {
  background: hsl(27, 100%, 35%);
}

.good {
  color: rgb(80, 192, 80);
}

.bad {
  color: rgb(192, 80, 80);
}

.movie-finder-container {
  row-gap: 1rem;
}

.finder {
  display: flex;
  column-gap: 0.5rem;
  width: 100%;
  max-width: 40rem;
}

/* Movie List Stuff! */
.movie-container {
  width: 100%;
  max-width: 40rem;
  color: rgb(221, 221, 221);
  border: 1px solid rgb(30, 30, 30);
  border-radius: 5px;
  max-height: 250px;
  overflow: auto;
}

.movie-container div {
  width: 100%;
  display: block;
  align-items: center;
  font-size: 1.1rem;
  padding: 10px;
  border-radius: 5px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.movie-container .movie:hover {
  cursor: pointer;
  border: 1px solid rgb(255, 255, 255);
}

.movie-container div:nth-child(even),
table tbody tr:nth-child(even) {
  background: rgb(45, 45, 45);
}

.movie-container div:nth-child(odd),
table tbody tr:nth-child(odd) {
  background: rgb(55, 55, 55);
}

table {
  border-spacing: 0;
  width: 100%;
  border: 1px solid rgb(30, 30, 30);
  border-radius: 5px;
}

table * {
  color: white;
  text-decoration: none;
}

table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

table td,
table th {
  border: 1px solid rgb(30, 30, 30);
  padding: .6rem .5rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: background 0.1s;
}

table th {
  background: rgb(35, 35, 35);
}

table tr th:nth-child(2),
table tr th:nth-child(3),
table tr td:nth-child(2),
table tr td:nth-child(3) {
  width: 1%;
}

table tr th:nth-child(2),
table tr th:nth-child(3) {
  text-align: center;
}

table tr td:nth-child(2),
table tr td:nth-child(3) {
  text-align: right;
}

/* Overlay stuff! */
.main-overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
}

.main-overlay.shown {
  display: flex;
}

.overlay-content {
  width: calc(90% - 1rem);
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border-radius: 5px;
}

.overlay-content h1 {
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.overlay-content a {
  font-size: 20px;
  color: hsl(27, 100%, 60%);
}

.overlay-content a:hover {
  color: hsl(27, 100%, 55%);
}

.overlay-content input {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 0 0;
  padding: 0.25rem;
  font-size: large;
}

.overlay-content button {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.4s;
  font-size: large;
  background: rgb(55, 55, 55);
}

.overlay-content button:hover {
  background: rgb(70, 70, 70);
}

#movie-count {
  color: hsl(30, 90%, 90%);
}

#filter-title {
  margin: 0 0 10px 0;
}

@media only screen and (max-width: 550px) {
  .content {
    padding: 1rem 0;
  }

  .content > div {
    border-radius: 0;
    padding: .5rem;
    row-gap: .5rem;
  }
}
