main {
  background-image: none !important;
}

#addnewdata {
  width: 27%;
  margin-left: 0.5rem;
  @media (min-width: 768px) {
    width: 24%;
    margin-left: 0;
  }

  background-color: oklch(21% 0.02 275);
  border: 1px solid rgb(34, 34, 34);
  display: flex;
  flex-direction: column;
  height: fit-content;
  border-radius: 10px;
  position: sticky;
  top: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.406);
  margin-right: auto;
  gap: 1rem;

  #addratingorchangeratingtitle {
    height: 100%;
    width: 100%;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    margin: 0;
    margin-bottom: 2rem;

    @media (min-width: 768px) {
      font-size: 1.5rem;
    }

    button {
      cursor: pointer;
      border: none;
      font-size: 15px;
      border-radius: 10px;
      background-color: transparent;
      padding: 0.25rem 0.5rem;
      margin-left: auto;

      &:hover {
        background-color: #1a1a1abb;
      }
    }
  }

  #showInfo {
    flex-direction: column;
    gap: 0.5rem;

    > div {
      border-bottom: 2px solid rgb(56, 56, 56);
      padding-bottom: 0.5rem;
    }
  }

  label {
    font-size: 12px;
    color: white;

    @media (min-width: 768px) {
      font-size: 1rem;
    }
  }

  input {
    font-size: 12px;
    max-width: 100%;
  }

  #mediaOptions {
    display: none;
    background-color: #1d1d1d;
    border: 2px solid #535353;
    width: 90%;
    min-height: 100px;
    height: fit-content;
    border-radius: 0.5rem;
    flex-direction: column;

    li {
      margin-left: auto;
      margin-right: auto;
      color: white;
      padding-top: 0.5rem;
      width: 95%;
      margin-bottom: 0.5rem;
      border-bottom: 1px solid rgb(56, 56, 56);
      cursor: pointer;
      border-radius: 0.5rem;

      &:hover {
        background-color: rgb(56, 56, 56);
      }
    }
  }

  #selectedMedia {
    li {
      display: grid;
      justify-items: center;
    }
    img {
      border-radius: 0.25rem;
      width: 150px;
      height: 200px;
    }

    p {
      color: rgb(255, 255, 255);
      font-size: 13;
    }
  }

  #addnewratingbutton {
    margin-top: 2rem;
    width: 80%;
    font-size: 0.75rem;

    @media (min-width: 768px) {
      width: 160px;
      font-size: 1rem;
      padding: 12px 1rem;
    }

    color: #ffffff;

    background-color: #00b36b; /* Futuristisch groen */
    font-weight: bold;
    text-align: center;
    border-radius: 8px; /* Zachtere randen */
    border: none;
    cursor: pointer;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2); /* Subtiele schaduw */
    transition: all 0.3s ease-in-out;

    &:hover {
      background-color: #009a5a; /* Iets donkerder groen */
      transform: translateY(-2px); /* Lichte lift bij hover */
    }
  }

  /* Algemene styling voor de buttons */
  #updateratingbutton {
    width: 150px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    background-color: #00b36b; /* Futuristisch groen */

    &:hover {
      background-color: #009a5a; /* Iets donkerder groen */
      transform: scale(1.05);
    }
  }

  #deleteratingbutton {
    width: 70px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    margin-top: 4px;
    background-color: #dc3545; /* Rode kleur voor verwijderen */

    &:hover {
      background-color: #c82333; /* Donkerder rood bij hover */
      transform: scale(1.05);
    }

    &:active {
      background-color: #bd2130; /* Nog donkerder rood bij klikken */
      transform: scale(0.98);
    }
  }

  .goToInfo {
    font-size: 0.75rem;
    width: fit-content;
    cursor: pointer;
    border: 3px solid #3b3b3b;
    padding: 0.25rem;
    border-radius: 0.5rem;
    color: grey;
    margin: 0px;

    &:hover {
      color: #007bff;
    }
  }
}

#film-list {
  width: 66%;
  margin-right: 1rem;

  @media (min-width: 768px) {
    width: 73%;
  }
}

#filtersdiv {
  width: 100%;
  justify-self: center;
  border-radius: 10px;
  background-color: oklch(21% 0.02 275);
  border: 1px solid rgb(34, 34, 34);
  padding: 0.25rem;

  @media (min-width: 768px) {
    padding: 0.75rem;
  }

  ul {
    margin: 0;
    padding: 0;
  }

  li {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;

    label,
    #amountofratings,
    #averagerating {
      white-space: nowrap;
      font-size: 0.75rem;
      color: grey;

      @media (min-width: 992px) {
        font-size: 1rem;
      }
    }

    #amountofratings {
      border-right: 2px solid rgb(77, 77, 77);
      padding-right: 0.75rem;
    }

    .searchform {
      display: flex;
      width: 400px;
      margin: 0px;

      input {
        width: 80%;
        border-radius: 5px;
      }
    }

    button {
      width: 15%;
      border-radius: 5px;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease-in-out;
      margin-left: 0.5rem;
    }

    a {
      color: #000000;
      margin-left: auto;
    }

    #amountofratings {
      margin-left: auto;
    }
  }
}

.filteredratings {
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  border-collapse: collapse;
  margin-top: 20px;
  justify-self: center;
  cursor: pointer;
  justify-content: space-between;
  gap: 1rem 0;
  cursor: auto;

  /*singularratingsnippet */
  div {
    width: 30%;
    aspect-ratio: 1 / 1.5;
    cursor: pointer;
    outline: 1px solid rgb(92, 92, 92);
    border-radius: 0.25rem;
    position: relative;

    &.selected {
      outline: 3px solid grey;
      box-shadow: 0 0 10px rgb(161, 161, 161);
    }

    &.small {
      width: 15%;

      h2 {
        height: 2px;
        width: 1rem;
        overflow: hidden;
      }
    }

    &.smaller {
      width: 12%;

      h2 {
        height: 2px;
        width: 1rem;
        overflow: hidden;
      }
    }

    &:hover {
      outline: 1px solid grey;
      box-shadow: 0 0 10px rgb(161, 161, 161);
    }

    img {
      width: 100%;
      aspect-ratio: 1 / 1.6;
    }

    .ratingindicator {
      top: 0;
      right: 0px;
      position: absolute;
      margin: 5px 3px 5px auto;
      width: fit-content;
      padding: 4px;
      font-size: 80%;
      border-radius: 5px;
      color: white;
      height: fit-content;
      background-size: cover;
      background-color: #000000;

      &.hidden {
        display: none;
      }
    }
  }
}
