body {
  color: white;
  font-family: 'Ubuntu', sans-serif;
}

main {
  display: block;
  min-height: 860px;
  padding-top: 120px;
}

h1, h2, h3, h4, h5, h6, p, span, label {
  user-select: none;
}

.head {
  justify-content: center;
  margin-top: 8px;
  box-shadow: 2px 2px 19px #6083a2;
  display: flex;
  position: fixed;
  width: 100%;
  background-color: #334a5fbc;
  z-index: 1;
}

.foot {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 8px;
  box-shadow: 2px 2px 16px #6083a2;
  padding: 32px 0px;
}

#andrejs {
  color: white;
  text-decoration: none;
}

#andrejs:hover {
  color: #d6e8f9;
}

.home_background {
  background-image: url('../pictures/cover/image.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.link_section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo_header {
  width: 120px;
  padding: 12px 12px;
}

.desc {
  padding: 8px 0px;
  overflow: clip;
}

.title {
  margin: 36px 0px;
  text-align: center;
}

.prevnext {
  width: 120px;
  margin: 0px 18px;
}

.back {
  margin: 10px 26px;
  width: 120px;
}

.button_back {
  text-align: end;
  padding: 20px 0px;
}

.honeypot {
  display: none;
}

.cheesburger {
  display: none;
}

.navbar_mobile {
  display: none;
}
/* TMDB Api */
/* Movie list first page */
.navbar_desktop {
  display: flex;
  margin: 0px 200px;
}

.search_form_left {
  text-align: start;
  width: 100%;
}

.search_form_right {
  text-align: end;
  width: 100%;
}

.dropdown {
  margin: 16px 0px;
}

.search_input {
  width: 194px;
  margin: 0px 18px;
  border-radius: 6px;
  padding: 2px 8px;
  text-align: start;
  letter-spacing: 1px;
}

.filter_input {
  border-radius: 6px;
  letter-spacing: 1px;
  border: 1px solid #00000033;
  padding: 4px 8px;
  text-align: start;
  width: 230px;
  margin: 8px 16px;
}

.search_form_left {
  background-color: #334a5f;
  border: 4px solid #00000033;
  width: 300px;
  border-radius: 8px;
  z-index: unset;
}

.filter_input {
  background-color: white;
  margin: 10px 30px;
}

.filter_input::-webkit-scrollbar {
  width: 6px;
}

.search_button {
  width: 100px;
  margin: 12px 0px;
}

.filter_button {
  width: 100px;
  margin: 12px 94px;
}

.movie_title {
  font-weight: bold;
  text-align: center;
  font-size: 22px;
  padding: 24px 0px;
  letter-spacing: 1px;
  height: 100px;
}

.movie {
  padding: 12px 40px;
}

.movies {
  padding-left: 0px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
}

.picture {
  width: 100%;
}

.image-container {
  position: relative;
  display: inline-block;
}

.text-overlay {
  border-radius: 8px;
  border: 2px solid white;
  letter-spacing: 1px;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: white;
  background-color: #000000BF;
  padding: 10px;
  display: none;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

.image-container:hover .text-overlay {
  display: block;
}

.id_button {
  border: none;
  padding: 0px;
}

.overview {
  padding: 24px 0px;
}

.page_button {
  text-align: center;
  width: 100%;
  margin: 28px 0px;
}

#spinner {
  position: fixed;
  display: flex;
  z-index: 1;
  width: 100%;
  height: 54%;
  cursor: pointer;
}

.ml8 .letters-container {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
  height: 1em;
  text-align: center;
}

.ml8 .letters {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-weight: bold;
  top: -1.3em;
  font-size: 12px;
  opacity: 0;
}

.ml8 .bang {
  z-index: 2;
  top: -0.2em;
  font-weight: bold;
  left: 0.04em;
  font-size: 36px;
  opacity: 0;
}

.ml8 .circle {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
}

.ml8 .circle-dark {
  width: 0.7em;
  height: 0.7em;
  background-color: #445c75;
  border-radius: 3em;
  z-index: 1;
  border: 1px solid #2bbbd1;
  opacity: 0;
}

.ml8 .circle-white-dashed {
  border-radius: 2.4em;
  background-color: transparent;
  border: 1px dashed #72c8af;
  width: 0.8em;
  height: 0.8em;
}

.ml8 .circle-white {
  width: 2em;
  height: 2em;
  border: 1px dashed white;
  border-radius: 2em;
}

#mobile_spinner {
  display: none;
}

.remove {
  display: none !important;
}

#modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

#modal .modal-content {
  position: relative;
  background-color: #334a5f;
  border-radius: 10px;
  border: 4px solid #00000033;
  margin: 108px 60px 40px 60px;
  padding: 24px 32px 64px 32px;
  max-height: 72vh;
  overflow-y: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  width: 96%;
}

.generated-text {
  white-space: pre-wrap;
  font-size: 17px;
  font-family: 'Ubuntu', sans-serif;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
  max-height: none;
}

#close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#close-modal:hover {
  opacity: 0.8;
  transform: scale(1.08);
}
/* Movie list first page end */

/* Movie list pages */
.page_nr {
  padding-left: 36px;
}
/* Movie list pages end */

/* Movie Videos */
.links {
  color: lightblue;
  font-style: italic;
  font-weight: lighter;
}
/* Movie Videos End */

/* Scrollbar */
::-webkit-scrollbar {
  width: 22px;
}

::-webkit-scrollbar-track {
  background: #2a2a2a;
  box-shadow: inset 0 0 8px black;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  box-shadow: 2px 10px 16px black;
  border: 1.5px outset #115bc7;
  background: #324860;
  border-radius: 3px;
  height: 300px;
}

::-webkit-scrollbar-thumb:hover {
  background: #36506d;
}
/* Scrollbar End */

/* Responsive */
@media only screen and (min-width: 1201px) and (max-width: 1600px) {
  .movies {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
  .movies {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  }
  #spinner {
    display: none !important;
  }
  #mobile_spinner {
    position: fixed;
    width: 100%;
    height: 22%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .loader {
    border: 8px solid #f3f3f3cc;
    border-top: 8px solid #217dbbcc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  #modal .modal-content {
    margin: 90px 16px 24px 16px;
    padding: 20px 18px 48px 18px;
  }
  .generated-text {
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  #close-modal {
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  body {
    background: no-repeat url('../pictures/image.jpg');
  }
  .head {
    margin-top: 4px;
  }
  .movies {
    grid-template-columns: repeat(auto-fit, minmax(60%, 1fr));
  }
  .search_form {
    text-align: center;
  }
  .filter_input {
    width: 100px;
    margin: 0px 8px;
  }
  .filter_button {
    width: 60px;
    margin: 8px;
  }
  .cheesburger {
    display: flex;
    justify-content: end;
  }
  .hamburger {
    display: flex;
    align-self: center;
    position: fixed;
    justify-content: flex-end;
    top: 20px;
    z-index: 2;
  }
  .hamburger:hover, .is-active:hover {
    opacity: 1 !important;
  }
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    background-color: white !important;
  }
  .navbar_desktop {
    display: none;
  }
  .navbar_mobile_style {
    display: block;
    top: 12px;
    width: 100%;
    text-align: center;
    position: fixed;
    background-color: #334a5f;
    border: 4px solid #00000033;
    border-radius: 12px;
    padding: 66px 0px;
    z-index: 1;
  }
  #spinner {
    display: none !important;
  }
  #mobile_spinner {
    position: fixed;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .loader {
    border: 8px solid #f3f3f3cc;
    border-top: 8px solid #217dbbcc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  #modal .modal-content {
    margin: 90px 16px 24px 16px;
    padding: 20px 18px 48px 18px;
    width: 93.5%;
  }
  .generated-text {
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  #close-modal {
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

@media only screen and (max-width: 319px) {
  html {
    display: none;
  }
}
