* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background-color: #4c516f;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

footer {
  background-color: lightblue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vmin;
  font-size: 2vh;
  color: lightslategray;
}

img#logo {
  width: 170px;
  height: 70px;
}

div#movies-index {
  display: flex;
  justify-content: center;
  padding: 40px;
}

a#movies-index {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

div#movies-new {
  width: 100%;
}

div#movies-show, div#shows-show {
  max-height: 400px;
  margin: 0 auto;
  text-align: center;
}

img#movie-image {
  width: 250px;
  padding: 10px;
  margin: 10px;
  object-fit: contain;
}

div#shows-index {
  display: flex;
  justify-content: center;
  padding: 40px;
}

div#movies-show-description, div#shows-show-description {
  display: flex;
  justify-content: center;
  margin: 20px;
  text-align: left; 
}

div#moviecard-container, div#showcard-container {
  max-height: 400px;
  margin: 0 auto;
  text-align: center;
}

div#moviecard-description, div#showcard-description {
  display: flex;
  justify-content: center;
  margin: 20px;
  text-align: left;
}

div#moviesimage, div#showsimage {
  margin: 0 auto;
}

a#shows-index {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

img#show-image {
  width: 250px;
  padding: 10px;
  margin: 10px;
  object-fit: contain;
}

.movie-card, .show-card {
  position: relative;
  width: 300px;
  height: 450px;
  margin: 20px auto;
  background: #c9d2e1c2;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
              0 0 30px rgba(255, 255, 255, 0.3); /* Glow effect */
  display: flex;
  justify-content: center;
  align-items: center;
}

img#show-image {
  width: 250px;
  padding: 10px;
  margin: 10px;
  object-fit: contain;
}

ol#movies-breadcrumb, ol#shows-breadcrumb {
  display: inline-flex;
}

div#moviesedit-delete, div#showsedit-delete {
  display: inline-flex;
  float: right;
}

.movie-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  transform: rotate(45deg);
  animation: spotlight 3s infinite alternate;
  pointer-events: none;
}

@keyframes spotlight {
  from {
    transform: rotate(45deg) translate(10px, 10px);
  }
  to {
    transform: rotate(45deg) translate(-10px, -10px);
  }
}

/* Image Styling */
.movie-card img, .show-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/*    <--- Log-in Section at login page ---->   */

div.signin-card, div.signup-card {
  --main-col: #e0e9f8de;
  --bg-col: #2a2b38;
  --bg-field: #1f2029;
  justify-self: center;
  width: 320px;
  height: 400px;
  padding: 1.9rem 1.2rem;
  text-align: center;
  background: var(--bg-col);
  border-radius: 10px;
  border: 1px solid var(--main-col);
  user-select: none;
}

div.signup-card {
  height: 580px;
  width: 450px;
}

/*Inputs*/
label.signin-field, label.signup-field {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.5rem;
  gap: 0.5rem;
  background-color: var(--bg-field);
  border-radius: 4px;
}

span.login-input-icon, span.signup-input-icon {
  max-width: 1em ;
  color: var(--main-col);
  fill: var(--main-col);
  max-height: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

input.login-input-field, input.signup-input-field {
  background: transparent;
  border: none;
  outline: none;
  border-radius: 5px;
  width: 100%;
  color: var(--main-col);
  padding: 0.5em 1em 0.5em 0;
  caret-color: var(--main-col);
}

.filed:has(.login-input-field:valid), .filed:has(.signup-input-field:valid) {
  border: 1px solid var(--main-col);
}

/*Text*/
.signin-title, .signup-title {
  margin-bottom: 1rem;
  font-size: 1.5em;
  font-weight: 500;
  color: var(--main-col);
  text-shadow: 1px 1px 20px var(--main-col);
  text-transform: uppercase;
}

/*Buttons*/
.signin-btn, .signup-btn {
  margin: 2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
  text-transform: uppercase;
  padding: 0.6em 1.2em;
  background-color: var(--main-col);
  color: var(--bg-col);
  box-shadow: 0 8px 24px 0 rgb(255 235 167 / 20%);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/*Hover & focus*/
.signin-field input:focus::placeholder, .signup-field input:focus::placeholder {
  opacity: 0;
  transition: opacity 0.3s;
}

h2#landingpage {
  background-color: #435c86c2;
  border-radius: 10px;
  margin-bottom: 20px;
}

div#landingpage-card {
  display: flex;
  height: 100%;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  background-color: #435c86c2;
  font-size: 30px;
  color: #759ec6;
  border-radius: 10px;
  margin-right: 140px;
}

.btn:hover {
  background-color: var(--bg-field);
  color: var(--main-col);
  box-shadow: 0 8px 24px 0 rgb(16 39 112 / 20%);
}

.btn-link:hover {
  color: var(--main-col);
  text-decoration: underline;
}

form.signin, form.signup {
  font-size: 2vmin;
  padding: none;
  border-radius: none;
}

/*  -------------------------------   */

ul#movie-listing, ul#show-listing {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  list-style: none;
}

ul#movie-listing li, ul#show-listing li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  object-fit: cover;
  text-align: center;
}

div.card {
  margin-top: 20px;
}

div.card-info {
 
  background-repeat: no-repeat;
  background-size: cover;
}

div#feedmovie, div#feedshow, div#movieview, div#showview {
  background-color: #212529;
  color: white;
}

div#feedmoviebody, div#feedshowbody, div#movieviewbody, div#showviewbody {
  background-color: #353a40;
  color: white;
}

a.nav-link {
  font-size: 20px;
}

ul#movie-listing h2, ul#show-listing h2 {
  font-size: 35px;
  margin-top: 10px;
}

ul#movie-listing img, ul#show-listing img, ul#feed img {
  width: 200px;
  height: 300px;
  object-fit: cover;
}

.navbar-brand img {
  max-width: 200px;
}

p#description {

  max-width: 600px;
}

#details-container {
  display: inline-flex;
  h4 {
    margin: 0 10px;
  }
}

h2 {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

}

a.button {
  text-decoration: none !important;
  font-size: 35px;
  color: #0c0b0b !important;
  margin: 10px;
}

.glowbutton {
  --glow-color: rgb(176, 252, 255);
  /* --glow-spread-color: rgba(123, 251, 255, 123); */
  --enhanced-glow-color: rgb(206, 255, 255);
  --btn-color: rgb(61, 127, 136);
  border: 0.25em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
  width: fit-content;
  justify-self: center;
}

.glowbutton::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.glowbutton:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

.glowbutton:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
}


p, main a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

section.label {
  display: flex;
  justify-content: center;
}

#hp-h1 {
  grid-template-columns: 1;
  grid-row-start: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#hp-section {
  grid-template-columns: 1;
  grid-row-start: 3;
  text-align: left;
  justify-content: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
}

#hp-section h2 {
  text-align: center;
}

div.container {
  overflow: overlay;
  
  
}

#hp-section p {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

#landing-container {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-around;
}

nav span {
  font-size: 1.5vmin;
  color: lightslategray;
}

main {
  display: inline-flex; /* previously flex */
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

a.movies, a.shows {
  display: flex;
  justify-content: center;
  width: 200px;
}

#welcome-container {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-evenly;
}

form * {
  font-size: 2vmin;
  padding: 1vmin;
  border-radius: 1vmin;
}

input,
textarea,
select {
  border: 0.3vmin solid black;
}

form button[type='submit'] {
  grid-column: span 2;
}

button:hover {
  background-color: lightslategray;
  color: white;
}
