body {
  background-image: url(./assets/message-bg.png);
  background-size: cover;
  min-height: 100vh;
}

.parent-wrapper {
  margin-top: 2rem;
  overflow-x: hidden;
  margin-bottom: 4rem;
}
#glass-container {
  position: relative;
}

#template-wrap {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%), 0 10px 15px rgb(0 0 0 / 20%);
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(110px);
}

#glass-object {
}

#photo-editor {
  position: relative;
  display: inline-block;
}

#video,
#canvas {
  /* border: 1px solid #ccc; */
  display: block;
  margin-bottom: 10px;
}

#photo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  /* height: 100%; */
  object-fit: contain;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
}

#canvas-container {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#canvas {
  display: block;
  max-width: 100%;
  height: auto;
  z-index: 1 !important;
}

.layer-top {
  position: absolute;
  width: 100%;
  /* background-color: rebeccapurple; */

  top: 0;
  z-index: 50;
  pointer-events: auto;
  opacity: 0;
}

.layer-bottom {
  position: absolute;
  width: 100%;
  /* background-color: rebeccapurple; */

  left: 0;
  bottom: 0;
  z-index: 50;
  pointer-events: auto;
  opacity: 0;
}

.layer-left {
  position: absolute;
  width: 80px;
  /* background-color: rebeccapurple; */

  top: 0;
  left: 0;
  transform: rotate(180deg);
  z-index: 50;
  pointer-events: auto !important;
  opacity: 0;
}

.layer-right {
  position: absolute;
  min-width: 276px;
  /* background-color: rebeccapurple; */

  top: 0;
  right: 0;
  transform: rotate(180deg);
  z-index: 50;
  pointer-events: auto;
  opacity: 0;
}

/* =============================================================================================== */

#controls {
  margin-bottom: 10px;
}

#download-btn,
#share-btn {
  padding: 0.6rem 2rem;
  background: linear-gradient(
    215.31deg,
    rgba(249, 173, 33, 0.89) 13.68%,
    #f27926 93.12%
  );
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #ffffff;
  cursor: pointer;
  border-radius: 0.5rem;
  border: none;
  display: block;
}

#share-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
}

#share-btn img {
  width: 25px;
}

/* #download-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
  } */

/* progress timeline */

.timeline-tags {
  width: 75%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* margin-bottom: 10rem; */
  /* margin-top: 0.5rem; */
}

/* .timeline-tags div:first-child {
  padding-left: 6rem;
}
.timeline-tags div:last-child {
  padding-right: 8rem;
}
.timeline-tags div:nth-child(2) {
  padding-left: 2rem;
} */

.timeline-tags h1 {
  font-weight: 700;
  font-size: 10px;
  color: #ffffff;
}

.timeline-tags img {
  display: none;
}

#line {
  margin-top: 2rem;
}

#line img {
  width: 100%;
}

.photo-text input {
  background: transparent;
  border: 1px solid lightgray;
  color: #ffffff;
  font-size: 16px;
  height: 40px;
  padding: 1rem;
  border-radius: 5px;
}

.photo-text ul {
  margin-left: -12px;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  font-size: 16px;
  font-weight: 300;
}

/* range input style */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 5px;
  outline: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f27926;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: #f0501e;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background-color: #f27926;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

input[type="range"]::-moz-range-thumb:hover {
  background-color: #f0501e;
}

input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background-color: #f27926;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

input[type="range"]::-ms-thumb:hover {
  background-color: #f0501e;
}

/* file input button */
/* style.css */

/* Custom file input */
.custom-file-input {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 5px;
  background-color: #f27926;
  color: #fff;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.custom-file-input input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-file-input label {
  /* display: inline-block;
  vertical-align: middle; */
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.custom-file-input span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Hide default file input styles */
input[type="file"] {
  display: none;
}

.custom-file-input img,
#undo-btn img {
  width: 25px;
}

.photo-btn {
  display: flex;
  gap: 1.5rem;
}

#undo-btn button {
  background-color: #f27926;
  /* background-color: gray; */
  border: none;
  border-radius: 5px;
  height: 100%;
  padding: 0 1rem;
}

#controls {
  background-color: rgba(0, 0, 0, 0.514);
  opacity: 0.7;
  padding: 0.2rem;
  border-radius: 10px;
  max-width: 400px;
}

#controls input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: transparent;
}

/* #controls input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
} */

#controls input::placeholder {
  color: #fff;
}

#controls input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3911d 0%, #fade00 145.83%);
  cursor: pointer;
  margin-top: -6px;
}

#controls input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background-color: #fff;
  cursor: pointer;
}

#controls input::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background-color: #ddd;
  border-radius: 10px;
}

#controls input::-moz-range-track {
  width: 100%;
  height: 4px;
  background-color: #ddd;
}

input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #ffffff;
  opacity: 1; /* Firefox */
}

input:focus {
  outline: none;
}

#post {
  width: 100%;
  /* background: #000000; */
  background: linear-gradient(180deg, rgba(46, 22, 2, 0) -79.44%, #100700 100%);
  border-radius: 5px;
  /* border: 1px solid lightgray; */
  border: none;
  border-radius: 6px;
  height: 200px;
  padding: 1rem;
  color: #ffffff;
  font-size: 14px;
  resize: none;
}

#post::placeholder {
  color: lightgray;
}

#post::-webkit-scrollbar {
  display: none;
}

.image-btn {
  display: flex;
  gap: 2rem;
}

#instruction {
  color: lightgoldenrodyellow;
  padding-top: 1rem;
  font-size: 13px;
  font-weight: 300;
  font-family: "Montserrat";
  margin-bottom: 0;
  max-width: 400px;
  margin: auto;
}

input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.text-area {
  position: relative;
}

#copy-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
}
#copy-btn img {
  width: 15px;
}

#instruction {
  color: #ffffff;
}

#zoom-text {
  color: #fccb48;
}

@media only screen and (max-width: 1200px) {
  .layer-right {
    min-width: unset;
  }
}

@media only screen and (max-width: 600px) {
  #template-wrap {
    padding: 1rem;
  }
  #glass-container {
    margin-bottom: 5rem;
  }
  #glass-object {
    flex-direction: column;
    /* width: 100%; */
    padding: unset;
    padding: 2rem 0;
  }
  .line_box {
    display: none;
  }
  .timeline-tags {
    flex-direction: column;
    row-gap: 1rem;
  }
  .parent-wrapper {
    margin-top: 10rem;
  }

  .timeline-tags {
    width: 100%;
    display: none;
  }

  .timeline-tags img {
    display: block;
  }

  .timeline-tags div {
    display: flex;
    column-gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .timeline-tags h1 {
    font-weight: 600;
    line-height: 20px;
  }

  #line {
    display: none;
  }

  /* #canvas {
      width: 100%;
    }
    #photo-frame {
      width: 100%;
    } */

  .photo-text {
    padding: 0 1rem;
  }
  #photo-editor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #controls {
    max-width: unset;

    width: 100%;
  }

  .image-btn {
    display: flex;
    justify-content: space-around;
  }

  #download-btn,
  #share-btn {
    padding: 0.6rem 1.3rem;
  }
  #instruction {
    margin-bottom: 1.2rem;
  }

  .layer-right {
    width: 64px;
  }
}
