@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

:root {
  --lighter-white: rgba(255, 255, 255, 0.5);
  --white: rgba(255, 255, 255, 0.9);
  --lighter-black: rgba(0, 0, 0, 0.5);
  --black: rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Varela Round", sans-serif;
  background-color: #262626;
  color: var(--white);
}

header,
main,
footer {
  margin: 0;
  padding: 0 8px;
}

h1 {
  font-size: 24px;
  margin: 6px;
}

h2 {
  font-size: 20px;
  margin: 5px 0;
}

p {
  font-size: 16px;
  margin: 4px 0;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: var(--black);
}

img {
  border-radius: 8px;
}

#page-header {
  aspect-ratio: 21 / 9;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin: 8px 0;
}

#page-footer {
  aspect-ratio: 21 / 9;
  color: #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin: 8px 0;
}

#page-header h1 {
  font-size: 26px;
  color: var(--white);
}

#page-footer p {
  font-size: 18px;
  margin: 4.5px 0;
  color: var(--white);
}

.alphabets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 8px;
}

.alphabet {
  text-align: center;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: var(--lighter-black);
}

.alphabet h2 {
  text-decoration: none;
  font-size: 22px;
  color: var(--white);
}

.movie-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
}

.movie-card {
  background-color: var(--lighter-black);
  border-radius: 8px;
  color: var(--black);
  text-align: center;
}

.movie-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 2 / 3;
}

.movie-card h2 {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  margin: 4.5px 0;
  padding: 0 4px;
  text-align: center;
}

.movie-card p {
  font-size: 14px;
  margin: 3.5px 0;
  padding: 0 5px;
  color: var(--lighter-white);
}

#post-header {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 8px;
}

.movie-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  height: 100%;
}

.movie-info {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}

.movie-info-box {
  background-color: var(--lighter-black);
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
}

.movie-info-value {
  font-size: 16px;
  margin: 4px 0 8px 0;
  color: var(--white);
}

.movie-info-property {
  font-size: 14px;
  margin: 8px 0 4px 0;
  color: var(--lighter-white);
}

.post-content h1 {
  font-size: 22px;
  margin: 5.5px 0;
  padding-top: 20px;
  text-align: center;
}

.post-content h2 {
  font-size: 18px;
  margin: 4.5px 0;
  padding-top: 20px;
}

.post-content p {
  font-size: 18px;
  margin: 4.5px 0;
  color: var(--lighter-white);
}

.movie-link {
  background-color: var(--lighter-black);
  border-radius: 8px;
  padding: 4px 8px 0px 8px;
  margin: 8px 0;
}

.movie-link-top p {
  font-size: 18px;
  margin: 4px 0;
}

.movie-link-bottom p {
  color: #d93025;
  font-size: 18px;
  font-weight: bold;
  margin: 12px 0 0 0;
  padding-bottom: 8px;
  text-align: center;
}

.form {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-gap: 8px;
}

input[type="text"],
input[type="text"]:focus {
  width: 100%;
  text-align: center;
  font-family: "Varela Round", sans-serif;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 8px;
  margin: 8px 4px 8px 0;
  display: inline-block;
  border: 1px solid #262626;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #262626;
  color: var(--white);
}

button[type="submit"] {
  width: 100%;
  background-color: #4c8ef9;
  color: white;
  padding: 8px 8px;
  font-family: "Varela Round", sans-serif;
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0 8px 0;
  border: 1px solid #3498db;
  border-radius: 8px;
}

.incorrect-password {
  display: flex;

  justify-content: center;
  align-items: center;
}

.incorrect-password h1 {
  justify-content: center;
  align-items: center;
}
