/* *{
  border: 1px solid red;
} */

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;

}

body{
  background-color:#141251;

}

html, body {
  height: 100%;
  margin: 0;
  scroll-snap-type: none;
  scroll-behavior: auto; /* remove browser smoothing */
  /* overflow-y: scroll; */
}

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.page-quotes{
  min-height: 100vh;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
}

.page:not(#landing) {
  opacity: 0;                  /* hidden initially */
  transform: translateY(30px); /* slightly move down */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.page:not(#landing).visible {
  opacity: 1;
  transform: translateY(0);
}

#landing{
  background-image: url("background.gif");
  position: relative;
   overflow: hidden;
}

#quote, #author{
  z-index: 10;
  text-align: center;
}

#quote{
  max-width: 60vw;
}

#carousel {
  position: absolute;
  bottom: 0;       /* always at bottom */
  left: 50%;       /* start centered */
  transform: translateX(-50%); 
  width: 100%;     /* let images move across width */
  height: auto;
  text-align: center;
}


.charlie-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 2;
}

.scroll{
  scroll-snap-align: start;
}


h1, h2, h3, p, button{
  font-family: "Lora", serif;
  font-weight: 400;
  color: #f8f7f2;

}

h1{
  font-size: 50px;
  line-height: 50px;
}

.cursive{
  font-family: "Parisienne", cursive;
  font-weight: 400;

}

.gold{
  color: #DEBF6C !important;
}

header a{
  text-decoration: none;
}

header{
  /* height: 20vh; */
  width: 100vw;
  padding: 40px 40px 10px 40px;
  box-sizing: border-box;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* .page-quotes header{
  justify-content: space-between !important;
align-items: center;} */


header h2{
  font-size: 40px;
  margin: 0 0 10px 0;
  text-align: center;
}

h2{
  font-size: 25px;
}

#quote-container{
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#message{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 60vw;
  margin: 0 auto;
  max-width: 1200px;
  & h2{
    font-size: 25px;
    margin-bottom: 0;
  }
  & p{
    font-size: 18px;
    margin: 0;
  }
}

#message-video{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.video, video{
  width: 70vw;
  height: 70vh;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

h4{
  font-family: "Lora", serif;
  font-size: 15px;
  padding: 1px;
  margin: 1px 1px 10px 1px;
  font-weight: 400;
  
}

.top{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
  padding: 0px;
  box-sizing: border-box;
}

.bottom{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: space-between;
  width: 100%
}

.bottom p{
  color:#221f1f;
  margin: 0;
  font-size: 12px;
}



.quote-preview{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #f8f7f2;
  border-radius: 10px;
  font-family: "Lora", serif;
  width: 60vw;
  max-width: 600px;
  padding: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
  break-inside: avoid;
  &.quote-preview-text h4, .quote-preview-text p{
    font-size: 12px;
    color: #221f1f;
  }
}


#quote-preview-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#quote-preview-container-all{
  column-count: 4; /* Number of columns */
  column-gap: 20px;
  /* padding: 0 50px 50px 50px; */
  width: 80vw;
  box-sizing: border-box;
}
#quote-preview-container-all .quote-preview{
display: inline-block; /* Essential for items to flow into columns */
width: 100%; /* Ensure items take up full column width */
margin-bottom: 20px; }

.quote-preview-text p{margin: 0 ;}

.copy-icon{
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.copy-icon:hover{
  opacity: .6;
  transition: .2s;
}

.source{
  font-family: "Arimo", sans-serif;
  font-size: 12px;
  color: #58647F; 
}

.source:hover{
  color: #a38b0f; 
  transition:.2s;
}

.see-more{
  background-color:#141251;
  color: #f8f7f2;
  border: 1px solid #f8f7f2;
  border-radius: 15px;
  padding: 10px 15px;
  font-size: 20px;
}

.see-more:hover{
  transition: .2s;
  background-color:#f8f7f2;
  color: #141251;
}

.copy{
  background-color:#f8f7f2;
  border:none;
  padding: 0;
}

footer{
  background-color: #DEBF6C; 
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

}

footer a{
  color: #f8f7f2;
  font-family: "Arimo", sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  

}


#searchInput{
  padding: 10px;
  width: 80vw;
  margin: 20px 0;
  font-family: "Lora", serif;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
  background-color: #f8f7f2;
}

#quote-submission-form input{
  padding: 10px;
  width: 100%
  margin: 20px 0;
  font-family: "Lora", serif;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
  background-color: #f8f7f2;

}

form{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 40px 0;
  width: 80vw;
  max-width: 600px;
  border: 2px #f8f7f2 solid; 
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}


.mobile{
  display: none !important;
}
.desktop{
  display: flex !important;
}


@media (max-width: 550px){
  .mobile{ display: flex !important;
         }
  .desktop{
    display: none !important;
  }

  #message{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video{
    width: 100vw;
    height: 100vh;
    padding: 0;
  }

  #quote{
    font-size: 40px !important;
    max-width: 80vw !important;
  }
  #author{
    font-size: 20px;
    margin:0;
  }
}

