
/* PAGE MOT DE PASSE */

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#password_bloc form input {
  width: 100%;
}

/* NAV BUTTONS */

#nav_buttons {
  position: fixed;
  bottom: 3vh; right: 3vh;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* case mobile */
@media screen and (max-width: 1024px) { 
  #nav_buttons {
  flex-direction: column;
}}

#nav_buttons a {
  background-color: black;
  padding: 10px;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: white solid 2px;
  color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

#nav_buttons img {
  height: 35px;
  filter: invert(1);
}

.margin_left {
  margin-left: -5px;
}

#nav_buttons a:hover {
  text-decoration: none;
}

.login_button {
  background: #4341FF;
  background: linear-gradient(360deg, rgba(67, 65, 255, 1) 0%, rgba(115, 112, 250, 1) 100%);
  padding: 10px;
  color: white;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 20px;
  border: 1px solid white;
  box-shadow: 0px 2px 5px 0px #656565;
  align-self: flex-end;
  margin-right: 20px;
  margin-bottom: 20px;
}

/* Memory part (preview + real) */

#preview_whole {
  width: 100%;
  padding-bottom: 20px;
  border: 1px solid black;
}

#preview_header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
  -moz-box-shadow: 0px 2px 5px 0px #656565;
  -webkit-box-shadow: 0px 5px 0px 0px #656565;
  -o-box-shadow: 0px 2px 5px 0px #656565;
  box-shadow: 0px 2px 5px 0px #656565;
}

#preview_header img {
  max-width: 50%;
  max-height: 80px;
}

#preview_title {
  margin: 20px 0px;
  text-align: center;
}

#preview_content_memory {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -50px;
}

#preview_content_memory img, #memory_container img, .memory_photo {
  width: 90%;
}

#memory_container {
  width: 50%;
}

@media screen and (min-width: 767px) { 
  #memory_preview_container, #memory_container {
  max-width: 300px;
}}

.memory_container, #memory_container {
  object-fit: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 70%;

  background-color: bisque;
  border: 1px solid #C9C9C9;
  -moz-box-shadow: 0px 1px 5px 0px #656565;
  -webkit-box-shadow: 0px 1px 5px 0px #656565;
  -o-box-shadow: 0px 1px 5px 0px #656565;
  box-shadow: 0px 1px 5px 0px #656565;
  padding: 15px 0px 5px 0px;
}

#memory_container p {
  max-width: 200px;
}

.preview_btn_each {
  height: 50px; width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: flex-end;
  border: 1px solid white;
  -moz-box-shadow: 0px 1px 3px 0px #656565;
  -webkit-box-shadow: 0px 1px 3px 0px #656565;
  -o-box-shadow: 0px 1px 3px 0px #656565;
  box-shadow: 0px 1px 3px 0px #656565;
  border-radius: 50%;

  margin-right: 20px;
  margin-top: 10px;
}

.preview_btn_each img {
  height: 30px;
}

/* COLOR MODULE - FORM NEW EVENT */

.new_event_warning_message {
  margin-bottom: -18px;
}

.new_event_warning_message p {
  font-size: small;
  text-align: center;
  font-style: italic;
  color: red;
}

#color_module {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin: 20px 0px;
}

/* case mobile */
@media screen and (max-width: 1024px) { 
  #color_module {
  flex-direction: column;
}}

.color_content {
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* case mobile */
@media screen and (min-width: 1024px) { 
  .color_content {
  flex-direction: column;
}
  .color_content p {
    text-align: center;
  }
}

.color_choosing {
  display: flex;
  flex-direction: column;
}

.nuancier {
  min-height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid black;
  margin: 10px;
}

.form_field_file {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}

.form_field_file div, .form_field_file p, .form_field_file span {
  width: fit-content;
}

.form_field_file input {
  margin-top: 10px;
}

/* Create memory */

#create_memory_preview_bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0 20px 0;
}

.memory_preview_flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.nuancier_new_memory {
  height: 100px;
  width: 100px;
  border-radius: 20%;
  border: 2px solid black;
  background-size: contain;
  align-self: center;
  margin-top: 10px;
  margin-bottom: -25px;
}

#preview_memory_buttons {
  height: 40px;
}

.radio_selection_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

#background_selection {
  align-self: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 2vh 0vw;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 0px;
}

#background_selection input{
  visibility: hidden;
  display: none;
}

#background_selection label {
  padding: 10px;
  border-radius: 10px;
  margin: 0vh 1vw;
}

#background_selection input:checked + label{
  background-color: black;
  color: white;
  transition: 0.5s color ease-in-out;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#memory_color_content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#memory_patern_content, 
#memory_backg_font_content, 
#memory_decoration_content {
  flex-direction: column;
}

/* case mobile */
@media screen and (min-width: 1024px) { 
  #new_memory_font_color, #new_memory_backg_font_color {
    flex-direction: row;
}
  #form_new_memory summary {
    width: 90%;
  }
}

#new_memory_font_color {
  justify-self: space-evenly;
}

.toggle_trigger {
  align-self: center;
  cursor: pointer;
}

.new_memory_options_field {
  opacity: 0;
  display: none;
  transition: opacity 0.4s ease;
  flex-direction: column;
  gap: 25px;
}

.new_memory_options_field.visible {
  display: flex;
  opacity: 1;
}

.new_memory_options_field.fading-out {
  opacity: 0;
}

/* Chevron */
.toggle_trigger .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle_trigger.active .chevron {
  transform: rotate(90deg);
}


/* Liking part */

.likes_bloc {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.liking_function_bloc img {
  height: 20px;
  width: 20px !important;
  filter: drop-shadow(0 0px 1px white);
}

.nbr_like_bloc {
  width: fit-content;
}

.liking_function_bloc input[type="checkbox"] {
  display: none;
}

.liking_icon img.animate-heart {
  animation: popHeart 0.4s ease;
}

@keyframes popHeart {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}


/* Memory feed */

.memories_global {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
  margin-bottom: 100px;
}

.whole_memory {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memory_container {
  max-width: 70%;
}

.starsticker_memory,
.pin_memory {
  position: relative;
  height: 50px;
  z-index: 1;
}

.pin_memory {
  margin-left: 20px;
  margin-bottom: -22px;
}

.starsticker_memory {
  right: 47%;
  top: -35px;
  transform: rotate(29deg);
  margin-bottom: -55px;
}

.scotch_memory_left,
.scotch_memory_right {
  height: 50px;
  z-index: 1;
  margin-bottom: -50px;
}

.scotch_memory_left {
  position: relative;
  right: 47%;
  top: -35px;
}

.scotch_memory_right {
  position: relative;
  left: 47%;
  top: -35px;
  transform: rotate(90deg);
}

.text_memory {
  margin: 5px 0px;
  padding: 0 5px;
  width: 90%;
}

.memories_global h2 {
  margin: 0.5em 0em 0.3em 0em;
}

/* case desktop */
@media screen and (min-width: 767px) { 
  .memories_global {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .memories_global div {
    max-width: 250px;
  }
}

/* SHARING PAGE */

#CopyTextShareBtn {
  margin: 20px 0px;
}

#sharingTextDiv {
  width: 90%;
}

#sharingTextArea {
  width: 100%;
  height: 120px;
}

#copyMessage {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 9999;
}

/* Listing page */

#events_show_area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav_arrow_left, #nav_arrow_right {
  height: 30px;
  width: 30px;
  margin-top: -50px;
  z-index: 99;
  background-color: white;
  border: 1px solid black;
  border-radius: 50px;
  opacity: 0.5;
  position: relative;
  padding: 5px;
  cursor: pointer;
}

#nav_arrow_left {
  rotate: 180deg;
  left: 30px;
}

#nav_arrow_right {
  right: 30px;
}

/* case desktop */
@media screen and (min-width: 1024px) { 
  #nav_arrow_left {
  left: 0;
}
  #nav_arrow_right {
    right: 0;
}}

#nav_arrow_left:hover, #nav_arrow_right:hover {
  opacity: 1;
}

#whole_discovery_events_area {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.listing_all_lists {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0px 10px;
  gap: 10px;
}

.listing_all_lists .bloc_event_listing {
  background-color: black;
  height: 200px;
  width: 35vw;
  border-radius: 10px;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.5);
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: cover;
  background-size: 100%;
  transition: background-size 0.4s ease;
}

/* case desktop */
@media screen and (min-width: 1024px) { 
  .listing_all_lists .bloc_event_listing {
  width: 20vw;
}}

.listing_all_lists a {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  backdrop-filter: blur(0.6px);
  transition: filter 0.4s ease;
}

.label_event {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 60px;
  min-height: 60px;
  padding: 15px 5px 5px 5px;
  border-radius: 15px 15px 5px 5px;
  background: linear-gradient(0deg, 
  rgba(255, 255, 255, 1) 0%, 
  rgba(255, 255, 255, 0.3) 100%);
  color: black;
  transition: background-color 0.4s ease;
}

.label_event p {
  text-decoration: none;
  overflow: hidden;
  transform: translateY(0%);
  transition: transform 0.4s ease;
}

.listing_all_lists .bloc_event_listing:hover {
  background-size: 150%;
}

.listing_all_lists .bloc_event_listing:hover a {
  backdrop-filter: blur(0);
  text-decoration: none;
}

.listing_all_lists .bloc_event_listing:hover .label_event {
  background-color: white;
}

.listing_all_lists .bloc_event_listing:hover .label_event p {
  text-decoration: none;
  transform: translateY(-50%);
}

/* Pagination des events */

#paginationControls {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#paginationControls button {
  border: none;
  height: 30px; width: 30px;
  cursor: pointer;
  font-weight: bold;
}

#paginationControls button:hover {
  border-bottom: 2px solid black;
}

#paginationControls .active_pagination {
  background-color: black;
  color: white;
  border-radius: 50%;
}

#paginationControls .active_pagination:hover {
  border-bottom: none;
}

/* Animation injectée en JS sur le listing des events */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


