:root {
  --primary-color: #03045e;
  --light-primary: #05079e;
  --lightest-color: #caf0f8;
  --secondary-color: #00b4d8;
  --light-secondary: #3bcae3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-flow: column;
  min-height: 100dvh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--lightest-color);
}

header > h2 > i {
  margin-right: 0.5rem;
}

.search-container {
  display: flex;
  align-items: center;
  width: 50%;
}

.movie-name-wrapper {
  display: flex;
  align-items: center;
  width: 65%;
}

.movie-name-wrapper > input {
  width: 100%;
}

.movie-year-wrapper {
  display: flex;
  align-items: center;
  width: 30%;
}

.movie-year-wrapper > input {
  max-width: 5rem;
}

.movie-name-wrapper > input,
.movie-year-wrapper > input {
  margin: 0 0.5rem;
  border-radius: 7px;
  padding: 0.3rem 0.2rem;
  font-weight: bold;
}

.movie-name-wrapper > label,
.movie-year-wrapper > label {
  font-weight: bold;
}

.search-btn {
  all: unset;
  width: 5%;
}

.search-btn:hover,
.search-btn:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: 1px solid var(--lightest-color);
  border-radius: 2px;
  background-color: var(--light-primary);
  cursor: pointer;
}

/* Main */
main {
  display: flex;
  flex-flow: column;
  flex-grow: 1;
  text-align: center;
  background-color: var(--lightest-color);
  color: var(--primary-color);
  padding: 2rem;
}

.movie-list {
  display: flex;
  justify-content: center;
  flex-flow: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.movie-list article {
  display: flex;
  flex-flow: column;
}

.movie-list article img {
  border-radius: 10px;
  margin-bottom: 0.5rem;
  max-height: 427px;
}

.remove-button {
  all: unset;
  cursor: pointer;
  border: 3px solid var(--secondary-color);
  width: 100%;
  padding: 0.3rem 0;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 1px 1px 8px #000;
  color: var(--secondary-color);
}

.remove-button:hover,
.remove-button:focus {
  background-color: var(--light-secondary);
  color: var(--lightest-color);
}
