html {
  background-color: #1a1a1a;  /* deep black */
}

.hidden {
    display: none;
    }

.pagetitle {
    position: fixed;
    top: 0;
    font-size: 6em;
    z-index: 1;
    transition: opacity 1s ease-in-out;
  }
  
  #carpenter {
    /* position: absolute; */
    left: 0;
    color: red;
  }
  
  #terror {
    right: 0;
    /* position: absolute; */

  }
  
  .carpen {
    color: red;
  }
  .shadow {

    text-shadow: 0px 0px 2px red;
  }

  #carpenterror {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
  }

  h1, h2, h3 {
    font-family: 'Creepster', cursive;
  }
  p {
    font-family: 'Caveat', cursive;
    font-size: 2em;
  }
  
  .content {
    /* height: 300vh; Change depending on your content */
    justify-content: center;
    margin-top: 6em;
    display: flex;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  }

  table {
    width: 95%;
    border-collapse: separate;
    /* margin-left: auto;
    margin-right: auto; */
    background: linear-gradient(to bottom, #2e4c0e, #5b0808);
    color: #fff;
    border-radius: 20px;
    border: none;
  }

  .highlighted-row {
    outline: 4px solid red;
  }
  
  
  th, td {
    padding: 20px;
    /* border: 1px solid #666; */
    text-shadow: 3px 3px 10px #ff0000;
    /* Text glow */
}

td {
  align-items: center;
  /* width: 100px; */
  /* height: auto; */
  transition: all 0.3s ease;
}

tr {
  scroll-snap-align: start;
  transition: background-color 0.3s ease;
}

tr:hover {
  animation: scrollGlow 2s infinite;
}

.poster {
  position: relative;
  width: 30vh;
  height: 45vh;
}

img {
  width: 30vh;
  height: 45vh;
  object-fit: cover;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

td img:hover {
  transform: rotate(5deg);
  /* Slight tilt on hover */
  box-shadow: 0 0 20px #ff0000;
  /* Red glow */
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1.5em;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  /* Black background with transparency */
}

/* Movie title and year */
.title,
.year {
  color: white;
  text-shadow: 2px 2px 4px #000;
}


.review-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem;
  border: 5px double #8b4513;
  border-radius: 20px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  background-color: #fafad2;
  position: relative;
}


.name {
  font-weight: bold;
  color: #8b4513;
  text-decoration: underline;
}

.review {
  color: #4b0082;
}


@keyframes scrollGlow {
  0% {
      background-color: rgba(255, 0, 0, 0);
  }

  50% {
      background-color: rgba(255, 0, 0, 0.3);
  }

  100% {
      background-color: rgba(255, 0, 0, 0);
  }
}