:root {
  --Midnight-Black: #1b1b1b;
  --Crimson-Blue: #4a90e2;
  --Silver-Gray: #c0c0c0;
}

* {
  padding: 0;
  margin: 0;
}

::-webkit-scrollbar {
  background-color: var(--Midnight-Black);
  color: var(--Crimson-Blue);
}

::-webkit-scrollbar-track {
  color: var(--Crimson-Blue);
}

.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--Midnight-Black);
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav input {
  float: right;
  color: black;
  text-align: center;
  padding: 3px 4px;
  text-decoration: none;
  font-size: 10px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: var(--Crimson-Blue);
  color: white;
}

.centerTop {
  text-transform: uppercase;
  font-size: 3.5rem;
  text-align: center;
  background-color: var(--Midnight-Black);
  color: white;
}

.centerTop:hover {
  color: var(--Crimson-Blue);

  text-shadow: 0 0 5px var(--Crimson-Blue);
}

/* Innerhåller allt */

.topMovieCarusel {
  display: flex;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  background-color: var(--Midnight-Black);
  color: white;
}

/* Innehåler varje film bild, titel osv */

.movie-list {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: transform 0.5 ease;
  flex-wrap: nowrap;
}

/* För varje film */

.movie-item {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

.movie-item img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

.movie-item img:hover {
  transform: scale(1.1);
}

.movie-item h1 {
  color: white;
  width: 150px;
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
}

#carousel {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 10px;
  gap: 20px;
}

#carouselTwo {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 10px;
  gap: 20px;
}

.buttonStyle {
  width: 50px;
  height: 50px;
  background-color: var(--Silver-Gray);
  border-radius: 50%;
  margin: auto;
  border: 2px solid #24b4fb;
  background-color: #24b4fb;
  cursor: pointer;
  padding: 0.8em 1.2em 0.8em 1em;
  transition: all ease-in-out 0.2s;
  font-size: 16px;
}

.firstBackGroundSection {
  background-color: var(--Midnight-Black);
}

.selectTop {
  margin-left: 50px;
  text-align: center;
  width: 150px;
  height: 50px;
  margin-bottom: 20px;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 0;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 5px 5px 0 #000, 10px 10px 0 var(--Crimson-Blue);
}

.selectTop:hover {
  color: var(--Crimson-Blue);
  box-shadow: 0 0 5px var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue);
}

/* searchSection */

.searchSection {
  background-color: var(--Midnight-Black);
}
.search-container {
  background-color: var(--Midnight-Black);
  display: flex;
  justify-content: center;
  align-items: center;
}

#searchForm {
  display: flex;
  gap: 10px;
}

.inputSearch {
  margin-bottom: 20px;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 0;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 5px 5px 0 #000, 10px 10px 0 #4a90e2;

  /* Shout out https://uiverse.io/0xnihilism/calm-baboon-55 */
}

.firstImg {
  text-transform: uppercase;
  color: white;
  text-align: center;
  padding: inherit;
  margin: auto;
  width: 50%;
  display: block;
  padding-bottom: 100px;
}

.showSearchedObj {
  text-align: center;
  justify-content: center;
  display: flex;
  gap: 25px; /* space between items */
  flex-wrap: wrap; /* allows multiple rows if needed */
}

/* Source for box-shadow https://getcssscan.com/css-box-shadow-examples */
.item {
  margin-bottom: 25px;
  line-height: 1.9;
  font-size: 1rem;
  text-transform: uppercase;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  box-shadow: rgba(74, 144, 226, 0.18) 0px 54px 55px,
    rgba(74, 144, 226, 0.1) 0px -12px 30px, rgba(74, 144, 226, 0.1) 0px 4px 6px,
    rgba(74, 144, 226, 0.14) 0px 12px 13px,
    rgba(74, 144, 226, 0.08) 0px -3px 5px;
}

.showSearchedObj img {
  width: 30%;
}

/* Footer */

footer {
  background: #000;

  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Glowing marquee text effect */
.footer-marquee {
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
  font-size: 1.2rem;
  color: var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue), 0 0 10px var(--Crimson-Blue),
    0 0 20px var(--Crimson-Blue);
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.footer-content {
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--Crimson-Blue);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #aaa;
}

footer * {
  position: relative;
  z-index: 1;
}

.listStyle {
  list-style-type: none;
  margin: 5px;
  font-size: 1rem;
}

.errorMessage {
  color: red;
}

.box {
  display: flex;
}

.box button {
  text-align: center;
  width: 150px;
  height: 50px;
  margin-bottom: 20px;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 0;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 5px 5px 0 #000, 10px 10px 0 var(--Crimson-Blue);
}

.box select {
  text-align: center;
  width: 150px;
  height: 50px;
  margin-bottom: 20px;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 0;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 5px 5px 0 #000, 10px 10px 0 var(--Crimson-Blue);
}

.box input:hover {
  box-shadow: 0 0 5px var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue);
}

.box select:hover {
  color: var(--Crimson-Blue);
  box-shadow: 0 0 5px var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue);
}

.box button:hover {
  color: var(--Crimson-Blue);
  box-shadow: 0 0 5px var(--Crimson-Blue);
  text-shadow: 0 0 5px var(--Crimson-Blue);
}

/* TV CSS */

.tv-list {
  background-color: var(--Midnight-Black);
  flex: 1 1;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5 ease;
  text-align: center;
}

.tv-item {
  font-size: 10px;
  background-color: var(--Midnight-Black);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tv-item p {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.tv-item img {
  width: 250px;
}

.tv-item h1 {
  font-size: 2.5rem;
}

.tv-item-text {
  font-size: 1.3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.textArea {
  font-size: 1.3rem;
  width: 100%;
  height: 150px;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
