* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #000000;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

header {
  position: relative;
  height: 100vh;
  background: url("images/movie catalogue.jpg") no-repeat center center/cover;
  background-size: cover;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

h1,
p {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #ff8c00;
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 1.2rem;
  margin-top: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn:hover {
  background-color: black;
  color: #ff8c00;
  border: 2px solid #ff8c00;
}

section {
  padding: 50px 20px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form input,
form textarea {
  width: 80%;
  max-width: 400px;
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

form button {
  background-color: #ff8c00;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
}

form button:hover {
  background-color: black;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#about-us {
  background-color: #000;
  color: white;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
  font-size: 1.1rem;
  transition: opacity 1s;
}

#about-us h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#about-us p {
  margin-bottom: 20px;
}

#contact-us {
  text-align: center;
}

#social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#locations {
  background-color: black;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

#locations .branch {
  margin: 20px;
  font-size: 1.2rem;
}

.auth-buttons {
  position: absolute;
  top: 20px;
  left: 20px;
}

.auth-buttons .cta-btn {
  background-color: #ff8c00;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1rem;
  margin-right: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.auth-buttons .cta-btn:hover {
  background-color: black;
  color: #ff8c00;
  border: 2px solid #ff8c00;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #222;
}

::-webkit-scrollbar-thumb {
  background: #ff8c00;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e07b00;
}

section a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  header {
    height: 80vh;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.2rem;
  }

  .cta-btn {
    font-size: 1rem;
  }

  form input,
  form textarea {
    width: 90%;
  }

  #about-us {
    font-size: 1rem;
    padding: 40px 15px;
  }

  #locations {
    padding: 30px 10px;
  }

  .card {
    padding: 15px;
  }

  .auth-buttons {
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .cta-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  .card {
    padding: 10px;
  }

  footer {
    padding: 10px;
  }
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Adapted from w3schools (https://www.w3schools.com/howto/howto_css_modals.asp) */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 100px;
  z-index: 100;
  background-color: #2c2b2b;
  opacity: 100%;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  height: 60vh;
  width: 80vw;
}

.close-btn {
  color: #aaa;
  margin-left: 70vw;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#login-modal,
#register-modal {
  z-index: 50;
  background-color: #000;
  opacity: 99%;
  display: none;
  height: 100vh;
  width: 100vw;
  justify-content: center;
}

.modal-text {
  padding-bottom: 3vh;
}

#social-icons a img {
  width: 64px;
}

#scrollToTop {
  display: flex;
  margin-top: 0;
  margin-bottom: 5vh;
  margin-left: auto;
  margin-right: auto;
}
