main {
  background-color: lightgrey;
}

.result-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.movies {
  width: 260px;
  background-color: white;
  margin: 1rem;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: darkgrey 0px 0px 10px 1px;
  position: relative;
  padding-bottom: 2rem;
}

.poster {
  width: 100%;
}

.movies h1 {
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  padding-top: 1rem;
}

.movies p {
  padding: 1rem;
  opacity: 0.6;
  height: 180px;
  overflow: scroll;
}

.title {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 1.8rem;
}

.bookmark {
  float: right;
  padding: 1rem;
  cursor: pointer;
  font-size: 22px;
  color: darkviolet;
}

span {
  margin-top: 1.5rem !important;
  padding-left: 1rem;
  display: block;
}

.message {
  font-size: 18px;
  width: fit-content;
  padding: 1rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.success {
  background-color: green;
  color: white;
}

.error {
  background-color: red;
  color: black;
}

.warning {
  background-color: yellow;
  color: black;
}

.search {
  width: fit-content;
  margin: 0 auto;
}

#searchField {
  width: 450px;
  border: none;
  box-shadow: darkgrey 0px 0px 60px 1px;
  padding: 10px;
}
.search-error {
  color: red;
}

.clearButton-container {
  text-align: center;
  display: none;
}

.favorites {
  padding-bottom: 20rem;
}

#logout {
  margin-left: 1rem;
}

/* Loader */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  margin-top: 3rem;
  margin-bottom: 30rem;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid black;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/* Login css */
.title-login {
  padding-top: 2.5rem;
  width: fit-content;
  margin: 0 auto;
}

.login-form {
  padding-top: 3rem;
  padding-bottom: 17rem;
  width: 350px;
  margin: 0 auto;
}

.add-form {
  padding-bottom: 8rem;
  width: fit-content;
  margin: 0 auto;
  display: inline-block;
}

.title-add {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  width: fit-content;
  margin: 0 auto;
}
.img-preview {
  display: inline-block;
  vertical-align: top;
  margin-top: 70px;
  margin-left: 60px;
}
.img {
  width: 200px;
  margin-top: 10px;
  box-shadow: darkgrey 0px 0px 10px 1px;
}

.form-preview {
  margin: 0 auto;
  width: fit-content;
}
.delete-button {
  margin: 1rem;
  font-size: 22px;
  cursor: pointer;
  color: #dc3545;
}

.delete-button:hover {
  color: #dc3545;
  opacity: 0.7;
}

.delete-container {
  position: absolute;
  bottom: 0px;
}

.edit-button {
  margin: 1rem;
  margin-left: 0;
  font-size: 21px;
  color: black;
}
.edit-button:hover {
  color: black;
  opacity: 0.7;
}

.footer {
  background-color: #343a40;
  text-align: center;
  padding: 2rem;
}

.footer span {
  margin: 0 !important;
  color: white;
}

.login-section {
  float: right;
}

.list-group {
  width: 50%;
  margin: 0 auto;
  padding: 3rem !important;
}

.list-group label {
  margin-top: 10px;
  margin-bottom: 10px !important;
  font-weight: bold;
}

.button-container {
  text-align: left;
  padding-top: 1rem;
}

.changePassword-title {
  padding-top: 3rem;
}

.changePwBtn {
  margin-top: 1rem;
}

.updateProfileBtn {
  width: 45%;
  margin-top: 1rem;
}

.profile-div {
  width: 50%;
  padding-top: 3rem !important;
  display: inline-block;
  text-align: left;
}

.passwordChange-div {
  width: 40%;
  display: inline-block;
  vertical-align: top;
  text-align: left;
  margin-left: 3rem;
}
.profile-section {
  text-align: center;
  padding-bottom: 3rem;
}

.imdb {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  display: inline-block !important;
}

.rating {
  padding: 5px !important;
  display: inline-block !important;
  margin-top: 0 !important;
}

.ofTen {
  padding: 5px !important;
  display: inline-block !important;
  margin: 0 !important;
}
.search-addMovie {
  margin-bottom: 2rem;
}

.navigation-movies {
  text-align: center;
  padding: 1.5rem;
}

.navigation-movies .active {
  color: black;
}

.empty-div {
  height: 250px;
}

.details-link {
  text-decoration: none !important;
  color: black !important;
}

.recommended-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.recommended h1 {
  text-align: center;
}

.recommended-cards {
  width: 150px;
  transition: box-shadow 0.4s;
}

.clickable-movie {
  transition: box-shadow 0.4s;
}

.clickable-movie:hover {
  box-shadow: black 0px 0px 15px 2px;
}

.recommended-cards:hover {
  box-shadow: black 0px 0px 15px 2px;
}

.details-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-radius: 5px;
  box-shadow: darkgrey 0px 0px 10px 2px;
}

.details {
  margin: 1rem auto;
  width: fit-content;
  padding: 0;
  box-shadow: none;
  background: transparent;
  color: white;
}

.details p {
  opacity: 1;
}

.details h1 {
  text-align: left;
  padding-left: 1rem;
}

.details .rating {
  color: white !important;
  font-size: 15px;
}
.details .ofTen {
  color: white !important;
  font-size: 10px;
}

.content {
  display: inline-block;
  width: 260px;
  height: 410px;
  overflow: scroll;
}

.poster-details {
  display: inline-block;
  width: 280px;
  vertical-align: top;
}

.goBackBtn {
  margin-top: 2rem;
}

.runtime {
  margin-top: 0px !important;
}

/* Cast styling on details */
.cast-container {
  padding-top: 1rem;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
}

.cast-card {
  flex-direction: row;
  text-align: center;
  padding: 0.5rem;
}

.cast-image {
  width: 100px;
  height: 100px;
  border: 1px solid white;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: black 0px 0px 20px 1px;
}

.cast-card span {
  padding: 0;
  margin: 5px !important;
  color: white;
}
